CLOSE(2) HP Integral PC CLOSE(2) CLOSE(2) HP Integral PC CLOSE(2) CLOSE(2) HP Integral PC CLOSE(2) CLOSE(2) HP Integral PC CLOSE(2) NAME NAME NAME NAME close - close a file descriptor SYNOPSIS SYNOPSIS SYNOPSIS SYNOPSIS int close (fildes) int fildes; DESCRIPTION DESCRIPTION DESCRIPTION DESCRIPTION Fildes is a file descriptor obtained from a creat , open , dup , fcntl , or pipe system call. Close closes the file descriptor indicated by fildes . Close will fail if fildes is not a valid open file descriptor. [EBADF] RETURN VALUE RETURN VALUE RETURN VALUE 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. DIAGNOSTICS DIAGNOSTICS DIAGNOSTICS DIAGNOSTICS A new file dies not exist on a disc in a permanent fashion until the first close call is made on it. Also, any data appended to a file is not permanently a part of that file until a close has been performed on the file. SEE ALSO SEE ALSO SEE ALSO SEE ALSO creat(2), dup(2), exec(2), fcntl(2), open(2), pipe(2). Hewlett-Packard - 1 - (printed 12/11/84)