summaryrefslogtreecommitdiff
path: root/hostmux/hostmux.h
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-06-20 05:37:28 +0000
committerMiles Bader <miles@gnu.org>1997-06-20 05:37:28 +0000
commitdba9fed80f2e28b52317dee4a314d2f3990530bd (patch)
tree9c04f4dd4fe10f34430c33c39c2905c2f1772677 /hostmux/hostmux.h
parent31b16d7d3dcf1a3f3bfd18e23f520593d8dc9ef3 (diff)
(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.
Diffstat (limited to 'hostmux/hostmux.h')
-rw-r--r--hostmux/hostmux.h32
1 files changed, 1 insertions, 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 <maptime.h>
/* 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__ */