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

NAME

       close -

SYNOPSIS

       #include <unistd.h>

       int close(int fd);

DESCRIPTION

       close     ,               .              ,     (     )

        fd         ,      .             , unlink(2) .

RETURN VALUE

       close  0   ,  -1     .

ERRORS

       EBADF  fd

       EINTR  The close()     .

       EIO    I/O

CONFORMING TO

       SVr4,  SVID,  POSIX,  X/OPEN,  BSD  4.3.   SVr4 documents an additional
       ENOLINK error condition.

NOTES

          ,      .  "write-behind" write(2)    .       ,     .    ,          .
       .    NFS      .

             ,                .       ,         .     fsync(2)  sync(2),     (
       ).

SEE ALSO

       open(2), fcntl(2), shutdown(2), unlink(2), fclose(3)

[]

            Daniel (badlong@163.com)

[]

            2002/1/10

[]

                    .

                                  1996-04-14                          CLOSE(2)