1LAMF_RFOPEN(2)                LAM REMOTE LIBRARY                LAMF_RFOPEN(2)
2
3
4

NAME

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

SYNOPSIS

9       subroutine lamf_rfopen (udesc, filename, flags, mode, ierror)
10       character filename*(*)
11       integer udesc, flags, mode, ierror
12
13       subroutine lamf_rfclose (udesc, ierror)
14       integer udesc, ierror
15

DESCRIPTION

17       These  functions  provide access to underlying POSIX functions, open(2)
18       and close(2), on any LAM node.  See lam_rfposix(2).
19
20       For convenience, the common POSIX open flags and  additional  LAM  open
21       flags  are  defined in <FREQ.h>.  See CONSTANTS(5) for the precise val‐
22       ues.  The flags can be added together.
23
24       LAM_O_RDONLY      Open for reading only.
25
26       LAM_O_WRONLY      Open for writing only.
27
28       LAM_O_RDWR        Open for reading and writing.
29
30       LAM_O_APPEND      Append on each write.
31
32       LAM_O_CREAT       Create the file if it does not exist.
33
34       LAM_O_TRUNC       Truncate the file length to 0.
35
36       LAM_O_EXCL        Report an error if trying to create an existing file.
37
38       LAM_O_REUSE       Reuse existing file descriptor opened with same  file
39                         name, if possible.
40

SEE ALSO

42       lamf_rfread(2), lamf_rfwrite(2)
43
44
45
46LAM 7.1.2                         March, 2006                   LAMF_RFOPEN(2)
Impressum