Change the properties of the open file fid.
The following values may be passed as request:
F_DUPFD
Return a duplicate file descriptor.
F_GETFD
Return the file descriptor flags for fid.
F_SETFD
Set the file descriptor flags for fid.
F_GETFL
Return the file status flags for fid. The following codes may be returned (some of the flags may be undefined on some systems).
F_SETFL
Set the file status flags for fid to the value specified by arg.
The only flags that can be changed are O_APPEND
and
O_NONBLOCK
.
If successful, err is 0 and msg is an empty string. Otherwise, err is nonzero and msg contains a system-dependent error message.
See also: fopen, dup2.
Package: octave