Fc_Open - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)
Example
/* Register the log_close function, passing it NULL */
/* to close *a log file when the server is */
/* restarted or shutdown. */
daemon_atrestart(log_close, NULL);
NSAPI_PUBLIC void log_close(void *parameter)
{
system_fclose(global_logfd);
}
F

fc_open

The fc_open function returns a pointer to
(fileName). The fileName must be the full pathname of an exisiting file. The file is
opened in Read Mode only. The application calling this function should not modify
the currency of the file pointed by the
also passed to this function. In other words, the application (at minimum) should
not issue a read operation based on this pointer that would modify the currency for
the
PRFileDesc
currency for the
the argument
On a successful call to this function a valid pointer to PRFileDesc is returned and
the handle '
in the 'fileSize' member of the handle.
Syntax
PRFileDesc *fc_open(const char *fileName
Session *sn, Request *rq
Returns
Pointer to PRFileDesc, NULL on failure
Parameters
const char *fileName
FcHdl*hDl
PRUint32
142
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
*. If such a read operation is required (that may change the
* ), then the application should call this function with
PRFileDesc
.
DUP_FILE_DESC
' is properly initialized. The size information for the file is stored
FcHdl
);
is the full path name of the file to be opened
is a valid pointer to a structure of type FcHdl
can be 0 or DUP_FILE_DESC
flags
that refers to an open file
PRFileDesc
* unless the
PRFileDesc
,
FcHdl *hDl,PRUint32 flags
is
DUP_FILE_DESC
,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents