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


The system_fopenRO function opens the file identified by path in read-only mode and returns a valid file descriptor. Use this function to open files that will not be modified by your program. In addition, you can use system_fopenRO to open a new file buffer structure using filebuf_open.


SYS_FILE system_fopenRO(char *path);


The system-independent file descriptor (SYS_FILE) if the open succeeded, or 0 if the open failed.


char *path is the file name.

See Also

system_errmsg, system_fopenRW, system_fopenWA, system_lseek, system_fread, system_fwrite, system_fwrite_atomic, system_flock, system_ulock, system_fclose