lkml.org 
[lkml]   [1997]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectUsing sys_open() in a module
     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

\
 
 \ /
  Last update: 2005-03-22 13:40    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site