[uClibc-cvs] svn commit: branches/uClibc-nptl: include libc/sysdeps/linux/common/bits

sjhill at uclibc.org sjhill at uclibc.org
Fri Jun 3 03:12:49 UTC 2005


Author: sjhill
Date: 2005-06-02 21:12:49 -0600 (Thu, 02 Jun 2005)
New Revision: 10463

Log:
Add in function declarations and bit fields for new NPTL clone support.


Modified:
   branches/uClibc-nptl/include/sched.h
   branches/uClibc-nptl/libc/sysdeps/linux/common/bits/sched.h


Changeset:
Modified: branches/uClibc-nptl/include/sched.h
===================================================================
--- branches/uClibc-nptl/include/sched.h	2005-06-03 03:07:52 UTC (rev 10462)
+++ branches/uClibc-nptl/include/sched.h	2005-06-03 03:12:49 UTC (rev 10463)
@@ -62,6 +62,12 @@
 /* Get the SCHED_RR interval for the named process.  */
 extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
 
+/* These are Linux specific.  */
+extern int __clone (int (*__fn) (void *__arg), void *__child_stack,
+		    int __flags, void *__arg, ...);
+extern int __clone2 (int (*__fn) (void *__arg), void *__child_stack_base,
+		     size_t __child_stack_size, int __flags, void *__arg, ...);
+
 __END_DECLS
 
 #endif /* sched.h */

Modified: branches/uClibc-nptl/libc/sysdeps/linux/common/bits/sched.h
===================================================================
--- branches/uClibc-nptl/libc/sysdeps/linux/common/bits/sched.h	2005-06-03 03:07:52 UTC (rev 10462)
+++ branches/uClibc-nptl/libc/sysdeps/linux/common/bits/sched.h	2005-06-03 03:12:49 UTC (rev 10463)
@@ -41,6 +41,22 @@
 # define CLONE_PTRACE  0x00002000 /* Set if tracing continues on the child.  */
 # define CLONE_VFORK   0x00004000 /* Set if the parent wants the child to
 				     wake it up on mm_release.  */
+# define CLONE_PARENT  0x00008000 /* Set if we want to have the same
+				     parent as the cloner.  */
+# define CLONE_THREAD  0x00010000 /* Set to add to same thread group.  */
+# define CLONE_NEWNS   0x00020000 /* Set to create new namespace.  */
+# define CLONE_SYSVSEM 0x00040000 /* Set to shared SVID SEM_UNDO semantics.  */
+# define CLONE_SETTLS  0x00080000 /* Set TLS info.  */
+# define CLONE_PARENT_SETTID 0x00100000 /* Store TID in userlevel buffer
+					   before MM copy.  */
+# define CLONE_CHILD_CLEARTID 0x00200000 /* Register exit futex and memory
+					    location to clear.  */
+# define CLONE_DETACHED 0x00400000 /* Create clone detached.  */
+# define CLONE_UNTRACED 0x00800000 /* Set if the tracing process can't
+				      force CLONE_PTRACE on this clone.  */
+# define CLONE_CHILD_SETTID 0x01000000 /* Store TID in userlevel buffer in
+					  the child.  */
+# define CLONE_STOPPED	0x02000000 /* Start in stopped state.  */
 #endif
 
 /* The official definition.  */




More information about the uClibc-cvs mailing list