System_Fwrite_Atomic - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)
Before
system_fopen
Syntax
int system_fwrite(SYS_FILE fd, char *buf, int sz);
Returns
The constant
failed.
Parameters
SYS_FILE fd
char *buf
int sz
See also
system_errmsg, system_fopenRO, system_fopenRW, system_fopenWA,
system_lseek, system_fread, system_fwrite_atomic, system_flock,
system_ulock, system_fclose

system_fwrite_atomic

The
specified buffer into a specified file. The function also locks the file prior to
performing the write, and then unlocks it when done, thereby avoiding
interference between simultaneous write actions. Before
can be used, you must open the file using any of the
except
Syntax
int system_fwrite_atomic(SYS_FILE fd, char *buf, int sz);
Returns
The constant
write/lock failed.
Parameters
SYS_FILE fd
char *buf
int sz
182
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
can be used, you must open the file using any of the
system_fwrite
functions, except
if the write succeeded or the constant
IO_OKAY
is the platform-independent file descriptor.
is the buffer containing the bytes to be written.
is the number of bytes to write to the file.
system_fwrite_atomic
.
system_fopenRO
if the write/lock succeeded or the constant
IO_OKAY
is the platform-independent file descriptor.
is the buffer containing the bytes to be written.
is the number of bytes to write to the file.
.
system_fopenRO
function writes a specified number of bytes from a
if the write
IO_ERROR
system_fwrite_atomic
functions,
system_fopen
IO_ERROR
if the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents