System_Errmsg; System_Fclose - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)
Example
char *name1 = "MyName";
char *name2 = STRDUP(name1);
See also
MALLOC, FREE, CALLOC, REALLOC, PERM_MALLOC, PERM_FREE, PERM_CALOC,
PERM_REALLOC, PERM_STRDUP

system_errmsg

The
recent system call. This function is implemented as a macro that returns an entry
from the global array
diagnostics.
Syntax
char *system_errmsg(int param1);
Returns
A string containing the text of the latest error message that resulted from a system
call. Do not FREE this string.
Parameters
int param1
See also
system_fopenRO, system_fopenRW, system_fopenWA, system_lseek,
system_fread, system_fwrite, system_fwrite_atomic, system_flock,
system_ulock, system_fclose

system_fclose

The
function must be called for every file descriptor opened by any of the
system_fopen
Syntax
int system_fclose(SYS_FILE fd);
Returns
if the close succeeded or the constant
0
Parameters
SYS_FILE fd
178
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
function returns the last error that occurred from the most
system_errmsg
sys_errlist
is reserved, and should always have the value 0.
function closes a specified file descriptor. The
system_fclose
functions.
is the platform-independent file descriptor.
. Use this macro to help with I/O error
if the close failed.
IO_ERROR
system_fclose

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents