next up previous contents
Next: _exit: terminate the program Up: MOSS system calls Previous: alloc_dos: allocate low DOS

close: close an open file descriptor

SYNOPSIS

int close(int fd);

DESCRIPTION

This system call implements the POSIX close function, which closes an open file descriptor.

PARAMETERS

fd
The file descriptor to close.

RETURN VALUE

Returns 0 if successful, or -1 on error, in which case errno indicates the error.



Bryan Ford