diff options
author | Elliott Hughes <enh@google.com> | 2019-10-22 16:04:55 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-10-27 17:46:18 -0500 |
commit | c0bb071b4bc47c74e229ef84cdbaf374e1c2a581 (patch) | |
tree | 8455e6fc848a29a0ee61342e46bc6de76b430152 /lib/portability.h | |
parent | cb3d852ca08ec5fbd9f1d9e3f366d378b357655e (diff) | |
download | toybox-c0bb071b4bc47c74e229ef84cdbaf374e1c2a581.tar.gz |
macOS: implement posix_fallocate().
Diffstat (limited to 'lib/portability.h')
-rw-r--r-- | lib/portability.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/portability.h b/lib/portability.h index fb4e0383..896fba34 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -201,9 +201,10 @@ ssize_t xattr_lset(const char*, const char*, const void*, size_t, int); ssize_t xattr_fset(int, const char*, const void*, size_t, int); #endif -// macOS doesn't have mknodat, but we can fake it. +// macOS doesn't have these functions, but we can fake them. #ifdef __APPLE__ int mknodat(int, const char*, mode_t, dev_t); +int posix_fallocate(int, off_t, off_t); #endif // Android is missing some headers and functions |