summaryrefslogtreecommitdiff
path: root/static/v10/man2/ioctl.2
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/v10/man2/ioctl.2
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/v10/man2/ioctl.2')
-rw-r--r--static/v10/man2/ioctl.273
1 files changed, 0 insertions, 73 deletions
diff --git a/static/v10/man2/ioctl.2 b/static/v10/man2/ioctl.2
deleted file mode 100644
index 97e3a682..00000000
--- a/static/v10/man2/ioctl.2
+++ /dev/null
@@ -1,73 +0,0 @@
-.TH IOCTL 2
-.CT 2 file_io file_inq_creat
-.SH NAME
-ioctl \(mi miscellaneous control operations
-.SH SYNOPSIS
-.nf
-.B #include <sgtty.h>
-.PP
-.B int ioctl(fildes, request, argp)
-.B struct sgttyb *argp;
-.fi
-.SH DESCRIPTION
-.I Ioctl
-performs a variety of functions
-on special files and streams.
-The writeups of various devices
-in section 4 discuss how
-.I ioctl
-applies to them.
-.PP
-Some calls, however, apply to any open file,
-including
-the process-exclusive calls
-.BR FIOPX,
-.BR FIONPX,
-and
-.BR FIOQX
-(see
-.IR pex (4)),
-as well as
-the following two standard calls,
-.IP
-.L
-ioctl(fildes, FIOCLEX, (void *)0);
-.br
-.L
-ioctl(fildes, FIONCLEX, (void *)0);
-.LP
-The first causes the file to be closed automatically upon
-a successful
-.IR exec (2);
-the second causes the file to be left open.
-.SH "SEE ALSO"
-.IR stty (1),
-.IR exec (2),
-.IR proc (4),
-.IR ttyld (4)
-.SH DIAGNOSTICS
-.BR EBADF ,
-.BR EFAULT ,
-.BR EIO ,
-.BR ELAB ,
-.BR ENODEV ,
-.BR ENOTTY
-.SH BUGS
-Strictly speaking,
-since
-.I ioctl
-may be extended in different ways to devices with
-different properties,
-.I argp
-should have an open-ended declaration like
-.IP
-.L
-union { struct sgttyb ...; ... } *argp;
-.PP
-The important thing is that the size is at least
-.B sizeof(struct
-.BR sgttyb) .
-.br
-.I Ioctl
-requests vary among UNIX systems;
-undisciplined use is likely to compromise portability.