bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Suggestion: new module link


From: Martin Lambers
Subject: Re: [PATCH] Suggestion: new module link
Date: Mon, 19 Jan 2009 21:23:40 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Eric!

On Mon, 19. Jan 2009, 05:57:14 -0700, Eric Blake wrote:
> > The minimal test is probably to
> >   - create one file,
> >   - use link() to create a new name for it,
> 
> Or print a message and return 77, to skip the test, if the current fs
> doesn't support links at this point (such as FAT).

I'd like to do that, but it it not easy to detect this condition. POSIX
does not specify an error code for it, Linux uses EPERM (which can also
occur under different circumstances), FreeBSD uses EOPNOTSUPP, and
Windows uses ERROR_INVALID_FUNCTION which I translated to EPERM to be
compatible with Linux.

Martin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]