diff options
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/hurd/posix_opt.h | 12 | ||||
-rw-r--r-- | sysdeps/mach/hurd/sigwait.c | 8 | ||||
-rw-r--r-- | sysdeps/mach/libc-lock.h | 10 |
3 files changed, 22 insertions, 8 deletions
diff --git a/sysdeps/mach/hurd/posix_opt.h b/sysdeps/mach/hurd/posix_opt.h new file mode 100644 index 0000000000..75a07e1539 --- /dev/null +++ b/sysdeps/mach/hurd/posix_opt.h @@ -0,0 +1,12 @@ +/* Posix options supported by the GNU Hurd port of GNU libc. */ + +#define _POSIX_JOB_CONTROL 1 +#define _POSIX_SAVED_IDS 1 +#define _POSIX_VDISABLE ((unsigned char) -1) + +/* Different Hurd filesystems might do these differently. */ +#undef _POSIX_CHOWN_RESTRICTED +#undef _POSIX_NO_TRUNC + + + diff --git a/sysdeps/mach/hurd/sigwait.c b/sysdeps/mach/hurd/sigwait.c index b8e5ade84f..69fe03ebb0 100644 --- a/sysdeps/mach/hurd/sigwait.c +++ b/sysdeps/mach/hurd/sigwait.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -120,12 +120,6 @@ __sigwait (const sigset_t *set, int *sig) all_done: - /* Cause the pointless side-effect. */ - __sigfillset (&ss->blocked); - for (signo = 1; signo < NSIG; signo++) - if (__sigismember (&mask, signo)) - __sigdelset (&ss->blocked, signo); - spin_unlock (&ss->lock); __mach_port_destroy (__mach_task_self (), wait); diff --git a/sysdeps/mach/libc-lock.h b/sysdeps/mach/libc-lock.h index 36bf2c1038..53dc8ee9e0 100644 --- a/sysdeps/mach/libc-lock.h +++ b/sysdeps/mach/libc-lock.h @@ -1,5 +1,5 @@ /* libc-internal interface for mutex locks. Mach cthreads version. -Copyright (C) 1996 Free Software Foundation, Inc. +Copyright (C) 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -79,4 +79,12 @@ typedef struct __libc_lock_opaque__ __libc_lock_t; #define __libc_mutex_unlock __mutex_unlock #endif +/* XXX until cthreads supports recursive locks */ +#define __libc_lock_define_initialized_recursive __libc_lock_define_initialized +#define __libc_lock_init_recursive __libc_lock_init +#define __libc_lock_fini_recursive __libc_lock_fini +#define __libc_lock_trylock_recursive __libc_lock_trylock +#define __libc_lock_unlock_recursive __libc_lock_unlock +#define __libc_lock_lock_recursive __libc_lock_lock + #endif /* libc-lock.h */ |