From affc30e281750349e1344b4cb2975f67684d8747 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 7 Dec 1995 20:39:59 +0000 Subject: Formerly nfs.c.~7~ --- nfs/nfs.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'nfs') diff --git a/nfs/nfs.c b/nfs/nfs.c index 23ef1d32..c898b285 100644 --- a/nfs/nfs.c +++ b/nfs/nfs.c @@ -108,6 +108,22 @@ xdr_encode_sattr_times (int *p, struct timespec *atime, struct timespec *mtime) return p; } +inline int * +xdr_encode_create_state (int *p, + mode_t mode) +{ + *p++ = mode; + *p++ = -1; /* uid */ + *p++ = -1; /* gid */ + *p++ = 0; /* size */ + *p++ = -1; /* atime sec */ + *p++ = -1; /* atime usec */ + *p++ = -1; /* mtime sec */ + *p++ = -1; /* mtime usec */ + return p +} + + /* Decode *P into a stat structure; return the address of the following data. */ int * @@ -142,4 +158,3 @@ xdr_decode_fattr (int *p, struct stat *st) return p; } - -- cgit v1.2.3