Date: Tue, 25 Nov 2003 11:04:30 +0100 From: "boyd, rounin" <boyd@insultant.net> To: <current@freebsd.org> Subject: Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY Message-ID: <004b01c3b33b$873a67a0$b9844051@insultant.net> References: <20031124174457.GB27782@madman.celabo.org><03a601c3b2b5$7bc15b80$b9844051@insultant.net><20031124182322.GB621@wombat.fafoe.narf.at><20031124.153349.13027396.imp@bsdimp.com> <20031124230004.GB585@wombat.fafoe.narf.at>
next in thread | previous in thread | raw e-mail | index | archive | help
From: "Stefan Farfeleder" <stefan@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).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004b01c3b33b$873a67a0$b9844051>