diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-10-02 21:26:06 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-10-02 21:26:06 +0000 |
commit | 593d07a5b3274ddf9e13336702cf411222d4524f (patch) | |
tree | e8ac979f2c610eeb456bc41cf8828a10ba446c69 | |
parent | 54f4ec9245e7b34a6bdd8f61eaa1e84086e29225 (diff) |
Formerly nfs.c.~4~
-rw-r--r-- | nfs/nfs.c | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -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, |