summaryrefslogtreecommitdiff
path: root/static/v10/man9/jioctl.9
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
commit711594636704defae873be1a355a292505585afd (patch)
tree59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man9/jioctl.9
parent3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff)
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man9/jioctl.9')
-rw-r--r--static/v10/man9/jioctl.974
1 files changed, 74 insertions, 0 deletions
diff --git a/static/v10/man9/jioctl.9 b/static/v10/man9/jioctl.9
new file mode 100644
index 00000000..0fa341a7
--- /dev/null
+++ b/static/v10/man9/jioctl.9
@@ -0,0 +1,74 @@
+.TH JIOCTL 9.4
+.CT 2 comm_term
+.SH NAME
+jioctl \- mux ioctl requests
+.SH SYNOPSIS
+.B
+#include "/usr/jerq/include/jioctl.h"
+.\" not <jioctl.h>: /usr/jerq/include is not in the cc include path
+.PP
+.B ioctl(fd, request, 0)
+.PP
+.B ioctl(fd, JWINSIZE, win)
+.br
+.B struct winsize *win;
+.SH DESCRIPTION
+.IR Mux (9.1)
+supports several
+.IR ioctl (2)
+requests for Unix programs attached to layers.
+The requests are:
+.TF JBOOT
+.TP
+.B JMUX
+returns 0 if file descriptor
+.I fd
+is connected to a
+.I mux
+layer, \-1 otherwise.
+.PD
+.TP
+.B JTERM
+resets the layer connected to
+.I fd
+to the default terminal program.
+.TP
+.B JBOOT
+initiates the down-load protocol to replace the layer's terminal program.
+Usually called by
+.IR 32ld (9.1).
+.TP
+.B JZOMBOOT
+is the same as
+.IR JBOOT ,
+but disables execution of the program when the download is complete
+(see the
+.B -z
+flag of
+.IR 32ld ).
+.TP
+.B JWINSIZE
+returns, in the location pointed to by the third argument,
+a structure describing the size of the layer connected to
+.IR fd ,
+with character
+.L 0
+being the unit of size.
+The structure is:
+.IP
+.EX
+.ta 7n +7n +\w'bytesx, bytesy; 'u"
+struct winsize {
+ char bytesx, bytesy; /* size in characters */
+ short bitsx, bitsy; /* size in pixels */
+};
+.EE
+.TP
+.B JEXIT
+causes
+.I mux
+to exit.
+.SH SEE ALSO
+.IR 32ld (9.1),
+.IR mux (9.1),
+.IR ioctl (2)