diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-02-05 00:13:03 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-02-05 00:13:03 +0000 |
commit | 4e739407735755630c1ee8407285ed250fffca9c (patch) | |
tree | 135d2b58effc30a2d9aad64f71c94fb6e129f1d5 /libdiskfs | |
parent | 393eeae98b0249b2050e925a7a4afd5f861059ac (diff) |
Formerly io-stat.c.~3~
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/io-stat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libdiskfs/io-stat.c b/libdiskfs/io-stat.c index 757e84e4..6b139b6a 100644 --- a/libdiskfs/io-stat.c +++ b/libdiskfs/io-stat.c @@ -17,6 +17,7 @@ #include "priv.h" #include "io_S.h" +#include <string.h> /* Implement io_stat as described in <hurd/io.defs>. */ error_t @@ -24,15 +25,15 @@ diskfs_S_io_stat (struct protid *cred, io_statbuf_t *statbuf) { struct node *np; - error_t error; if (!cred) return EOPNOTSUPP; np = cred->po->np; mutex_lock (&np->lock); - ioserver_get_conch (&ip->conch); + ioserver_get_conch (&np->conch); + diskfs_set_node_times (np); bcopy (&np->dn_stat, statbuf, sizeof (struct stat)); mutex_unlock (&np->lock); - return error; + return 0; } |