diff options
author | Miles Bader <miles@gnu.org> | 1997-02-14 05:58:46 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-02-14 05:58:46 +0000 |
commit | 89f3161ece93ca0854ed6454149df20a218f5c54 (patch) | |
tree | fc2a77e400247b504678e1e0308dbf640d5421d2 /libports/create-bucket.c | |
parent | b42154c4c655c651d5a260c57d1b2f84ba79e713 (diff) |
(ports_create_bucket):
Initialize rpcs, flags, & count fields in RET.
Diffstat (limited to 'libports/create-bucket.c')
-rw-r--r-- | libports/create-bucket.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libports/create-bucket.c b/libports/create-bucket.c index 1c3346e4..d523b788 100644 --- a/libports/create-bucket.c +++ b/libports/create-bucket.c @@ -1,5 +1,5 @@ /* Create a port bucket - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1997 Free Software Foundation, Inc. Written by Michael I. Bushnell. This file is part of the GNU Hurd. @@ -31,17 +31,20 @@ ports_create_bucket () ret = malloc (sizeof (struct port_bucket)); assert (ret); + err = mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_PORT_SET, &ret->portset); assert_perror (err); + err = ihash_create (&ret->htable); assert_perror (err); + ret->rpcs = ret->flags = ret->count = 0; + mutex_lock (&_ports_lock); ret->next = _ports_all_buckets; _ports_all_buckets = ret; mutex_unlock (&_ports_lock); + return ret; } - - |