summaryrefslogtreecommitdiff
path: root/nfsd/xdr.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-08-07 19:03:53 +0000
committerThomas Bushnell <thomas@gnu.org>1996-08-07 19:03:53 +0000
commit19d0f00234b0884a31c8bd4b806c6d512baae9be (patch)
treeb1fbd27e19126286009ba2486e1fc49886b8d8d7 /nfsd/xdr.c
parentfeecb48f23f7e3cff12f14a579a56b8b8143b275 (diff)
*** empty log message ***
Diffstat (limited to 'nfsd/xdr.c')
-rw-r--r--nfsd/xdr.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/nfsd/xdr.c b/nfsd/xdr.c
index d5bea0bd..5b13b2a5 100644
--- a/nfsd/xdr.c
+++ b/nfsd/xdr.c
@@ -23,22 +23,11 @@
#include <string.h>
#include "nfsd.h"
-/* Return the address of the next thing after the credential at P. */
-int *
-skip_cred (int *p)
-{
- int size;
-
- p++; /* TYPE */
- size = ntohl (*p++);
- return p + INTSIZE (size);
-}
-
/* Any better ideas? */
static int
hurd_mode_to_nfs_mode (mode_t m)
{
- return m & 0x177777;
+ return m & 0177777;
}
static int
@@ -85,6 +74,14 @@ encode_fattr (int *p, struct stat *st)
*p++ = htonl (st->st_blksize);
*p++ = htonl (st->st_rdev);
*p++ = htonl (st->st_blocks);
+ *p++ = htonl (st->st_fsid);
+ *p++ = htonl (st->st_ino);
+ *p++ = htonl (st->st_atime);
+ *p++ = htonl (st->st_atime_usec);
+ *p++ = htonl (st->st_mtime);
+ *p++ = htonl (st->st_mtime_usec);
+ *p++ = htonl (st->st_ctime);
+ *p++ = htonl (st->st_ctime_usec);
return p;
}