Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

From: boyd, rounin <boyd_at_insultant.net>
Date: Tue, 25 Nov 2003 11:04:30 +0100
From: "Stefan Farfeleder" <stefan_at_fafoe.narf.at>
> > errno is meaningful for syscalls after an error (the original
> > message).  The fact that other functions also dink with errno is not
> > relevant to that statement.
> 
> I read boyd's statement as a contradiction to Jacques' one (only after
> syscall error vs. after library call error).

some libc functions do mangle errno, but only after an error.

in my terse statement the intention was to affirm that errno is
meaningless unless an error has ocurred (a syscall being the
simplest case, while random other libc calls may behave in
the same way).
Received on Tue Nov 25 2003 - 01:05:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:30 UTC