Skip to content

Commit

Permalink
fallocate: remove uClibc workaround to benefit macOS.
Browse files Browse the repository at this point in the history
My understanding is that uClibc is dead, and the probe for fallocate
would need to be made more complicated to work for macOS (where we fake
posix_fallocate() in lib/portability.c).
  • Loading branch information
enh-google authored and landley committed Oct 28, 2019
1 parent c0bb071 commit 336dff9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions scripts/genconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ EOF
probesymbol TOYBOX_ICONV -c << EOF
#include "iconv.h"
EOF
probesymbol TOYBOX_FALLOCATE << EOF
#include <fcntl.h>
int main(int argc, char *argv[]) { return posix_fallocate(0,0,0); }
EOF

# Android and some other platforms miss utmpx
probesymbol TOYBOX_UTMPX -c << EOF
Expand Down
1 change: 0 additions & 1 deletion toys/other/fallocate.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ USE_FALLOCATE(NEWTOY(fallocate, ">1l#|o#", TOYFLAG_USR|TOYFLAG_BIN))
config FALLOCATE
bool "fallocate"
depends on TOYBOX_FALLOCATE
default y
help
usage: fallocate [-l size] [-o offset] file
Expand Down

0 comments on commit 336dff9

Please sign in to comment.