From 6f0783f05f1ec037bea1619306aff367b7f50d47 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 29 May 2002 08:34:38 +0000 Subject: 2002-05-29 Roland McGrath * 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. --- pfinet/io-ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pfinet/io-ops.c') 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; -- cgit v1.2.3