extending 1003.1 to include sym links

Andrew Hume andrew at alice.uucp
Tue Mar 20 13:55:17 AEST 1990


From: andrew at alice.uucp (Andrew Hume)

the posix 1003.1 standard has cleverly evaded naming of bits
in the mode field of the stat structure. it does this by
defining tests (like S_ISDIR(mode) rather than (mode&S_IFMT)==S_IFDIR).
the question is, how do people deal with sym links? I simply
added a S_ISLNK macro but would prefer to go with the flow
if there is one.

Volume-Number: Volume 19, Number 11



More information about the Comp.lang.c mailing list