mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Get timespecs directly instead of via timevals.
This commit is contained in:
parent
8e929d6553
commit
bf57f6f9b3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36097
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95
|
||||
* $Id: nfsm_subs.h,v 1.14 1998/02/03 21:51:56 bde Exp $
|
||||
* $Id: nfsm_subs.h,v 1.15 1998/03/30 09:54:41 phk Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -434,12 +434,9 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
|
||||
nfsm_dissect(tl, u_long *, 2 * NFSX_UNSIGNED); \
|
||||
fxdr_nfsv3time(tl, &(a)->va_atime); \
|
||||
break; \
|
||||
case NFSV3SATTRTIME_TOSERVER: { \
|
||||
struct timeval tv; \
|
||||
getmicrotime(&tv); \
|
||||
(a)->va_atime.tv_sec = tv.tv_sec; \
|
||||
(a)->va_atime.tv_nsec = tv.tv_usec * 1000; \
|
||||
break; } \
|
||||
case NFSV3SATTRTIME_TOSERVER: \
|
||||
getnanotime(&(a)->va_atime); \
|
||||
break; \
|
||||
}; \
|
||||
nfsm_dissect(tl, u_long *, NFSX_UNSIGNED); \
|
||||
switch (fxdr_unsigned(int, *tl)) { \
|
||||
@ -447,12 +444,9 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
|
||||
nfsm_dissect(tl, u_long *, 2 * NFSX_UNSIGNED); \
|
||||
fxdr_nfsv3time(tl, &(a)->va_mtime); \
|
||||
break; \
|
||||
case NFSV3SATTRTIME_TOSERVER: { \
|
||||
struct timeval tv; \
|
||||
getmicrotime(&tv); \
|
||||
(a)->va_mtime.tv_sec = tv.tv_sec; \
|
||||
(a)->va_mtime.tv_nsec = tv.tv_usec * 1000; \
|
||||
break; } \
|
||||
case NFSV3SATTRTIME_TOSERVER: \
|
||||
getnanotime(&(a)->va_mtime); \
|
||||
break; \
|
||||
}; }
|
||||
|
||||
#endif
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95
|
||||
* $Id: nfsm_subs.h,v 1.14 1998/02/03 21:51:56 bde Exp $
|
||||
* $Id: nfsm_subs.h,v 1.15 1998/03/30 09:54:41 phk Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -434,12 +434,9 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
|
||||
nfsm_dissect(tl, u_long *, 2 * NFSX_UNSIGNED); \
|
||||
fxdr_nfsv3time(tl, &(a)->va_atime); \
|
||||
break; \
|
||||
case NFSV3SATTRTIME_TOSERVER: { \
|
||||
struct timeval tv; \
|
||||
getmicrotime(&tv); \
|
||||
(a)->va_atime.tv_sec = tv.tv_sec; \
|
||||
(a)->va_atime.tv_nsec = tv.tv_usec * 1000; \
|
||||
break; } \
|
||||
case NFSV3SATTRTIME_TOSERVER: \
|
||||
getnanotime(&(a)->va_atime); \
|
||||
break; \
|
||||
}; \
|
||||
nfsm_dissect(tl, u_long *, NFSX_UNSIGNED); \
|
||||
switch (fxdr_unsigned(int, *tl)) { \
|
||||
@ -447,12 +444,9 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
|
||||
nfsm_dissect(tl, u_long *, 2 * NFSX_UNSIGNED); \
|
||||
fxdr_nfsv3time(tl, &(a)->va_mtime); \
|
||||
break; \
|
||||
case NFSV3SATTRTIME_TOSERVER: { \
|
||||
struct timeval tv; \
|
||||
getmicrotime(&tv); \
|
||||
(a)->va_mtime.tv_sec = tv.tv_sec; \
|
||||
(a)->va_mtime.tv_nsec = tv.tv_usec * 1000; \
|
||||
break; } \
|
||||
case NFSV3SATTRTIME_TOSERVER: \
|
||||
getnanotime(&(a)->va_mtime); \
|
||||
break; \
|
||||
}; }
|
||||
|
||||
#endif
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95
|
||||
* $Id: nfsm_subs.h,v 1.14 1998/02/03 21:51:56 bde Exp $
|
||||
* $Id: nfsm_subs.h,v 1.15 1998/03/30 09:54:41 phk Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -434,12 +434,9 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
|
||||
nfsm_dissect(tl, u_long *, 2 * NFSX_UNSIGNED); \
|
||||
fxdr_nfsv3time(tl, &(a)->va_atime); \
|
||||
break; \
|
||||
case NFSV3SATTRTIME_TOSERVER: { \
|
||||
struct timeval tv; \
|
||||
getmicrotime(&tv); \
|
||||
(a)->va_atime.tv_sec = tv.tv_sec; \
|
||||
(a)->va_atime.tv_nsec = tv.tv_usec * 1000; \
|
||||
break; } \
|
||||
case NFSV3SATTRTIME_TOSERVER: \
|
||||
getnanotime(&(a)->va_atime); \
|
||||
break; \
|
||||
}; \
|
||||
nfsm_dissect(tl, u_long *, NFSX_UNSIGNED); \
|
||||
switch (fxdr_unsigned(int, *tl)) { \
|
||||
@ -447,12 +444,9 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
|
||||
nfsm_dissect(tl, u_long *, 2 * NFSX_UNSIGNED); \
|
||||
fxdr_nfsv3time(tl, &(a)->va_mtime); \
|
||||
break; \
|
||||
case NFSV3SATTRTIME_TOSERVER: { \
|
||||
struct timeval tv; \
|
||||
getmicrotime(&tv); \
|
||||
(a)->va_mtime.tv_sec = tv.tv_sec; \
|
||||
(a)->va_mtime.tv_nsec = tv.tv_usec * 1000; \
|
||||
break; } \
|
||||
case NFSV3SATTRTIME_TOSERVER: \
|
||||
getnanotime(&(a)->va_mtime); \
|
||||
break; \
|
||||
}; }
|
||||
|
||||
#endif
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95
|
||||
* $Id: nfsm_subs.h,v 1.14 1998/02/03 21:51:56 bde Exp $
|
||||
* $Id: nfsm_subs.h,v 1.15 1998/03/30 09:54:41 phk Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -434,12 +434,9 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
|
||||
nfsm_dissect(tl, u_long *, 2 * NFSX_UNSIGNED); \
|
||||
fxdr_nfsv3time(tl, &(a)->va_atime); \
|
||||
break; \
|
||||
case NFSV3SATTRTIME_TOSERVER: { \
|
||||
struct timeval tv; \
|
||||
getmicrotime(&tv); \
|
||||
(a)->va_atime.tv_sec = tv.tv_sec; \
|
||||
(a)->va_atime.tv_nsec = tv.tv_usec * 1000; \
|
||||
break; } \
|
||||
case NFSV3SATTRTIME_TOSERVER: \
|
||||
getnanotime(&(a)->va_atime); \
|
||||
break; \
|
||||
}; \
|
||||
nfsm_dissect(tl, u_long *, NFSX_UNSIGNED); \
|
||||
switch (fxdr_unsigned(int, *tl)) { \
|
||||
@ -447,12 +444,9 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
|
||||
nfsm_dissect(tl, u_long *, 2 * NFSX_UNSIGNED); \
|
||||
fxdr_nfsv3time(tl, &(a)->va_mtime); \
|
||||
break; \
|
||||
case NFSV3SATTRTIME_TOSERVER: { \
|
||||
struct timeval tv; \
|
||||
getmicrotime(&tv); \
|
||||
(a)->va_mtime.tv_sec = tv.tv_sec; \
|
||||
(a)->va_mtime.tv_nsec = tv.tv_usec * 1000; \
|
||||
break; } \
|
||||
case NFSV3SATTRTIME_TOSERVER: \
|
||||
getnanotime(&(a)->va_mtime); \
|
||||
break; \
|
||||
}; }
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user