Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Impressum chap3_mj.html   Sprache: HTML

 

 products/Sources/formale Sprachen/GAP/pkg/io/doc/chap3_mj.html


<?xml version="1.0" # Set up the  .

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script type="text/javascript"
  src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<title  generate if there .
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="generator" content="GAPDoc2HTML" />
<rel""=/"=mjava.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 59
<script src="manual.js" type="text/javascript"></script>
<script type="text/cat >"$ac_tmp/defines.awk<\Ajava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 39
</head>
<body class="chap3"  onload="jscontent()">


<BEGIN{

<div class="chlinkprevnexttop"> <a href="chap0_mj.html">[Top of Book]</a>   <a href="chap0_mj.html#contents">[Contents]</a>   _CEOF

<p id="mathjaxlink" class="pcenter"><a href="java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 0
<p><a id="X85DE7F82801DDA50" name="X85DE7F82801DDA50"></a># confdefsh  awk `defines.,as
<div class="ChapSects"><a href="chap3_mj.html#X85DE7F82801DDA50">3 <span class="Heading">Functions directly available from the C library</span>- ., thatsubstitutes 
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X85D3551379BA32FC">3.1 <# config..intoproduceconfig..
</span>
</div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap3_mj.html#X800F9F3E810A7228">3.2 <span class
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><# Create a delimiter string that ., 
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X791A6341852001F8">3.2-2 IO_bind</a></java.lang.StringIndexOutOfBoundsException: Index 131 out of bounds for length 25
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X790139B37E87FA61">3.2-3 IO_chdir</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href  = n/p.`
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X85C0617479E4D952if - $"then
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X820DA9C97C2E80BA">3.2-6 IO_close</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X8078699B84F082A4">3.2-7 IO_closedir</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7DE9D8B387D3A3D5">3.2-8 IO_connect</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X78FCF69C7FCF3BD7">3.2-9 IO_creat</a></span>
<java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7F7B8FAC7ABA285B">3.2-11 IO_dup2</aac_delim=$!$ac_delim_ac_delim! "
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7B30A7FA84692EC5">3<fi
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X875D9A9E8201D461"
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X818044D07C64A412">3.2-14 IO_execvp</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X843634347E88C357">3.2-15 IO_exit<#Forthe , Dis anarraymacro namejava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
<span likewise P     
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X791C4B4A81059A88">3.2-17 IO_fchown</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7870647E866D29A4">3.2-18 IO_fcntl</a></java.lang.StringIndexOutOfBoundsException: Index 131 out of bounds for length 0
<span class="ContSS"=_]_*
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7E27748983EC7B5C">3.2-20 IO_fstat</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href=s -n'
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X84AECCE17832D6D8">3.2-22 IO_getenv</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7DD25BDC79EE65AD">3.2-23 IO_gethostbyname</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7B7164EF8307D26B">:rset
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7ECF948083E38BD0">3.2-25 IO_getpid</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7EC6ABAB7AB9F40F">3.2-26 IO_getppid</a></span>
<span class="ContSS"><br /><span class="nocsst def
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X790213D885BAB495">3.2-28 IO_getsockopt</a></span>
<span class="ContSS"><br /<
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7DC156EA86F3F356">3.2-30 IO_gmtime</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7D0439128512FBF6">3.2-31 IO_kill</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#java.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 6
<span class="ContSS"><br /><span class=s[\\/\g
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7957063B807025C7">3.2-34 IO_listen</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7B7D3D64805F335F">3.2-35 IO_localtime</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X85C475187C824830">3.2-36 IO_lseek</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7A8C75038517A55A">3.2-37 IO_lstat</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X83D968AB84F00ABF">:bsnl
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X80BFF17A8099815F">3.2-39 IO_mkfifo</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7928F1DB8379F850">3.2-40 IO_mknod</java.lang.StringIndexOutOfBoundsException: Range [0, 126) out of bounds for length 60
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#java.lang.StringIndexOutOfBoundsException: Index 93 out of bounds for length 24
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7F9C9F4B7CB7977A">3.2-42 java.lang.StringIndexOutOfBoundsException: Index 121 out of bounds for length 6
<span class="ContSS"><br /><span class="nocss"> &/^\'ajava.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 59
<span class="ContSS" cont
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7C8F0A44837BBE8C">3.2-45 IO_pipe</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X84F3D862836BF17C">3.2-46 IO_read</cont
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.htmljava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
<span class="ContSS"><br /s.{\/''g
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X78EB295E78B363B2">3.2-49 IO_recv</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X84C617887EE02EB4">3.2-50 :
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#java.lang.StringIndexOutOfBoundsException: Index 102 out of bounds for length 7
<span class="ContSS"><br /><span class="nocss">  t 
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7FA4DD537C83A199">3.2-53 IO_rmdir</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X84A98D2380BF6574">3.2-54 IO_seekdir</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X81CA6EE88062010E">3.2-55 IO_select</absnlc
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X87019FD887F55C27/[\]\/;s/// //\\n"/
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X8388B0147B5745EC">3.2-57 IO_sendto 
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#'<h| java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
<span class="ContSS"><br /><span class/"$ac_delim"/"\
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X852B16CF82B96C84">3.2-60 IO_socket</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7F7D23867B45D525">3.2-61 IO_stat</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7B0D9CEF7A3CD431">3.2-62 IO_symlink</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X81FF8B678748900B">3.2-63 IO_telldir</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X78C93B6587B478C2">3.2-64 IO_unlink</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X8103218E7C5CF577">3.2-65 IO_unsetenv</java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
<span class="ContSS"><br /></^[\t ]*#[\t ]*(define|undef)[\t[ ]\/java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X84295FC77CCB1066">line=\$0
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X84EB06707D1BD3F1">3.2-68 IO_writesplitline,,  )
</div></div>
<div class="ContSect"><span class="tocline"><span  (rg]= "#){
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss"defundef=2]
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X7F3E88AD7EFD52F4">3.3-2 IO_environ</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#X8383E62D86BE30C6">3.3-} lse{
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap3_mj.html#    defundef = ([1,2)
</div></div>
</div>

<h3>3 <span class="Heading">Functions  mac1=2

<p>The following functions from the C library are made available as <strong class="pkg">GAP</java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3

<p><code class="code (,  () )

<p>Use the <code class="code">man</code> command in your shell to get information about these functions.</p=1

<p>For each of these functions there is     l,1 ,  )

<p>All errors are reported via the <code class="func">LastSystemError</code> (<a href="../../../doc/ref  if (_is_set[acro]) java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24

<p>In the C library a lot java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 51

<p><em>Warningprint djava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 50

<p><a id="X85D3551379BA32FC" name="X85D3551379BA32FC"></a></p>

<h4>3.1 <span class="Heading">Differences in arguments - an overview</span></h4>

<><class="java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 184

<p>The <code class="code">read</code> function takes four arguments: <var class="Arg">fd</var> is an integer file descriptor, <var class="Arg">st</var> is a <strong class="pkg">GAP</strong> string, <var class="Arg">offset</var> is an offset within this string (zero based), and # undefwith is,example

<p>The <code class="code">write</code> function is similar, it also takes four arguments: <var class="Arg">fd</<p>The <code class="code">write</code> function is similar, it also takes four arguments: <var class="Arg">fd</var definejava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67

<>opendir/> < =>java.lang.StringIndexOutOfBoundsException: Range [87, 86) out of bounds for length 132

<p>The <code class="code">readdir</code> function takes no argument. It reads the directory that was specified in the last call to <code class="code">opendir</code>. It just returns a string  /" , *"

<p>The <code class="code">java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 10

<p>The functions <code class="code">stat</code>, <code class="java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 5

<p>The function <code class="code">java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 3

<p>The functions <code class="code">bind</code> and <code class="code">connect</code> 

<p>There are two convenience functions <code class="func">IO_make_sockaddr_in</code> (<a  java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

<p>The <code class="code">setsockopt</code> java.lang.StringIndexOutOfBoundsException: Range [0, 52) out of bounds for length 6

<p>The <code class="code">select</code> function works as the function <_

<p>As of now, the file locking mechanisms of <code class="code">fcntl</code> using <code class="codecat >$ <_| 1

<p><a id="X800F9F3E810A7228" name="X800F9F3E810A7228"></a></p>

<h4>3.2 <span class="Heading">The low-level functions in detail</span></h4>

<p>Nearly all of this fi   - $java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30

<p><a id="X7E474E9787012FE4" name="java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 0

<h5>3.2-1 IO_accept</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func"    :Cjava.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 55
<java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

<p>Accepts an incoming network connection. For details see <q 

<p><a id="X791A6341852001F8" name="X791A6341852001F8"></a></p>

<h5>3.2-2 IO_bind</h5>

<div class="func"><table class="func" width="100%<case $ac_tag in
<p>Returns: an integer or <code class="keyw">fail</code></p>

<p>Binds a local address to a socket. For details see <q><code class="code">man 2 bind:FHLC] $;;

<p><a id="X790139B37E87FA61esac

<h5>3.2-3 IO_chdir</h5>

<div class="  $$ java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
<p>Returns: <code class="keyw">true</code> java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 14

<p>Changes the current working directory. For:L*|::) ?"tag\$java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 68

<p><a id="X83D4CB2681674FA4" name="X83D4CB2681674FA4"></a></p>

<h5>3.2-4 IO_chmod</h5>

<div class="func"><table class="func":[FH]* $$java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 37
<p>Returns: <code class="keyw">true</code> or <code java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 6

<p>Changes the mode of a file.=Ijava.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18

<p><a id="X85C0617479E4D952" name="X85C0617479E4D952"></  =java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7

<h5>3.2-5 IO_chown</h5>

<div class="java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
<p>Returns: <code class="keyw">true</code> or <code class="keyw">fail</code></p>

<p>Sets owner and/or group of file. For details   $

<p><a id="X820DA9C97C2E80BA" name="X820DA9C97C2E80BA"></a></p>

<h5>3.2-6 IO_close</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_close</code>( <var class="Arg">fd</   ajava.lang.StringIndexOutOfBoundsException: Range [18, 15) out of bounds for length 18
<p>Returns: <code class="keyw">true</code> or <code class="keyw">fail</code></p>  [)

<p>Closes a file descriptor. For details see <q><code class="code">man 2 close</code></q>.=

<p><a id="X8078699B84F082A4<    

<h5>3.2-7 IO_closedir</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_closedir</code>(  )</td><td classcase ajava.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
<p>Returns: <code class="keyw">true</code> or <code class="keyw">fail</code></p>

<p>Closes a directory. For details see <q><code class="code">man 3 closedir</code></q>. Has no arguments, because we only have java.lang.StringIndexOutOfBoundsException: Range [0, 130) out of bounds for length 74

<p><a id="X7DE9D8B387D3A3D5 # because $ac_f cannot contain `:'.

<h5>3.2-8 IO_connect</h5>

<div class testf$"|
<p>Returns: <code class="keyw">true</code> or <code class="keyw">fail</code></p>

<p>Connects to a remote socket. For details see <q><code class="code">man 2 connect</java.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 20

<p><a id="X78FCF69C7FCF3BD7   * test -f "srcdir/$c_f &&ac_f"/ac_f"

<h5>3.2-9 IO_creat</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_creat</code>( <var class="Arg">java.lang.StringIndexOutOfBoundsException: Index 137 out of bounds for length 44
<p>Returns: an integer or <code class="keyw">fail</code></p>

<p>Creates a new file. For details see <q><code class="code">man# ' stillitis ' (e.'

<p><a id="X7DAAD93A80F76681" name="X7DAAD93A80F76681"# $s_me), people would be surprised read:

<h5>3.2-10 IO_dup</h5>

<div class"unc><able class="unc"width="100%"><tr><td class="tdleft"><code class="func">‣ IO_dup</code>( <var class="Arg">oldfd</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: an integer or <code class="keyw">fail</code></p>

<>Duplicates a file . details see <q><code class="code">man 2 dup</code></q>.</p>

<p><a id="X7F7B8FAC7ABA285B" name="X7F7B8FAC7ABA285B' by .

<h5>3.2-11 IO_dup2</h5>

<class=func"<table class=func"width"00%">tr><td class=tdleft"<code =f"&8227;IO_dup2/code(<var class"Arg"oldfd/,<""/ )<"">nbspjava.lang.StringIndexOutOfBoundsException: Range [218, 217) out of bounds for length 248
<p>Returns: <code class="keyw">true</code> or <code class      configure_input=$c_file.  $onfigure_inputjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51

<p>Duplicates a file descriptor to       {printf %\n $java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 74

<p><a id="X7B30A7FA84692EC5" name="X7B30A7FA84692EC5"></a></p>

<h5>3.2-12 IO_execv</h5>

<div class="func"><table class    
<p>Returns: <code class="keyw">fail</code> or does not return</p>

<p>Replaces the process with another process. For details see <q><code class="code">man 3 execv</code></q>. The argument <var class="java.lang.StringIndexOutOfBoundsException: Index 135 out of bounds for length 31

<p><a id="X875D9A9E8201D461" name="X875D9A9E8201D461"></a></p>

<h5>3.2-13 IO_execve</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft">sed'/\\|/\\/'; (
<p>Returns: <code class="keyw">fail</code> or does not return</p>

<p>Replaces the process with another process. For details see <q><code class="code">man 3 execve</code></q>. The arguments <var class="Arg"    esac

<p><a id="X818044D07C64A412" name="java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<h5>3.2-14 IO_execvp</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_execvp</code    *-*| :)"/"\
<p>Returns:< =keyw><code>    <pjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65

<p>Replaces the process with another process. For     

<p><a id="X843634347E88C357" name="X843634347E88C357"></a></p>

<h5>3.2-15 IO_exit</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_exit</code>( <var class="Argjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p>Stops process immediately with return code <var class="Arg">status</var>. For details see <q><code class="code">man 2 exit</code$ "$:X(*^])[/[]* |\

<>< id=X7F08E1187BDB619A"name=X7F08E1187BDB619A">/></p>

<h5>3.2-16 IO_fchmod</h5>

<div class="func"> X$ac_file":'X\//)'\ \
<p>Returns: <code class="keyw">true</code> or <code class="keyw">fail</code></p>

<p>Changes mode of an opened file. For details see <q><code class="code">man 2 fchmod</code></q>.</p>

<p><a id="X791C4B4A81059A88" name="X791C4B4A81059A88"></a></p>

<h5>3.2-17 IO_fchown</h5>

<div classs//\/
<p>Returns: <code class="keyw">true</code> or <code class="keyw">fail</code></p>

<p>Changes ownerq

<p><a id="X7870647E866D29A4" name="X7870647E866D29A4"></a></p>

<h5>3.2-18 IO_fcntl</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_fcntl</code>( <var class="java.lang.StringIndexOutOfBoundsException: Index 133 out of bounds for length 11
<p>Returns: an integer or <code class="keyw">fail</code></p>

<p>Does various things to control the behaviour of a file descriptor. For details see <q/X\\/\)${

<p><a id="X86C819F37D07ECF7" name="X86C819F37D07ECF7"></a></p>

<h5>3.2-19 IO_fork</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_fork</code/X(/./java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
<p>Returns: an integer or <code class="keyw">fail</code></p>

<p>Forks off a child process, which is an identical copy. For details see <q><code class="code">man 2 fork   }

<p><a id="X7E27748983EC7B5C" name="X7E27748983EC7B5C"></a></p>

<h5>3.2-20 </>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft  ="$ac_dir" 
<p>Returns: a record or <code class="keyw">fail</ac_builddir.

<p>Returns the file meta data for an opened file. For details see <q><code class="code">man 2 fstat<

<p><a id="case $ 

<h5>3.2-21 IO_getcwd</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_getcwd</code>(  )</java.lang.StringIndexOutOfBoundsException: Range [0, 125) out of bounds for length 63
<p>Returns: a string or <code class="keyw">fail</code></p>

<p>Returns the current working directory. For details see <q><code class="code">man 3 getcwd</code></q>.</p>

<p><a id="X84AECCE17832D6D8" name="X84AECCE17832D6D8"></a></p>

<h5>3.2-22 IO_getenv</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class=" case $ac_top_builddir_sub in
<p>Returns: a string or <code class="keyw">fail</code></p>

<java.lang.StringIndexOutOfBoundsException: Range [21, 2) out of bounds for length 246

<p><a id="X7DD25BDC79EE65AD" name="X7DD25BDC79EE65AD"></a></p>

<h5>3.2-23 IO_gethostbyname</h5>

<div class="func"><table class*)=$/;java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
<p>Returns: a record or <code class="java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 9

<p>Return host java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 4

<p><a id="X7B7164EF8307D26B" name="X7B7164EF8307D26B">

<h5>3.2-24 IO_gethostname</h5>

<div class="func"><table class="func" width="100%"><tr><td java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 37
<p>Returns: a string or <code class="keyw">fail</code></p>

<p>Return host name. For details see <q><code class="code">man 3 gethostname</code></q>.</p>

<p><a id="X7ECF948083E38BD0" name="X7ECF948083E38BD0

<h5>3.2-25 IO_getpid</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_getpid</java.lang.StringIndexOutOfBoundsException: Index 116 out of bounds for length 33
<p>Returns: an integer</p>

<p>Returns the process ID of the current process as an integer. For details see <q><java.lang.StringIndexOutOfBoundsException: Range [84, 88) out of bounds for length 38

<  java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 32

<h5>3.2-26 IO_getppid</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_getppid</code>(  )</td><td class="tdright">( function )</td></tr></table></div>
<>Returnsan<>

<p>Returns the process ID of the parent of the current process as an integer. For details see <q><code class="java.lang.StringIndexOutOfBoundsException: Index 113 out of bounds for length 32

<p><a id="X877A161482FC1769" name="X877A161482FC1769"></a></p>

<h5>3.2-27 IO_getsockname</h5>

<div$c_top_build_prefix$
<p>Returns: a string or <code class="keyw">fail</code></p>

<p>Get a socket name. For details see <q><code class="code">man 2 getsockname</code></q>.</p>

<p><a$

<h5>3.2-28 IO_getsockopt</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p>:< ="></>  < =">/<p>

<p>Get a socket option. For details see <q><code class="code">man 2 getsockopt</code></q>. Note  F)

<p><a id="X7BC965198011083B" name="java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 3

<>3.2- </>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_gettimeofday</code>(  )</td><java.lang.StringIndexOutOfBoundsException: Range [0, 135) out of bounds for length 3
<p>Returns: A record with components <code class="code">tv_sec</code> and <code class="code">java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 18

<p>This returns the   [\/$*|?[\/*) =$ ;

<p><a id="X7DC156EA86F3F356" name="X7DC156EA86F3F356"></a></p>

<h5>3.2-30 IO_gmtime</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_gmtime  esac
<p>Returns: A record</p>

<p>The argument is java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 6

<p><a id="X7D0439128512FBF6" name="X7D0439128512FBF6"

<h5>3.2-31 IO_kill</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_kill</code>( <var class="Arg">pid</var>, <var class#   does    itjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
<p>Returns: <code class="keyw">true</code> or <code class="keyw">fail</code></p>

<>Sends the signal< class="rg>sig</ar> to the process with process ID <var class="Arg">pid</var>. For details see <q><code class="code">man 2 kill</code></q>. The signal numbers available can be found in the global <code class="code">IO</code> record with names like <code class="code">SIGTERM</code>.</p>

<p><a id="X8305F97C87FE448E" name="X8305F97C87FE448E"></java.lang.StringIndexOutOfBoundsException: Range [0, 57) out of bounds for length 3

<h5>3.2-32 IO_lchown</h5>

<div class="func"><}
<p>Returns: <code class="keyw">true</code> or <code class="keyw">false</code></p>

<p>Changes owner and/or group of a file not following links. For java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 12

<p>a =" =">/>/

<h5>3.2-33 IO_link</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_link</code>( <var class="Arg">oldpath<case ` sed\$java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 61
<p>Returns: <code class="keyw">true</code> or <code class="keyw">false</code></p>

<p>Create a hard link. For details see <q><code class="code">man 2 link</code></q>.</p>

<p><a id="X7957063B807025C7" name="X7957063B807025C7"></a></p>

<h5>3.2-34 IO_listen</h5>

<div class="A
<p>Returns: <code class="keyw">true</code> or <code class="keyw">false</code></p>

<p>Switch a socket to listening. For details see <q><code class="code">man 2 java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 23

<p><a id="X7B7D3D64805F335F" name="X7B7D3D64805F335F"></a></p>

<h5>3.2-35 IO_localtime</h5>

<div class="func"><table class="func" width="100%s&@$g
<p>Returns: A record</p>

<p>The argument is the number of seconds that have elapsed since 1.1.1970, 0:00 GMT. The result is a record with the current&m&g

<p><a id="s&\\\{datarootdir}$g ;

<h5>3.2-36 IO_lseek</h5>

<div class="func"><table class="func" width="100%"><tr><td_ACEOF
<p>Returns: an integer or <code class="keyw">fail</code></p>

<p>Seeks within an open file. For details 

<p><a id="X7A8C75038517A55A" name="X7A8C75038517A55A"></a></p>

<h5>3.2-37 IO_lstat</h5>

<# FIXME: dowe   ?
<p>Returns: a record or <code class="keyw">fail</code></p>

<p>Returns the file meta data for a file not following links. For details see <q><code class="code">man 2 lstat</code></q>. A <strong class="pkg">GAP</strong> record is ="a

<p><a id="X83D968AB84F00ABF"

<h5>3.2-38 IO_mkdir</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_mkdir</code>( <var class="Arg">pathname</var
<[-zA]a-09]@!

<p>Creates a directory. For details see <q><code class="code">man 2 s|@| t

<p&@$ac_top_builddir_sub&; 

<h5>3.2-39 IO_mkfifo</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_mkfifo</code>( <var class="Arg">pathname</var>, <var class="Arg">mode</var> )</td><td class="tdright"s&srcdir$; t
<p>Returns: <code class="keyw">true</code> or <code class="keyw">false</code></@&; t

<p>Creates s&@abs_top_s@&$ac_abs_top_srcdirtt

<p><a id="X7928F1DB8379F850" name="X7928F1DB8379F850"></a></p>

<h5>3.2-40 IO_mknod</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_mknod&@java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 46
<p>Returns: <code class="keyw">true</code> or <code class="keyw">false</code></p>

<p>Create a special or ordinary java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 1

<<id"BB" ="82java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 62

<h5>3.2-41 IO_mkstemp</h5>

< width="100%"<><tdclass="dleft"><code class="func">&#8227; IO_mkstemp</code>( <var class="Arg">template</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: an integer or <code class="keyw">fail</code>test - "$java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 53

<p{ac_out=`sed -n '\{datarootdir}p $ac_tmp/ut";test-"ac_out"; }&

<p><a id="X7F9C9F4B7CB7977A" name="X7F9C9F4B7CB7977A"></a></p>

<h5>3.2-42 IO_mkdtemp</h5>

<iv=f"<java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 224
<> string <java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 58

<p>Create a temporary directory. For details see <q><code class="code">man 3 mkdtemp</code></q>.</p>

<p><a id="X8731A44E8032D9D2" name="X8731A44E8032D9D2"></a></p>

<h5>3.2-43 IO_open</h5>

<%"><tr<class">"">#;<(var""java.lang.StringIndexOutOfBoundsException: Range [143, 142) out of bounds for length 280
<p>Returns: an integer or <code class="keyw">fail</code></p>

<p>Open and possibly create a file or device. For details see <q><code class="code">man 2 open</codeseems     itis"&;java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67

<p><a id="X78E234797EB01883" name="X78E234797EB01883"></a></p>

<h5>3.2-44 IO_opendir</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#-&nbsp;$java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 47
<)-"java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 54

<p>Opens a directory. For details see <q><code class=java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 8

<a=java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 62

<h5>3.2-45 IO_pipe</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&&nbsp; H)
<p>Returns: a record or <code class#

<p>Create a pair of file descriptors with a pipe between them. For details see <q><code class="code"># CONFIG_HEADER

<p><a id="X84F3D862836BF17C" name="X84F3D862836BF17C"></a></p>

<h5>3.2-46 IO_read</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_read</code>( <var class="Arg">fd</var>, <var classprintf %\"/ *">1 
<p>Returns: an integer or <code class="keyw">fail</code></p>

<p>Reads from file descriptor. For details see <||as_fn_error $ "ouldnot create$c_file""$LINENO" 5

<p><a id="X8410C6F17DE9302D" name="       $/."/null 21 java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63

<3247 /5

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"printf"% $ ajava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 51
<p>Returns: java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 8

<p>Reads from a directoryrm- "java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 22

<p>mv"$ac_tmp/config. $ \

<h5>3.2-48 IO_readlink</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_readlink</code>( <var class="java.lang.StringIndexOutOfBoundsException: Index 135 out of bounds for length 6
<p>Returns: an integer or <code class="keyw">fail</code></p>

<p>Reads the value of a symbolic link. For details see <q><code class="code">man 2 readlink</code></q>. <var& $java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 65

<p><a id="X78EB295E78B363B2" name="X78EB295E78B363B2"></a></p>

<h5>3.2-49 IO_recv</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft
<p>Returns: an integer or <code class="keyw">fail</code>

<p>Receives data from a socketesac

<p><a id="X84C617887EE02EB4" name="java.lang.StringIndexOutOfBoundsException: Range [0, 52) out of bounds for length 0

<h5>3.2-50 IO_recvfrom</h5>

<div classjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p>Returns: an integer or <code class="keyw">fail

<p>Receives data from a socketas_fn_exitjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12

idXEjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 62

<h5>3.2-51 IO_rename</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 0
<p>eturns <class=>java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 81

<p>Renames a file or moves it. For details see <q><  $ wjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 68

<p><a id

<h5>3.2-52 IO_rewinddir</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><#configure   l,  sjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
<p> configstatus does its own redirection,appending  logjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66

< directory Fordetails see q<codeclass"ode"man 2 rewinddir/>q>Notethat noargumentisrequired aswehaveonlyone < class"ode"DIR<code structjava.lang.StringIndexOutOfBoundsException: Range [255, 187) out of bounds for length 403

<p><a id="X7FA4DD537C83A199" name="X7FA4DD537C83A199"></a></p>

<h5>3.2-53 IO_rmdir</h5>

<div class="func"><table class="func" width="100%">< output is simply discarded.  So we exec the FD to /dev
<p>Returns: <code class="keyw">true<# l,   (oand

<p>Removes an empty directory. For details see <q><code class="code">man 2#appended to  config.tatus. When coming  to configure java.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66

<p><a id="X84A98D2380BF6574" name="X84A98D2380BF6574"></a></p>

<h5>3.2-54 IO_seekdir</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_seekdir</codejava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
<p>Returns: <code class="keyw">true</code> or <code class="keyw">fail</code></p>

<p>Sets the position of the next readdir call. For details see <q><code class >devnull

<p><a id="  SHELL$CONFIG_STATUS $java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 69

<h5>3.2-55 IO_select</h5>

<div  | &,   if$ ,
<p>Returns: an integer or <code class="keyw">fail</code></p>

<p>Used for I/O multiplexing. For details see <q><code class="code">man 2 select</code></q>. <var class="  $c_cs_success | 1

<p><a id="X87019FD887F55C27" name="X87019FD887F55C27"></a></p>

<h5>3.2-56 IO_send</h5>

<class"><java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 331
< java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 60

<p>Sends data to a socket. For details see <q><code class="code">man 2 send</code></q>. Note that the additional argument <var class="Arg">offset</var> specifies the position of the data to send within the string <var class="Arg">st</var>. It is zero based, meaning that zero indicates the start of the string, java.lang.StringIndexOutOfBoundsException: Index 314 out of bounds for length 82

<p><a id

<h5>3.2-57 IO_sendto</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_sendto</code>( <var class="Arg">fd</var>, <var class="Arg">st</var>, <var class="Arg">offset</var>, <var class="Arg">len</var>, <var class="Arg">flags</var>, <var class="Arg">addr</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: an integer or <code class="keyw">fail</code></p>

<p>Sends data to a socket. For details see <q><code class="code">man 2 sendto</code></q>. Note that the additional argument <var class="Arg">offset</var> specifies the position of the data to send within the string <var class="Arg">st</var>. It is zero based, meaning that zero indicates the start of the string, which is position 1 in <strong class="pkg">GAP</strong>. The argument <var class="Arg">addr</var> can be made with <code class="func">IO_make_sockaddr_in</code> (<a href="chap3_mj.html#X878007A67E806CEF"><span class="RefLink">3.3-1</span></a>) and contains its length such that no 7th argument is necessary.</p>

<p><a id="X7D2AB8E985C56AD4" name="X7D2AB8E985C56AD4"></a></p>

<h5>3.2-58 IO_setenv</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_setenv</code>( <var class="Arg">name</var>, <var class="Arg">value</var>, <var class="Arg">overvwrite</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: <code class="keyw">true</code> or <code class="keyw">fail</code></p>

<p>Set the current value of the environment variable <var class="Arg">name</var> to <var class="Arg">value</var> if it has either not been set before, or <var class="Arg">overwrite</var> is <code class="code">true</code>. For details see <q><code class="code">man 3 setenv</code></q>.</p>

<p><a id="X7BE641C1784D0899" name="X7BE641C1784D0899"></a></p>

<h5>3.2-59 IO_setsockopt</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_setsockopt</code>( <var class="Arg">fd</var>, <var class="Arg">level</var>, <var class="Arg">optname</var>, <var class="Arg">optval</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: <code class="keyw">true</code> or <code class="keyw">fail</code></p>

<p>Sets a socket option. For details see <q><code class="code">man 2 setsockopt</code></q>. Note that the argument <var class="Arg">optval</var> carries its length around, such that no 5th argument is necessary.</p>

<p><a id="X852B16CF82B96C84" name="X852B16CF82B96C84"></a></p>

<h5>3.2-60 IO_socket</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_socket</code>( <var class="Arg">domain</var>, <var class="Arg">type</var>, <var class="Arg">protocol</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: an integer or <code class="keyw">fail</code></p>

<p>Creates a socket, an endpoint for communication. For details see <q><code class="code">man 2 socket</code></q>. There is one little special: On systems that have <code class="code">getprotobyname</code> you can pass a string as third argument <var class="Arg">protocol</var> which is automatically looked up by <code class="code">getprotobyname</code>.</p>

<p><a id="X7F7D23867B45D525" name="X7F7D23867B45D525"></a></p>

<h5>3.2-61 IO_stat</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_stat</code>( <var class="Arg">pathname</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: a record or <code class="keyw">fail</code></p>

<p>Returns the file metadata for the file <var class="Arg">pathname</var>. For details see <q><code class="code">man 2 stat</code></q>. A <strong class="pkg">GAP</strong> record is returned with the same entries than a <code class="code">struct stat</code>.</p>

<p><a id="X7B0D9CEF7A3CD431" name="X7B0D9CEF7A3CD431"></a></p>

<h5>3.2-62 IO_symlink</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_symlink</code>( <var class="Arg">oldpath</var>, <var class="Arg">newpath</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: <code class="keyw">true</code> or <code class="keyw">fail</code></p>

<p>Creates a symbolic link. For details see <q><code class="code">man 2 symlink</code></q>.</p>

<p><a id="X81FF8B678748900B" name="X81FF8B678748900B"></a></p>

<h5>3.2-63 IO_telldir</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_telldir</code>(  )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: an integer or <code class="keyw">fail</code></p>

<p>Return current location in directory. For details see <q><code class="code">man 3 telldir</code></q>. Note that no second argument is required as we have only one <code class="code">DIR</code> struct on the C level.</p>

<p><a id="X78C93B6587B478C2" name="X78C93B6587B478C2"></a></p>

<h5>3.2-64 IO_unlink</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_unlink</code>( <var class="Arg">pathname</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: <code class="keyw">true</code> or <code class="keyw">fail</code></p>

<p>Delete a name and possibly the file it refers to. For details see <q><code class="code">man 2 unlink</code></q>.</p>

<p><a id="X8103218E7C5CF577" name="X8103218E7C5CF577"></a></p>

<h5>3.2-65 IO_unsetenv</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_unsetenv</code>( <var class="Arg">name</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: <code class="keyw">true</code> or <code class="keyw">fail</code></p>

<p>Remove the environment variable <var class="Arg">name</var>. For details see <q><code class="code">man 3 unsetenv</code></q>.</p>

<p><a id="X80737A008450184F" name="X80737A008450184F"></a></p>

<h5>3.2-66 IO_WaitPid</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_WaitPid</code>( <var class="Arg">pid</var>, <var class="Arg">wait</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: a record or <code class="keyw">fail</code> or <code class="keyw">false</code></p>

<p>Waits for the termination of a child process. For details see <q><code class="code">man 2 waitpid</code></q>. The first argument must be a process id, otherwise the function immediately exits with <code class="keyw">fail</code> as return value.</p>

<p>The second argument <var class="Arg">wait</var> must be either <code class="keyw">true</code> or <code class="keyw">false</code>. In the first case, the call blocks until new information about a terminated child process is available. In the second case no such waiting is performed, the call returns immediately. If the child process has not yet terminated, returns <code class="keyw">false</code>; otherwise, returns a <strong class="pkg">GAP</strong> record describing the PID, the return value of waitpid, if the process exited normally and the exit status of the process.</p>

<p>See <code class="func">IO_fork</code> (<a href="chap3_mj.html#X86C819F37D07ECF7"><span class="RefLink">3.2-19</span></a>). If you do not care about the return value of the process, call <code class="func">IO_IgnorePid</code> (<a href="chap3_mj.html#X84295FC77CCB1066"><span class="RefLink">3.2-67</span></a>).</p>

<p><a id="X84295FC77CCB1066" name="X84295FC77CCB1066"></a></p>

<h5>3.2-67 IO_IgnorePid</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_IgnorePid</code>( <var class="Arg">pid</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: Nothing</p>

<p>Disowns a child process. This means there is no need to call <code class="func">IO_WaitPid</code> (<a href="chap3_mj.html#X80737A008450184F"><span class="RefLink">3.2-66</span></a>). Calling <code class="func">IO_WaitPid</code> (<a href="chap3_mj.html#X80737A008450184F"><span class="RefLink">3.2-66</span></a>) on a pid which was previously passed to <code class="func">IO_IgnorePid</code> may cause an infinite loop.F</p>

<p><a id="X84EB06707D1BD3F1" name="X84EB06707D1BD3F1"></a></p>

<h5>3.2-68 IO_write</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_write</code>( <var class="Arg">fd</var>, <var class="Arg">st</var>, <var class="Arg">offset</var>, <var class="Arg">count</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: an integer or <code class="keyw">fail</code></p>

<p>Writes to a file descriptor. For details see <q><code class="code">man 2 write</code></q>. Note that the additional argument <var class="Arg">offset</var> specifies the position of the data to send within the string <var class="Arg">st</var>. It is zero based, meaning that zero indicates the start of the string, which is position 1 in <strong class="pkg">GAP</strong>.</p>

<p><a id="X85065AD381BD8E0F" name="X85065AD381BD8E0F"></a></p>

<h4>3.3 <span class="Heading">Further C level functions</span></h4>

<p>The following functions do not correspond to functions in the C library, but are there to provide convenience to use other functions:</p>

<p><a id="X878007A67E806CEF" name="X878007A67E806CEF"></a></p>

<h5>3.3-1 IO_make_sockaddr_in</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_make_sockaddr_in</code>( <var class="Arg">ip</var>, <var class="Arg">port</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: a string or <code class="keyw">fail</code></p>

<p>Makes a struct <code class="code">sockaddr_in</code> from IP address and port. The IP address must be given as a string of length four, containing the four bytes of an IPv4 address in natural order. The port must be a port number. Returns a string containing the struct, which can be given to all functions above having an address argument.</p>

<p><a id="X7F3E88AD7EFD52F4" name="X7F3E88AD7EFD52F4"></a></p>

<h5>3.3-2 IO_environ</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_environ</code>(  )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: a list of strings</p>

<p>For details see <q><code class="code">man environ</code></q>. Returns the current environment as a list of strings of the form <q>key=value</q>.</p>

<p><a id="X8383E62D86BE30C6" name="X8383E62D86BE30C6"></a></p>

<h5>3.3-3 IO_InstallSIGCHLDHandler</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_InstallSIGCHLDHandler</code>(  )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns: <code class="keyw">true</code> or <code class="keyw">false</code></p>

<p>Installs our SIGCHLD handler. This functions works as an idempotent. That is, calling it twice does exactly the same as calling it once. It returns <code class="keyw">true</code> when it is called for the first time since then a pointer to the old signal handler is stored in a global variable. This function is automatically called by any function which creates new processes, so never needs to be called unless the handler was explictly disabled with <code class="func">IO_RestoreSIGCHLDHandler</code> (<a href="chap3_mj.html#X7EEB7471816B64DF"><span class="RefLink">3.3-4</span></a>) See <code class="func">IO_fork</code> (<a href="chap3_mj.html#X86C819F37D07ECF7"><span class="RefLink">3.2-19</span></a>).</p>

<p><a id="X7EEB7471816B64DF" name="X7EEB7471816B64DF"></a></p>

<h5>3.3-4 IO_RestoreSIGCHLDHandler</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IO_RestoreSIGCHLDHandler</code>(  )</td><td class="tdright">( function )</td></tr></table></div>
<p>Restores the original SIGCHLD handler. This function works as an idempotent. That is, calling it twice does exactly the same as calling it once. It returns <code class="keyw">true</code> when it is called for the first time after calling <code class="func">IO_InstallSIGCHLDHandler</code> (<a href="chap3_mj.html#X8383E62D86BE30C6"><span class="RefLink">3.3-3</span></a>). See <code class="func">IO_fork</code> (<a href="chap3_mj.html#X86C819F37D07ECF7"><span class="RefLink">3.2-19</span></a>).</p>


<div class="chlinkprevnextbot"> <a href="chap0_mj.html">[Top of Book]</a>   <a href="chap0_mj.html#contents">[Contents]</a>    <a href="chap2_mj.html">[Previous Chapter]</a>    <a href="chap4_mj.html">[Next Chapter]</a>   </div>


<div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><a href="chap0_mj.html">Top</a>  <a href="chap1_mj.html">1</a>  <a href="chap2_mj.html">2</a>  <a href="chap3_mj.html">3</a>  <a href="chap4_mj.html">4</a>  <a href="chap5_mj.html">5</a>  <a href="chap6_mj.html">6</a>  <a href="chap7_mj.html">7</a>  <a href="chap8_mj.html">8</a>  <a href="chap9_mj.html">9</a>  <a href="chap10_mj.html">10</a>  <a href="chap11_mj.html">11</a>  <a href="chapInd_mj.html">Ind</a>  </div>

<hr />
<p class="foot">generated by <a href="https://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc">GAPDoc2HTML</a></p>
</body>
</html>

Messung
CHZG
8610010095

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.24Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1104857
#Domains=417870