diff options
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/abort.c | 37 | ||||
-rw-r--r-- | sysdeps/i386/abort.c | 28 | ||||
-rw-r--r-- | sysdeps/i386/fpu/__math.h | 41 | ||||
-rw-r--r-- | sysdeps/posix/tempname.c | 16 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/netinet/in.h | 3 |
5 files changed, 61 insertions, 64 deletions
diff --git a/sysdeps/generic/abort.c b/sysdeps/generic/abort.c index 1a27c4946b..8eb45b3fde 100644 --- a/sysdeps/generic/abort.c +++ b/sysdeps/generic/abort.c @@ -1,22 +1,21 @@ -/* Copyright (C) 1991, 1993, 1995 Free Software Foundation, Inc. -This file is part of the GNU C Library. +/* Copyright (C) 1991, 1993, 1995, 1996 Free Software Foundation, Inc. + This file is part of the GNU C Library. -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. -The GNU C Library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Library General Public License for more details. + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ -#include <ansidecl.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> @@ -25,13 +24,13 @@ Cambridge, MA 02139, USA. */ /* Cause an abnormal program termination with core-dump. */ void -DEFUN_VOID(abort) +abort (void) { sigset_t sigs; - if (__sigemptyset(&sigs) == 0 && - __sigaddset(&sigs, SIGABRT) == 0) - (void) __sigprocmask(SIG_UNBLOCK, &sigs, (sigset_t *) NULL); + if (__sigemptyset (&sigs) == 0 && + __sigaddset (&sigs, SIGABRT) == 0) + __sigprocmask (SIG_UNBLOCK, &sigs, (sigset_t *) NULL); while (1) if (raise (SIGABRT)) diff --git a/sysdeps/i386/abort.c b/sysdeps/i386/abort.c deleted file mode 100644 index 28513fd1ec..0000000000 --- a/sysdeps/i386/abort.c +++ /dev/null @@ -1,28 +0,0 @@ -/* Copyright (C) 1993, 1995 Free Software Foundation, Inc. -This file is part of the GNU C Library. - -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. - -The GNU C Library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Library General Public License for more details. - -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ - -#include <ansidecl.h> -#include <stdlib.h> - -/* Cause an abnormal program termination with core-dump. */ -void -DEFUN_VOID(abort) -{ - while (1) - asm ("hlt"); -} diff --git a/sysdeps/i386/fpu/__math.h b/sysdeps/i386/fpu/__math.h index d6b0bc6988..3728d45be6 100644 --- a/sysdeps/i386/fpu/__math.h +++ b/sysdeps/i386/fpu/__math.h @@ -1,26 +1,33 @@ /* Inline math functions for i387. -Copyright (C) 1995, 1996 Free Software Foundation, Inc. -Contributed by John C. Bowman <bowman@ipp-garching.mpg.de> + Copyright (C) 1995, 1996 Free Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by John C. Bowman <bowman@ipp-garching.mpg.de>, 1995. -This file is part of the GNU C Library. + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. -The GNU C Library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Library General Public License for more details. - -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ #ifndef __MATH_H -#define __MATH_H +#define __MATH_H 1 + +#if defined __GNUG__ && \ + (__GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ <= 7)) +/* gcc 2.7.2 and 2.7.2.1 have problems with inlining `long double' + functions so we disable this now. */ +#undef __NO_MATH_INLINES +#define __NO_MATH_INLINES +#endif #ifdef __GNUC__ #ifndef __NO_MATH_INLINES diff --git a/sysdeps/posix/tempname.c b/sysdeps/posix/tempname.c index 61774a0b3e..bb921c172f 100644 --- a/sysdeps/posix/tempname.c +++ b/sysdeps/posix/tempname.c @@ -254,6 +254,22 @@ __stdio_gen_tempname (char *buf, size_t bufsize, const char *dir, (*streamptr)->__mode.__binary = 1; #endif } +#if defined EMFILE || defined ENFILE || defined EINTR + else if (0 +# ifdef EMFILE + || errno == EMFILE +# endif +# ifdef ENFILE + || errno == ENFILE +# endif +# ifdef EINTR + || errno == EINTR +# endif + ) + /* We cannot open anymore files since all descriptors are + used or because we got a signal. */ + return NULL; +#endif else continue; } diff --git a/sysdeps/unix/sysv/linux/netinet/in.h b/sysdeps/unix/sysv/linux/netinet/in.h index 86d1274a0c..91c88835db 100644 --- a/sysdeps/unix/sysv/linux/netinet/in.h +++ b/sysdeps/unix/sysv/linux/netinet/in.h @@ -22,7 +22,10 @@ #include <features.h> #include <sys/socket.h> + +__BEGIN_DECLS #include <linux/in.h> +__END_DECLS /* Standard well-known ports. The use of these constants is deprecated. Instead use the contents of the file `/etc/services' |