In article <af7e402c-cead-47b8-a916-4be4259a6...@mac.com>, Rob Newberry <robthed...@mac.com> wrote: >(Also posting to tech-userlevel...) > > >NetBSD's implementation of vdprintf makes a special check -- if the >descriptor is in non-blocking mode, it needs to be a regular file (I >think I read that code correctly). But it apparently doesn't have this >check problem for vfprintf. I think it's been there a long time (since >the introduction of vdprintf), but it makes vdprintf behave differently >than vfprintf. In my view, "vfprintf( FILE, ...)" and "vdprintf( >fileno( FILE ), ... )" ought to behave the same -- but they don't (on >NetBSD) if "fileno( FILE )" has been marked non-blocking and it's not a >regular file.
You are right, it should work and I removed the test. christos