blob: 0c202d21cd9178676d35e8cabfb47c5ba51fd972 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
NAME
close - close a file descriptor
SYNOPSIS
int close(int fd);
DESCRIPTION
close closes a file descriptor, so that it no longer
refers to any file and may be reused.
If fd is the last copy of a particular file descriptor the
resources associated with it are freed.
RETURN VALUE
close returns zero on success, or -1 if an error occurred.
ERRORS
EBADF fd isn't a valid open file descriptor.
|