svn commit: r254869 - stable/8/lib/libc/gen

Jilles Tjoelker jilles at FreeBSD.org
Sun Aug 25 15:00:34 UTC 2013


Author: jilles
Date: Sun Aug 25 15:00:34 2013
New Revision: 254869
URL: http://svnweb.freebsd.org/changeset/base/254869

Log:
  MFC r250412: posix_spawn_file_actions_addopen(3): Correct error for bad file
  descriptor.
  
  As per POSIX.1-2008, posix_spawn_file_actions_add* return [EBADF] if a file
  descriptor is negative, not [EINVAL]. The bug was only in the manual page;
  the code is correct.

Modified:
  stable/8/lib/libc/gen/posix_spawn_file_actions_addopen.3
Directory Properties:
  stable/8/lib/libc/   (props changed)

Modified: stable/8/lib/libc/gen/posix_spawn_file_actions_addopen.3
==============================================================================
--- stable/8/lib/libc/gen/posix_spawn_file_actions_addopen.3	Sun Aug 25 14:58:44 2013	(r254868)
+++ stable/8/lib/libc/gen/posix_spawn_file_actions_addopen.3	Sun Aug 25 15:00:34 2013	(r254869)
@@ -34,7 +34,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd Mar 24, 2008
+.Dd May 9, 2013
 .Dt POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 3
 .Os
 .Sh NAME
@@ -145,7 +145,7 @@ otherwise, an error number is returned t
 These
 functions fail if:
 .Bl -tag -width Er
-.It Bq Er EINVAL
+.It Bq Er EBADF
 The value specified by
 .Fa fildes
 or


More information about the svn-src-all mailing list