/[hurd]/hurd/pfinet/io-ops.c
ViewVC logotype

Diff of /hurd/pfinet/io-ops.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.26 by roland, Wed May 29 00:13:04 2002 UTC revision 1.27 by roland, Wed May 29 08:34:38 2002 UTC
# Line 303  S_io_stat (struct sock_user *user, Line 303  S_io_stat (struct sock_user *user,
303    
304    st->st_fstype = FSTYPE_SOCKET;    st->st_fstype = FSTYPE_SOCKET;
305    st->st_fsid = getpid ();    st->st_fsid = getpid ();
306    st->st_ino = (ino_t) user->sock; /* why not? */    st->st_ino = user->sock->st_ino;
307    
308    st->st_mode = S_IFSOCK | ACCESSPERMS;    st->st_mode = S_IFSOCK | ACCESSPERMS;
309    st->st_blksize = 512;         /* ???? */    st->st_blksize = 512;         /* ???? */
# Line 471  S_io_identity (struct sock_user *user, Line 471  S_io_identity (struct sock_user *user,
471    *idtype = MACH_MSG_TYPE_MAKE_SEND;    *idtype = MACH_MSG_TYPE_MAKE_SEND;
472    *fsys = fsys_identity;    *fsys = fsys_identity;
473    *fsystype = MACH_MSG_TYPE_MAKE_SEND;    *fsystype = MACH_MSG_TYPE_MAKE_SEND;
474    *fileno = (ino_t) user->sock; /* matches S_io_stat above */    *fileno = user->sock->st_ino;
475    
476    __mutex_unlock (&global_lock);    __mutex_unlock (&global_lock);
477    return 0;    return 0;

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26