Sophie

Sophie

distrib > Mandriva > 8.1 > i586 > by-pkgid > 700475c8ae73fb4d57b6df4485c29e1c > files > 113

slang-doc-1.4.4-2mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE> {The S-lang C Library Reference}: SLang_init_slunix</TITLE>
 <LINK HREF="cref-59.html" REL=next>
 <LINK HREF="cref-57.html" REL=previous>
 <LINK HREF="cref.html#toc58" REL=contents>
</HEAD>
<BODY>
<A HREF="cref-59.html">Next</A>
<A HREF="cref-57.html">Previous</A>
<A HREF="cref.html#toc58">Contents</A>
<HR>
<H2><A NAME="SLang_init_slunix"></A> <A NAME="s58">58. <B>SLang_init_slunix</B></A></H2>

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Make available some unix system calls to the interpreter
<DT><B> Usage </B><DD><P><CODE>int SLang_init_slunix (void)</CODE>
<DT><B> Description </B><DD><P>The <CODE>SLang_init_slunix</CODE> function initializes the interpreter's
unix system call intrinsic functions and makes them available to the
language.  Examples of functions made available by
<CODE>SLang_init_slunix</CODE> include <CODE>chmod</CODE>, <CODE>chown</CODE>, and
<CODE>stat_file</CODE>.  It returns <CODE>0</CODE> if successful, or <CODE>-1</CODE>
upon failure.
<DT><B> Notes </B><DD><P>This function must be called after <CODE>SLang_init_slang</CODE>.  It adds
the preprocessor symbol <CODE>__SLUNIX__</CODE> to the interpreter.
<DT><B> See Also </B><DD><P><CODE>SLang_init_slang, SLang_init_slfile, SLang_init_slmath</CODE>
</DL>
<P>
<P>
<P>
<HR>
<A HREF="cref-59.html">Next</A>
<A HREF="cref-57.html">Previous</A>
<A HREF="cref.html#toc58">Contents</A>
</BODY>
</HTML>