Branch: Tag:

1996-09-22

1996-09-22 23:27:12 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

typos fixed

Rev: src/modules/files/doc/file:1.2
Rev: src/modules/files/doc/file_stat:1.2
Rev: src/modules/files/doc/port:1.2

1985:   </p>   </tt>   <p>file_stat returns an array of integers describing some properties<br/> - about the file. Currently file_stat return 7 entries:<br/> + about the file. Currently file_stat returns 7 entries:<br/>   ({<br/>   <dl><group><text><matrix>   <r><c> mode, </c><c> /* file mode, protection bits etc. etc. */ </c></r>
1997:   <r><c> gid </c><c> /* The group this file belongs to */ </c></r>   </matrix>   </text></group></dl>})<br/> - If you give 1 as a second argument, stat does not follow links.<br/> + If you give 1 as a second argument, file_stat does not follow links.<br/>   You can never get -3 as size if you don't give a second argument.<br/>      </p>
5555:   <p><tt>/precompiled/file</tt> - the basic file handling program</p>      <p>/precompiled/file is a pre-compiled Pike program, written in C. - It contains the functions need to handle files, sockets, streams + It contains the functions needed to handle files, sockets, streams   and pipes from within Pike. /precompiled/file is a part of the files   module.   </p>
5648:   </p>   </tt>   <p>When cloning a file, you can specify that you want to clone - stdin, stdout or stderr, by giving "stdin", "stdou" or "stderr" to + stdin, stdout or stderr, by giving "stdin", "stdout" or "stderr" to   clone as a second argument. If no second argument is given,   an unitialized file will be cloned.</p>   </text>
5737:   <tt><p>int file-&gt;open(string <i>filename</i>, string <i>how</i>);<br/>   </p>   </tt> - <p>Open a file for read write or append. The variable how should + <p>Open a file for read, write or append. The variable how should   contain one or more of the following letters:   </p>   <p><matrix>
5818:   </p>   </tt>   <p>This function returns the remote or local address of a socket on the - form "x.x.x.x port". Without argument, the remot address is returned, + form "x.x.x.x port". Without argument, the remote address is returned,   with argument the local address is returned. If this file is not a   socket, not connected or some other error occurs, zero is returned.</p>   </text>
6512:   sockets. Whenever you need a bound socket that is open and listens   for connections you should use this program.   </p> - <p>Here follows the diescriptionsof the functions in /precompiled/port: + <p>Here follow the diescriptionsof the functions in /precompiled/port:   </p>   <p/>   </text>
6590:   </p>   </tt>   <p>When create is called with 'stdin' as argument, a socket is created - out of the file descriptor 0, this is only useful if that actually + out of the file descriptor 0. This is only useful if that actually   IS a socket to begin with. When create is called with an int as first   argument, it does the same as bind() would do with the same arguments.</p>   </text>
6636:   </tt>   <p>This function does the same as port-&gt;bind, except that instead   of creating a new socket and bind it to a port, it expects that - the filedescriptor 'fd' is an alread open port.</p> + the filedescriptor 'fd' is an already open port.</p>   </text>      <group><note/><text>