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