NSAPI Functions (in Alphabetical Order)
Chapter
5
NSAPI Function Reference
183
Example
SYS_FILE logfd;
char *logmsg = "An error occurred.";
system_fwrite_atomic(logfd, logmsg, strlen(logmsg));
See also
system_errmsg, system_fopenRO, system_fopenRW, system_fopenWA,
system_lseek, system_fread, system_fwrite, system_flock,
system_ulock, system_fclose
system_gmtime
The
system_gmtime
function is a thread-safe version of the standard
gmtime
function. It returns the current time adjusted to Greenwich Mean Time.
Syntax
struct tm *system_gmtime(const time_t *tp, const struct tm *res);
Returns
A pointer to a calendar time (
tm
) structure containing the GMT time. Depending on
your system, the pointer may point to the data item represented by the second
parameter, or it may point to a statically-allocated item. For portability, do not
assume either situation.
Parameters
time_t *tp
is an arithmetic time.
tm *res
is a pointer to a calendar time (
tm
) structure.
Example
time_t tp;
struct tm res, *resp;
tp = time(NULL);
resp = system_gmtime(&tp, &res);
See also
system_localtime, util_strftime
system_localtime
The
system_localtime
function is a thread-safe version of the standard
localtime
function. It returns the current time in the local time zone.
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...