User interface for fsync and posix_fadvise (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 26 May 2015 15:45:08 +0000 (11:45 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 4 Jun 2015 13:40:33 +0000 (09:40 -0400)
commit3da88d8575a8d7bb615326a70d4965ed9f6a83c7
tree26fc428706ab2733d9cfc2a1260dd7088f85edb1
parent4b3df4391fb776a1da4d37a84b48f0ea5d74ae55
User interface for fsync and posix_fadvise (XCC)

Using fcntl() for fsync and fadvise.  Not sure why POSIX/glibc didn't do
this already.

Part of it might be that fcntl, despite the ... declaration, supposedly
always takes one va_arg of type int, and it's ignored for certain
commands (e.g. F_GETFD).  That's pretty silly, so I extended it to take
up to four args.

Rebuild glibc.
kern/include/ros/fs.h
kern/src/syscall.c
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/bits/fcntl.h
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/fcntl.c
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/fsync.c [new file with mode: 0644]
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/posix_fadvise.c [new file with mode: 0644]
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/posix_fadvise64.c [new file with mode: 0644]