equal
deleted
inserted
replaced
219 // This function is a complete substitute for the open system call |
219 // This function is a complete substitute for the open system call |
220 // since it's also used to override open calls from libproc to |
220 // since it's also used to override open calls from libproc to |
221 // implement as a pathmap style facility for the SA. If libproc |
221 // implement as a pathmap style facility for the SA. If libproc |
222 // starts using other interfaces then this might have to extended to |
222 // starts using other interfaces then this might have to extended to |
223 // cover other calls. |
223 // cover other calls. |
224 extern "C" int libsaproc_open(const char * name, int oflag, ...) { |
224 extern "C" JNIEXPORT int JNICALL |
|
225 libsaproc_open(const char * name, int oflag, ...) { |
225 if (oflag == O_RDONLY) { |
226 if (oflag == O_RDONLY) { |
226 init_alt_root(); |
227 init_alt_root(); |
227 |
228 |
228 if (_libsaproc_debug) { |
229 if (_libsaproc_debug) { |
229 printf("libsaproc DEBUG: libsaproc_open %s\n", name); |
230 printf("libsaproc DEBUG: libsaproc_open %s\n", name); |