Newport Reference Manual

Contents
Time
CURRENT-TIMEPrint the current time to the stream (defaults to t).
STRING->TZFind the OBJ (symbol or string) in +TIME-ZONES+.
TZ->STRINGConvert the CL timezone (rational [-24;24], multiple of 3600) to a string.
+TIME-ZONES+The string representations of the time zones.
+WEEK-DAYS+The names of the days of the week.
+MONTH-NAMES+The names of the months.
Structures
STRUCTURE-PREDICATEReturn the structure predicate name.
STRUCTURE-COPIERReturn the structure copier name.
STRUCTURE-BOA-CONSTRUCTORSReturn the list of structure BOA constructor names.
STRUCTURE-KEYWORD-CONSTRUCTORReturn the structure keyword constructor name.
STRUCTURE-SLOTSReturn the list of structure slot names.
Classes
CLASS-SLOT-INITARGSReturn the list of initargs of a CLASS. CLASS can be a symbol, a class object (as returned by `class-of') or an instance of a class. If the second optional argument ALL is non-NIL (default), initargs for all slots are returned, otherwise only the slots with :allocation type :instance are returned.
CLASS-SLOT-LISTReturn the list of slots of a CLASS. CLASS can be a symbol, a class object (as returned by `class-of') or an instance of a class. If the second optional argument ALL is non-NIL (default), all slots are returned, otherwise only the slots with :allocation type :instance are returned.
System
SYSINFOPrint the current environment to a stream.
VARIABLE-SPECIAL-PReturn T if the symbol names a global special variable.
GETENVSet an environment variable.
GETENVReturn the value of the environment variable.
DEFAULT-DIRECTORYThe default directory.
Pipes
WITH-OPEN-PIPEOpen the pipe, do something, then close it.
CLOSE-PIPEClose the pipe stream.
PIPE-INPUTReturn an input stream from which the command output will be read.
PIPE-OUTPUTReturn an output stream which will go to the command.
RUN-PROGCommon interface to shell. Does not return anything useful.
Conditions
NOT-IMPLEMENTEDYour implementation does not support this functionality.
CODEAn error in the user code.
CL Utils
ARGLISTReturn the signature of the function.
VARIABLE-NOT-SPECIALUndo the global special declaration. This returns a _new_ symbol with the same name, package, fdefinition, and plist as the argument. This can be confused by imported symbols. Also, (FUNCTION-LAMBDA-EXPRESSION (FDEFINITION NEW)) will return the OLD (uninterned!) symbol as its 3rd value. BEWARE!
MK-ARRMake array with elements of TYPE, initializing.
COMPOSEMake a new function by composition of previous functions.
DEFCONSTDefine a typed constant.
Acknowledgements
To the CL Gardeners project (now defunct) which suggested this activity.To:
bordeaux-threads (threading)
usocket (sockets)
CLOCC's obsolete PORT
trivial gray streams
trivial garbage
closer-mop
cl-fad (pathnames)
for obsoleting *most* of CLOCC PORT.
