Language-SIOD

 view release on metacpan or  search on metacpan

siod.html  view on Meta::CPAN

A zero-overhead way of evaluating the exp n times.
<h3>(benchmark-funcall1 nloops f arg1)</h3>
A zero-overhead way of calling the function f n times on arg1.
<h3>(benchmark-funcall2 nloops f arg1 arg2)</h3>
A zero-overhead way of calling the function f n times on arg1 and arg2.
<h3>(bit-and x y)</h3>
Returns the bitwise logical "and" (C language &amp; operator) 
of numerical arguments x and y.
<h3>(bit-not x)</h3>
Returns the bitwise logical complement (C language ~ operator) 
of numerical argument x.
<h3>(bit-or x y)</h3>
Returns the bitwise logical "or" (C language | operator) 
of numerical arguments x and y.
<h3>(bit-xor x y)</h3>
Returns the bitwise logical "xor" (C language ^ operator) 
of numerical arguments x and y.
<h3>(butlast x)</h3>
Returns a new list which has all the elements of the argument x except
for the last element.
<h3>(bytes-append x1 x2 ...)</h3>
Returns a new byte array by appending its arguments which may be
strings or byte arrays.
<h3>(caaar x)</h3>
Same as (car (car (car x))).
<h3>(caadr x)</h3>
Same as (car (car (cdr x))).
<h3>(caar x)</h3>
Same as (car (car x)).
<h3>(cadar x)</h3>
Same as (car (cdr (car x))).
<h3>(caddr x)</h3>
Same as (car (cdr (cdr x))).
<h3>(cadr x)</h3>
Same as (car (cdr x)).
<h3>(car x)</h3>
If x is the result of (cons a b) then (car x) is the same as a.
<h3>(cdaar x)</h3>
Same as (cdr (car (car x))).
<h3>(cdadr x)</h3>
Same as (cdr (car (cdr x))).
<h3>(cdar x)</h3>
Same as (cdr (car x)).
<h3>(cddar x)</h3>
Same as (cdr (cdr (car x))).
<h3>(cdddr x)</h3>
Same as (cdr (cdr (cdr x))).
<h3>(cddr x)</h3>
Same as (cdr (cdr x)).
<h3>(cdr x)</h3>
If x is the result of (cons a b) then (cdr x) is the same as b.
<h3>(chdir path)</h3>
Changes default directory to path. <B><FONT SIZE="+2">U</FONT></B>. 
<h3>(chmod path mode)</h3>
Changes the file mode of path. <B><FONT SIZE="+2">U</FONT></B>. For example, to add execute access
permission to the file f:

<BLOCKQUOTE><PRE><TT>(chmod f
       (encode-file-mode (append '(XUSR XGRP XOTH)
                                  (cdr (assq 'mode (stat f))))))</TT></PRE></BLOCKQUOTE>
<h3>(chown path uid gid)</h3>
Changes file ownership. <B><FONT SIZE="+2">U</FONT></B>. 
<h3>(closedir stream)</h3>
Closes a directory stream. <B><FONT SIZE="+2">U</FONT></B>. 
<h3>(cond clause1 clause2 ...)</h3>
A special form where each clause is processed until the predicate expression
of the clause evaluates true. Then each subform in the predicate
is evaluated with the value of the last one becoming the value of
the cond form:
<BLOCKQUOTE><PRE><TT>(<B>predicate-expression</b> form1 form2 ...)</TT></PRE></BLOCKQUOTE>

<h3>(cons x y)</h3>
Allocates a list object with x as the car and y as the cdr.
For example:
<BLOCKQUOTE><PRE><TT>(cons 1 (cons 2 (cons 3 ())))</TT></PRE></BLOCKQUOTE>
evaluates to
<BLOCKQUOTE><PRE><TT>(1 2 3)</TT></PRE></BLOCKQUOTE>

<h3>(cons-array dimension kind)</h3>
Allocates an array (currently limited to one dimension). The kind
may be string, byte, double, or lisp (default).
<h3>(copy-list x)</h3>
The toplevel cons objects of x are copied, returning a new list.
<h3>(cos x)</h3>
Returns the cosine where x is in units of radians.
<h3>(cpu-usage-limits soft-limit hard-limit)</h3>
Invokes getrlimit if the arguments are null or otherwise setrlimit.
<B><FONT SIZE="+2">U</FONT></B>. 
<h3>(crypt key salt)</h3>
A form of string hash. <B><FONT SIZE="+2">U</FONT></B>. 
<h3>(current-resource-usage kind)</h3>
Kind is the symbol SELF or CHILDREN, calls getrusage, <B><FONT SIZE="+2">U</FONT></B>.
<h3>(datlength data ctype)</h3>
Returns the dimension of the data as if viewed as an array by 
the datref function.
<h3>(datref data ctype index)</h3>
References the data as if it were an array of C data type ctype,
at the given index. The ctype may be CTYPE_CHAR, CTYPE_DOUBLE, CTYPE_FLOAT,
CTYPE_LONG, CTYPE_SHORT, CTYPE_UCHAR, CTYPE_ULONG, or CTYPE_USHORT.
The data may be a string or byte array.
<h3>(decode-file-mode x)</h3>
Returns a list of symbols given a numerical file mode.
<h3>(define subform1 subform2)</h3>
A special form used to assign a value to a variable in one of two ways:
<BLOCKQUOTE><PRE><TT>(define variable value)</TT></PRE></BLOCKQUOTE>
or to create a procedure
<BLOCKQUOTE><PRE><TT>(define (procedure-name arg1 arg2 ...)
  form1
  form2
  ...)</TT></PRE></BLOCKQUOTE>
<h3>(delete-file path)</h3>
Deletes the file specified by path.
<h3>(delq element list)</h3>
Deletes the elements of the list which are eq to its first argument.
Possibly modifying the list using the set-cdr! operation.
<h3>(encode-file-mode list)</h3>
Takes a list of file mode symbols and returns the numerical value.
SUID, SGID, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH, WOTH, XOTH.
<h3>(encode-open-flags list)</h3>
Takes a list of open (<B><FONT SIZE="+2">U</FONT></B>)
flag symbols and returns a numerical value.

siod.html  view on Meta::CPAN

<h3>(getpwnam username)</h3>
Returns the /etc/passwd file entry for the given username.
<B><FONT SIZE="+2">U</FONT></B>.
<h3>(getpwuid)</h3>
Returns the /etc/passwd file entry fo the given user id.
<B><FONT SIZE="+2">U</FONT></B>.
<h3>(gets stream)</h3>
Reads a line from the stream, () on end-of-file.
<h3>(getuid)</h3>
Returns the uid of the current process.
<B><FONT SIZE="+2">U</FONT></B>.
<h3>(gmtime value)</h3>
Decodes the value into an alist. The value defaults to the current time.
<B><FONT SIZE="+2">U</FONT></B>.
<h3>(hexstr->bytes str)</h3>
Decodes the hex representation into a byte array.
<h3>(href table key)</h3>
The hash table is a one dimensional array of association lists.
<BLOCKQUOTE><PRE><TT>(define (href table key)
  (cdr (assoc key
	      (aref table (sxhash key (length table))))))</TT></PRE></BLOCKQUOTE>
<h3>(hset table key value)</h3>
Stores the value into the hash table slot indicated by key.
<h3>(html-encode str)</h3>
If str contains any special html characters (&lt;&gt;&amp;)
a new string is returned with these replaced by their cooresponding
representations &amp;lt; &amp;gt; &amp;amp;.
<h3>(if predicate-form true-form false-form)</h3>
A special form that evaluates the true-form or the false-form
depending on the result of evaluating the predicate form.
<h3>(intern str)</h3>
Looks up a string in the symbol table or enters a new symbol.


<h3>(kill pid sig)</h3>
Calls the kill function <B><FONT SIZE="+2">U</FONT></B>.
With sig defaulting to SIGKILL.

<h3>(lambda (arg1 arg2 ...) form1 form2 ...)</h3>
Returns an applicable procedure object (CLOSURE) with the given
argument list and expression subforms. For example:

<BLOCKQUOTE><PRE><TT>(mapcar (lambda (x) (* x x)) '(1 2 3))</TT></PRE></BLOCKQUOTE>

evaluates to:

<BLOCKQUOTE><PRE><TT>(1 4 9)</TT></PRE></BLOCKQUOTE>

Also used by the define special form.

<h3>(larg-default list index default-value)</h3>
Reference the list according to index, but skipping over
strings that begin with a colon or a dash. If the list is not long enough
it returns the default-value instead. Most useful when used
with the *args* variable inside a main program.
<h3>(last list)</h3>
Returns the last cons in a list.
<h3>(last-c-error)</h3>
Returns the value of the C library strerror(errno)
<B><FONT SIZE="+2">U</FONT></B> interned as a symbol.
<h3>(lchown path owner group)</h3>
Changes the ownership of a symbolic link <B><FONT SIZE="+2">U</FONT></B>.
<h3>(length object)</h3>
Returns the length of an object which may be a string (acts like strlen)
or a list, or an array.
<h3>(let (binding1 binding2 ...) form1 form2 ...)</h3>
A special form where each binding is a (variable value) pair.
It works by computing the values, establishing the bindings, and
then evaluating the forms, returning the value of the last one.
For example the following evaluates to 30:

<BLOCKQUOTE><PRE><TT>(let ((x 10)
      (y 20))
  (+ x y))</TT></PRE></BLOCKQUOTE>
<h3>(let* (binding1 binding2 ...) form1 form2 ...)</h3>
A special form where each binding is a (variable value) pair.
It works by sequentially computing each value and then
establishing a binding. For example the following evaluates to 30:

<BLOCKQUOTE><PRE><TT>(let* ((x 10)
      (y (+ x 10)))
  (+ x y))</TT></PRE></BLOCKQUOTE>

<h3>(letrec (binding1 binding2 ...) form1 form2 ...)</h3>
Useful when the value forms of the bindings are lambda expressions
with which you desire to program mutually recursive calls.
<h3>(link existing-file entry-to-create)</h3>
Creates a hard link <B><FONT SIZE="+2">U</FONT></B>.
<h3>(list item1 item2 ...)</h3>
Conses up its arguments into a list.
<h3>(lkey-default list index default-value)</h3>
Returns the substring on the right hand size of the equal sign
of the first element of the list of the form <B>index=value</b>,
or the default-value if none are found. Useful when processing the
*args* value inside a main program.
<h3>(load fname noeval-flag search-flag)</h3>
If search-flag is true it looks for fname in the current directory
and then in the SIOD_LIB directory. The forms from the file are
parsed according to the "parser:xxx" directive at the begining of the file
(default "parser:read").
If the neval-flag is true then a list of the forms is returned
otherwise the forms are evaluated.
<h3>(load-so fname init_fcn)</h3>
Loads the dynamic library specified by fname, invoking the init_fcn
if specified (default init_fname).
<h3>(localtime value)</h3>
Returns an alist representing the value as a localtime.
<B><FONT SIZE="+2">U</FONT></B>. Value defaults to the current time.
<h3>(log x)</h3>
Computes the natural logarithm of x.
<h3>(lref-default list index default-fcn)</h3>
Returns the index element of the list or the result of calling
the default-fcn if the list is not long enough.
<h3>(lstat path)</h3>
Returns the stat information of a logical link.
<B><FONT SIZE="+2">U</FONT></B>.
<h3>(make-list length element)</h3>
Creates a list of the given length filled with the element specified.
<h3>(mapcar fcn list1 list2 ...)</h3>
Returns a list which is the result of applying the fcn to the
elements of each of the lists specified.



( run in 0.609 second using v1.01-cache-2.11-cpan-71847e10f99 )