standards/122051: Add posix_spawn(3)
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
Content-Type: text/plain; charset=us-ascii
* 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=
> 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
Ed Schouten <ed at 80386.nl>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (FreeBSD)
-----END PGP SIGNATURE-----
More information about the freebsd-standards