[BusyBox] [PATCH] devfsd - last minute fix n2

Peter Kjellerstedt peter.kjellerstedt at axis.com
Sat Nov 20 10:31:39 UTC 2004


> -----Original Message-----
> From: busybox-bounces at mail.busybox.net 
> [mailto:busybox-bounces at mail.busybox.net] On Behalf Of Tito
> Sent: Saturday, November 20, 2004 03:03
> To: busybox at mail.busybox.net
> Subject: Re: [BusyBox] [PATCH] devfsd - last minute fix n2

[snip]

> This is strange as the man pages don't report errno setting 
> for fflush, fprintf and vfprintf.

Well, my man page for fflush() states:

ERRORS
       EBADF  Stream  is  not  an open stream, or is not open for
              writing.

       The function fflush may also fail and set errno for any of
       the errors specified for the routine write(2).

And a call to fprintf() or vfprintf() will eventually lead to write(),
which of course can set errno...

//Peter



More information about the busybox mailing list