If I have a file descriptor created with a function like 'open', would I
be write in thinking the only way to check that that descriptor is valid
would be to do something like:
if (-1 == fcntl(fd, F_GETFD)) {
// process error
}
Is that the only/quickest/most efficient way?
Cheers,
Terry Stebbens.