NSAPI Functions (in Alphabetical Order)
Parameters
char *path
See also
system_errmsg, system_fopenRW, system_fopenWA, system_lseek,
system_fread, system_fwrite, system_fwrite_atomic, system_flock,
system_ulock, system_fclose
system_fopenRW
The
mode and returns a valid file descriptor. If the file already exists,
does not truncate it. Use this function to open files that will be read from and
written to by your program.
Syntax
SYS_FILE system_fopenRW(char *path);
Returns
The system-independent file descriptor (
open failed.
Parameters
char *path
Example
SYS_FILE fd;
fd = system_fopenRO(pathname);
if (fd == SYS_ERROR_FD)
See also
system_errmsg, system_fopenRO, system_fopenWA, system_lseek,
system_fread, system_fwrite, system_fwrite_atomic, system_flock,
system_ulock, system_fclose
system_fopenWA
The
mode and returns a valid file descriptor. Use this function to open those files that
your program will append data to.
Syntax
SYS_FILE system_fopenWA(char *path);
180
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
is the file name.
function opens the file identified by
system_fopenRW
is the file name.
break;
function opens the file identified by
system_fopenWA
path
) if the open succeeded or 0 if the
SYS_FILE
path
in read-write
system_fopenRW
in write-append