diff options
author | Roland McGrath <roland@gnu.org> | 2002-05-29 08:34:38 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-05-29 08:34:38 +0000 |
commit | 6f0783f05f1ec037bea1619306aff367b7f50d47 (patch) | |
tree | 8fd48932d43cbc00c599e627a0b0946996dbbcd1 /pfinet/io-ops.c | |
parent | a3820c3a3c372fc54a47d397e19db700023b5b06 (diff) | |
download | hurd-6f0783f05f1ec037bea1619306aff367b7f50d47.tar.gz hurd-6f0783f05f1ec037bea1619306aff367b7f50d47.tar.bz2 hurd-6f0783f05f1ec037bea1619306aff367b7f50d47.zip |
2002-05-29 Roland McGrath <roland@frob.com>
* linux-src/include/linux/net.h (struct socket) [_HURD_]:
New member `st_ino'.
* io-ops.c (S_io_stat, S_io_identity): Use that.
* socket.c (sock_alloc): Initialize it with a monotonic counter.
Diffstat (limited to 'pfinet/io-ops.c')
-rw-r--r-- | pfinet/io-ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pfinet/io-ops.c b/pfinet/io-ops.c index 4964c80a..b9c7de9d 100644 --- a/pfinet/io-ops.c +++ b/pfinet/io-ops.c @@ -303,7 +303,7 @@ S_io_stat (struct sock_user *user, st->st_fstype = FSTYPE_SOCKET; st->st_fsid = getpid (); - st->st_ino = (ino_t) user->sock; /* why not? */ + st->st_ino = user->sock->st_ino; st->st_mode = S_IFSOCK | ACCESSPERMS; st->st_blksize = 512; /* ???? */ @@ -471,7 +471,7 @@ S_io_identity (struct sock_user *user, *idtype = MACH_MSG_TYPE_MAKE_SEND; *fsys = fsys_identity; *fsystype = MACH_MSG_TYPE_MAKE_SEND; - *fileno = (ino_t) user->sock; /* matches S_io_stat above */ + *fileno = user->sock->st_ino; __mutex_unlock (&global_lock); return 0; |