Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 2009 18:12:45 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Jamie Gritton <jamie@freebsd.org>
Cc:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>, freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: regression with jexec?
Message-ID:  <20090726151245.GM55190@deviant.kiev.zoral.com.ua>
In-Reply-To: <4A6C6D27.2030500@FreeBSD.org>
References:  <4A6B0BD3.6040206@protected-networks.net> <4A6B9A60.90302@FreeBSD.org> <4A6BAC1A.5080303@protected-networks.net> <20090726120608.GE55190@deviant.kiev.zoral.com.ua> <20090726122230.E245@maildrop.int.zabbadoz.net> <4A6C67F5.8080408@FreeBSD.org> <20090726144227.GK55190@deviant.kiev.zoral.com.ua> <4A6C6D27.2030500@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--w4RKiDPanoqHH247
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jul 26, 2009 at 08:50:15AM -0600, Jamie Gritton wrote:
> All true - and I'll add the check you mention to my patch.
>=20
> But what about the malloc case?  Is it equally valid to say that errno
> should not be set when no error occurred?  Or are non-syscall libc
> functions generally given free reign to overwrite errno in non-error
> situations?

Yes, they have a blanket to override errno when no error is returned to
the caller. Malloc is good example.

Errno is defined only after error.

--w4RKiDPanoqHH247
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkpscm0ACgkQC3+MBN1Mb4i67ACgiTiYHBtBH22tA2x0KPQ73Kmp
pRcAoJnagZVZ+9xzwYoZ4qSnxXFk4SmQ
=IfC4
-----END PGP SIGNATURE-----

--w4RKiDPanoqHH247--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090726151245.GM55190>