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

Garrett Cooper yanefbsd at gmail.com
Wed Feb 17 20:31:12 UTC 2010


On Wed, Feb 17, 2010 at 1:11 AM, Poul-Henning Kamp <phk at freebsd.org> wrote:
> Author: phk
> Date: Wed Feb 17 09:11:21 2010
> New Revision: 203990
> URL: http://svn.freebsd.org/changeset/base/203990
>
> Log:
>  Mention EISDIR as a possible errno.
>
> Modified:
>  head/lib/libc/sys/unlink.2
>
> Modified: head/lib/libc/sys/unlink.2
> ==============================================================================
> --- head/lib/libc/sys/unlink.2  Wed Feb 17 09:09:12 2010        (r203989)
> +++ head/lib/libc/sys/unlink.2  Wed Feb 17 09:11:21 2010        (r203990)
> @@ -114,6 +114,8 @@ succeeds unless:
>  .Bl -tag -width Er
>  .It Bq Er ENOTDIR
>  A component of the path prefix is not a directory.
> +.It Bq Er EISDIR
> +The named file is a directory.
>  .It Bq Er ENAMETOOLONG
>  A component of a pathname exceeded 255 characters,
>  or an entire path name exceeded 1023 characters.

    This is wrong as per POSIX
(<http://www.opengroup.org/onlinepubs/000095399/functions/unlink.html>):

[EPERM]
The file named by path is a directory, and either the calling process
does not have appropriate privileges, or the implementation prohibits
using unlink() on directories.

    ... and the current manpage ...

     [EPERM]            The named file is a directory.

    The manpage needs to be modified to note that, or the offender
needs to be fixed.

Thanks,
-Garrett


More information about the svn-src-all mailing list