Files
oldlinux-files/Linux-0.98/Yggdrasil-0.98.3/usr/man/man2/close.2
2024-02-19 00:21:16 -05:00

23 lines
448 B
Groff

.TH CLOSE 2
.UC 4
.SH NAME
close \- close an open file descriptor
.SH SYNOPSIS
.nf
.B #include <unistd.h>
.B int close (int filedes);
.fi
.SH DESCRIPTION
.B close()
closes an open file descriptor. 0 is returned on success,
a negative value on error.
.SH ERRORS
.B -EINVAL
is returned if
.B close()
is used on an invalid file descriptor.
.SH SEE ALSO
fopen(3), open(2)
.SH FILES
linux/fs/open.c, /usr/include/linux/sys.h, /usr/include/unistd.h