[lkml]   [1997]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectUsing sys_open() in a module

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?


 \ /
  Last update: 2005-03-22 13:40    [W:0.026 / U:42.132 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site