Provided by: manpages-zh_1.5.2-1_all bug

NAME

       read -

       #include <unistd.h>

       ssize_t read(int fd, void *buf, size_t count);

       read() fd count buf .

        count ,read()0,.  count SSIZE_MAX,.

       (), .  ; (, , read()).  -1, errno ..

       EINTR  .

       EAGAIN  O_NONBLOCK ,.

       EIO    .  ,,SIGTTIN, .  .

       EISDIR fd .

       EBADF  fd ,.

       EINVAL fd .

       EFAULT buf .

       , fd .  POSIX read , -1( errno EINTR),.

       SVr4, SVID, AT&T, POSIX, X/OPEN, BSD 4.3

       NFS,, ..  NFS, NFS, .UNIX ,.

       close(2),   fcntl(2),   ioctl(2),  lseek(2),  readdir(2),  readlink(2),
       select(2), write(2), fread(3)

[]

       byeyear <love_my_love@263.net >

[]

       2002.02.02

linuxman:

       http://cmpp.linuxforum.net