From: Jin, G. <gor...@in...> - 2004-10-13 11:26:13
|
Robert Williamson <mailto:ro...@us...> wrote on Wednesday, = October 13, 2004 12:17 AM: > Gordon, >=20 > I don't think it's documented because the call is not POSIX compliant. If it's not documented, then I doubt whether this check is necessary in = this test case. > However, if you run an 'ls -a' command, is the first entry in the > directory=20 > a "."? If so, why would it be different for getdents()? >=20 'ls -f' shows "." in first in most OS I see. But on some OS I see ".." = first. Another issue is getdents01.c calls i386 assembly by =20 rval =3D GETDENTS_ASM(); How about use: _syscall3(int, getdents, uint, fd, struct dirent *, dirp, uint, count); rval =3D getdents(fd, dirp, count); so that this test case will be clearer and not only restricted to x86? Thanks, Gordon |