Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mksf(1M) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

insf(1M)

lssf(1M)

uxgen(1M)

MKSF(1M)  —  Series 800 Only

NAME

mksf − make a special file

SYNOPSIS

mksf [-f devfile] -d disc0 [-l lu] [-u unit] [-s section] [ -c ] [ -r ] [ -t ] [path... ]

mksf [-f devfile] -d disc1 [-l lu] [-u unit] [-s section] [ -c ] [ -r ] [ -t ] [path... ]

mksf [-f devfile] -d disc2 [-l lu] [-u unit] [-s section] [ -r ] [ -t ] [ path ...  ]

mksf [ -f devfile] -d framebuf [ -l lu] [ −t ] [path... ]

mksf [ -f devfile ] -d gpio0 [ -l lu ] [ -t ] [ path ...  ]

mksf [ -f devfile ] -d hil [ -l lu ] [ -a address ] [ path ...  ]

mksf [ -f devfile ] -d hilkbd [ -l lu ] [ path ...  ]

mksf [ -f devfile ] -d instr0 [ -l lu ] [ -a address ] [ -r ] [ -t ] [ path ...  ]

mksf [ -f devfile ] -d ite [ -l lu ] [ path ...  ]

mksf [ -f devfile ] -d lpr0 [ -l lu ] [ -c ] [ -n ] [ -o ] [ -e ] [ -r ] [ -t ] [ path ...  ]

mksf [ -f devfile ] -d lpr1 [ -l lu ] [ -c ] [ -n ] [ -o ] [ -e ] [ -r ] [ -t ] [ path ...  ]

mksf [ -f devfile ] -d mux0 [ -l lu ] [ -p port ] [ -h|-i|-o ] [ -c ] [ path ...  ]

mksf [ -f devfile ] -d mux1 [ -l lu ] [ path ...  ]

mksf [ -f devfile ] -d pseudo [ -m minor ] path ... 

mksf [ -f devfile ] -d tape1 [ -l lu ] [ -b bpi ] [ -a|-u ] [ -c ] [ -n ] [ -r ] [ -t ] [ -w ] [ −C ] [ path ...  ]

DESCRIPTION

Mksf makes a special file. The -f option specifies devfile, which is a file that describes drivers and pseudo-drivers. This file is generated by uxgen(1M). If the -f option is not present, then the file /etc/devices is used. The -d option specifies the driver name. Other options depend on the driver name. 

Mksf scans devfile to determine the major number of the driver. While scanning devfile, the lu (logical unit) is checked for validity.  Hence, a special file cannot be created for a device that is not in the devfile. 

The following arguments are common to many drivers:

-l The logical unit number (lu) of a device.  The lu is assigned by uxgen(1M).

-t Transparent mode (normally used by diagnostics). 

path Name of the special file.  Path is created in the current directory.  If the file already exists, it will be removed and then created.  Most drivers have a default name for path.

Each driver also has a specific set of arguments, which are shown in the following sections. 

DISC0

-c This argument must be present if the unit is a cartridge tape. 

-u unit The cs80 unit number (for example, unit 0 - disc, unit 1 - tape). 

-r Raw; create character, not block, special file. 

-s section The section number. 

path The default path name depends on the arguments −r and −c:

rct/cludunitssection, if -r and -c
rdsk/cludunitssection, if -r and not -c
ct/cludunitssection, if not -r and -c
dsk/cludunitssection, if not -r and not -c

DISC1

-c This argument must be present if the unit is a cartridge tape. 

-u unit The cs80 unit number (for example, unit 0 - disc, unit 1 - tape). 

-r Raw; create character, not block, special file. 

-s section The section number. 

path The default path name depends on the arguments -r and -c:

rct/c1000+ludunitssection, if -r and -c
rdsk/c1000+ludunitssection, if -r and not -c
ct/c1000+ludunitssection, if not -r and -c
dsk/c1000+ludunitssection, if not -r and not -c

DISC2

-u unit The cs80 unit number (typically 0). 

-r Raw; create character, not block, special file. 

-s section The section number. 

path The default path name depends on the argument -r:

rdsk/c2000+ludunitssection, if -r
dsk/c2000+ludunitssection, if not -r

FRAMEBUF

path The default path name is crtlu. 

GPIO0

path The default path name is gpiolu. 

HIL

-a address The link address (1-7). 

path The default path name is hil_lu.address. 

HILKBD

path The default path name is hilkbdlu. 

INSTR0

-a address The HP-IB instrument address (0-30). 

-r Raw; the special file has no associated HP-IB instrument address. 

path The default path name is hpib/luaaddress or hpib/lu (if -r). 

ITE

path The default path name is ttyilu. 

LPR0/LPR1

-c Caps. Convert all output to uppercase. 

-n No form-feed. 

-r Raw. 

-o Old paper-out behavior (abort job). 

-e Eject page after paper-out recovery. 

path default path name is lplu or rlplu (if -r). 

MUX0

-c CCITT. 

-h Hardwired (direct connect). 

-i Callin. 

-o Callout. 

-p port Multiplexor port number (0-5). 

path The default path name is ttylupport

MUX1

path Default path name is muxlu. 

PSEUDO (cn/diag0/dmem/meas_drivr/mm/pty0/pty1/sw/sy)

-m minor The minor number. 

path No default. Path must be specified. 

TAPE1

-a AT&T style rewind/close. 

-b bpi Bits per inch. Values of bpi are 800, 1600, 6250. 

-c RTE compatible close. 

-n No rewind on close. 

-r Raw; create character, not block, special file. 

-u UC Berkeley style rewind/close. 

-w Wait (disable immediate reporting). 

−C Enable data compression. 

path The default path name is mt/lul.  The -r option changes mt to rmt.  The l means low density (800 bpi). For 1600 and 6250 bpi, l is replaced by m (medium) and h (high), respectively.  An n is appended to the name if the -n (no rewind) option is given.  A c is appended to the name if the −C (compression) option is given. 

AUTHOR

Mksf was developed by HP. 

FILES

/etc/devices

SEE ALSO

insf(1M), lssf(1M), uxgen(1M). 

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026