FD_CLOSE(3H) — Pixar Programmer’s Manual — libfd
NAME
fd_close− delete a descriptor for the fast-disk
SYNOPSIS
fd_close(d)
int d;
DESCRIPTION
Fd_close deletes a descriptor for a Fast-Disk file, previously created by fd_open or fd_create.
Upon exit, all file descriptors of a process are implicitly closed, but since there is a limit on the number of simultaneously active descriptors per process, fd_close is necessary for programs that deal with many descriptors.
RETURN VALUE
Upon successful completion, a value of 0 is returned. Otherwise, a value of −1 is returned and the global integer variable errno is set to indicate the error.
ERRORS
Fd_close will fail if:
[EBADF] The argument d does not represent an active Fast-Disk file descriptor.
SEE ALSO
Release β — Last change: 10/12/88