close [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation
HP C/iX Library Reference Manual
close
Closes a file.
Syntax
int close (int fildes);
Parameters
fildes An open file descriptor.
Return Values
0 A successful close.
-1 An unsuccessful close and errno is set to one of the
following values:
EBADF The fildes parameter is not a valid open file
descriptor.
ESYSERR A call to a system intrinsic failed.
Description
The close function closes the file indicated by fildes. The fildes
parameter is an open file descriptor obtained from a call to dup() or
open().
[REV BEG]
NOTE If linking with the POSIX/iX library, refer to the description of
close() located in the MPE/iX Developer's Kit Reference Manual.
[REV END]
See Also
dup(), open(), read(), write()
MPE/iX 5.0 Documentation