Sun Java System Web Server 6.1 SP9 NSAPI Programmer's Guide


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.


filebuf* filebuf_open_nostat(SYS_FILE fd, int sz,     struct stat *finfo);


A pointer to a new buffer structure to hold the data if successful, or NULL if no buffer could be opened.






filebuf *buf = filebuf_open_nostat(fd, FILE_BUFFERSIZE, &finfo);
if (!buf) {

See Also

filebuf_close, filebuf_open, filebuf_getc, filebuf_buf2sd