VFS: create/append log file
Jelmer Vernooij
jelmer at nl.linux.org
Fri May 24 07:27:04 GMT 2002
-----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 VFS module?
Try using fopen instead of open and try closing the log file after
adding data to it with fclose.
Jelmer
- --
Jelmer Vernooij <jelmer at nl.linux.org> - http://nl.linux.org/~jelmer/
Development And Underdevelopment: http://library.thinkquest.org/C0110231/
16:21:15 up 6 days, 15:35, 14 users, load average: 0.39, 0.36, 0.21
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE87kyPPa9Uoh7vUnYRAiEEAJ9vYXElXdcXg1/+ukeY7ULiYNj17wCgkVys
WcSJDdOtQVSqo/f3Czq3kik=
=pqhB
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list