diff options
Diffstat (limited to 'test')
143 files changed, 110 insertions, 1416 deletions
diff --git a/test/API/Makefile b/test/API/Makefile deleted file mode 100644 index 2384e2a98..000000000 --- a/test/API/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# uClibc API tests -# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. - -top_builddir=../../ -top_srcdir=../../ -include ../Rules.mak --include Makefile.in -include ../Test.mak diff --git a/test/API/Makefile.in b/test/API/Makefile.in deleted file mode 100644 index 9e7cfdf57..000000000 --- a/test/API/Makefile.in +++ /dev/null @@ -1,26 +0,0 @@ -# uClibc API tests -# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. - -SHELL_TESTS := shell_tst-API -run: $(SHELL_TESTS) - -define get_codes - $(subst .,,$(sort $(suffix $(subst -,.,$(foreach x,$(1),$(if $(findstring -,$(x)),$(x),)))))) -endef -sym_files = $(patsubst %.syms,%,$(wildcard *.syms)) -stds = $(patsubst .%,%,$(sort $(suffix $(sym_files)))) -tests=$(foreach s,$(stds),$(patsubst %.$(s),%,$(sym_files))) -codes=$(call get_codes,$(tests)) - -shell_tst-API: uclibc_out=$(patsubst shell_%,%,$@).out -shell_tst-API: glibc_out=$(patsubst shell_%,%_glibc,$@).out -shell_tst-API: - @exec echo "DISABLED for now, needs improvement" -shell_tst-API_DISABLED: - $(showtest) - $(Q)top_builddir=$(top_builddir) AWK=$(AWK) \ - uclibc_out=$(uclibc_out) glibc_out=$(glibc_out) \ - $(SHELL) \ - $(patsubst shell_%,%.sh,$@) $(stds) "$(tests)" - $(do_showdiff) $(glibc_out) $(uclibc_out) ; \ - exec diff -u "$(glibc_out)" "$(uclibc_out)" diff --git a/test/API/aio.SUSv4.syms b/test/API/aio.SUSv4.syms deleted file mode 100644 index c7d13e09c..000000000 --- a/test/API/aio.SUSv4.syms +++ /dev/null @@ -1,8 +0,0 @@ -aio_cancel -aio_error -aio_fsync -aio_read -aio_return -aio_suspend -aio_write -lio_listio diff --git a/test/API/arpa_inet.SUSv4.syms b/test/API/arpa_inet.SUSv4.syms deleted file mode 100644 index e61cc9f76..000000000 --- a/test/API/arpa_inet.SUSv4.syms +++ /dev/null @@ -1,8 +0,0 @@ -htonl -htons -ntohl -ntohs -inet_addr -inet_ntoa -inet_ntop -inet_pton diff --git a/test/API/complex.SUSv4.syms b/test/API/complex.SUSv4.syms deleted file mode 100644 index ce7be69c8..000000000 --- a/test/API/complex.SUSv4.syms +++ /dev/null @@ -1,66 +0,0 @@ -cabs -cabsf -cabsl -cacos -cacosf -cacosh -cacoshf -cacoshl -cacosl -carg -cargf -cargl -casin -casinf -casinh -casinhf -casinhl -casinl -catan -catanf -catanh -catanhf -catanhl -catanl -ccos -ccosf -ccosh -ccoshf -ccoshl -ccosl -cexp -cexpf -cexpl -cimag -cimagf -cimagl -clog -clogf -clogl -conj -conjf -conjl -cpow -cpowf -cpowl -cproj -cprojf -cprojl -creal -crealf -creall -csin -csinf -csinh -csinhf -csinhl -csinl -csqrt -csqrtf -csqrtl -ctan -ctanf -ctanh -ctanhf -ctanhl -ctanl diff --git a/test/API/ctype-CX.SUSv4.syms b/test/API/ctype-CX.SUSv4.syms deleted file mode 100644 index 3963c49a5..000000000 --- a/test/API/ctype-CX.SUSv4.syms +++ /dev/null @@ -1,14 +0,0 @@ -isalnum_l -isalpha_l -isblank_l -iscntrl_l -isdigit_l -isgraph_l -islower_l -isprint_l -ispunct_l -isspace_l -isupper_l -isxdigit_l -tolower_l -toupper_l diff --git a/test/API/ctype-OBXSI.SUSv4.syms b/test/API/ctype-OBXSI.SUSv4.syms deleted file mode 100644 index 7a5ad9b14..000000000 --- a/test/API/ctype-OBXSI.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -isascii -toascii diff --git a/test/API/ctype.SUSv4.syms b/test/API/ctype.SUSv4.syms deleted file mode 100644 index fac123f32..000000000 --- a/test/API/ctype.SUSv4.syms +++ /dev/null @@ -1,14 +0,0 @@ -isalnum -isalpha -isblank -iscntrl -isdigit -isgraph -islower -isprint -ispunct -isspace -isupper -isxdigit -tolower -toupper diff --git a/test/API/dirent-XSI.SUSv4.syms b/test/API/dirent-XSI.SUSv4.syms deleted file mode 100644 index 979107095..000000000 --- a/test/API/dirent-XSI.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -seekdir -telldir diff --git a/test/API/dirent.SUSv4.syms b/test/API/dirent.SUSv4.syms deleted file mode 100644 index e749efb67..000000000 --- a/test/API/dirent.SUSv4.syms +++ /dev/null @@ -1,9 +0,0 @@ -alphasort -closedir -dirfd -fdopendir -opendir -readdir -readdir_r -rewinddir -scandir diff --git a/test/API/dlfcn.SUSv4.syms b/test/API/dlfcn.SUSv4.syms deleted file mode 100644 index 1e7500efc..000000000 --- a/test/API/dlfcn.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -dlclose -dlerror -dlopen -dlsym diff --git a/test/API/fcntl-ADV.SUSv4.syms b/test/API/fcntl-ADV.SUSv4.syms deleted file mode 100644 index 899236e5e..000000000 --- a/test/API/fcntl-ADV.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -posix_fadvise -posix_fallocate diff --git a/test/API/fcntl.SUSv4.syms b/test/API/fcntl.SUSv4.syms deleted file mode 100644 index 588085b1f..000000000 --- a/test/API/fcntl.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -creat -fcntl -open -openat diff --git a/test/API/fenv.SUSv4.syms b/test/API/fenv.SUSv4.syms deleted file mode 100644 index a9aebcbdd..000000000 --- a/test/API/fenv.SUSv4.syms +++ /dev/null @@ -1,11 +0,0 @@ -feclearexcept -fegetenv -fegetexceptflag -fegetround -feholdexcept -feraiseexcept -fesetenv -fesetexceptflag -fesetround -fetestexcept -feupdateenv diff --git a/test/API/ftw-OB.SUSv4.syms b/test/API/ftw-OB.SUSv4.syms deleted file mode 100644 index 87a440fc3..000000000 --- a/test/API/ftw-OB.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -ftw diff --git a/test/API/ftw.SUSv4.syms b/test/API/ftw.SUSv4.syms deleted file mode 100644 index 35000c9ce..000000000 --- a/test/API/ftw.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -nftw diff --git a/test/API/glob.SUSv4.syms b/test/API/glob.SUSv4.syms deleted file mode 100644 index c2e4234ab..000000000 --- a/test/API/glob.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -glob -globfree diff --git a/test/API/grp-XSI.SUSv4.syms b/test/API/grp-XSI.SUSv4.syms deleted file mode 100644 index e2b1c1dd2..000000000 --- a/test/API/grp-XSI.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -setgrent diff --git a/test/API/grp.SUSv4.syms b/test/API/grp.SUSv4.syms deleted file mode 100644 index 77a8c6ea9..000000000 --- a/test/API/grp.SUSv4.syms +++ /dev/null @@ -1,6 +0,0 @@ -endgrent -getgrent -getgrgid -getgrgid_r -getgrnam -getgrnam_r diff --git a/test/API/html2input.sh b/test/API/html2input.sh deleted file mode 100755 index 9ea68fec1..000000000 --- a/test/API/html2input.sh +++ /dev/null @@ -1,119 +0,0 @@ -#!/bin/sh -# vi: ft=awk : -# -# Script to extract functions and external variables off SUS html docs -# -# Copyright (C) 2010 Bernhard Reutner-Fischer -# Public Domain - -# Usage: -# wget http://www.opengroup.org/onlinepubs/9699919799/download/susv4.tgz -# tar xzf susv4.tgz -# SUS=susv4 html2input.sh -vFULL_DECLARATIONS=1 -# or -# SUS=susv4 html2input.sh -vFULL_DECLARATIONS=0 -vSTDNAME=SUSv4 -# -# Bug in time.h.html of SUSv4: -# It inconsistently reads "as variables" instead of "external variables" that -# is used everywhere except in time.h.html - -test "x$SUS" = "x" && SUS="susv4" -test "x$AWK" = "x" && AWK="AWK" -test "x$GREP" = "x" && GREP="GREP" -for h in \ - $($GREP -l "shall be declared as functions" $SUS/basedefs/*.h.html) \ - $($GREP -l "shall declare the following as variables" $SUS/basedefs/*.h.html) \ - $($GREP -l "shall declare the following external variables" $SUS/basedefs/*.h.html) -do -$AWK $* ' -function get_filename () { - if (NR == 1) { - x=FILENAME - sub(".*/", "", x) - split(x, f , ".") - fname=f[1] - if (STDNAME) - fname=fname "." STDNAME - fname=fname ".in" - printf "" > fname - } -} -function unhtml (l) { - sub("<tt>", "", l) - sub("</tt>", "", l) - sub("<sup>", "", l) - sub("</sup>", "", l) - sub("<a [^>]*>", "", l) - sub("</a>", "", l) - if (l ~ /<img[^>]*Option[[:space:]][[:space:]]*Start[^>]*>/) { - sub("<img[^>]*>", "[Option Start]", l) - } else if (l ~ /<img[^>]*Option[[:space:]][[:space:]]*End[^>]*>/) { - sub("<img[^>]*>", "[Option End]", l) - } - sub("<.*>", "", l) - return l -} -function get_funcname (l) { - if (FULL_DECLARATIONS) - return l - if (l !~ /;$/) - return l - cnt = split(l, foo, " ") - if (cnt >= 2 && foo[2] ~ /^\(\*/) { - cnt = split(l, foo, "(") - # good enough for signal() and sigset() - if (cnt >= 2) - l=foo[2] - } else { - sub("\\(.*", "", l) - } - gsub("[[\\]\\*]", "", l) - i = split(l, a, " ") - if (i) - l = a[i] - return l -} -function get_varname (l) { - if (FULL_DECLARATIONS) - return l - if (l !~ /;$/) - return l - gsub(",[[:space:]][[:space:]]*", ",", l) - sub(";$", "", l) - i = split(l, a, " ") - if (i) - l = a[i] - gsub("[[\\]\\*]", "", l) - gsub(",", "\n", l) - return l -} -BEGIN{data=0;l=""} -get_filename() -/shall be declared as functions/{data=1;isvar=0;next;} -/shall declare the following as variables/{data=1;isvar=1;next;} -/shall declare the following external variables/{data=1;isvar=1;next;} -/<pre>/{data++;next;} -/<\/pre>/{data=0;next;} -/.*/{ - if (data == 2 && fname) { - tmp = $0 - sub("^[[:space:]][[:space:]]*", " ", tmp) - l = l tmp - tmp = unhtml(l) - if (!tmp) - next - l = tmp - if (tmp !~ /;$/ && tmp !~ />$/ && - tmp !~ /Option Start\]$/ && tmp !~ /Option End\]$/) - next - if (!isvar) - l = get_funcname(l) - else - l = get_varname(l) - if (l) - print l >> fname - l="" - } -} -' $h -done diff --git a/test/API/iconv.SUSv4.syms b/test/API/iconv.SUSv4.syms deleted file mode 100644 index 059952064..000000000 --- a/test/API/iconv.SUSv4.syms +++ /dev/null @@ -1,3 +0,0 @@ -iconv -iconv_close -iconv_open diff --git a/test/API/inttypes.SUSv4.syms b/test/API/inttypes.SUSv4.syms deleted file mode 100644 index 6cbc3a259..000000000 --- a/test/API/inttypes.SUSv4.syms +++ /dev/null @@ -1,6 +0,0 @@ -imaxabs -imaxdiv -strtoimax -strtoumax -wcstoimax -wcstoumax diff --git a/test/API/libgen.SUSv4.syms b/test/API/libgen.SUSv4.syms deleted file mode 100644 index 3d4945afe..000000000 --- a/test/API/libgen.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -basename -dirname diff --git a/test/API/locale-CX.SUSv4.syms b/test/API/locale-CX.SUSv4.syms deleted file mode 100644 index 22ffcfc2a..000000000 --- a/test/API/locale-CX.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -duplocale -freelocale -newlocale -uselocale diff --git a/test/API/locale.SUSv4.syms b/test/API/locale.SUSv4.syms deleted file mode 100644 index 33f8cad06..000000000 --- a/test/API/locale.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -localeconv -setlocale diff --git a/test/API/math-XSI.SUSv4.syms b/test/API/math-XSI.SUSv4.syms deleted file mode 100644 index 4ce15d8f0..000000000 --- a/test/API/math-XSI.SUSv4.syms +++ /dev/null @@ -1,6 +0,0 @@ -j0 -j1 -jn -y0 -y1 -yn diff --git a/test/API/math.SUSv4.syms b/test/API/math.SUSv4.syms deleted file mode 100644 index 5343ac068..000000000 --- a/test/API/math.SUSv4.syms +++ /dev/null @@ -1,171 +0,0 @@ -acos -acosf -acosh -acoshf -acoshl -acosl -asin -asinf -asinh -asinhf -asinhl -asinl -atan -atan2 -atan2f -atan2l -atanf -atanh -atanhf -atanhl -atanl -cbrt -cbrtf -cbrtl -ceil -ceilf -ceill -copysign -copysignf -copysignl -cos -cosf -cosh -coshf -coshl -cosl -erf -erfc -erfcf -erfcl -erff -erfl -exp -exp2 -exp2f -exp2l -expf -expl -expm1 -expm1f -expm1l -fabs -fabsf -fabsl -fdim -fdimf -fdiml -floor -floorf -floorl -fma -fmaf -fmal -fmax -fmaxf -fmaxl -fmin -fminf -fminl -fmod -fmodf -fmodl -frexp -frexpf -frexpl -hypot -hypotf -hypotl -ilogb -ilogbf -ilogbl -ldexp -ldexpf -ldexpl -lgamma -lgammaf -lgammal -llrint -llrintf -llrintl -llround -llroundf -llroundl -log -log10 -log10f -log10l -log1p -log1pf -log1pl -log2 -log2f -log2l -logb -logbf -logbl -logf -logl -lrint -lrintf -lrintl -lround -lroundf -lroundl -modf -modff -modfl -nan -nanf -nanl -nearbyint -nearbyintf -nearbyintl -nextafter -nextafterf -nextafterl -nexttoward -nexttowardf -nexttowardl -pow -powf -powl -remainder -remainderf -remainderl -remquo -remquof -remquol -rint -rintf -rintl -round -roundf -roundl -scalbln -scalblnf -scalblnl -scalbn -scalbnf -scalbnl -sin -sinf -sinh -sinhf -sinhl -sinl -sqrt -sqrtf -sqrtl -tan -tanf -tanh -tanhf -tanhl -tanl -tgamma -tgammaf -tgammal -trunc -truncf -truncl diff --git a/test/API/monetary.SUSv4.syms b/test/API/monetary.SUSv4.syms deleted file mode 100644 index 256b53a78..000000000 --- a/test/API/monetary.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -strfmon -strfmon_l diff --git a/test/API/mqueue.SUSv4.syms b/test/API/mqueue.SUSv4.syms deleted file mode 100644 index 54c80a08d..000000000 --- a/test/API/mqueue.SUSv4.syms +++ /dev/null @@ -1,10 +0,0 @@ -mq_close -mq_getattr -mq_notify -mq_open -mq_receive -mq_send -mq_setattr -mq_timedreceive -mq_timedsend -mq_unlink diff --git a/test/API/ndbm.SUSv4.syms b/test/API/ndbm.SUSv4.syms deleted file mode 100644 index 70116bf49..000000000 --- a/test/API/ndbm.SUSv4.syms +++ /dev/null @@ -1,9 +0,0 @@ -dbm_clearerr -dbm_close -dbm_delete -dbm_error -dbm_fetch -dbm_firstkey -dbm_nextkey -dbm_open -dbm_store diff --git a/test/API/net_if.SUSv4.syms b/test/API/net_if.SUSv4.syms deleted file mode 100644 index 828a0cdb8..000000000 --- a/test/API/net_if.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -if_freenameindex -if_indextoname -if_nameindex -if_nametoindex diff --git a/test/API/netdb.SUSv4.syms b/test/API/netdb.SUSv4.syms deleted file mode 100644 index daf932b05..000000000 --- a/test/API/netdb.SUSv4.syms +++ /dev/null @@ -1,22 +0,0 @@ -endhostent -endnetent -endprotoent -endservent -freeaddrinfo -gai_strerror -getaddrinfo -gethostent -getnameinfo -getnetbyaddr -getnetbyname -getnetent -getprotobyname -getprotobynumber -getprotoent -getservbyname -getservbyport -getservent -sethostent -setnetent -setprotoent -setservent diff --git a/test/API/nl_types.SUSv4.syms b/test/API/nl_types.SUSv4.syms deleted file mode 100644 index ea0059931..000000000 --- a/test/API/nl_types.SUSv4.syms +++ /dev/null @@ -1,3 +0,0 @@ -catclose -catgets -catopen diff --git a/test/API/pthread-MC1.SUSv4.syms b/test/API/pthread-MC1.SUSv4.syms deleted file mode 100644 index 8a47a3910..000000000 --- a/test/API/pthread-MC1.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -pthread_mutexattr_getprotocol -pthread_mutexattr_setprotocol diff --git a/test/API/pthread-OBXSI.SUSv4.syms b/test/API/pthread-OBXSI.SUSv4.syms deleted file mode 100644 index 140b53d06..000000000 --- a/test/API/pthread-OBXSI.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -pthread_getconcurrency -pthread_setconcurrency diff --git a/test/API/pthread-RPP|TPP.SUSv4.syms b/test/API/pthread-RPP|TPP.SUSv4.syms deleted file mode 100644 index b116695f2..000000000 --- a/test/API/pthread-RPP|TPP.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -pthread_mutex_getprioceiling -pthread_mutex_setprioceiling -pthread_mutexattr_getprioceiling -pthread_mutexattr_setprioceiling diff --git a/test/API/pthread-TCT.SUSv4.syms b/test/API/pthread-TCT.SUSv4.syms deleted file mode 100644 index 7153787e2..000000000 --- a/test/API/pthread-TCT.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -pthread_getcpuclockid diff --git a/test/API/pthread-TPS.SUSv4.syms b/test/API/pthread-TPS.SUSv4.syms deleted file mode 100644 index 76fcd9560..000000000 --- a/test/API/pthread-TPS.SUSv4.syms +++ /dev/null @@ -1,9 +0,0 @@ -pthread_attr_getinheritsched -pthread_attr_getschedpolicy -pthread_attr_getscope -pthread_attr_setinheritsched -pthread_attr_setschedpolicy -pthread_attr_setscope -pthread_getschedparam -pthread_setschedparam -pthread_setschedprio diff --git a/test/API/pthread-TSATSS.SUSv4.syms b/test/API/pthread-TSATSS.SUSv4.syms deleted file mode 100644 index 5e03091cb..000000000 --- a/test/API/pthread-TSATSS.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -pthread_attr_getstack -pthread_attr_setstack diff --git a/test/API/pthread-TSH.SUSv4.syms b/test/API/pthread-TSH.SUSv4.syms deleted file mode 100644 index 717b232ac..000000000 --- a/test/API/pthread-TSH.SUSv4.syms +++ /dev/null @@ -1,8 +0,0 @@ -pthread_barrierattr_getpshared -pthread_barrierattr_setpshared -pthread_condattr_getpshared -pthread_condattr_setpshared -pthread_mutexattr_getpshared -pthread_mutexattr_setpshared -pthread_rwlockattr_getpshared -pthread_rwlockattr_setpshared diff --git a/test/API/pthread-TSS.SUSv4.syms b/test/API/pthread-TSS.SUSv4.syms deleted file mode 100644 index 1092f88d3..000000000 --- a/test/API/pthread-TSS.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -pthread_attr_getstacksize -pthread_attr_setstacksize diff --git a/test/API/pthread.SUSv4.syms b/test/API/pthread.SUSv4.syms deleted file mode 100644 index 524a6fec7..000000000 --- a/test/API/pthread.SUSv4.syms +++ /dev/null @@ -1,70 +0,0 @@ -pthread_atfork -pthread_attr_destroy -pthread_attr_getdetachstate -pthread_attr_getguardsize -pthread_attr_getschedparam -pthread_attr_init -pthread_attr_setdetachstate -pthread_attr_setguardsize -pthread_attr_setschedparam -pthread_barrier_destroy -pthread_barrier_init -pthread_barrier_wait -pthread_barrierattr_destroy -pthread_barrierattr_init -pthread_cancel -pthread_cleanup_pop -pthread_cleanup_push -pthread_cond_broadcast -pthread_cond_destroy -pthread_cond_init -pthread_cond_signal -pthread_cond_timedwait -pthread_cond_wait -pthread_condattr_destroy -pthread_condattr_getclock -pthread_condattr_init -pthread_condattr_setclock -pthread_create -pthread_detach -pthread_equal -pthread_exit -pthread_getspecific -pthread_join -pthread_key_create -pthread_key_delete -pthread_mutex_consistent -pthread_mutex_destroy -pthread_mutex_init -pthread_mutex_lock -pthread_mutex_timedlock -pthread_mutex_trylock -pthread_mutex_unlock -pthread_mutexattr_destroy -pthread_mutexattr_getrobust -pthread_mutexattr_gettype -pthread_mutexattr_init -pthread_mutexattr_setrobust -pthread_mutexattr_settype -pthread_once -pthread_rwlock_destroy -pthread_rwlock_init -pthread_rwlock_rdlock -pthread_rwlock_timedrdlock -pthread_rwlock_timedwrlock -pthread_rwlock_tryrdlock -pthread_rwlock_trywrlock -pthread_rwlock_unlock -pthread_rwlock_wrlock -pthread_rwlockattr_destroy -pthread_rwlockattr_init -pthread_self -pthread_setcancelstate -pthread_setcanceltype -pthread_setspecific -pthread_spin_destroy -pthread_spin_init -pthread_spin_lock -pthread_spin_trylock -pthread_spin_unlock -pthread_testcancel diff --git a/test/API/pwd-XSI.SUSv4.syms b/test/API/pwd-XSI.SUSv4.syms deleted file mode 100644 index 8b0350aa6..000000000 --- a/test/API/pwd-XSI.SUSv4.syms +++ /dev/null @@ -1,3 +0,0 @@ -endpwent -getpwent -setpwent diff --git a/test/API/pwd.SUSv4.syms b/test/API/pwd.SUSv4.syms deleted file mode 100644 index 45328f664..000000000 --- a/test/API/pwd.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -getpwnam -getpwnam_r -getpwuid -getpwuid_r diff --git a/test/API/regex.SUSv4.syms b/test/API/regex.SUSv4.syms deleted file mode 100644 index 94bf9fa67..000000000 --- a/test/API/regex.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -regcomp -regerror -regexec -regfree diff --git a/test/API/sched-PS.SUSv4.syms b/test/API/sched-PS.SUSv4.syms deleted file mode 100644 index 51ce62afa..000000000 --- a/test/API/sched-PS.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -sched_getparam -sched_getscheduler -sched_setparam -sched_setscheduler diff --git a/test/API/sched-PS|TPS.SUSv4.syms b/test/API/sched-PS|TPS.SUSv4.syms deleted file mode 100644 index 67fdb603b..000000000 --- a/test/API/sched-PS|TPS.SUSv4.syms +++ /dev/null @@ -1,3 +0,0 @@ -sched_get_priority_max -sched_get_priority_min -sched_rr_get_interval diff --git a/test/API/sched.SUSv4.syms b/test/API/sched.SUSv4.syms deleted file mode 100644 index 0b6b81db0..000000000 --- a/test/API/sched.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -sched_yield diff --git a/test/API/search.SUSv4.syms b/test/API/search.SUSv4.syms deleted file mode 100644 index 5bbf8451f..000000000 --- a/test/API/search.SUSv4.syms +++ /dev/null @@ -1,11 +0,0 @@ -hcreate -hdestroy -hsearch -insque -lfind -lsearch -remque -tdelete -tfind -tsearch -twalk diff --git a/test/API/semaphore.SUSv4.syms b/test/API/semaphore.SUSv4.syms deleted file mode 100644 index 1f291c540..000000000 --- a/test/API/semaphore.SUSv4.syms +++ /dev/null @@ -1,10 +0,0 @@ -sem_close -sem_destroy -sem_getvalue -sem_init -sem_open -sem_post -sem_timedwait -sem_trywait -sem_unlink -sem_wait diff --git a/test/API/separate.awk b/test/API/separate.awk deleted file mode 100644 index f7850c4f4..000000000 --- a/test/API/separate.awk +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/awk -f -# -# Usage: awk -f separate.awk foo.SUSv4.in -# Input: http://www.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.html#tag_13_77_03_06 -# Output: foo-$CODE.SUSv4.syms, foo.SUSv4.syms -# -# Copyright (C) 2010 Bernhard Reutner-Fischer -# Public domain - -function get_code(line) -{ - sub("\\]\\[.*", "", line) - sub("\\[", "", line) - sub(" ", "", line) - return line -} -BEGIN{ - code="";# feature set; XSI, OB XSI, CX, etc - -} -/\[Option Start\]/{ - code = get_code($0) - next -} -/\[Option End\]/{ code = ""; next; } -/.*/ { - if (!hdrname) { - split(FILENAME, fparts, ".") - hdrname = fparts[1] - stdname = fparts[2] - if (fparts[3] != "in") { - print "inputfilename may not be ok, exiting." - exit(1) - } - } - if (code) { - fname = hdrname "-" code "." stdname ".syms" - } else { - fname = hdrname "." stdname ".syms" - } - sub("^*", "", $0) - if (file[code]) { - print $0 >> fname - } else { - print $0 > fname - file[code] = 1 - } -} diff --git a/test/API/setjmp-CX.SUSv4.syms b/test/API/setjmp-CX.SUSv4.syms deleted file mode 100644 index fb0fbbe93..000000000 --- a/test/API/setjmp-CX.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -siglongjmp diff --git a/test/API/setjmp-OBXSI.SUSv4.syms b/test/API/setjmp-OBXSI.SUSv4.syms deleted file mode 100644 index 8f2d5b11e..000000000 --- a/test/API/setjmp-OBXSI.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -_longjmp diff --git a/test/API/setjmp.SUSv4.syms b/test/API/setjmp.SUSv4.syms deleted file mode 100644 index a51df77b6..000000000 --- a/test/API/setjmp.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -longjmp diff --git a/test/API/signal-CX.SUSv4.syms b/test/API/signal-CX.SUSv4.syms deleted file mode 100644 index 3d77c5acc..000000000 --- a/test/API/signal-CX.SUSv4.syms +++ /dev/null @@ -1,18 +0,0 @@ -kill -psiginfo -psignal -pthread_kill -pthread_sigmask -sigaction -sigaddset -sigdelset -sigemptyset -sigfillset -sigismember -sigpending -sigprocmask -sigqueue -sigsuspend -sigtimedwait -sigwait -sigwaitinfo diff --git a/test/API/signal-OBXSI.SUSv4.syms b/test/API/signal-OBXSI.SUSv4.syms deleted file mode 100644 index 2a6341d63..000000000 --- a/test/API/signal-OBXSI.SUSv4.syms +++ /dev/null @@ -1,6 +0,0 @@ -sighold -sigignore -siginterrupt -sigpause -sigrelse -void diff --git a/test/API/signal-XSI.SUSv4.syms b/test/API/signal-XSI.SUSv4.syms deleted file mode 100644 index f3df0c15e..000000000 --- a/test/API/signal-XSI.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -killpg -sigaltstack diff --git a/test/API/signal.SUSv4.syms b/test/API/signal.SUSv4.syms deleted file mode 100644 index 2119c27d1..000000000 --- a/test/API/signal.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -raise -void diff --git a/test/API/spawn-PS.SUSv4.syms b/test/API/spawn-PS.SUSv4.syms deleted file mode 100644 index f92ebbb2e..000000000 --- a/test/API/spawn-PS.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -posix_spawnattr_getschedparam -posix_spawnattr_getschedpolicy -posix_spawnattr_setschedparam -posix_spawnattr_setschedpolicy diff --git a/test/API/spawn.SUSv4.syms b/test/API/spawn.SUSv4.syms deleted file mode 100644 index 7481640c1..000000000 --- a/test/API/spawn.SUSv4.syms +++ /dev/null @@ -1,17 +0,0 @@ -posix_spawn -posix_spawn_file_actions_addclose -posix_spawn_file_actions_adddup2 -posix_spawn_file_actions_addopen -posix_spawn_file_actions_destroy -posix_spawn_file_actions_init -posix_spawnattr_destroy -posix_spawnattr_getflags -posix_spawnattr_getpgroup -posix_spawnattr_getsigdefault -posix_spawnattr_getsigmask -posix_spawnattr_init -posix_spawnattr_setflags -posix_spawnattr_setpgroup -posix_spawnattr_setsigdefault -posix_spawnattr_setsigmask -posix_spawnp diff --git a/test/API/stdio-CX.SUSv4.syms b/test/API/stdio-CX.SUSv4.syms deleted file mode 100644 index 98742c369..000000000 --- a/test/API/stdio-CX.SUSv4.syms +++ /dev/null @@ -1,20 +0,0 @@ -ctermid -fdopen -fileno -flockfile -fmemopen -fseeko -ftello -ftrylockfile -funlockfile -getc_unlocked -getchar_unlocked -getdelim -getline -open_memstream -pclose -popen -putc_unlocked -putchar_unlocked -renameat -vdprintf diff --git a/test/API/stdio-OB.SUSv4.syms b/test/API/stdio-OB.SUSv4.syms deleted file mode 100644 index f874a6c1c..000000000 --- a/test/API/stdio-OB.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -gets -tmpnam diff --git a/test/API/stdio-OBXSI.SUSv4.syms b/test/API/stdio-OBXSI.SUSv4.syms deleted file mode 100644 index 644049efe..000000000 --- a/test/API/stdio-OBXSI.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -tempnam diff --git a/test/API/stdio.SUSv4.syms b/test/API/stdio.SUSv4.syms deleted file mode 100644 index 08404437e..000000000 --- a/test/API/stdio.SUSv4.syms +++ /dev/null @@ -1,44 +0,0 @@ -clearerr -fclose -feof -ferror -fflush -fgetc -fgetpos -fgets -fopen -fprintf -fputc -fputs -fread -freopen -fscanf -fseek -fsetpos -ftell -fwrite -getc -getchar -perror -printf -putc -putchar -puts -remove -rename -rewind -scanf -setbuf -setvbuf -snprintf -sprintf -sscanf -tmpfile -ungetc -vfprintf -vfscanf -vprintf -vscanf -vsnprintf -vsprintf -vsscanf diff --git a/test/API/stdlib-ADV.SUSv4.syms b/test/API/stdlib-ADV.SUSv4.syms deleted file mode 100644 index bfb66851d..000000000 --- a/test/API/stdlib-ADV.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -posix_memalign diff --git a/test/API/stdlib-CX.SUSv4.syms b/test/API/stdlib-CX.SUSv4.syms deleted file mode 100644 index 10a7b1f67..000000000 --- a/test/API/stdlib-CX.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -mkdtemp -mkstemp -setenv -unsetenv diff --git a/test/API/stdlib-OBCX.SUSv4.syms b/test/API/stdlib-OBCX.SUSv4.syms deleted file mode 100644 index 1947cc782..000000000 --- a/test/API/stdlib-OBCX.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -rand_r diff --git a/test/API/stdlib-XSI.SUSv4.syms b/test/API/stdlib-XSI.SUSv4.syms deleted file mode 100644 index 6cb0f1bb7..000000000 --- a/test/API/stdlib-XSI.SUSv4.syms +++ /dev/null @@ -1,22 +0,0 @@ -a64l -drand48 -erand48 -grantpt -initstate -jrand48 -l64a -lcong48 -lrand48 -mrand48 -nrand48 -posix_openpt -ptsname -putenv -random -realpath -seed48 -setkey -setstate -srand48 -srandom -unlockpt diff --git a/test/API/stdlib.SUSv4.syms b/test/API/stdlib.SUSv4.syms deleted file mode 100644 index aefd96939..000000000 --- a/test/API/stdlib.SUSv4.syms +++ /dev/null @@ -1,37 +0,0 @@ -_Exit -abort -abs -atexit -atof -atoi -atol -atoll -bsearch -calloc -div -exit -free -getenv -getsubopt -labs -ldiv -llabs -lldiv -malloc -mblen -mbstowcs -mbtowc -qsort -rand -realloc -srand -strtod -strtof -strtol -strtold -strtoll -strtoul -strtoull -system -wcstombs -wctomb diff --git a/test/API/string-CX.SUSv4.syms b/test/API/string-CX.SUSv4.syms deleted file mode 100644 index 4f493d4e1..000000000 --- a/test/API/string-CX.SUSv4.syms +++ /dev/null @@ -1,11 +0,0 @@ -stpcpy -stpncpy -strcoll_l -strdup -strerror_l -strerror_r -strndup -strnlen -strsignal -strtok_r -strxfrm_l diff --git a/test/API/string-XSI.SUSv4.syms b/test/API/string-XSI.SUSv4.syms deleted file mode 100644 index e0ee4e32f..000000000 --- a/test/API/string-XSI.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -memccpy diff --git a/test/API/string.SUSv4.syms b/test/API/string.SUSv4.syms deleted file mode 100644 index 3c5e2b877..000000000 --- a/test/API/string.SUSv4.syms +++ /dev/null @@ -1,22 +0,0 @@ -memchr -memcmp -memcpy -memmove -memset -strcat -strchr -strcmp -strcoll -strcpy -strcspn -strerror -strlen -strncat -strncmp -strncpy -strpbrk -strrchr -strspn -strstr -strtok -strxfrm diff --git a/test/API/strings-XSI.SUSv4.syms b/test/API/strings-XSI.SUSv4.syms deleted file mode 100644 index c1173c1a9..000000000 --- a/test/API/strings-XSI.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -ffs diff --git a/test/API/strings.SUSv4.syms b/test/API/strings.SUSv4.syms deleted file mode 100644 index b4bc23372..000000000 --- a/test/API/strings.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -strcasecmp -strcasecmp_l -strncasecmp -strncasecmp_l diff --git a/test/API/stropts.SUSv4.syms b/test/API/stropts.SUSv4.syms deleted file mode 100644 index 796d3885b..000000000 --- a/test/API/stropts.SUSv4.syms +++ /dev/null @@ -1,8 +0,0 @@ -fattach -fdetach -getmsg -getpmsg -ioctl -isastream -putmsg -putpmsg diff --git a/test/API/sys_mman-ADV.SUSv4.syms b/test/API/sys_mman-ADV.SUSv4.syms deleted file mode 100644 index 4598c3b70..000000000 --- a/test/API/sys_mman-ADV.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -posix_madvise diff --git a/test/API/sys_mman-ML.SUSv4.syms b/test/API/sys_mman-ML.SUSv4.syms deleted file mode 100644 index de0f37d48..000000000 --- a/test/API/sys_mman-ML.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -mlockall -munlockall diff --git a/test/API/sys_mman-MLR.SUSv4.syms b/test/API/sys_mman-MLR.SUSv4.syms deleted file mode 100644 index aa8ea9ca1..000000000 --- a/test/API/sys_mman-MLR.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -mlock -munlock diff --git a/test/API/sys_mman-SHM.SUSv4.syms b/test/API/sys_mman-SHM.SUSv4.syms deleted file mode 100644 index 885119a8b..000000000 --- a/test/API/sys_mman-SHM.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -shm_open -shm_unlink diff --git a/test/API/sys_mman-TYM.SUSv4.syms b/test/API/sys_mman-TYM.SUSv4.syms deleted file mode 100644 index 68bc50e37..000000000 --- a/test/API/sys_mman-TYM.SUSv4.syms +++ /dev/null @@ -1,3 +0,0 @@ -posix_mem_offset -posix_typed_mem_get_info -posix_typed_mem_open diff --git a/test/API/sys_mman-XSI|SIO.SUSv4.syms b/test/API/sys_mman-XSI|SIO.SUSv4.syms deleted file mode 100644 index 3a2f8c300..000000000 --- a/test/API/sys_mman-XSI|SIO.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -msync diff --git a/test/API/sys_mman.SUSv4.syms b/test/API/sys_mman.SUSv4.syms deleted file mode 100644 index 46a46e7d7..000000000 --- a/test/API/sys_mman.SUSv4.syms +++ /dev/null @@ -1,3 +0,0 @@ -mmap -mprotect -munmap diff --git a/test/API/sys_msg.SUSv4.syms b/test/API/sys_msg.SUSv4.syms deleted file mode 100644 index 95c2ec18c..000000000 --- a/test/API/sys_msg.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -msgctl -msgget -msgrcv -msgsnd diff --git a/test/API/sys_resource.SUSv4.syms b/test/API/sys_resource.SUSv4.syms deleted file mode 100644 index 72d3e1e24..000000000 --- a/test/API/sys_resource.SUSv4.syms +++ /dev/null @@ -1,5 +0,0 @@ -getpriority -getrlimit -getrusage -setpriority -setrlimit diff --git a/test/API/sys_select.SUSv4.syms b/test/API/sys_select.SUSv4.syms deleted file mode 100644 index 40cf6d869..000000000 --- a/test/API/sys_select.SUSv4.syms +++ /dev/null @@ -1,6 +0,0 @@ -FD_CLR -FD_ISSET -FD_SET -FD_ZERO -pselect -select diff --git a/test/API/sys_sem.SUSv4.syms b/test/API/sys_sem.SUSv4.syms deleted file mode 100644 index 173f1d99b..000000000 --- a/test/API/sys_sem.SUSv4.syms +++ /dev/null @@ -1,3 +0,0 @@ -semctl -semget -semop diff --git a/test/API/sys_shm.SUSv4.syms b/test/API/sys_shm.SUSv4.syms deleted file mode 100644 index f284402e8..000000000 --- a/test/API/sys_shm.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -shmat -shmctl -shmdt -shmget diff --git a/test/API/sys_socket.SUSv4.syms b/test/API/sys_socket.SUSv4.syms deleted file mode 100644 index cc51c9e56..000000000 --- a/test/API/sys_socket.SUSv4.syms +++ /dev/null @@ -1,18 +0,0 @@ -accept -bind -connect -getpeername -getsockname -getsockopt -listen -recv -recvfrom -recvmsg -send -sendmsg -sendto -setsockopt -shutdown -sockatmark -socket -socketpair diff --git a/test/API/sys_stat-XSI.SUSv4.syms b/test/API/sys_stat-XSI.SUSv4.syms deleted file mode 100644 index 4800d0098..000000000 --- a/test/API/sys_stat-XSI.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -mknod -mknodat diff --git a/test/API/sys_stat.SUSv4.syms b/test/API/sys_stat.SUSv4.syms deleted file mode 100644 index 3fe729fc5..000000000 --- a/test/API/sys_stat.SUSv4.syms +++ /dev/null @@ -1,14 +0,0 @@ -chmod -fchmod -fchmodat -fstat -fstatat -futimens -lstat -mkdir -mkdirat -mkfifo -mkfifoat -stat -umask -utimensat diff --git a/test/API/sys_statvfs.SUSv4.syms b/test/API/sys_statvfs.SUSv4.syms deleted file mode 100644 index c3fd5f4dc..000000000 --- a/test/API/sys_statvfs.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -fstatvfs -statvfs diff --git a/test/API/sys_time-OB.SUSv4.syms b/test/API/sys_time-OB.SUSv4.syms deleted file mode 100644 index caf1f3f3d..000000000 --- a/test/API/sys_time-OB.SUSv4.syms +++ /dev/null @@ -1,3 +0,0 @@ -getitimer -gettimeofday -setitimer diff --git a/test/API/sys_time.SUSv4.syms b/test/API/sys_time.SUSv4.syms deleted file mode 100644 index 526a4049e..000000000 --- a/test/API/sys_time.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -select -utimes diff --git a/test/API/sys_uio.SUSv4.syms b/test/API/sys_uio.SUSv4.syms deleted file mode 100644 index 31caee5c3..000000000 --- a/test/API/sys_uio.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -readv -writev diff --git a/test/API/sys_wait.SUSv4.syms b/test/API/sys_wait.SUSv4.syms deleted file mode 100644 index 753c3806d..000000000 --- a/test/API/sys_wait.SUSv4.syms +++ /dev/null @@ -1,3 +0,0 @@ -wait -waitid -waitpid diff --git a/test/API/syslog.SUSv4.syms b/test/API/syslog.SUSv4.syms deleted file mode 100644 index a44f514cf..000000000 --- a/test/API/syslog.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -closelog -openlog -setlogmask -syslog diff --git a/test/API/termios.SUSv4.syms b/test/API/termios.SUSv4.syms deleted file mode 100644 index 43ac8366d..000000000 --- a/test/API/termios.SUSv4.syms +++ /dev/null @@ -1,11 +0,0 @@ -cfgetispeed -cfgetospeed -cfsetispeed -cfsetospeed -tcdrain -tcflow -tcflush -tcgetattr -tcgetsid -tcsendbreak -tcsetattr diff --git a/test/API/time-CPT.SUSv4.syms b/test/API/time-CPT.SUSv4.syms deleted file mode 100644 index 278952e5b..000000000 --- a/test/API/time-CPT.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -clock_getcpuclockid diff --git a/test/API/time-CX.SUSv4.syms b/test/API/time-CX.SUSv4.syms deleted file mode 100644 index d2cbb7757..000000000 --- a/test/API/time-CX.SUSv4.syms +++ /dev/null @@ -1,15 +0,0 @@ -clock_getres -clock_gettime -clock_nanosleep -clock_settime -gmtime_r -localtime_r -nanosleep -strftime_l -timer_create -timer_delete -timer_getoverrun -timer_gettime -timer_settime -tzset -tzname diff --git a/test/API/time-OB.SUSv4.syms b/test/API/time-OB.SUSv4.syms deleted file mode 100644 index ce1dad050..000000000 --- a/test/API/time-OB.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -asctime -ctime diff --git a/test/API/time-OBCX.SUSv4.syms b/test/API/time-OBCX.SUSv4.syms deleted file mode 100644 index b46018c57..000000000 --- a/test/API/time-OBCX.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -asctime_r -ctime_r diff --git a/test/API/time-XSI.SUSv4.syms b/test/API/time-XSI.SUSv4.syms deleted file mode 100644 index 9bf1f6226..000000000 --- a/test/API/time-XSI.SUSv4.syms +++ /dev/null @@ -1,4 +0,0 @@ -getdate -strptime -daylight -timezone diff --git a/test/API/time.SUSv4.syms b/test/API/time.SUSv4.syms deleted file mode 100644 index 788e19eed..000000000 --- a/test/API/time.SUSv4.syms +++ /dev/null @@ -1,7 +0,0 @@ -clock -difftime -gmtime -localtime -mktime -strftime -time diff --git a/test/API/trace-TEF.SUSv4.syms b/test/API/trace-TEF.SUSv4.syms deleted file mode 100644 index bc9f47bf4..000000000 --- a/test/API/trace-TEF.SUSv4.syms +++ /dev/null @@ -1,8 +0,0 @@ -posix_trace_eventset_add -posix_trace_eventset_del -posix_trace_eventset_empty -posix_trace_eventset_fill -posix_trace_eventset_ismember -posix_trace_get_filter -posix_trace_set_filter -posix_trace_trid_eventid_open diff --git a/test/API/trace-TRI.SUSv4.syms b/test/API/trace-TRI.SUSv4.syms deleted file mode 100644 index ea5723dc5..000000000 --- a/test/API/trace-TRI.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -posix_trace_attr_getinherited -posix_trace_attr_setinherited diff --git a/test/API/trace-TRL.SUSv4.syms b/test/API/trace-TRL.SUSv4.syms deleted file mode 100644 index 763c7f429..000000000 --- a/test/API/trace-TRL.SUSv4.syms +++ /dev/null @@ -1,9 +0,0 @@ -posix_trace_attr_getlogfullpolicy -posix_trace_attr_getlogsize -posix_trace_attr_setlogfullpolicy -posix_trace_attr_setlogsize -posix_trace_close -posix_trace_create_withlog -posix_trace_flush -posix_trace_open -posix_trace_rewind diff --git a/test/API/trace.SUSv4.syms b/test/API/trace.SUSv4.syms deleted file mode 100644 index c12b882e6..000000000 --- a/test/API/trace.SUSv4.syms +++ /dev/null @@ -1,31 +0,0 @@ -posix_trace_attr_destroy -posix_trace_attr_getclockres -posix_trace_attr_getcreatetime -posix_trace_attr_getgenversion -posix_trace_attr_getmaxdatasize -posix_trace_attr_getmaxsystemeventsize -posix_trace_attr_getmaxusereventsize -posix_trace_attr_getname -posix_trace_attr_getstreamfullpolicy -posix_trace_attr_getstreamsize -posix_trace_attr_init -posix_trace_attr_setmaxdatasize -posix_trace_attr_setname -posix_trace_attr_setstreamfullpolicy -posix_trace_attr_setstreamsize -posix_trace_clear -posix_trace_create -posix_trace_event -posix_trace_eventid_equal -posix_trace_eventid_get_name -posix_trace_eventid_open -posix_trace_eventtypelist_getnext_id -posix_trace_eventtypelist_rewind -posix_trace_get_attr -posix_trace_get_status -posix_trace_getnext_event -posix_trace_shutdown -posix_trace_start -posix_trace_stop -posix_trace_timedgetnext_event -posix_trace_trygetnext_event diff --git a/test/API/tst-API.sh b/test/API/tst-API.sh deleted file mode 100755 index 3d0302c8e..000000000 --- a/test/API/tst-API.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -std="$1" -shift -cod="$*" - -result=0 - -for l in $top_builddir/lib/lib*-*.so; do \ - readelf -D -W -s $l | \ - $AWK ' -/^[[:space:]]*[[:digit:]]/ { if ($8 != "UND") print $NF; } -'; \ - done | sort | uniq > $uclibc_out -for code in $cod; do cat $code.$std.syms; done | sort | uniq > $glibc_out -result=0 -exit $result diff --git a/test/API/unistd-CX.SUSv4.syms b/test/API/unistd-CX.SUSv4.syms deleted file mode 100644 index 4e183e444..000000000 --- a/test/API/unistd-CX.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -ctermid diff --git a/test/API/unistd-FSC.SUSv4.syms b/test/API/unistd-FSC.SUSv4.syms deleted file mode 100644 index e5c2ab2b2..000000000 --- a/test/API/unistd-FSC.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -fsync diff --git a/test/API/unistd-OBXSI.SUSv4.syms b/test/API/unistd-OBXSI.SUSv4.syms deleted file mode 100644 index 4e6787f6a..000000000 --- a/test/API/unistd-OBXSI.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -setpgrp diff --git a/test/API/unistd-SIO.SUSv4.syms b/test/API/unistd-SIO.SUSv4.syms deleted file mode 100644 index 2ed33b396..000000000 --- a/test/API/unistd-SIO.SUSv4.syms +++ /dev/null @@ -1 +0,0 @@ -fdatasync diff --git a/test/API/unistd-XSI.SUSv4.syms b/test/API/unistd-XSI.SUSv4.syms deleted file mode 100644 index db5417673..000000000 --- a/test/API/unistd-XSI.SUSv4.syms +++ /dev/null @@ -1,9 +0,0 @@ -crypt -encrypt -gethostid -lockf -nice -setregid -setreuid -swab -sync diff --git a/test/API/unistd.SUSv4.syms b/test/API/unistd.SUSv4.syms deleted file mode 100644 index fec630db8..000000000 --- a/test/API/unistd.SUSv4.syms +++ /dev/null @@ -1,74 +0,0 @@ -access -alarm -chdir -chown -close -confstr -dup -dup2 -_exit -execl -execle -execlp -execv -execve -execvp -faccessat -fchdir -fchown -fchownat -fexecve -fork -fpathconf -ftruncate -getcwd -getegid -geteuid -getgid -getgroups -gethostname -getlogin -getlogin_r -getopt -getpgid -getpgrp -getpid -getppid -getsid -getuid -isatty -lchown -link -linkat -lseek -pathconf -pause -pipe -pread -pwrite -read -readlink -readlinkat -rmdir -setegid -seteuid -setgid -setpgid -setsid -setuid -sleep -symlink -symlinkat -sysconf -tcgetpgrp -tcsetpgrp -truncate -ttyname -ttyname_r -unlink -unlinkat -write -optarg -opterr -optind -optopt diff --git a/test/API/utmpx.SUSv4.syms b/test/API/utmpx.SUSv4.syms deleted file mode 100644 index 1fd294aac..000000000 --- a/test/API/utmpx.SUSv4.syms +++ /dev/null @@ -1,6 +0,0 @@ -endutxent -getutxent -getutxid -getutxline -pututxline -setutxent diff --git a/test/API/wchar-CX.SUSv4.syms b/test/API/wchar-CX.SUSv4.syms deleted file mode 100644 index 080493849..000000000 --- a/test/API/wchar-CX.SUSv4.syms +++ /dev/null @@ -1,13 +0,0 @@ -mbsnrtowcs -open_wmemstream -wcpcpy -wcpncpy -wcscasecmp -wcscasecmp_l -wcscoll_l -wcsdup -wcsncasecmp -wcsncasecmp_l -wcsnlen -wcsnrtombs -wcsxfrm_l diff --git a/test/API/wchar-OBXSI.SUSv4.syms b/test/API/wchar-OBXSI.SUSv4.syms deleted file mode 100644 index bc76ee66a..000000000 --- a/test/API/wchar-OBXSI.SUSv4.syms +++ /dev/null @@ -1,15 +0,0 @@ -iswalnum -iswalpha -iswcntrl -iswctype -iswdigit -iswgraph -iswlower -iswprint -iswpunct -iswspace -iswupper -iswxdigit -towlower -towupper -wctype diff --git a/test/API/wchar-XSI.SUSv4.syms b/test/API/wchar-XSI.SUSv4.syms deleted file mode 100644 index 834731c9e..000000000 --- a/test/API/wchar-XSI.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -wcswidth -wcwidth diff --git a/test/API/wchar.SUSv4.syms b/test/API/wchar.SUSv4.syms deleted file mode 100644 index d58f600b6..000000000 --- a/test/API/wchar.SUSv4.syms +++ /dev/null @@ -1,59 +0,0 @@ -btowc -fgetwc -fgetws -fputwc -fputws -fwide -fwprintf -fwscanf -getwc -getwchar -mbrlen -mbrtowc -mbsinit -mbsrtowcs -putwc -putwchar -swprintf -swscanf -ungetwc -vfwprintf -vfwscanf -vswprintf -vswscanf -vwprintf -vwscanf -wcrtomb -wcscat -wcschr -wcscmp -wcscoll -wcscpy -wcscspn -wcsftime -wcslen -wcsncat -wcsncmp -wcsncpy -wcspbrk -wcsrchr -wcsrtombs -wcsspn -wcsstr -wcstod -wcstof -wcstok -wcstol -wcstold -wcstoll -wcstoul -wcstoull -wcsxfrm -wctob -wmemchr -wmemcmp -wmemcpy -wmemmove -wmemset -wprintf -wscanf diff --git a/test/API/wctype-CX.SUSv4.syms b/test/API/wctype-CX.SUSv4.syms deleted file mode 100644 index 81c0331b9..000000000 --- a/test/API/wctype-CX.SUSv4.syms +++ /dev/null @@ -1,18 +0,0 @@ -iswalnum_l -iswalpha_l -iswblank_l -iswcntrl_l -iswctype_l -iswdigit_l -iswgraph_l -iswlower_l -iswprint_l -iswpunct_l -iswspace_l -iswupper_l -iswxdigit_l -towctrans_l -towlower_l -towupper_l -wctrans_l -wctype_l diff --git a/test/API/wctype.SUSv4.syms b/test/API/wctype.SUSv4.syms deleted file mode 100644 index fddc3955a..000000000 --- a/test/API/wctype.SUSv4.syms +++ /dev/null @@ -1,18 +0,0 @@ -iswalnum -iswalpha -iswblank -iswcntrl -iswctype -iswdigit -iswgraph -iswlower -iswprint -iswpunct -iswspace -iswupper -iswxdigit -towctrans -towlower -towupper -wctrans -wctype diff --git a/test/API/wordexp.SUSv4.syms b/test/API/wordexp.SUSv4.syms deleted file mode 100644 index 3681b3c4b..000000000 --- a/test/API/wordexp.SUSv4.syms +++ /dev/null @@ -1,2 +0,0 @@ -wordexp -wordfree diff --git a/test/Makefile b/test/Makefile index 787c530d4..e4f64181e 100644 --- a/test/Makefile +++ b/test/Makefile @@ -18,7 +18,7 @@ endif ifneq ($(findstring -static,$(LDFLAGS)),) DIRS := $(filter-out dlopen,$(DIRS)) endif -ifneq ($(UCLIBC_HAS_THREADS),y) +ifneq ($(UCLIBC_HAS_THREADS)$(ARCH_USE_MMU),yy) DIRS := $(filter-out pthread,$(DIRS)) endif ifneq ($(UCLIBC_HAS_FULL_RPC),y) diff --git a/test/Rules.mak b/test/Rules.mak index 805a3498d..c5d1d636c 100644 --- a/test/Rules.mak +++ b/test/Rules.mak @@ -115,6 +115,12 @@ ifeq ($(LDSO_GNU_HASH_SUPPORT),y) LDFLAGS += $(CFLAG_-Wl--hash-style=gnu) endif +ifneq ($(strip $(UCLIBC_EXTRA_CFLAGS)),"") +CFLAGS += $(call qstrip,$(UCLIBC_EXTRA_CFLAGS)) +endif +ifneq ($(strip $(UCLIBC_EXTRA_LDFLAGS)),"") +LDFLAGS += $(call qstrip,$(UCLIBC_EXTRA_LDFLAGS)) +endif ifneq ($(findstring -s,$(MAKEFLAGS)),) DISP := sil diff --git a/test/assert/Makefile.in b/test/assert/Makefile.in index 8e3514f4c..3f4fb4dfe 100644 --- a/test/assert/Makefile.in +++ b/test/assert/Makefile.in @@ -3,3 +3,4 @@ RET_assert := 134 WRAPPER_assert := trap ":" ABRT ; +CFLAGS_assert := -fPIC diff --git a/test/ctype/Makefile.in b/test/ctype/Makefile.in index ee10d592e..041e85176 100644 --- a/test/ctype/Makefile.in +++ b/test/ctype/Makefile.in @@ -2,3 +2,4 @@ # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. TESTS := ctype +CFLAGS_ctype = -fPIC diff --git a/test/inet/Makefile.in b/test/inet/Makefile.in index 2c84729bf..38aec616b 100644 --- a/test/inet/Makefile.in +++ b/test/inet/Makefile.in @@ -15,3 +15,6 @@ TESTS_DISABLED += tst-res else LDFLAGS_tst-res_glibc := -lresolv # assume it's glibc or somebody with that lib endif + +CFLAGS_bug-if1 = -fPIC +CFLAGS_tst-sock-nonblock = -fPIC diff --git a/test/locale-mbwc/Makefile.in b/test/locale-mbwc/Makefile.in index 7c0e9d529..e70a61393 100644 --- a/test/locale-mbwc/Makefile.in +++ b/test/locale-mbwc/Makefile.in @@ -23,5 +23,5 @@ TESTS_DISABLED := tst_strfmon DODIFF_rint := 1 -EXTRA_CFLAGS := -D__USE_GNU -fno-builtin +EXTRA_CFLAGS := -D__USE_GNU -fno-builtin -fPIC diff --git a/test/malloc/Makefile.in b/test/malloc/Makefile.in index 669ef6adf..f1726dd08 100644 --- a/test/malloc/Makefile.in +++ b/test/malloc/Makefile.in @@ -10,3 +10,5 @@ endif ifneq ($(UCLIBC_HAS_OBSTACK),y) TESTS_DISABLED += tst-obstack endif + +CFLAGS_tst-mallocfork = -fPIC diff --git a/test/misc/Makefile.in b/test/misc/Makefile.in index 1e0da6f43..345889e0f 100644 --- a/test/misc/Makefile.in +++ b/test/misc/Makefile.in @@ -2,6 +2,11 @@ # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. TESTS_DISABLED := outb tst-fnmatch bug-glob1 tst-gnuglob + +ifeq ($(TARGET_avr32),y) +TESTS_DISABLED += tst-inotify +endif + ifeq ($(UCLIBC_HAS_LFS),) TESTS_DISABLED += dirent64 TESTS_DISABLED += tst-statfs # assuming host has LFS on @@ -27,3 +32,8 @@ OPTS_tst-fnmatch := < tst-fnmatch.input MNTENTS = $(shell mount | while read dev on mp rest; do echo $$mp; done) OPTS_tst-statfs := $(MNTENTS) OPTS_tst-statvfs := $(MNTENTS) + +CFLAGS_bug-glob2 = -fPIC +CFLAGS_opendir-tst1 = -fPIC +CFLAGS_tst-inotify = -fPIC +CFLAGS_tst-utmp = -fPIC diff --git a/test/nptl/Makefile.in b/test/nptl/Makefile.in index 42a4654d6..700a464cf 100644 --- a/test/nptl/Makefile.in +++ b/test/nptl/Makefile.in @@ -38,11 +38,10 @@ TESTS := tst-align tst-align2 tst-atfork1 tst-attr1 tst-attr2 tst-attr3 \ tst-cancelx12 tst-cancelx13 tst-cancelx14 tst-cancelx15 tst-cancelx16 \ tst-cancelx18 tst-cancelx20 tst-cancelx21 tst-cleanupx0 tst-cleanupx1 \ tst-cleanupx2 tst-cleanupx3 tst-cleanupx4 tst-cond22 tst-cond23 \ - tst-dlsym1 tst-getpid1 tst-getpid2 tst-getpid3 tst-join6 tst-tsd6 \ + tst-getpid1 tst-getpid2 tst-getpid3 tst-join6 tst-tsd6 \ tst-oddstacklimit tst-oncex3 tst-oncex4 tst-rwlock2a \ - tst-basic7 tst-fini1 tst-signal7 \ - tst-unload tst-vfork1x tst-vfork2x tst-sem10 tst-sem11 tst-sem12 \ - tst-typesizes tst-initializers1-c89 tst-initializers1-c99 \ + tst-basic7 tst-signal7 tst-vfork1x tst-vfork2x tst-sem10 tst-sem11 \ + tst-sem12 tst-typesizes tst-initializers1-c89 tst-initializers1-c99 \ tst-initializers1-gnu89 tst-initializers1-gnu99 # @@ -68,7 +67,8 @@ GLIBC_TESTS_DISABLED := tst-eintr1_glibc tst-eintr2_glibc \ ifeq ($(HAVE_SHARED),) -TESTS_DISABLED += tst-tls3 tst-tls4 tst-tls5 +TESTS_DISABLED += tst-tls3 tst-tls4 tst-tls5 tst-dlsym1 tst-fini1 \ + tst-unload else GLIBC_TESTS_DISABLED += tst-tls3_glibc tst-tls4_glibc tst-tls5_glibc endif @@ -109,7 +109,7 @@ LDFLAGS_tst-rwlock14 = -lrt LDFLAGS_tst-fini1 = -Wl,-rpath=./ tst-fini1mod.so LDFLAGS_tst-fini1mod.so = -Wl,-soname=tst-fini1mod.so LDFLAGS_tst-unload = -ldl -LDFLAGS_tst-cancel5 := -lpthread -lpthread_nonshared +LDFLAGS_tst-cancel5 := -lpthread LDFLAGS_tst-cancel23 := -lc -lpthread LDFLAGS_tst-vfork1x := -lc -lpthread LDFLAGS_tst-vfork2x := -lc -lpthread diff --git a/test/nptl/tst-cancel7.c b/test/nptl/tst-cancel7.c index bb9f739d3..616c0a8ce 100644 --- a/test/nptl/tst-cancel7.c +++ b/test/nptl/tst-cancel7.c @@ -196,16 +196,13 @@ do_cleanup (void) #define OPT_COMMAND 10000 #define OPT_PIDFILE 10001 #define CMDLINE_OPTIONS \ - "c:p:" -/* { "command", required_argument, NULL, OPT_COMMAND }, \ { "pidfile", required_argument, NULL, OPT_PIDFILE }, -*/ #define CMDLINE_PROCESS \ - case 'c': \ + case OPT_COMMAND: \ command = optarg; \ break; \ - case 'p': \ + case OPT_PIDFILE: \ pidfile = optarg; \ break; // #define CLEANUP_HANDLER do_cleanup () diff --git a/test/nptl/tst-mqueue7.c b/test/nptl/tst-mqueue7.c index 12c6d9a37..d3ea2b7c8 100644 --- a/test/nptl/tst-mqueue7.c +++ b/test/nptl/tst-mqueue7.c @@ -32,12 +32,9 @@ static mqd_t after_exec = (mqd_t) -1; #define CMDLINE_OPTIONS \ - "a:" -/* { "after-exec", required_argument, NULL, OPT_AFTEREXEC }, -*/ #define CMDLINE_PROCESS \ - case 'a': \ + case OPT_AFTEREXEC: \ after_exec = (mqd_t) strtoul (optarg, NULL, 0); \ break; diff --git a/test/nptl/tst-unload.c b/test/nptl/tst-unload.c index c7de2cb91..74a714ecb 100644 --- a/test/nptl/tst-unload.c +++ b/test/nptl/tst-unload.c @@ -23,17 +23,17 @@ static int do_test (void) { - void *p = dlopen ("libpthread.so.0", RTLD_LAZY); + void *p = dlopen ("libpthread.so.1", RTLD_LAZY); if (p == NULL) { - puts ("failed to load libpthread.so.0"); + puts ("failed to load libpthread.so.1"); return 1; } if (dlclose (p) != 0) { - puts ("dlclose (libpthread.so.0) failed"); + puts ("dlclose (libpthread.so.1) failed"); return 1; } diff --git a/test/regex/Makefile.in b/test/regex/Makefile.in new file mode 100644 index 000000000..1573840b9 --- /dev/null +++ b/test/regex/Makefile.in @@ -0,0 +1 @@ +CFLAGS_tst-regex2 = -fPIC diff --git a/test/setjmp/Makefile.in b/test/setjmp/Makefile.in new file mode 100644 index 000000000..a5b7b591a --- /dev/null +++ b/test/setjmp/Makefile.in @@ -0,0 +1 @@ +CFLAGS_bug269-setjmp = -fPIC diff --git a/test/signal/Makefile.in b/test/signal/Makefile.in index c8e2545fa..27791a911 100644 --- a/test/signal/Makefile.in +++ b/test/signal/Makefile.in @@ -4,3 +4,7 @@ ifeq ($(UCLIBC_HAS_OBSOLETE_BSD_SIGNAL),) TESTS_DISABLED := tst-sigsimple endif + +CFLAGS_tst-signalfd = -fPIC +CFLAGS_tst-sigset = -fPIC +CFLAGS_tst-sigsimple = -fPIC diff --git a/test/stdlib/Makefile.in b/test/stdlib/Makefile.in index 53e5a7280..38c3e19c4 100644 --- a/test/stdlib/Makefile.in +++ b/test/stdlib/Makefile.in @@ -11,3 +11,6 @@ ifeq ($(UCLIBC_HAS_PTY),) TESTS_DISABLED += ptytest endif +CFLAGS_test-canon = -fPIC +CFLAGS_test-canon2 = -fPIC +CFLAGS_testatexit = -fPIC diff --git a/test/test-skeleton.c b/test/test-skeleton.c index 69ef99f76..cf7afea03 100644 --- a/test/test-skeleton.c +++ b/test/test-skeleton.c @@ -18,6 +18,7 @@ <http://www.gnu.org/licenses/>. */ #include <errno.h> +#include <getopt.h> #include <malloc.h> #include <search.h> #include <signal.h> @@ -45,7 +46,6 @@ #define OPT_DIRECT 1000 #define OPT_TESTDIR 1001 -#if 0 /* Not used in uClibc */ static struct option options[] = { #ifdef CMDLINE_OPTIONS @@ -55,7 +55,6 @@ static struct option options[] = { "test-dir", required_argument, NULL, OPT_TESTDIR }, { NULL, 0, NULL, 0 } }; -#endif /* PID of the test itself. */ static pid_t pid; @@ -242,14 +241,7 @@ main (int argc, char *argv[]) setbuf (stdout, NULL); #endif -#if 0 /* Not used in uClibc */ while ((opt = getopt_long (argc, argv, "+", options, NULL)) != -1) -#else -# ifndef CMDLINE_OPTIONS -# define CMDLINE_OPTIONS "" -# endif - while ((opt = getopt (argc, argv, "+" CMDLINE_OPTIONS)) >= 0) -#endif switch (opt) { case '?': diff --git a/test/time/Makefile.in b/test/time/Makefile.in index bb11e18bd..8afc013d7 100644 --- a/test/time/Makefile.in +++ b/test/time/Makefile.in @@ -4,6 +4,10 @@ TESTS_DISABLED := bug-asctime bug-asctime_r time tst-mktime2 tst-posixtz \ tst-strftime tst-strptime tst-timezone +ifeq ($(TARGET_avr32),y) +TESTS_DISABLED += tst-timerfd +endif + ifneq ($(UCLIBC_HAS_XLOCALE),y) TESTS_DISABLED += tst-ftime_l endif @@ -13,5 +17,9 @@ TESTS_DISABLED += tst_wcsftime endif CFLAGS_tst-strptime2 := -std=c99 +CFLAGS_tst-ctime = -fPIC +CFLAGS_tst-futimens1 = -fPIC +CFLAGS_tst-timerfd = -fPIC + DODIFF_futimens1 := 1 DODIFF_tst_wcsftime := 1 diff --git a/test/tls/Makefile.in b/test/tls/Makefile.in index 7ab4e2ad3..0a9833757 100644 --- a/test/tls/Makefile.in +++ b/test/tls/Makefile.in @@ -12,6 +12,10 @@ ifeq ($(HAVE_SHARED),) TESTS_DISABLED := $(TESTS) endif +ifeq ($(TARGET_ARCH),arc) +TESTS_DISABLED += tst-tls12 tst-tls-at-ctor +endif + # All these tests need tls.h, which is not installed with glibc GLIBC_TESTS_DISABLED := $(addsuffix _glibc,$(filter-out $(TESTS_DISABLED),$(TESTS))) diff --git a/test/tls/tls-macros.h b/test/tls/tls-macros.h index 2787809f5..a41aef688 100644 --- a/test/tls/tls-macros.h +++ b/test/tls/tls-macros.h @@ -885,6 +885,43 @@ register void *__gp __asm__("$29"); : "=&r" (__result) : "r" (tp)); \ __result; }) +#elif defined __xtensa__ + +#define TLS_GD(x) \ + ({ int *__l; \ + __asm__ ("movi a8, " #x "@TLSFUNC\n\t" \ + "movi a10, " #x "@TLSARG\n\t" \ + "callx8.tls a8, " #x "@TLSCALL\n\t" \ + "mov %0, a10\n\t" \ + : "=r" (__l) \ + : \ + : "a8", "a9", "a10", "a11", "a12", "a13", "a14", "a15"); \ + __l; }) + +#define TLS_LD(x) \ + ({ int *__l; \ + __asm__ ("movi a8, " #x "@TLSFUNC\n\t" \ + "movi a10, " #x "@TLSARG\n\t" \ + "callx8.tls a8, " #x "@TLSCALL\n\t" \ + "movi %0, " #x "@TPOFF\n\t" \ + "add %0, %0, a10\n\t" \ + : "=r" (__l) \ + : \ + : "a8", "a9", "a10", "a11", "a12", "a13", "a14", "a15"); \ + __l; }) + +#define TLS_IE(x) TLS_LE(x) + +#define TLS_LE(x) \ + ({ int *__l; \ + int __t; \ + __asm__ ("rur %0, threadptr\n\t" \ + "movi %1, " #x "@TPOFF\n\t" \ + "add %0, %0, %1\n\t" \ + : "=r" (__l), "=r" (__t) ); \ + __l; }); \ + + #elif !defined TLS_LE || !defined TLS_IE \ || !defined TLS_LD || !defined TLS_GD # error "No support for this architecture so far." diff --git a/test/unistd/Makefile.in b/test/unistd/Makefile.in index ed33d9ae8..da59a3689 100644 --- a/test/unistd/Makefile.in +++ b/test/unistd/Makefile.in @@ -1,9 +1,10 @@ # uClibc unistd tests # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. +TESTS_DISABLED := # If LFS is not set, get rid of all *64 tests up front ifeq ($(UCLIBC_HAS_LFS),) -TESTS_DISABLED := tst-preadwrite64 tst-posix_fallocate64 tst-fallocate64 +TESTS_DISABLED += tst-preadwrite64 endif # If we don't have LINUX_SPECIFIC, then get rid of tst-fallocate @@ -11,6 +12,10 @@ ifeq ($(UCLIBC_LINUX_SPECIFIC),) TESTS_DISABLED += tst-fallocate endif +ifeq ($(TARGET_avr32),y) +TESTS_DISABLED += tst-fallocate tst-posix_fallocate tst-fallocate64 +endif + # The logic is similar for HAS_ADVANCED_REALTIME and # tst-posix_fallocate/tst-posix_fallocate64 ifeq ($(UCLIBC_HAS_ADVANCED_REALTIME),) @@ -26,6 +31,14 @@ else OPTS_tstgetopt := -a -b -cfoobar --required foobar --optional=bazbug --none --colou --color --colour random endif +# for embedded systems 4 GB disk space is not available +TESTS_DISABLED += tst-posix_fallocate64 tst-fallocate64 + +CFLAGS_tst-fallocate = -fPIC +CFLAGS_tst-posix_fallocate = -fPIC +CFLAGS_tst-preadwrite = -fPIC +CFLAGS_tst-preadwrite64 = -fPIC + # getconf.c lives in utils/ # Testsuite cannot currently be built with O= anyway, so hardcode path here getconf.c: |