read man page on UNIXv7

Man page or keyword search:  
man Server   300 pages
apropos Keyword Search (all sections)
Output format
UNIXv7 logo
[printable version]

READ(2)								       READ(2)

NAME
       read - read from file

SYNOPSIS
       read(fildes, buffer, nbytes)
       char *buffer;

DESCRIPTION
       A  file	descriptor  is	a word returned from a successful open, creat,
       dup, or pipe call.  Buffer is the location of nbytes  contiguous	 bytes
       into  which  the	 input	will be placed.	 It is not guaranteed that all
       nbytes bytes will be read; for example if the file refers  to  a	 type‐
       writer  at  most one line will be returned.  In any event the number of
       characters read is returned.

       If the returned value is 0, then end-of-file has been reached.

SEE ALSO
       open(2), creat(2), dup(2), pipe(2)

DIAGNOSTICS
       As mentioned, 0 is returned when the end of the file has been  reached.
       If  the	read  was otherwise unsuccessful the return value is -1.  Many
       conditions can generate an  error:  physical  I/O  errors,  bad	buffer
       address,	 preposterous  nbytes,	file  descriptor  not that of an input
       file.

ASSEMBLER
       (read = 3.)
       (file descriptor in r0)
       sys read; buffer; nbytes
       (byte count in r0)

								       READ(2)
[top]

List of man pages available for UNIXv7

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net