in reply to Re: using Linux getdents syscallin thread using Linux getdents syscall
For unsigned long, you should use L!, not L.
For unsigned short, you should use S!, not S.
Ref