summaryrefslogtreecommitdiff
path: root/libhurd-cap-server/class-init.c
diff options
context:
space:
mode:
authorneal <neal>2005-01-07 10:27:50 +0000
committerneal <neal>2005-01-07 10:27:50 +0000
commita34443c2b24f3def14b8f10e34c9cd5d7d7c42d3 (patch)
treee4aec5f0811c4689b0fa0bec5835fb2fd560ca7f /libhurd-cap-server/class-init.c
parentca7c322232745f31ec6980864ca569b74f57e68b (diff)
libhurd-slab/
2005-01-06 Neal H. Walfield <neal@gnu.org> * slab.h (hurd_slab_allocate_buffer_t): New type. (hurd_slab_deallocate_buffer_t): Likewise. (struct hurd_slab_space): New fields allocate_buffer and deallocate_buffer. (HURD_SLAB_SPACE_INITIALIZER): Add new arguments ALLOC and DEALLOC and take them into account when creating the slab. (hurd_slab_create): New parameters ALLOCATE_BUFFER and DEALLOCATE_BUFFER. (hurd_slab_init): Likewise. * slab.c (allocate_buffer): New function. (deallocate_buffer): Likewise. (reap): When deallocating a buffer, use allocate_buffer. (grow): When allocating or deallocating a buffer, call allocate_buffer or deallocate_buffer as appropriate. (hurd_slab_init): Add new arguments ALLOCATE_BUFFER and DEALLOCATE_BUFFER and take them into account when setting up SPACE. (hurd_slab_create): Likewise. libhurd-cap/ 2005-01-07 Neal H. Walfield <neal@gnu.org> * cap.c (hurd_cap_init): Supply the allocate_buffer and deallocate_buffer arguments to hurd_slab_create to conform with the new semantics. libhurd-cap-server/ 2005-01-07 Neal H. Walfield <neal@gnu.org> * class-init.c (hurd_cap_class_init_untyped): Supply the allocate_buffer and deallocate_buffer arguments to hurd_slab_create to conform with the new semantics. * obj-entry-space.c (_hurd_cap_obj_entry_space): Likewise for HURD_SLAB_SPACE_INITIALIZER. * client-create.c (_hurd_cap_client_space): Likewise. task/ 2005-01-07 Neal H. Walfield <neal@gnu.org> * thread.c (threads): Supply the allocate_buffer and deallocate_buffer arguments to HURD_SLAB_SPACE_INITIALIZER to conform with the new semantics.
Diffstat (limited to 'libhurd-cap-server/class-init.c')
-rw-r--r--libhurd-cap-server/class-init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhurd-cap-server/class-init.c b/libhurd-cap-server/class-init.c
index cdbb7db..aad5015 100644
--- a/libhurd-cap-server/class-init.c
+++ b/libhurd-cap-server/class-init.c
@@ -1,5 +1,5 @@
/* class-init.c - Initialize a capability class.
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005 Free Software Foundation, Inc.
Written by Marcus Brinkmann <marcus@gnu.org>
This file is part of the GNU Hurd.
@@ -116,7 +116,7 @@ hurd_cap_class_init_untyped (hurd_cap_class_t cap_class,
cap_class->obj_reinit = obj_reinit;
cap_class->obj_destroy = obj_destroy;
- err = hurd_slab_init (&cap_class->obj_space, size, alignment,
+ err = hurd_slab_init (&cap_class->obj_space, size, alignment, NULL, NULL,
_hurd_cap_obj_constructor, _hurd_cap_obj_destructor,
cap_class);
if (err)