Allow openat() from any file type (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 16 Sep 2015 17:36:15 +0000 (13:36 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 28 Sep 2015 19:14:00 +0000 (15:14 -0400)
commitef272858a8e528a8b5fbccc2590fcdf8ddd3f4c1
tree5e318a6a12d98ce39deda5de14035e0788325abd
parent401b77a495006744ee45f88d9b8366d6711ad658
Allow openat() from any file type (XCC)

The kernel doesn't restrict openat()'s "dirfd" to be a directory, which
is why I call it fromfd.  That may be a bad idea; we'll see.

Since the kernel doesn't stop it, there's little reason to have glibc
stop it too.  Perhaps programs that expect to fail will now succeed, but
that's not worth the extra fstat for every file-relative openat().

Rebuild glibc if you want.
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/openat.c