X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..bca245acd4c03fd752d1a45f011ad495e60fe53d:/bsd/man/man2/getpid.2 diff --git a/bsd/man/man2/getpid.2 b/bsd/man/man2/getpid.2 index 0c7f5e365..974dbf45d 100644 --- a/bsd/man/man2/getpid.2 +++ b/bsd/man/man2/getpid.2 @@ -41,21 +41,24 @@ .Nm getppid .Nd get parent or calling process identification .Sh SYNOPSIS -.Fd #include .Fd #include .Ft pid_t -.Fn getpid void +.Fo getpid +.Fa void +.Fc .Ft pid_t -.Fn getppid void +.Fo getppid +.Fa void +.Fc .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 -.Fn Getppid +.Fn getppid 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. +.Sh LEGACY SYNOPSIS +.Fd #include +.Fd #include +.Pp +The include file +.In sys/types.h +is necessary. .Sh SEE ALSO -.Xr gethostid 2 +.Xr gethostid 2 , +.Xr compat 5 .Sh STANDARDS -.Fn Getpid +.Fn getpid and .Fn getppid conform to