]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/man/man2/getpid.2
xnu-6153.121.1.tar.gz
[apple/xnu.git] / bsd / man / man2 / getpid.2
index 0c7f5e365edda3cf216086fc50c8d1d3294004f8..974dbf45d6ecf067a607fb326ca0fce16d533afa 100644 (file)
 .Nm getppid
 .Nd get parent or calling process identification
 .Sh SYNOPSIS
 .Nm getppid
 .Nd get parent or calling process identification
 .Sh SYNOPSIS
-.Fd #include <sys/types.h>
 .Fd #include <unistd.h>
 .Ft pid_t
 .Fd #include <unistd.h>
 .Ft pid_t
-.Fn getpid void
+.Fo getpid
+.Fa void
+.Fc
 .Ft pid_t
 .Ft pid_t
-.Fn getppid void
+.Fo getppid
+.Fa void
+.Fc
 .Sh DESCRIPTION
 .Sh DESCRIPTION
-.Fn Getpid
+.Fn getpid
 returns
 the process ID of
 the calling process.
 The ID is guaranteed to be unique and is
 useful for constructing temporary file names.
 .Pp
 returns
 the process ID of
 the calling process.
 The ID is guaranteed to be unique and is
 useful for constructing temporary file names.
 .Pp
-.Fn Getppid
+.Fn getppid
 returns the process ID of the parent
 of the calling process. 
 .Sh ERRORS
 returns the process ID of the parent
 of the calling process. 
 .Sh ERRORS
@@ -65,10 +68,18 @@ and
 .Fn getppid
 functions are always successful, and no return value is reserved to
 indicate an error.
 .Fn getppid
 functions are always successful, and no return value is reserved to
 indicate an error.
+.Sh LEGACY SYNOPSIS
+.Fd #include <sys/types.h>
+.Fd #include <unistd.h>
+.Pp
+The include file
+.In sys/types.h
+is necessary.
 .Sh SEE ALSO
 .Sh SEE ALSO
-.Xr gethostid 2
+.Xr gethostid 2 ,
+.Xr compat 5
 .Sh STANDARDS
 .Sh STANDARDS
-.Fn Getpid
+.Fn getpid
 and
 .Fn getppid
 conform to 
 and
 .Fn getppid
 conform to