diff options
author | 2004-06-24 19:35:22 +0000 | |
---|---|---|
committer | 2004-06-24 19:35:22 +0000 | |
commit | c247527514ab9a1b328cae8b6e13b0ff68eb2a76 (patch) | |
tree | 276db6e65e12534fa619a2bf272017ece0e3f6b6 /sys/sys/pipe.h | |
parent | regress test for re-exec corner cases (diff) | |
download | wireguard-openbsd-c247527514ab9a1b328cae8b6e13b0ff68eb2a76.tar.xz wireguard-openbsd-c247527514ab9a1b328cae8b6e13b0ff68eb2a76.zip |
This moves access to wall and uptime variables in MI code,
encapsulating all such access into wall-defined functions
that makes sure locking is done as needed.
It also cleans up some uses of wall time vs. uptime some
places, but there is sure to be more of these needed as
well, particularily in MD code. Also, many current calls
to microtime() should probably be changed to getmicrotime(),
or to the {,get}microuptime() versions.
ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others
"Oh, that is not your problem!" from miod@
Diffstat (limited to 'sys/sys/pipe.h')
-rw-r--r-- | sys/sys/pipe.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/pipe.h b/sys/sys/pipe.h index 4ed94c7333d..109b4099e02 100644 --- a/sys/sys/pipe.h +++ b/sys/sys/pipe.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pipe.h,v 1.11 2003/10/03 16:38:03 miod Exp $ */ +/* $OpenBSD: pipe.h,v 1.12 2004/06/24 19:35:26 tholo Exp $ */ /* * Copyright (c) 1996 John S. Dyson @@ -74,9 +74,9 @@ struct pipebuf { struct pipe { struct pipebuf pipe_buffer; /* data storage */ struct selinfo pipe_sel; /* for compat with select */ - struct timeval pipe_atime; /* time of last access */ - struct timeval pipe_mtime; /* time of last modify */ - struct timeval pipe_ctime; /* time of status change */ + struct timespec pipe_atime; /* time of last access */ + struct timespec pipe_mtime; /* time of last modify */ + struct timespec pipe_ctime; /* time of status change */ int pipe_pgid; /* process/group for async I/O */ struct pipe *pipe_peer; /* link with other direction */ u_int pipe_state; /* pipe status info */ |