Next: File Constructor Functions, Previous: File Output Functions II, Up: The File Library [Index]
void f_closeonexec(file f, integer e);
sets/resets the close-on-exec flag for the f file, depending on whether e is non zero or zero. If the flag is 0, the file (descriptor) will stay open across execve(2) calls, otherwise it will be closed. Files opened by libaime library objects may have the flag set, if the application so setup for.
integer f_d(file f);
is the file descriptor corresponding the f file
file f_datasync(file f);
is f, flushes the f file data to disk (i.e. calls fdatasync(2) for f) if f is an opened system file, does nothing otherwise
file f_kate(file f, integer s);
is f, truncates the (write opened) f file to a size of s bytes
file f_seek(file f, integer offset, integer whence);
is f, repositions the f file to offset according to the whence directive
file f_set(file &f, file h);
is h, sets the f file object as a reference of the h file object
integer f_stored(file f);
is the number of read but not yet consumed bytes for the f file if f is opened for reading, 0 otherwise
file f_sync(file f);
is f, flushes the f file to disk (i.e. calls fsync(2) for f) if f is an opened system file, does nothing otherwise
integer f_tell(file f);
is the f file position
Next: File Constructor Functions, Previous: File Output Functions II, Up: The File Library [Index]