From: Sascha Wildner Date: Mon, 10 Nov 2008 23:47:31 +0000 (+0000) Subject: Some small fixes. X-Git-Tag: v2.1.1~82 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/33a3f2cc7d1a6e9cc3a439ccab3ae990d6eb4363 Some small fixes. --- diff --git a/lib/libc/sys/ioctl.2 b/lib/libc/sys/ioctl.2 index 4def87b7d0..e325571e00 100644 --- a/lib/libc/sys/ioctl.2 +++ b/lib/libc/sys/ioctl.2 @@ -32,7 +32,7 @@ .\" @(#)ioctl.2 8.2 (Berkeley) 12/11/93 .\" .\" $FreeBSD: src/lib/libc/sys/ioctl.2,v 1.7.2.7 2001/12/14 18:34:01 ru Exp $ -.\" $DragonFly: src/lib/libc/sys/ioctl.2,v 1.3 2006/05/26 19:39:37 swildner Exp $ +.\" $DragonFly: src/lib/libc/sys/ioctl.2,v 1.4 2008/11/10 23:47:31 swildner Exp $ .\" .Dd December 11, 1993 .Dt IOCTL 2 @@ -49,9 +49,9 @@ .Sh DESCRIPTION The .Fn ioctl -function manipulates the underlying device parameters of special files. +system call manipulates the underlying device parameters of special files. In particular, many operating -characteristics of character special files (e.g. terminals) +characteristics of character special files (e.g.\& terminals) may be controlled with .Fn ioctl requests. @@ -60,26 +60,24 @@ The argument must be an open file descriptor. .Pp The third argument to -.Nm +.Fn ioctl is traditionally named .Ar "char *argp" . Most uses of -.Nm -in -.Fx 3.0 +.Fn ioctl however, require the third argument to be a -.Ar caddr_t +.Vt caddr_t or an -.Ar int . +.Vt int . .Pp -An ioctl +An +.Fn ioctl .Fa request has encoded in it whether the argument is an .Dq in -parameter -or +argument or .Dq out -parameter, and the size of the argument +argument, and the size of the argument .Fa argp in bytes. Macros and defines used in specifying an ioctl @@ -91,7 +89,7 @@ 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