G
Guest
Hi all,
I have to implement ls using system calls. The S_ISREG, S_ISDIR,
S_ISCHR etc. seem to be working fine. But S_ISLINK Is giving this
error:
/tmp/ccWJ1Lbs.o: In function `longls':
ls.c.text+0x354): undefined reference to `S_ISLINK'
collect2: ld returned 1 exit status
In man pages it is written that this macro is 'Not in POSIX.1-1996'.
So does that mean my system isn't POSIX.1-1996? If so, how can I know
whether the file is a link? Can anyone help me out?
I have to implement ls using system calls. The S_ISREG, S_ISDIR,
S_ISCHR etc. seem to be working fine. But S_ISLINK Is giving this
error:
/tmp/ccWJ1Lbs.o: In function `longls':
ls.c.text+0x354): undefined reference to `S_ISLINK'
collect2: ld returned 1 exit status
In man pages it is written that this macro is 'Not in POSIX.1-1996'.
So does that mean my system isn't POSIX.1-1996? If so, how can I know
whether the file is a link? Can anyone help me out?