svn commit: r207190 - head/lib/libc/sys

Jilles Tjoelker jilles at FreeBSD.org
Sun Apr 25 13:55:53 UTC 2010


Author: jilles
Date: Sun Apr 25 13:55:52 2010
New Revision: 207190
URL: http://svn.freebsd.org/changeset/base/207190

Log:
  unlinkat(2): unlinkat(AT_REMOVEDIR) fails with ENOTEMPTY like rmdir()
  for non-empty directories.
  
  POSIX permits both ENOTEMPTY and EEXIST, but we use the clearer ENOTEMPTY,
  following BSD tradition.
  
  MFC after:	1 week

Modified:
  head/lib/libc/sys/unlink.2

Modified: head/lib/libc/sys/unlink.2
==============================================================================
--- head/lib/libc/sys/unlink.2	Sun Apr 25 13:29:59 2010	(r207189)
+++ head/lib/libc/sys/unlink.2	Sun Apr 25 13:55:52 2010	(r207190)
@@ -28,7 +28,7 @@
 .\"     @(#)unlink.2	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd April 10, 2008
+.Dd April 25, 2010
 .Dt UNLINK 2
 .Os
 .Sh NAME
@@ -167,7 +167,7 @@ argument does not specify an absolute pa
 argument is neither
 .Dv AT_FDCWD
 nor a valid file descriptor open for searching.
-.It Bq Er EEXIST
+.It Bq Er ENOTEMPTY
 The
 .Fa flag
 parameter has the


More information about the svn-src-head mailing list