File: programlib.tex

package info (click to toggle)
r6rs-doc 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,868 kB
  • ctags: 2,046
  • sloc: lisp: 5,409; makefile: 190
file content (32 lines) | stat: -rw-r--r-- 1,046 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
\chapter{Command-line access and exit values}
\label{programlibchapter}

The procedures described in this section are exported by the
\defrsixlibrary{programs} library.

\begin{entry}{%
\proto{command-line}{}{procedure}}

Returns a nonempty list of strings.
The first element is an implementation-specific
name for the running top-level program.  The remaining elements are command-line
arguments according to the operating system's conventions.
\end{entry}

\begin{entry}{%
\proto{exit}{}{procedure}
\rproto{exit}{ obj}{procedure}}

Exits the running program and communicates an exit value to the 
operating system.  If no argument is supplied, the {\cf exit}
procedure should communicate to the operating system that the program 
exited normally.  If an argument is supplied, the {\cf exit} procedure 
should translate the argument into an appropriate exit value for the 
operating system.  If \var{obj} is \schfalse{}, the exit is assumed to
be abnormal.
\end{entry}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "r6rs-lib"
%%% End: