Skip to content
Permalink
Browse files

fallocate: remove uClibc workaround to benefit macOS.

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 23, 2019
1 parent c0bb071 commit 336dff9adb323439dff21a668a2e5b6d2fe409f5
Showing with 0 additions and 6 deletions.
  1. +0 −5 scripts/genconfig.sh
  2. +0 −1 toys/other/fallocate.c
@@ -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
@@ -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

0 comments on commit 336dff9

Please sign in to comment.
You can’t perform that action at this time.