diff options
author | Roland McGrath <roland@gnu.org> | 1996-06-05 03:29:45 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-06-05 03:29:45 +0000 |
commit | 58e071515a45fb23bad4298512bb2951fe41dbc5 (patch) | |
tree | 7316b76d0f0512bc90f6b6b73c0304a6ecabed33 /sysdeps | |
parent | ee188d555b8c32ad9704a7440cab400af967292f (diff) | |
download | glibc-58e071515a45fb23bad4298512bb2951fe41dbc5.tar.gz glibc-58e071515a45fb23bad4298512bb2951fe41dbc5.tar.xz glibc-58e071515a45fb23bad4298512bb2951fe41dbc5.zip |
* math/Makefile (libm-support, libm-calls): New variables.
(libm-routines): Construct this from those. (calls): New variable. (routines): Construct this from it. * resolv/res_debug.c: Add missing #include <ctype.h>. * sysdeps/unix/getlogin.c: Must pass struct utmp ptr to getutline_r. * sysdeps/unix/getlogin_r.c: Likewise. * sysdeps/libm-ieee754/w_hypotl.c: Fix typo. * sysdeps/libm-ieee754/w_cabsl.c: __cabsl_complex -> __cabs_complexl * math/Makefile (long-m-routines): Define recursive variable as $(long-m-$(long-double-fcts)). (long-m-yes): Put list of routines here. (long-c-routines, long-c-yes): Likewise. * sysdeps/unix/sysv/linux/schedbits.h: File removed. * sysdeps/i386/Makefile (long-double-fcts): New variable, set to yes. * sysdeps/m68k/Makefile: Likewise. * math/Makefile [$(long-double-fcts)!=yes] (CPPFLAGS): Append -DNO_LONG_DOUBLE.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/i386/Makefile | 3 | ||||
-rw-r--r-- | sysdeps/libm-ieee754/w_cabsl.c | 2 | ||||
-rw-r--r-- | sysdeps/libm-ieee754/w_hypotl.c | 2 | ||||
-rw-r--r-- | sysdeps/m68k/Makefile | 3 | ||||
-rw-r--r-- | sysdeps/unix/getlogin.c | 5 | ||||
-rw-r--r-- | sysdeps/unix/getlogin_r.c | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/schedbits.h | 1 |
7 files changed, 14 insertions, 7 deletions
diff --git a/sysdeps/i386/Makefile b/sysdeps/i386/Makefile index 29676784a2..e1e098788d 100644 --- a/sysdeps/i386/Makefile +++ b/sysdeps/i386/Makefile @@ -1,3 +1,6 @@ # The mpn functions need a #define for asm syntax flavor. # Every i386 port in use uses gas syntax (I think). asm-CPPFLAGS := $(asm-CPPFLAGS) -DGAS_SYNTAX + +# The i386 `long double' is a distinct type we support. +long-double-fcts = yes diff --git a/sysdeps/libm-ieee754/w_cabsl.c b/sysdeps/libm-ieee754/w_cabsl.c index e82130d46d..21ef860a95 100644 --- a/sysdeps/libm-ieee754/w_cabsl.c +++ b/sysdeps/libm-ieee754/w_cabsl.c @@ -11,7 +11,7 @@ long double __cabsl(z) - struct __cabsl_complex z; + struct __cabs_complexl z; { return __hypotl(z.x, z.y); } diff --git a/sysdeps/libm-ieee754/w_hypotl.c b/sysdeps/libm-ieee754/w_hypotl.c index 9f92e950d6..2ec215fd13 100644 --- a/sysdeps/libm-ieee754/w_hypotl.c +++ b/sysdeps/libm-ieee754/w_hypotl.c @@ -27,7 +27,7 @@ static char rcsid[] = "$NetBSD: $"; #ifdef __STDC__ - long double __hypotl(longdouble x, long double y)/* wrapper hypotl */ + long double __hypotl(long double x, long double y)/* wrapper hypotl */ #else long double __hypotl(x,y) /* wrapper hypotl */ long double x,y; diff --git a/sysdeps/m68k/Makefile b/sysdeps/m68k/Makefile index 3d35ac56ba..ffdc68274e 100644 --- a/sysdeps/m68k/Makefile +++ b/sysdeps/m68k/Makefile @@ -36,3 +36,6 @@ asm-CPPFLAGS += $(m68k-syntax-flag) # Make sure setjmp.c is compiled with a frame pointer CFLAGS-setjmp.c := -fno-omit-frame-pointer + +# The 68k `long double' is a distinct type we support. +long-double-fcts = yes diff --git a/sysdeps/unix/getlogin.c b/sysdeps/unix/getlogin.c index 00baf6875a..7446f25786 100644 --- a/sysdeps/unix/getlogin.c +++ b/sysdeps/unix/getlogin.c @@ -36,7 +36,7 @@ DEFUN_VOID(getlogin) char *real_tty_path = tty_pathname; char *result = NULL; static struct utmp_data utmp_data; - struct utmp *ut; + struct utmp *ut, line; { int err = 0; @@ -58,7 +58,8 @@ DEFUN_VOID(getlogin) real_tty_path += 5; /* Remove "/dev/". */ setutent_r (&utmp_data); - if (getutline_r (real_tty_path, &ut, &utmp_data) < 0) + strncpy (line.ut_line, real_tty_path, sizeof line.ut_line); + if (getutline_r (&line, &ut, &utmp_data) < 0) { if (errno == ESRCH) /* The caller expects ENOENT if nothing is found. */ diff --git a/sysdeps/unix/getlogin_r.c b/sysdeps/unix/getlogin_r.c index 15afdee63c..154a9d3a59 100644 --- a/sysdeps/unix/getlogin_r.c +++ b/sysdeps/unix/getlogin_r.c @@ -39,7 +39,7 @@ getlogin_r (name, name_len) char *real_tty_path = tty_pathname; int result = 0; struct utmp_data utmp_data; - struct utmp *ut; + struct utmp *ut, line; { int err; @@ -61,7 +61,8 @@ getlogin_r (name, name_len) real_tty_path += 5; /* Remove "/dev/". */ setutent_r (&utmp_data); - if (getutline_r (real_tty_path, &ut, &utmp_data) < 0) + strncpy (line.ut_line, real_tty_path, sizeof line.ut_line); + if (getutline_r (&line, &ut, &utmp_data) < 0) { if (errno == ESRCH) /* The caller expects ENOENT if nothing is found. */ diff --git a/sysdeps/unix/sysv/linux/schedbits.h b/sysdeps/unix/sysv/linux/schedbits.h deleted file mode 100644 index 7b887aab25..0000000000 --- a/sysdeps/unix/sysv/linux/schedbits.h +++ /dev/null @@ -1 +0,0 @@ -#include <linux/posix_sched.h> |