lamf_rfclose(2) - Linux man page

Name

lamf_rfopen, lamf_rfclose - Open or close a remote file. (LAM)

Synopsis

subroutine lamf_rfopen (udesc, filename, flags, mode, ierror)
character filename*(*)
integer udesc, flags, mode, ierror
subroutine lamf_rfclose (udesc, ierror)
integer udesc, ierror

Description

These functions provide access to underlying POSIX functions, open(2) and close(2), on any LAM node. See lam_rfposix(2).

For convenience, the common POSIX open flags and additional LAM open flags are defined in <FREQ.h>. See constants(5) for the precise values. The flags can be added together.

LAM_O_RDONLY
Open for reading only.
LAM_O_WRONLY
Open for writing only.
LAM_O_RDWR
Open for reading and writing.
LAM_O_APPEND
Append on each write.
LAM_O_CREAT
Create the file if it does not exist.
LAM_O_TRUNC
Truncate the file length to 0.
LAM_O_EXCL
Report an error if trying to create an existing file.
LAM_O_REUSE
Reuse existing file descriptor opened with same file name, if possible.

See Also

lamf_rfread(2), lamf_rfwrite(2)