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

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Feb 17 18:58:28 UTC 2010


In message <20100218044931.S95007 at delplex.bde.org>, Bruce Evans writes:
>On Wed, 17 Feb 2010, Poul-Henning Kamp wrote:
>
>> Log:
>>  Mention EISDIR as a possible errno.
>
>It's not a possible error.

critter phk> cat > a.c
#include <stdio.h>
#include <err.h>

int
main(int argc, char **argv)
{
        if (unlink("/"))
                err(1, "Told you so");
        return (0);
}
critter phk> cc a.c
critter phk> ./a.out
a.out: Told you so: Is a directory
critter phk> 

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the svn-src-head mailing list