Overview of NSAPI C Functions
Chapter
4
Creating Custom SAFs
129
File I/O
The file I/O functions provides platform-independent, thread-safe file I/O
routines.
•
system_fopenRO
opens a file for read-only access.
•
system_fopenRW
opens a file for read-write access, creating the file if
necessary.
•
system_fopenWA
opens a file for write-append access, creating the file if
necessary.
•
system_fclose
closes a file.
•
system_fread
reads from a file.
•
system_fwrite
writes to a file.
•
system_fwrite_atomic
locks the given file before writing to it. This avoids
interference between simultaneous writes by multiple processes or threads.
Network I/O
Network I/O functions provide platform-independent, thread-safe network I/O
routines. These routines work with SSL when it’s enabled.
•
netbuf_grab
reads from a network buffer’s socket into the network buffer.
•
netbuf_getc
gets a character from a network buffer.
•
net_write
writes to the network socket.
Threads
Thread functions include functions for creating your own threads which are
compatible with the server’s threads. There are also routines for critical sections
and condition variables.
•
systhread_start
creates a new thread.
•
systhread_sleep
puts a thread to sleep for a given time.
•
crit_init
creates a new critical section variable.
•
crit_enter
gains ownership of a critical section.
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...