ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

libibertyfix (694B)


      1 #!/bin/sh
      2 # we already have a libc, thanks...
      3 # getopt1 is left out because musl's impl behaves different as gnu expects.
      4 culprits=`cat << EOF
      5 getcwd
      6 strtoul
      7 clock
      8 strncasecmp
      9 fnmatch
     10 waitpid
     11 basename
     12 strchr
     13 snprintf
     14 rindex
     15 index
     16 memcpy
     17 mempcpy
     18 strcasecmp
     19 strsignal
     20 vsprintf
     21 strndup
     22 bcmp
     23 tmpnam
     24 bzero
     25 stpncpy
     26 memchr
     27 insque
     28 ffs
     29 vfork
     30 memmove
     31 stpcpy
     32 bsearch
     33 copysign
     34 strtod
     35 vsnprintf
     36 strncmp
     37 strtol
     38 bcopy
     39 rename
     40 strstr
     41 strerror
     42 putenv
     43 strdup
     44 memset
     45 memcmp
     46 vprintf
     47 calloc
     48 gettimeofday
     49 atexit
     50 getpagesize
     51 strverscmp
     52 random
     53 setenv
     54 strrchr
     55 asprintf
     56 msdos
     57 vasprintf
     58 vfprintf
     59 EOF
     60 `
     61 empty_file() {
     62         rm -f "$1"
     63         touch "$1"
     64 }
     65 
     66 dir="$1"
     67 for i in $culprits ; do empty_file "$dir"/$i.c ; done
     68