This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Strange error with fopen
OK i resoved my problem and my apps work with strace. This is a piece of strace output:
strace -fftt -F -o strace ./myapps
18:19:17.305867 rt_sigsuspend([HUP INT USR1 ALRM TERM RT_3]18:19:17.336078 --- SIGRTMIN (Unknown signal 32) @ 0 (0) ---
) = -1 EINTR (Interrupted system call)
18:19:17.339346 sigreturn() = ? (mask now [HUP INT USR1 ALRM TERM RTMIN])
18:19:17.349275 kill(13939, SIGRTMIN) = 0
18:19:17.349366 open("/2004/04/07/18/19/17/636.jpg", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT
18:19:17.349470 rt_sigprocmask(SIG_SETMASK, NULL, [HUP INT USR1 ALRM TERM RTMIN RT_3], 8) = 0
18:19:17.349750 rt_sigsuspend([HUP INT USR1 ALRM TERM RT_3]18:19:17.362717 --- SIGRTMIN (Unknown signal 32) @ 0 (0) ---
) = -1 EINTR (Interrupted system call)
18:19:17.362771 sigreturn() = ? (mask now [HUP INT USR1 ALRM TERM RTMIN])
It seem that O_CREAT doesn't work fine.I hope this can help!
Saluti Carlo!
Il Tue, 6 Apr 2004 16:37:31 +0300
Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> scrisse:
> On Tuesday 06 April 2004 13:07, Devel wrote:
> > Hi all,
> > on my redhat 7.3 and kernel 2.4.22 i received a strange error from fopen in
> > my application. When system is on heavy disk load the function:
> >
> > picture=fopen(filename, "wb");
> >
> > return null and strerror(errno) print :No such file or directory.
> > The file is new so is natural the doesn't exist. Furthermore more is the
> > load of the disk more are this error message. I can't understand this error
> > message, any suggest?.
>
> please run your program under strace and show result
> --
> vda
>