@V7 54 2 -5
@L3 COUK1247
80
@V9 0
@YCHAPTER 12 - MUSS USER MANUAL
@G@RCHAPTER 12 - UNIX INTERFACE@G
@V10 1 9 217
@T% 10
@S212.1 INTRODUCTION
@BThe UNIX interface within MUSS is called UNX and it attempts to provide a simi
lar
environment for the running of Unix programs to that provided by
Unix itself.  The interface is in the form of a library of procedures
equivalent to the system calls described in the "Unix Programmer's
Manual, Seventh Edition".  The interface is currently restrictive in
that no attempt is made to simulate the terminal handling
characteristics of Unix, nor is the Shell provided.
@
@
@
1) @JUNX ([C])
@BThis procedure invokes the Unix run time system to run the
program given in P1.  The system calls available are as
detailed below.
@SLow level input/output operations
@BThe low level input/output operations mode available by
the UNX system are@
@
@MCREAT
@NOPEN
@NDUP
@NDUP2
@NPIPE
@NCLOSE
@NUNLINK
@NREAD
@NWRITE
@NLSEEK
@NTELL
@NSTAT
@NFSTAT
@BCertain restrictions apply to the use of these commands,
in particular, manipulation
of directories is only possible using the standard MUSS commands,
and the concept of group users is not supported.
@SProcesses, signals and interrupts
@BThe procedures available for creating and interacting
with other Unix processes are@
@
@NFORK
@NEXECL
@NEXECV
@NXEXIT
@NXXEXIT
@NWAIT
@NGETPID
@NSETPID
@NNICE
@NTIMES
@NALARM
@NKILL
@NPAUSE
@NSIGNAL
@
@
The procedures XEXIT and XXEXIT are equivalent to the Unix calls
exit and _exit.
@BThe Unix procedures spawned by a single user all run within
one MUSS process.  The facilities which allow Unix processes to
interact are only operative between the processes in a single
MUSS virtual machine.  Unix processes which are regarded as
background jobs, that is with a priority level numerically
greater than 10, are run as separate MUSS processes.
@BThe procedure EXECL has the restriction that only one
parameter is expected, namely the name of a pre-compiled program.
@SString handling facilities
@BThe following string handling facilities are provided@
@
@NISALUM
@NISALPHA
@NISASCII
@NISCNTRL
@NISDIGIT
@NISLOWER
@NISPRINT
@NISPUNCT
@NISSPACE
@NISUPPER
@NISXDIGIT
@NSTRCAT
@NSTRNCAT
@NSTRCHR
@NSTRCMP
@NSTRNCMP
@NSTREPY
@NSTRNCPY
@NSTRLEN
@NTOLOWER
@NTOUPPER
@F
