aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fcntl_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add posix_fadvise(3).Elliott Hughes2014-09-111-2/+23
| | | | | | | (cherry-pick of 00008263782e484020420c606f7d145fe7d0a4d8.) Bug: 12449798 Change-Id: I07cbf3f670a0d1304b68148325a774f266b5c433
* Add splice, tee, and vmsplice.Elliott Hughes2014-06-241-0/+84
| | | | Change-Id: I5f43380b88d776a8bb607b47dbbc5db5a2fe6163
* Consistently use #if defined(__BIONIC__) in tests.Elliott Hughes2014-05-131-2/+2
| | | | | | | | I've also switched some tests to be positive rather than negative, because !defined is slightly harder to reason about and there are only two cases: bionic and glibc. Change-Id: I8d3ac40420ca5aead3e88c69cf293f267273c8ef
* AArch64: Fix flock64 for LP64.Serban Constantinescu2014-04-081-0/+16
| | | | | | | | | | On LP64 systems F_GETLK64, F_SETLK64 and F_SETLKW64 definitions should map onto the F_GETLK, F_SETLK and F_SETLKW definitions, respectively. LP64 also doesn't have a struct flock64. Change-Id: Ibdfed9645d9e946999acd6efa8b96ea6238ed5bf Signed-off-by: Marcus Oakland <marcus.oakland@arm.com> Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
* Implement some of the missing LFS64 support.Elliott Hughes2014-02-181-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This gives us: * <dirent.h> struct dirent64 readdir64, readdir64_r, alphasort64, scandir64 * <fcntl.h> creat64, openat64, open64. * <sys/stat.h> struct stat64 fstat64, fstatat64, lstat64, stat64. * <sys/statvfs.h> struct statvfs64 statvfs64, fstatvfs64. * <sys/vfs.h> struct statfs64 statfs64, fstatfs64. This also removes some of the incorrect #define hacks we've had in the past (for stat64, for example, which we promised to clean up way back in bug 8472078). Bug: 11865851 Bug: 8472078 Change-Id: Ia46443521918519f2dfa64d4621027dfd13ac566
* Add fallocate/fallocate64/posix_fallocate/posix_fallocate64.Elliott Hughes2014-02-031-0/+49
| | | | | | Bug: 5287571 Bug: 12612860 Change-Id: I4501b9c6cdf9a830336ce0b3afc4ea716b6a0f6f
* Clean up the 32-bit kernel support, fix LP64 fcntl declaration.Elliott Hughes2013-11-061-0/+36
In practice, thanks to all the registers the stubs don't actually change, but it's confusing to have an incorrect declaration. I suspect that fcntl remains broken for aarch64; it happens to work for x86_64 because the first vararg argument gets placed in the right register anyway, but I have no reason to believe that's true for aarch64. This patch adds a unit test, though, so we'll be able to tell when we get as far as running the unit tests. Change-Id: I58dd0054fe99d7d51d04c22781d8965dff1afbf3