diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-02-08 18:25:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-02-08 18:25:19 +0000 |
commit | e32f487e1cb6e7ed6eb494afde072e1405d5a5fb (patch) | |
tree | 7c87768f0f8941e0335f0c2f207fd2db7ff0ff9e /sysdeps/unix/sysv/linux/bits | |
parent | b576fca12abea4bb0b5af097ce4dd3ff7717d821 (diff) | |
download | glibc-e32f487e1cb6e7ed6eb494afde072e1405d5a5fb.tar.gz glibc-e32f487e1cb6e7ed6eb494afde072e1405d5a5fb.tar.xz glibc-e32f487e1cb6e7ed6eb494afde072e1405d5a5fb.zip |
* 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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/sched.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h index 2ca7df0d13..4a95a263f7 100644 --- a/sysdeps/unix/sysv/linux/bits/sched.h +++ b/sysdeps/unix/sysv/linux/bits/sched.h @@ -69,10 +69,13 @@ struct sched_param __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 |