Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fd_close(3H) — Pixar HSI 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fd_create(3H)

fd_open(3H)

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

fd_create(3H), fd_open(3H)

Release β  —  Last change: 10/12/88

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026