![Netscape ENTERPRISE SERVER 6.1 Скачать руководство пользователя страница 149](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653149.webp)
NSAPI Functions (in Alphabetical Order)
Chapter
5
NSAPI Function Reference
149
filebuf_open
The
filebuf_open
function opens a new file buffer for a previously opened file. It
returns a new buffer structure. Buffered files provide more efficient file access by
guaranteeing the use of buffered file I/O in environments where it is not supported
by the operating system.
Syntax
filebuf *filebuf_open(SYS_FILE fd, int sz);
Returns
A pointer to a new buffer structure to hold the data, if successful or
NULL
if no
buffer could be opened.
Parameters
SYS_FILE fd
is the platform-independent file descriptor of the file which has
already been opened.
int sz
is the size, in bytes, to be used for the buffer.
Example
filebuf *buf = filebuf_open(fd, FILE_BUFFERSIZE);
if (!buf) {
system_fclose(fd);
}
See also
filebuf_getc, filebuf_buf2sd, filebuf_close, filebuf_open_nostat
filebuf_open_nostat
The
filebuf_open_nostat
function opens a new file buffer for a previously
opened file. It returns a new buffer structure. Buffered files provide more efficient
file access by guaranteeing the use of buffered file I/O in environments where it is
not supported by the operating system.
This function is the same
filebuf_open
, but is more efficient, since it does not
need to call the
request_stat_path
function. It requires that the stat information
be passed in.
Syntax
filebuf* filebuf_open_nostat(SYS_FILE fd, int sz,
struct stat *finfo);
Содержание ENTERPRISE SERVER 6.1
Страница 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Страница 18: ...Where to Find Related Information 18 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 138: ...CGI to NSAPI Conversion 138 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 214: ...NSAPI Functions in Alphabetical Order 214 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 310: ...The Netscape LDAP Schema 310 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 324: ...Sample MIME Types File 324 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...