AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

CLOSE ( 2) CLOSE (2) NAME close - close a file descriptor SYNOPSIS int close (tildes) int fildes; DESCRIPTION Fildes is a file descriptor obtained from a ere at, 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 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), pipe(2). - 1 -

CLOSE ( 2)<br />

CLOSE (2)<br />

NAME<br />

close - close a file descriptor<br />

SYNOPSIS<br />

int close (tildes)<br />

int fildes;<br />

DESCRIPTION<br />

Fildes is a file descriptor obtained from a ere at, open, dup , fcntl,<br />

or pipe system call. Close closes the file descriptor indicated by<br />

fildes.<br />

Close will fail if fildes is not a valid open file descriptor. [EBADF[<br />

RETURN VALUE<br />

Upon successful completion, a value of 0 is returned. Otherwise, a<br />

value of -1 is returned and errno is set to indicate the error.<br />

SEE ALSO<br />

creat(2), dup(2), exec(2), fcntl(2), open(2), pipe(2).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!