Using sys_open() in a module
mborella@usr.com
Mon, 13 Oct 1997 13:48:49 -0500
Hi,
I'm trying to write a module which uses sys_open() to read from a
configuration file. Strangely enough, it doesn't seem to be able to
open any file on the disk - I get errno 2 (no such file). I've
exported the function so that the module compiles and inserts
correctly. The code looks like this:
#define CONF_FILE "/etc/conf"
fd = sys_open(CONF_FILE, 0, 0);
and I'm trying to open it just for reading. Is there any weird
semantics to using sys_open() from a module that I should be aware of?
Thanks,
-Mike