This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] sysdeps/unix/sysv/linux/m68k
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: [PATCH] sysdeps/unix/sysv/linux/m68k
- From: Michael Fedrowitz <michael at fedrowitz dot de>
- Date: Fri, 13 Oct 2000 20:53:54 +0200
Hi,
the patch below adds a number of missing files for m68k-linux. Together
with the patch for m68k/dl-machine.h this gives me a working glibc, however
the following test failures remain:
math/test-float:
testing float (without inline functions)
Failure: Real part of: csinh (9.0 + NaN i) == NaN + NaN i plus invalid exception: Exception "Invalid operation" not set
Failure: Real part of: csinh (-9.0 + NaN i) == NaN + NaN i plus invalid exception: Exception "Invalid operation" not set
Test suite completed:
2462 test cases plus 2260 tests for exception flags executed.
2 errors occured.
math/test-double:
testing double (without inline functions)
Failure: Test: Imaginary part of: cpow (e + 0 i, 0 + 2 * M_PIl i) == 1.0 + 0.0 i
Result:
is: -2.44921270764475451642e-16 -0x1.1a6000000000000000000000000000000p-52
should be: 0.00000000000000000000e+00 0x0.00000000000000000000p+0
difference: 2.44921270764475451642e-16 0x1.1a6000000000000000000000000000000p-52
ulp : 1.1030
max.ulp : 1.1030
Maximal error of real part of: cpow
is : 1.0000 ulp
accepted: 1.0000 ulp
Maximal error of imaginary part of: cpow
is : 1.1030 ulp
accepted: 1.1030 ulp
Failure: Real part of: csinh (9.0 + NaN i) == NaN + NaN i plus invalid exception: Exception "Invalid operation" not set
Failure: Real part of: csinh (-9.0 + NaN i) == NaN + NaN i plus invalid exception: Exception "Invalid operation" not set
Test suite completed:
2475 test cases plus 2267 tests for exception flags executed.
4 errors occured.
math/test-ldouble:
testing long double (without inline functions)
Failure: Real part of: csinh (9.0 + NaN i) == NaN + NaN i plus invalid exception: Exception "Invalid operation" not set
Failure: Real part of: csinh (-9.0 + NaN i) == NaN + NaN i plus invalid exception: Exception "Invalid operation" not set
Test suite completed:
2271 test cases plus 2084 tests for exception flags executed.
2 errors occured.
math/test-idouble:
testing double (inline functions)
Failure: Test: Imaginary part of: cpow (e + 0 i, 0 + 2 * M_PIl i) == 1.0 + 0.0 i
Result:
is: -2.44921270764475451642e-16 -0x1.1a6000000000000000000000000000000p-52
should be: 0.00000000000000000000e+00 0x0.00000000000000000000p+0
difference: 2.44921270764475451642e-16 0x1.1a6000000000000000000000000000000p-52
ulp : 1.1030
max.ulp : 1.1030
Maximal error of real part of: cpow
is : 1.0000 ulp
accepted: 1.0000 ulp
Maximal error of imaginary part of: cpow
is : 1.1030 ulp
accepted: 1.1030 ulp
Test suite completed:
2413 test cases plus 2205 tests for exception flags executed.
2 errors occured.
posix/runptests:
regexp: "[A-[.].]c]", string: "ab]!" -> no match, FAIL
regexp: "[[:alnum:]]*", string: " aB28gH" -> wrong match (0 to 0): FAIL
regexp: "[^[:alnum:]]*", string: "2 ,a" -> wrong match (0 to 0): FAIL
regexp: "[[:alpha:]]*", string: " aBgH2" -> wrong match (0 to 0): FAIL
regexp: "[[:digit:]]*", string: "a28" -> wrong match (0 to 0): FAIL
regexp: "[[:punct:]]*", string: "a,2" -> wrong match (0 to 0): FAIL
regexp: "[^[:space:]]*", string: " aB28gH, " -> wrong match (0 to 0): FAIL
regexp: "[[:upper:]]*", string: "aBH2" -> wrong match (0 to 0): FAIL
regexp: "[[:xdigit:]]*", string: "gaB28h" -> wrong match (0 to 0): FAIL
regexp: "[^[:xdigit:]]*", string: "a gH,2" -> wrong match (0 to 0): FAIL
regexp: "[A-[.].]c]", string: "ab]!" -> no match, FAIL
regexp: "a\(b\)*c\1", string: "acb" -> no match, FAIL
regexp: "a\(b\)*c\1", string: "acb" -> no match, FAIL
regexp: "a\(b\(c\(d\(f\)*\)\)\)\4", string: "xYzabcdePQRST" -> no match, FAIL
regexp: "\([a-c]*\)\{0,\}", string: "aabcaab" -> no match, FAIL
regexp: "\(a\)010\{1,2\}", string: "aaaabc" -> no match, FAIL
regexp: "\(\(a\)\1\)\{1,2\}", string: "aaaabc" -> no match, FAIL
regexp: "\([a-c]*\)\{0,\}", string: "aabcaab" -> no match, FAIL
regexp: "\([a-c]*\)\{1,\}", string: "abcdefg" -> no match, FAIL
regexp: "\^\[[[.].]]\\(\\1\\)\\*\\{1,2\\}\$", string: "a^[]\(1\)\*\{1,2\}$b" -> no match, FAIL
regexp: "[$\(*\)1]*", string: "$\()*^" -> wrong match (0 to 5): FAIL
regexp: "\(*\)*\1*", string: "a*b*11" -> wrong match (0 to 0): FAIL
regexp: "\(a\(b\{1,2\}\)\{1,2\}\)", string: "abbab" -> wrong match (0 to 3): FAIL
regexp: "[a-z]*$", string: "99ZZxyz99" -> wrong match (9 to 9): FAIL
294 tests, 24 errors
linuxthreads/ex14:
Timed out: killed the child process
I assume that most of these are either harmless or known issues.
-Michael
2000-10-13 Michael Fedrowitz <michael@fedrowitz.de>
* sysdeps/unix/sysv/linux/m68k/alphasort64.c: New file.
* sysdeps/unix/sysv/linux/m68k/fcntl.c: New file.
* sysdeps/unix/sysv/linux/m68k/getdents64.c: New file.
* sysdeps/unix/sysv/linux/m68k/getrlimit.c: New file.
* sysdeps/unix/sysv/linux/m68k/getrlimit64.c: New file.
* sysdeps/unix/sysv/linux/m68k/glob64.c: New file.
* sysdeps/unix/sysv/linux/m68k/lockf64.c: New file.
* sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: New file.
* sysdeps/unix/sysv/linux/m68k/readdir64.c: New file.
* sysdeps/unix/sysv/linux/m68k/readdir64_r.c: New file.
* sysdeps/unix/sysv/linux/m68k/scandir64.c: New file.
* sysdeps/unix/sysv/linux/m68k/setrlimit.c: New file.
* sysdeps/unix/sysv/linux/m68k/versionsort64.c: New file.
* sysdeps/unix/sysv/linux/m68k/Dist: Add oldgetrlimit64.c.
* sysdeps/unix/sysv/linux/m68k/Makefile: Add oldgetrlimit64.
* sysdeps/unix/sysv/linux/m68k/Versions: Export __xstat64,
__fxstat64, __lxstat64, alphasort64, glob64, getrlimit, setrlimit,
getrlimit64, readdir64, readdir64_r, scandir64, versionsort64 at
GLIBC_2.2.
* sysdeps/unix/sysv/linux/m68k/syscalls.list: Add oldgetrlimit,
oldsetrlimit for GLIBC_2.0.
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/Dist glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/Dist
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/Dist Fri Oct 23 23:03:10 1998
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/Dist Tue Oct 3 15:17:30 2000
@@ -1,5 +1,6 @@
clone.S
mremap.S
+oldgetrlimit64.c
setresuid.c
setresgid.c
setfsuid.c
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/Makefile glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/Makefile
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/Makefile Fri Dec 10 19:22:06 1999
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/Makefile Tue Oct 3 12:44:59 2000
@@ -11,3 +11,7 @@
sysdep-others += lddlibc4
install-bin += lddlibc4
endif
+
+ifeq ($(subdir),resource)
+sysdep_routines += oldgetrlimit64
+endif
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/Versions glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/Versions
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/Versions Wed Jun 21 20:11:06 2000
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/Versions Tue Oct 3 12:48:31 2000
@@ -8,4 +8,26 @@
# c*
cacheflush;
}
+ GLIBC_2.2 {
+ # functions used in other libraries
+ __xstat64; __fxstat64; __lxstat64;
+
+ # a*
+ alphasort64;
+
+ # g*
+ glob64;
+
+ # New rlimit interface
+ getrlimit; setrlimit; getrlimit64;
+
+ # r*
+ readdir64; readdir64_r;
+
+ # s*
+ scandir64;
+
+ # v*
+ versionsort64;
+ }
}
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/alphasort64.c glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/alphasort64.c
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/alphasort64.c Thu Jan 1 01:00:00 1970
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/alphasort64.c Tue Oct 3 12:40:34 2000
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/alphasort64.c>
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/fcntl.c glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/fcntl.c
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/fcntl.c Thu Jan 1 01:00:00 1970
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/fcntl.c Tue Oct 3 12:40:39 2000
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/fcntl.c>
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/getdents64.c glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/getdents64.c
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/getdents64.c Thu Jan 1 01:00:00 1970
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/getdents64.c Tue Oct 3 12:40:43 2000
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/getdents64.c>
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/getrlimit.c glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/getrlimit.c
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/getrlimit.c Thu Jan 1 01:00:00 1970
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/getrlimit.c Tue Oct 3 12:40:59 2000
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/getrlimit.c>
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/getrlimit64.c glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/getrlimit64.c
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/getrlimit64.c Thu Jan 1 01:00:00 1970
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/getrlimit64.c Tue Oct 3 12:40:59 2000
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/getrlimit64.c>
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/glob64.c glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/glob64.c
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/glob64.c Thu Jan 1 01:00:00 1970
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/glob64.c Tue Oct 3 12:41:03 2000
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/glob64.c>
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/lockf64.c glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/lockf64.c
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/lockf64.c Thu Jan 1 01:00:00 1970
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/lockf64.c Tue Oct 3 12:41:07 2000
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/lockf64.c>
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c Thu Jan 1 01:00:00 1970
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c Tue Oct 3 12:41:12 2000
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c>
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/readdir64.c glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/readdir64.c
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/readdir64.c Thu Jan 1 01:00:00 1970
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/readdir64.c Tue Oct 3 12:41:19 2000
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/readdir64.c>
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/readdir64_r.c glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/readdir64_r.c
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/readdir64_r.c Thu Jan 1 01:00:00 1970
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/readdir64_r.c Tue Oct 3 12:41:19 2000
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/readdir64_r.c>
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/scandir64.c glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/scandir64.c
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/scandir64.c Thu Jan 1 01:00:00 1970
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/scandir64.c Tue Oct 3 12:41:24 2000
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/scandir64.c>
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/setrlimit.c glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/setrlimit.c
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/setrlimit.c Thu Jan 1 01:00:00 1970
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/setrlimit.c Tue Oct 3 12:41:37 2000
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/setrlimit.c>
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/syscalls.list glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/syscalls.list
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/syscalls.list Thu Jun 29 21:40:39 2000
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/syscalls.list Tue Oct 3 15:14:35 2000
@@ -1,3 +1,5 @@
# File name Caller Syscall name Args Strong name Weak names
cacheflush EXTRA cacheflush i:iiii __cacheflush cacheflush
+oldgetrlimit EXTRA getrlimit i:ip __old_getrlimit getrlimit@GLIBC_2.0
+oldsetrlimit EXTRA setrlimit i:ip __old_setrlimit setrlimit@GLIBC_2.0
diff -urN glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/versionsort64.c glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/versionsort64.c
--- glibc-2.1.95.orig/sysdeps/unix/sysv/linux/m68k/versionsort64.c Thu Jan 1 01:00:00 1970
+++ glibc-2.1.95/sysdeps/unix/sysv/linux/m68k/versionsort64.c Tue Oct 3 12:41:42 2000
@@ -0,0 +1 @@
+#include <sysdeps/unix/sysv/linux/i386/versionsort64.c>