diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-19 03:42:43 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-19 03:42:43 +0000 |
commit | 8ad48f6ce444648397d82b107cd196c24599d7cb (patch) | |
tree | 1dbc9e6c691521e74a48a9df2b7944366a4c0922 /pfinet/misc.c | |
parent | f030ef4e9d02fc0c88113a569773e49d629e9aa2 (diff) | |
download | hurd-8ad48f6ce444648397d82b107cd196c24599d7cb.tar.gz hurd-8ad48f6ce444648397d82b107cd196c24599d7cb.tar.bz2 hurd-8ad48f6ce444648397d82b107cd196c24599d7cb.zip |
*** empty log message ***
Diffstat (limited to 'pfinet/misc.c')
-rw-r--r-- | pfinet/misc.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pfinet/misc.c b/pfinet/misc.c index b1cf519b..6eb96b89 100644 --- a/pfinet/misc.c +++ b/pfinet/misc.c @@ -21,14 +21,19 @@ #include "pfinet.h" #include <string.h> -/* Create a sock_user structure, initialized from SOCK and ISROOT. */ +/* Create a sock_user structure, initialized from SOCK and ISROOT. + If NOINSTALL is set, don't put it in the portset. */ struct sock_user * -make_sock_user (struct socket *sock, int isroot) +make_sock_user (struct socket *sock, int isroot, int noinstall) { struct sock_user *user; - errno = ports_create_port (socketport_class, pfinet_bucket, - sizeof (struct sock_user), &user); + if (noinstall) + errno = ports_create_port_noinstall (socketport_class, pfinet_bucket, + sizeof (struct sock_user), &user); + else + errno = ports_create_port (socketport_class, pfinet_bucket, + sizeof (struct sock_user), &user); if (errno) return 0; |