From 593d07a5b3274ddf9e13336702cf411222d4524f Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 2 Oct 1995 21:26:06 +0000 Subject: Formerly nfs.c.~4~ --- nfs/nfs.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'nfs/nfs.c') diff --git a/nfs/nfs.c b/nfs/nfs.c index 4c8ab6ec..92e78dde 100644 --- a/nfs/nfs.c +++ b/nfs/nfs.c @@ -95,16 +95,16 @@ xdr_encode_sattr_size (int *p, off_t size) } inline int * -xdr_encode_sattr_times (int *p, struct timeval *atime, struct timeval *mtime) +xdr_encode_sattr_times (int *p, struct timespec *atime, struct timespec *mtime) { *p++ = -1; /* mode */ *p++ = -1; /* uid */ *p++ = -1; /* gid */ *p++ = -1; /* size */ - *p++ = htonl (atime->secs); - *p++ = htonl (atime->usecs); - *p++ = htonl (mtime->secs); - *p++ = htonl (mtime->usecs); + *p++ = htonl (atime->ts_sec); + *p++ = htonl (atime->ts_nsec * 1000); + *p++ = htonl (mtime->ts_sec); + *p++ = htonl (mtime->ts_nsec * 1000); return p; } @@ -143,6 +143,16 @@ xdr_decode_fattr (int *p, struct stat *st) } +/* Decode *P into an fsys_statfsbuf structure; return the address of + the following data. */ +int * +xdr_decode_statfs (int *p, struct fsys_statfsbuf *st) +{ + st->fsys_stb_ + + + st->fsys_stb_type = FSTYPE_NFS; + /* Create, initialize, and return a buffer suitable for sending an RPC of type RPC_PROC for the user identified in CRED. For types READ, -- cgit v1.2.3