If 'posix is provided (by linking in `posix.o'), the
following functions are defined:
R, returns an input port
capable of delivering characters from the standard output of the system
command string. Otherwise, returns an output port capable of
receiving characters which become the standard input of the system
command string. If a pipe cannot be created #f is
returned.
#f is returned.
#f is returned.
(cons rd wd) where rd and wd are
the read and write (port) ends of a pipe respectively.
fork. Both processes
return from fork, but the calling (parent) process's
fork returns the child process's ID whereas the child
process's fork returns 0.
For a discussion of IDs See Process Persona.
#t if successful, #f if not.
#t if successful, #f if not.
#t if successful, #f if not.
#t if successful, #f if not.
kill function sends the signal signum to the process or
process group specified by pid. Besides the signals listed in
Standard Signals, signum can also
have a value of zero to check the validity of the pid.
The pid specifies the process or process group to receive the signal:
(abs pid).
A process can send a signal to itself with (kill (getpid) signum). If kill is used by a process to send a signal to
itself, and the signal is not blocked, then kill delivers at
least one signal (which might be some other pending unblocked signal
instead of the signal signum) to that process before it returns.
The return value from kill is zero if the signal can be sent
successfully. Otherwise, no signal is sent, and a value of -1 is
returned. If pid specifies sending a signal to several processes,
kill succeeds if it can send the signal to at least one of them.
There's no way you can tell which of the processes got the signal or
whether all of them did.
The waitpid function suspends execution of the current process
until a child as specified by the pid argument has exited, or until a
signal is deliverd whose action is to terminate the current process or
to call a signal handling function. If a child as requested by pid has
already exited by the time of the call (a so-called zombie
process), the function returns immediately. Any system resources used
by the child are freed.
The value of pid can be one of:
(abs pid).
The value of options is one of the following:
WNOHANG) which means to return immediately if no child is there
to be waited for.
WUNTRACED) which means to also return for children which are
stopped, and whose status has not been reported.
The return value is normally the process ID of the child process whose
status is reported. If the WNOHANG option was specified and no
child process is waiting to be noticed, the value is zero. A value of
#f is returned in case of error and errno is set. For
information about the errno codes See Process Completion.
uname procedure to find out some information
about the type of computer your program is running on.
Returns a vector of strings. These strings are:
Some examples are `"i386-ANYTHING"', `"m68k-hp"',
`"sparc-sun"', `"m68k-sun"', `"m68k-sony"' and `"mips-dec"'.
NAME,
UID, or the next entry if no argument is given. The
information is:
#f, in
which case the interpretation is system-dependent.
#f, indicating that the system default should be used.
Closes the pw table.
NAME,
UID, or the next entry if no argument is given. The
information is:
Closes the group table.
link function makes a new link to the existing file named by
oldname, under the new name newname.
link returns a value of #t if it is successful and
#f on failure.
chown function changes the owner of the file filename
to owner, and its group owner to group.
chown returns a value of #t if it is successful and
#f on failure.
#f.
If 'unix is provided (by linking in `unix.o'), the following
functions are defined:
These priveledged and symbolic link functions are not in Posix:
symlink function makes a symbolic link to oldname named
newname.
symlink returns a value of #t if it is successful and
#f on failure.
#f for
failure.
lstat function is like stat, except that it does not
follow symbolic links. If filename is the name of a symbolic
link, lstat returns information about the link itself; otherwise,
lstat works like stat. See I/O-Extensions.
chown returns a value of #t if it is successful and
#f on failure.
#f causes
accounting to be turned off.
acct returns a value of #t if it is successful and
#f on failure.
mknod function makes a special file with name filename
and modes mode for device number dev.
mknod returns a value of #t if it is successful and
#f on failure.
sync first commits inodes to buffers, and then buffers to disk.
sync() only schedules the writes, so it may return before the actual
writing is done. The value returned is unspecified.