summaryrefslogtreecommitdiff
path: root/libpthread/sysdeps/generic/pt-mutex-init.c
diff options
context:
space:
mode:
authormarcus <marcus>2004-03-22 15:20:17 +0000
committermarcus <marcus>2004-03-22 15:20:17 +0000
commitc087e2bbf6f4687897e1000ad76300b8f60c3f76 (patch)
tree0b6513e5b8482a2bfe1e5f6b6f9bde8070b06686 /libpthread/sysdeps/generic/pt-mutex-init.c
parent25397396e1ec41f87ea01079ceb242e080d8627a (diff)
2004-03-22 Marcus Brinkmann <marcus@gnu.org>
* Makefile.am (AM_CFLAGS): New variable. * headers.m4: Add table.h * table.h (hurd_table_entry_t): Type removed. (struct hurd_table): Change type of DATA to char *. New member ENTRY_SIZE. (HURD_TABLE_INITIALIZER): Take argument SIZE_OF_ONE. Initialize ENTRY_SIZE. (hurd_table_init): Add new argument ENTRY_SIZE to prototype. (hurd_table_enter): Change type of DATA to void *. (hurd_table_lookup): Change return type to void *. Return 0, not HURD_TABLE_EMPTY. Reimplement for new semantics. * table.c: Include <assert.h>. (hurd_table_init): Add new argument ENTRY_SIZE. Pass it to HURD_TABLE_INITIALIZER. (hurd_table_enter): Use TABLE->entry_size for reallocation. Adjust code to fit new semantics. Add 1 to TABLE->first_free to make that point to the element after the one we just added.
Diffstat (limited to 'libpthread/sysdeps/generic/pt-mutex-init.c')
0 files changed, 0 insertions, 0 deletions