cdl-system(3)

NAME
cdl-system - CDL3 runtime system, system calls.

SYNOPSYS
TEST command arg (>INT,TEXT>),
FUNCTION exit (>INT),
TEST get from environment (>TEXT1,TEXT2>),
FUNCTION time (INT>),
TEST file date (>TEXT,INT>),
PRED execute (>TEXT),

DESCRIPTION

  TEST command arg (>INT,TEXT>)
Get command line argument indexed INT into TEXT.

  FUNCTION exit (>INT)
Terminate program with return value INT

  TEST get from environment (>TEXT1,TEXT2>)
Get environment variable TEXT1 and put its value into TEXT2.

  FUNCTION time (INT>)
Get time in seconds into INT. This call is based upon time(2).

  TEST file date (>TEXT,INT>)
Get the file date from file TEXT into INT. This call is based upon stat(2).

  PRED execute (>TEXT)
Execute the command in TEXT. This call is based upon system(3).

FILES
All run time system calls are defined in predef.k3 which was configured to be installed in /usr/pkg/share/cdl3/include in your installation.

SEE ALSO
cdlc(1), cdl-rts(3), cdl-io(3), cdl-output(3), cdl-debug(3), cdl-input(3), cdl-integer(3), cdl-string(3), cdl-converting(3)

COPYING
Copyright (C) 2000 C.H.A. Koster
CDL3 is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
CDL3 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this version of CDL; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA