<HTML>
<HEAD>
   <TITLE>Linux Threads Home Page: What do the individual flags mean and do in clone()?</TITLE>
</HEAD>
<BODY BACKGROUND="GraySea.gif">

<P><FONT SIZE=+3>What do the individual flags mean and do in clone()?</FONT></P>

<UL>
<P>The clone() system call has several flags that will indicate how much
will be shared between threads. Below you will find a table listing each
flag, its function &amp; its implementation status.</P>
</UL>

<CENTER><TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2 >
<TR>
<TD>
<CENTER><P><B>Flag</B></P></CENTER>
</TD>

<TD>
<CENTER><P><B>Status</B></P></CENTER>
</TD>

<TD>
<CENTER><P><B>Description</B></P></CENTER>
</TD>
</TR>

<TR>
<TD>CLONE_VM</TD>

<TD>Done</TD>

<TD>Share data and stack</TD>
</TR>

<TR>
<TD>CLONE_FS</TD>

<TD>Done</TD>

<TD>Share filesystem info</TD>
</TR>

<TR>
<TD>CLONE_FILES</TD>

<TD>Done</TD>

<TD>Share open files</TD>
</TR>

<TR>
<TD>CLONE_SIGHAND</TD>

<TD>Done</TD>

<TD>Share signals</TD>
</TR>

<TR>
<TD>CLONE_PID</TD>

<TD>Almost Done</TD>

<TD>Share PID with parent (problems with /proc and signals go to parent)</TD>
</TR>
</TABLE></CENTER>


<P><HR SIZE=4 WIDTH="100%"></P>
<CENTER><TABLE CELLSPACING=0 CELLPADDING=0 >
<TR>
<TD><A HREF="SystemCall.html"><CENTER><IMG SRC="ArrowLeft.gif" ALT="[Left Arrow]" BORDER=0 HEIGHT=40 WIDTH=40></CENTER></A></TD>
<TD><A HREF="index.html"><CENTER><IMG SRC="House.gif" ALT="[Home]" BORDER=0 HEIGHT=40 WIDTH=40></CENTER></A></TD>
<TD><A HREF="Dictionary.html"><CENTER><IMG SRC="BookSearch.gif" ALT="[Book Search]" BORDER=0 HEIGHT=40 WIDTH=40></CENTER></A></TD>
<TD><A HREF="mailto:walton@oclc.org"><CENTER><IMG SRC="MailBox.gif" ALT="[Mailbox]" BORDER=0 HEIGHT=40 WIDTH=40></CENTER></A></TD>
<TD><A HREF="Accessability.html"><CENTER><IMG SRC="ArrowRight.gif" ALT="[Right Arrow]" BORDER=0 HEIGHT=40 WIDTH=40></CENTER></A></TD>
</TR>
<TR>
<TD><A HREF="SystemCall.html">[Previous Page]</A></TD>
<TD><A HREF="index.html">[First Page]</A></TD>
<TD><A HREF="Dictionary.html">[Dictionary]</A></TD>
<TD><A HREF="mailto:walton@oclc.org">[Email Author]</A></TD>
<TD><A HREF="Accessability.html">[Next Page]</A></TD>
</TR>
</TABLE></CENTER>

</BODY></HTML>
