+2006-02-08 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/unix/sysv/linux/bits/sched.h: Declare unshare.
+ * sysdeps/unix/sysv/linux/Versions [libc, GLIBC_2.4]: Export
+ unshare.
+ * sysdeps/unix/sysv/linux/syscalls.list: Add unshare syscall.
+
+ * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Add some
+ preprocessor magic so that the compiler won't see the prototypes
+ for the functions we are defining as stubs.
+
2006-02-05 Ulrich Drepper <drepper@redhat.com>
* io/ftw.c (ftw_startup): Use fchdir to return to original
-# Copyright (C) 1991,1992,1993,1994,1995,1996,1997,1998,1999,2003
+# Copyright (C) 1991,1992,1993,1994,1995,1996,1997,1998,1999,2003, 2006
# Free Software Foundation, Inc.
# This file is part of the GNU C Library.
$(objpfx)stub-syscalls.c: $(common-objpfx)sysd-syscalls \
$(..)sysdeps/unix/Makefile
$(make-target-directory)
- (echo '#include <errno.h>'; \
+ (for call in $(unix-stub-syscalls); do \
+ echo "#define $$call RENAMED_$$call"; \
+ done; \
+ echo '#include <errno.h>'; \
+ for call in $(unix-stub-syscalls); do \
+ echo "#undef $$call"; \
+ done; \
echo 'long int _no_syscall (void)'; \
echo '{ __set_errno (ENOSYS); return -1L; }'; \
for call in $(unix-stub-syscalls); do \
__BEGIN_DECLS
-/* Clone current process. */
#ifdef __USE_MISC
+/* Clone current process. */
extern int clone (int (*__fn) (void *__arg), void *__child_stack,
int __flags, void *__arg, ...) __THROW;
+
+/* Unshare the specified resources. */
+extern int unshare (int __flags) __THROW;
#endif
__END_DECLS
sysinfo EXTRA sysinfo i:p sysinfo
swapon - swapon i:si __swapon swapon
swapoff - swapoff i:s __swapoff swapoff
+unshare EXTRA unshare i:i unshare
uselib EXTRA uselib i:s uselib
wait4 - wait4 i:iWiP __wait4 wait4