diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-07 21:00:52 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-07 21:00:52 -0700 |
commit | a298565cfe0196b06c65c2061506f810064c7419 (patch) | |
tree | b57789883f50c3f6298ad664cc0e2d40c7abf2dc | |
parent | 592b631c192602869696f072878866d8f89a2316 (diff) |
fix fcntl_misc
-rw-r--r-- | system/include/libc/sys/_default_fcntl.h | 5 | ||||
-rw-r--r-- | tests/runner.py | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/system/include/libc/sys/_default_fcntl.h b/system/include/libc/sys/_default_fcntl.h index d44a858e..0bc4fcfa 100644 --- a/system/include/libc/sys/_default_fcntl.h +++ b/system/include/libc/sys/_default_fcntl.h @@ -204,6 +204,11 @@ extern int _open64 _PARAMS ((const char *, int, ...)); #endif #endif +/* XXX Emscripten */ +#define POSIX_FADV_DONTNEED 135 +int posix_fadvise(int fd, off_t offset, off_t len, int advice); +int posix_fallocate(int fd, off_t offset, off_t len); + #ifdef __cplusplus } #endif diff --git a/tests/runner.py b/tests/runner.py index dfcd7800..1aca1e03 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -2532,8 +2532,6 @@ if 'benchmark' not in str(sys.argv): self.do_test(src, expected, post_build=add_pre_run, extra_emscripten_args=['-H', 'libc/fcntl.h']) def test_fcntl_misc(self): - return self.skip('TODO: add fadvise.h') - def add_pre_run(filename): src = open(filename, 'r').read().replace( '// {{PRE_RUN_ADDITIONS}}', |