summaryrefslogtreecommitdiff
path: root/nfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-12-07 20:39:59 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-12-07 20:39:59 +0000
commitaffc30e281750349e1344b4cb2975f67684d8747 (patch)
tree562a2fc50107f894485062c1043b90b09e1e9b70 /nfs
parente6a6d4d6481b317c014953f9b94c3b8a9ae5b9a8 (diff)
Formerly nfs.c.~7~
Diffstat (limited to 'nfs')
-rw-r--r--nfs/nfs.c17
1 files changed, 16 insertions, 1 deletions
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;
}
-