> I think that it is counter-intuitive to return EBADF when the > system calls (stat/lstat) do not take a file descriptor as > an argument. Maybe EFTYPE is better? I think EBADF is very counter-intuitive, but I didn't invent it. I just documented it. -- Lennart