Date: Thu, 17 Apr 2008 04:50:03 GMT From: Ed Schouten <ed@80386.nl> To: freebsd-standards@FreeBSD.org Subject: Re: standards/122051: Add posix_spawn(3) Message-ID: <200804170450.m3H4o3h8057281@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR standards/122051; it has been noted by GNATS. From: Ed Schouten <ed@80386.nl> To: David Xu <davidxu@freebsd.org> Cc: bug-followup@freebsd.org Subject: Re: standards/122051: Add posix_spawn(3) Date: Thu, 17 Apr 2008 06:39:32 +0200 --Zu4V1sHRt6IpqgDQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * David Xu <davidxu@freebsd.org> wrote: > what error code should be returned from posix_spawn ? it seems it should > return error number directly (it does not use errno), > the specification said: > > "an error number shall be returned as the function return value to indica= te=20 > the error" > > so it unlikely will return -1 on failure. That's strange, isn't it? I can't think of any other C library routines that return error numbers directly. The OpenSolaris code seems to use errno. --=20 Ed Schouten <ed@80386.nl> WWW: http://g-rave.nl/ --Zu4V1sHRt6IpqgDQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkgG1IQACgkQ52SDGA2eCwUc4QCdFgZeU/ZkLfL1LalxsQ8QB2yt DuoAni0DkvScQFzQMhqDRBB3wNqNPYYD =UCAN -----END PGP SIGNATURE----- --Zu4V1sHRt6IpqgDQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804170450.m3H4o3h8057281>