Re: VFS: create/append log file (UPDATE) - I got it ...

2002-05-24 Thread troutb
I had the a+ transposed. woops should of cut and pasted, but thats so windows > FILE *log; > log = fopen( "/tmp/x.log", "a+" ); > fprintf( log, "Logging actions for ..." ); > > fopen returns errno(22) "Invalid argument" > > this code works great in a test program .. > > is there something a

Re: VFS: create/append log file (UPDATE) - I got it ...

2002-05-24 Thread troutb
I had the a+ transposed. woops should of cut and pasted, but thats so windows > FILE *log; > log = fopen( "/tmp/x.log", "a+" ); > fprintf( log, "Logging actions for ..." ); > > fopen returns errno(22) "Invalid argument" > > this code works great in a test program .. > > is there something a

Re: VFS: create/append log file (UPDATE) - help

2002-05-24 Thread troutb
FILE *log; log = fopen( "/tmp/x.log", "a+" ); fprintf( log, "Logging actions for ..." ); fopen returns errno(22) "Invalid argument" this code works great in a test program .. is there something about VFS that would prevent fopen ?? > > I've trying to create a log file in a VFS mod

Re: VFS: create/append log file

2002-05-24 Thread Jelmer Vernooij
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > FILE *log; > log = open( path, "a+" ); > fprintf( log, "Logging actions for ...' ); > it hangs ... on the fprintf and I get an empty file. > I am not a good C program ... > is this the right calls and procedure for making a log file in a VF

VFS: create/append log file

2002-05-24 Thread troutb
I've trying to create a log file in a VFS module without using syslog. I want to pass in a logfile name via options. But, when I put the following in the vfs_init section. FILE *log; log = open( path, "a+" ); fprintf( log, "Logging actions for ...' ); it hangs ... on the fprintf and I