1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

* 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.
This commit is contained in:
Ulrich Drepper
2006-02-08 18:25:19 +00:00
parent b576fca12a
commit e32f487e1c
5 changed files with 26 additions and 3 deletions

View File

@ -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