glenda.party
term% ls -F
term% cat index.txt
JIOCTL(9.4)                                                        JIOCTL(9.4)



NAME
       jioctl - jerq ioctl requests

SYNOPSIS
       #include /usr/jerq/include/jioctl.h

       ioctl(fd, JMUX, 0)

       ioctl(fd, request, win)
       struct winsize *win;

DESCRIPTION
       Mux(9.1) supports several jerq-specific ioctl(2) requests for Unix pro‐
       grams attached to layers.  The requests are:

       JMUX                                                                                                                                            re‐
                                                                                                                                                       turns
                                                                                                                                                       0
                                                                                                                                                       if
                                                                                                                                                       file
                                                                                                                                                       de‐
                                                                                                                                                       scrip‐
                                                                                                                                                       tor
                                                                                                                                                       fd
                                                                                                                                                       is
                                                                                                                                                       con‐
                                                                                                                                                       nected
                                                                                                                                                       to
                                                                                                                                                       a
                                                                                                                                                       mux
                                                                                                                                                       layer,
                                                                                                                                                       -1
                                                                                                                                                       oth‐
                                                                                                                                                       er‐
                                                                                                                                                       wise.

       JTERM                                                                                                                                           re‐
                                                                                                                                                       sets
                                                                                                                                                       the
                                                                                                                                                       layer
                                                                                                                                                       con‐
                                                                                                                                                       nected
                                                                                                                                                       to
                                                                                                                                                       fd
                                                                                                                                                       to
                                                                                                                                                       the
                                                                                                                                                       de‐
                                                                                                                                                       fault
                                                                                                                                                       ter‐
                                                                                                                                                       mi‐
                                                                                                                                                       nal
                                                                                                                                                       pro‐
                                                                                                                                                       gram.

       JBOOT                                                                                                                                           ini‐
                                                                                                                                                       ti‐
                                                                                                                                                       ates
                                                                                                                                                       the
                                                                                                                                                       down-
                                                                                                                                                       load
                                                                                                                                                       pro‐
                                                                                                                                                       to‐
                                                                                                                                                       col
                                                                                                                                                       to
                                                                                                                                                       re‐
                                                                                                                                                       place
                                                                                                                                                       the
                                                                                                                                                       layer's
                                                                                                                                                       ter‐
                                                                                                                                                       mi‐
                                                                                                                                                       nal
                                                                                                                                                       pro‐
                                                                                                                                                       gram.
                                                                                                                                                       Usu‐
                                                                                                                                                       ally
                                                                                                                                                       called
                                                                                                                                                       by
                                                                                                                                                       32ld(9.1).

       JZOMBOOT                                                                                                                                        is
                                                                                                                                                       the
                                                                                                                                                       same
                                                                                                                                                       as
                                                                                                                                                       JBOOT,
                                                                                                                                                       but
                                                                                                                                                       dis‐
                                                                                                                                                       ables
                                                                                                                                                       ex‐
                                                                                                                                                       e‐
                                                                                                                                                       cu‐
                                                                                                                                                       tion
                                                                                                                                                       of
                                                                                                                                                       the
                                                                                                                                                       pro‐
                                                                                                                                                       gram
                                                                                                                                                       when
                                                                                                                                                       the
                                                                                                                                                       down‐
                                                                                                                                                       load
                                                                                                                                                       is
                                                                                                                                                       com‐
                                                                                                                                                       plete
                                                                                                                                                       (see
                                                                                                                                                       the
                                                                                                                                                       -z
                                                                                                                                                       flag
                                                                                                                                                       of
                                                                                                                                                       32ld).

       JWINSIZE                                                                                                                                        re‐
                                                                                                                                                       turns,
                                                                                                                                                       in
                                                                                                                                                       the
                                                                                                                                                       lo‐
                                                                                                                                                       ca‐
                                                                                                                                                       tion
                                                                                                                                                       pointed
                                                                                                                                                       to
                                                                                                                                                       by
                                                                                                                                                       the
                                                                                                                                                       third
                                                                                                                                                       ar‐
                                                                                                                                                       gu‐
                                                                                                                                                       ment,
                                                                                                                                                       a
                                                                                                                                                       struc‐
                                                                                                                                                       ture
                                                                                                                                                       de‐
                                                                                                                                                       scrib‐
                                                                                                                                                       ing
                                                                                                                                                       the
                                                                                                                                                       size
                                                                                                                                                       of
                                                                                                                                                       the
                                                                                                                                                       layer
                                                                                                                                                       con‐
                                                                                                                                                       nected
                                                                                                                                                       to
                                                                                                                                                       fd.
                                                                                                                                                       The
                                                                                                                                                       struc‐
                                                                                                                                                       ture
                                                                                                                                                       is:

                                                                                                                                                       struct winsize {
                                                                                                                                                              char   bytesx, bytesy;  /* size in characters */
                                                                                                                                                              short  bitsx, bitsy;    /* size in pixels */
                                                                                                                                                       };

       JEXIT                                                                                                                                           causes
                                                                                                                                                       mux
                                                                                                                                                       to
                                                                                                                                                       exit.

SEE ALSO
       32ld(9.1), mux(9.1), ioctl(2)



                                                                   JIOCTL(9.4)