From dba9fed80f2e28b52317dee4a314d2f3990530bd Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 20 Jun 1997 05:37:28 +0000 Subject: (touch): Function removed; all uses replaced by the appropriate use of fshelp_touch instead. (TOUCH_ATIME, TOUCH_MTIME, TOUCH_CTIME): Macros removed. (hostmux_maptime): Renamed from HOSTMUX_MAPPED_TIME; all uses changed. --- hostmux/hostmux.h | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/hostmux/hostmux.h b/hostmux/hostmux.h index 54c11738..10170002 100644 --- a/hostmux/hostmux.h +++ b/hostmux/hostmux.h @@ -26,7 +26,7 @@ #include /* Handy source of time. */ -volatile struct mapped_time_value *hostmux_mapped_time; +volatile struct mapped_time_value *hostmux_maptime; /* The state associated with a host multiplexer translator. */ struct hostmux @@ -85,38 +85,8 @@ struct netnode struct hostmux_name *name; }; -/* Timestamps to change. */ -#define TOUCH_ATIME 0x1 -#define TOUCH_MTIME 0x2 -#define TOUCH_CTIME 0x4 - #ifndef HOSTMUX_EI # define HOSTMUX_EI extern inline #endif -/* Change the stat times of NODE as indicated by WHAT (from the set TOUCH_*) - to the current time. */ -HOSTMUX_EI void touch (struct node *node, unsigned what) -{ - struct timeval tv; - - maptime_read (hostmux_mapped_time, &tv); - - if (what & TOUCH_ATIME) - { - netfs_root_node->nn_stat.st_atime = tv.tv_sec; - netfs_root_node->nn_stat.st_atime_usec = tv.tv_usec; - } - if (what & TOUCH_CTIME) - { - netfs_root_node->nn_stat.st_ctime = tv.tv_sec; - netfs_root_node->nn_stat.st_ctime_usec = tv.tv_usec; - } - if (what & TOUCH_MTIME) - { - netfs_root_node->nn_stat.st_mtime = tv.tv_sec; - netfs_root_node->nn_stat.st_mtime_usec = tv.tv_usec; - } -} - #endif /* __HOSTMUX_H__ */ -- cgit v1.2.3