|
|
coherent
read() COHERENT System Call read() Read from a file iinntt rreeaadd(_f_d, _b_u_f_f_e_r, _n) iinntt _f_d; cchhaarr *_b_u_f_f_e_r; iinntt _n; read reads up to n bytes of data from the file descriptor fd and writes them into buffer. The amount of data actually read may be less than that requested if read detects EOF. The data are read beginning at the current seek position in the file, which was set by the most recently executed read or lseek routine. read advan- ces the seek pointer by the number of characters read. ***** Example ***** For an example of how to use this function, see the entry for open. ***** See Also ***** COHERENT system calls, STDIO ***** Diagnostics ***** With a successful call, read returns the number of bytes read; thus, zero bytes signals the end of the file. It returns -1 if an error occurs, such as bad file descriptor, bad buffer address, or physical read error. ***** Notes ***** read is a low-level call that passes data directly to COHERENT. It should not be intermixed with high-level calls, such as fread, fwrite, or fopen. COHERENT Lexicon Page 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.