<html lang="en"> <head> <title>Process ID Information - GNU Octave</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="GNU Octave"> <meta name="generator" content="makeinfo 4.13"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="System-Utilities.html#System-Utilities" title="System Utilities"> <link rel="prev" href="Controlling-Subprocesses.html#Controlling-Subprocesses" title="Controlling Subprocesses"> <link rel="next" href="Environment-Variables.html#Environment-Variables" title="Environment Variables"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <a name="Process-ID-Information"></a> <p> Next: <a rel="next" accesskey="n" href="Environment-Variables.html#Environment-Variables">Environment Variables</a>, Previous: <a rel="previous" accesskey="p" href="Controlling-Subprocesses.html#Controlling-Subprocesses">Controlling Subprocesses</a>, Up: <a rel="up" accesskey="u" href="System-Utilities.html#System-Utilities">System Utilities</a> <hr> </div> <h3 class="section">36.6 Process, Group, and User IDs</h3> <!-- getpgrp src/syscalls.cc --> <p><a name="doc_002dgetpgrp"></a> <div class="defun"> — Built-in Function: pgid = <b>getpgrp</b> ()<var><a name="index-getpgrp-3295"></a></var><br> <blockquote><p>Return the process group id of the current process. </p></blockquote></div> <!-- getpid src/syscalls.cc --> <p><a name="doc_002dgetpid"></a> <div class="defun"> — Built-in Function: pid = <b>getpid</b> ()<var><a name="index-getpid-3296"></a></var><br> <blockquote><p>Return the process id of the current process. </p></blockquote></div> <!-- getppid src/syscalls.cc --> <p><a name="doc_002dgetppid"></a> <div class="defun"> — Built-in Function: pid = <b>getppid</b> ()<var><a name="index-getppid-3297"></a></var><br> <blockquote><p>Return the process id of the parent process. </p></blockquote></div> <!-- geteuid src/syscalls.cc --> <p><a name="doc_002dgeteuid"></a> <div class="defun"> — Built-in Function: euid = <b>geteuid</b> ()<var><a name="index-geteuid-3298"></a></var><br> <blockquote><p>Return the effective user id of the current process. </p></blockquote></div> <!-- getuid src/syscalls.cc --> <p><a name="doc_002dgetuid"></a> <div class="defun"> — Built-in Function: uid = <b>getuid</b> ()<var><a name="index-getuid-3299"></a></var><br> <blockquote><p>Return the real user id of the current process. </p></blockquote></div> <!-- getegid src/syscalls.cc --> <p><a name="doc_002dgetegid"></a> <div class="defun"> — Built-in Function: egid = <b>getegid</b> ()<var><a name="index-getegid-3300"></a></var><br> <blockquote><p>Return the effective group id of the current process. </p></blockquote></div> <!-- getgid src/syscalls.cc --> <p><a name="doc_002dgetgid"></a> <div class="defun"> — Built-in Function: gid = <b>getgid</b> ()<var><a name="index-getgid-3301"></a></var><br> <blockquote><p>Return the real group id of the current process. </p></blockquote></div> </body></html>