Branch: Tag:

2000-09-15

2000-09-15 13:45:58 by Leif Stensson <leif@lysator.liu.se>

Added support for Unix system calls setpgrp(), getsid() and setsid(), and
added doc pages for them. Also fixed a tiny type checking bug in the
existing getpgrp().

Rev: src/modules/system/configure.in:1.37
Rev: src/modules/system/doc/getsid:1.1
Rev: src/modules/system/doc/setpgrp:1.1
Rev: src/modules/system/doc/setsid:1.1
Rev: src/modules/system/system.c:1.88

668:      </doc>   </docgroup> + <docgroup homogen-name='getsid' homogen-type='method'> + <method name='getsid'/><doc placeholder='true'> + <text> + <p><tt>getsid</tt> - get the process session ID</p> +  + <tt><p>int getsid();<br/> + or<br/> + int getsid(int <i>pid</i>);<br/> + </p> + </tt> + <p>Get the process session ID for the given process. If pid is + not specified, the session ID for the current process will + be returned.</p> +  + Processes</text> +  + <group><seealso/><text> + <p><ref to='system/getpid'>system/getpid</ref>, <ref to='system/getpgrp'>system/getpgrp</ref> and <ref to='system/setsid'>system/setsid</ref></p> + </text></group> +  + </doc> + </docgroup>   <docgroup homogen-name='getuid' homogen-type='method'>   <method name='getuid'/><doc placeholder='true'>   <text>
970:      </doc>   </docgroup> + <docgroup homogen-name='setpgrp' homogen-type='method'> + <method name='setpgrp'/><doc placeholder='true'> + <text> + <p><tt>setpgrp</tt> - set the process group ID</p> +  + <tt><p>int setpgrp();<br/> + </p> + </tt> + <p>Set a new process group ID for the current process, and return it.</p> +  + Processes</text> +  + <group><seealso/><text> + <p><ref to='system/getpid'>system/getpid</ref>, <ref to='system/getpgrp'>system/getpgrp</ref> and <ref to='system/setsid'>system/setsid</ref></p> + </text></group> +  + </doc> + </docgroup> + <docgroup homogen-name='setsid' homogen-type='method'> + <method name='setsid'/><doc placeholder='true'> + <text> + <p><tt>setsid</tt> - set the process session ID</p> +  + <tt><p>int setsid();<br/> + </p> + </tt> + <p>Set a new process session ID for the current process, and return it.</p> +  + Processes</text> +  + <group><seealso/><text> + <p><ref to='system/getpid'>system/getpid</ref>, <ref to='system/setpgrp'>system/setpgrp</ref> and <ref to='system/getsid'>system/getsid</ref></p> + </text></group> +  + </doc> + </docgroup>   <docgroup homogen-name='setuid' homogen-type='method'>   <method name='setuid'/><doc placeholder='true'>   <text>