X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..0a7de7458d150b5d4dffc935ba399be265ef0a1a:/bsd/man/man2/ioctl.2 diff --git a/bsd/man/man2/ioctl.2 b/bsd/man/man2/ioctl.2 index 1c3d6d6ba..8830e3d6a 100644 --- a/bsd/man/man2/ioctl.2 +++ b/bsd/man/man2/ioctl.2 @@ -42,7 +42,11 @@ .Sh SYNOPSIS .Fd #include .Ft int -.Fn ioctl "int d" "unsigned long request" "char *argp" +.Fo ioctl +.Fa "int fildes" +.Fa "unsigned long request" +.Fa "..." +.Fc .Sh DESCRIPTION The .Fn ioctl @@ -53,7 +57,7 @@ may be controlled with .Fn ioctl requests. The argument -.Fa d +.Fa fildes must be an open file descriptor. .Pp An ioctl @@ -75,35 +79,39 @@ If an error has occurred, a value of -1 is returned and .Va errno is set to indicate the error. .Sh ERRORS -.Fn Ioctl +.Fn ioctl will fail if: .Bl -tag -width Er +.\" ========== .It Bq Er EBADF -.Fa d +.Fa fildes is not a valid descriptor. +.\" ========== +.It Bq Er EINVAL +.Fa Request +or +.Fa argp +is not valid. +.\" ========== .It Bq Er ENOTTY -.Fa d +.Fa fildes is not associated with a character special device. +.\" ========== .It Bq Er ENOTTY The specified request does not apply to the kind of object that the descriptor -.Fa d +.Fa fildes references. -.It Bq Er EINVAL -.Fa Request -or -.Fa argp -is not valid. .El .Sh SEE ALSO -.Xr mt 1 , .Xr cdio 1 , .Xr chio 1 , +.Xr mt 1 , .Xr execve 2 , .Xr fcntl 2 , -.Xr tty 4 , -.Xr intro 4 +.Xr intro 4 , +.Xr tty 4 .Sh HISTORY An .Fn ioctl