Sebastian Benoit wrote: > ok, but in other places we have closefrom(STDERR_FILENO + 1)
is that really more clear? it only makes sense if you know stderr is 2. if you sometimes forget which is 1 and which is 2, then the macro only makes it more confusing because now you have to decide what comes after stderr. is it stdin? or stdout? i support using the macros in place of constants for read() and write() calls. but i think doing addition on them looks a little weird.