Pegasus InfoCorp: Web site design and web software development company

LAMF_RFOPEN (2)

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