


      CLOSE(2)                    (UNIX 5.0)                   CLOSE(2)



      NAME
           close - close a file descriptor

      SYNTAX
           int close (fildes)
           int fildes;

      DESCRIPTION
           Fildes is a file descriptor obtained from a creat, open,
           dup, or fcntl, system call.  Close closes the file
           descriptor indicated by fildes.  All outstanding record
           locks owned by the process (on the file indicated by fildes)
           are removed.

           Close will fail if fildes is not a valid open file
           descriptor.  [EBADF]

      RETURN VALUE
           Upon successful completion, a value of 0 is returned.
           Otherwise, a value of -1 is returned and errno is set to
           indicate the error.

      SEE ALSO
           creat(2), dup(2), exec(2), fcntl(2), open(2).































      Page 1                                         (73 A2 02MTA REV1)



