X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..0a7de7458d150b5d4dffc935ba399be265ef0a1a:/bsd/man/man2/close.2?ds=sidebyside diff --git a/bsd/man/man2/close.2 b/bsd/man/man2/close.2 index 5cd4d18ec..078965e9a 100644 --- a/bsd/man/man2/close.2 +++ b/bsd/man/man2/close.2 @@ -42,7 +42,9 @@ .Sh SYNOPSIS .Fd #include .Ft int -.Fn close "int d" +.Fo close +.Fa "int fildes" +.Fc .Sh DESCRIPTION The .Fn close @@ -98,25 +100,33 @@ Otherwise, a value of -1 is returned and the global integer variable .Va errno is set to indicate the error. .Sh ERRORS -.Fn Close -will fail if: +The +.Fn close +system call will fail if: .Bl -tag -width Er +.\" ========== .It Bq Er EBADF -.Fa D -is not an active descriptor. +.Fa fildes +is not a valid, active file descriptor. +.\" ========== .It Bq Er EINTR -An interrupt was received. +Its execution was interrupted by a signal. +.\" ========== +.It Bq Er EIO +A previously-uncommitted +.Xr write 2 +encountered an input/output error. .El .Sh SEE ALSO .Xr accept 2 , +.Xr execve 2 , +.Xr fcntl 2 , .Xr flock 2 , .Xr open 2 , .Xr pipe 2 , .Xr socket 2 , -.Xr socketpair 2 , -.Xr execve 2 , -.Xr fcntl 2 +.Xr socketpair 2 .Sh STANDARDS -.Fn Close +.Fn close conforms to .St -p1003.1-88 .