X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..935ed37a5c468c8a1c07408573c08b8b7ef80e8b:/bsd/man/man2/getpid.2?ds=sidebyside diff --git a/bsd/man/man2/getpid.2 b/bsd/man/man2/getpid.2 index 0c7f5e365..102889356 100644 --- a/bsd/man/man2/getpid.2 +++ b/bsd/man/man2/getpid.2 @@ -41,12 +41,15 @@ .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 returns @@ -65,8 +68,16 @@ 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 and