standards/122051: Add posix_spawn(3)

Ed Schouten ed at 80386.nl
Thu Apr 17 04:50:03 UTC 2008


The following reply was made to PR standards/122051; it has been noted by GNATS.

From: Ed Schouten <ed at 80386.nl>
To: David Xu <davidxu at freebsd.org>
Cc: bug-followup at 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 at 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 at 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--


More information about the freebsd-standards mailing list