NSAPI Functions (in Alphabetical Order)
Chapter
5
NSAPI Function Reference
181
Returns
The system-independent file descriptor (
SYS_FILE
) if the open succeeded or 0 if the
open failed.
Parameters
char *path
is the file name.
See also
system_errmsg, system_fopenRO, system_fopenRW, system_lseek,
system_fread, system_fwrite, system_fwrite_atomic, system_flock,
system_ulock, system_fclose
system_fread
The
system_fread
function reads a specified number of bytes from a specified file
into a specified buffer. It returns the number of bytes read. Before
system_fread
can be used, you must open the file using any of the
system_fopen
functions,
except
system_fopenWA
.
Syntax
int system_fread(SYS_FILE fd, char *buf, int sz);
Returns
The number of bytes read, which may be less than the requested size if an error
occurred or the end of the file was reached before that number of characters were
obtained.
Parameters
SYS_FILE fd
is the platform-independent file descriptor.
char *buf
is the buffer to receive the bytes.
int sz
is the number of bytes to read.
See also
system_errmsg, system_fopenRO, system_fopenRW, system_fopenWA,
system_lseek, system_fwrite, system_fwrite_atomic, system_flock,
system_ulock, system_fclose
system_fwrite
The
system_fwrite
function writes a specified number of bytes from a specified
buffer into a specified file.
Summary of Contents for ENTERPRISE SERVER 6.0
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 0 November 2001...
Page 134: ...CGI to NSAPI Conversion 134 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 306: ...cinfo 306 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 312: ...Sample MIME Types File 312 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 324: ...Buffered Streams 324 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 332: ...332 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 340: ...340 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 346: ...346 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 352: ...352 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...