From c096ab2534deffc2668b90fc86798d7fdaa70f55 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 28 Aug 2002 08:41:52 +0000 Subject: Add i386/dl-brk.S, mips/dl-brk.S, and sparc/dl-brk.S. --- iconvdata/Makefile | 3 ++- libio/fileops.c | 2 +- locale/Makefile | 2 +- misc/sys/cdefs.h | 27 ++++++++++++++++++++++++++- sysdeps/generic/Dist | 2 ++ sysdeps/gnu/Dist | 2 ++ sysdeps/mach/hurd/Dist | 1 + sysdeps/powerpc/Dist | 2 ++ sysdeps/unix/Dist | 3 +++ sysdeps/unix/arm/Dist | 1 + sysdeps/unix/bsd/Dist | 1 + sysdeps/unix/bsd/hp/Dist | 1 + sysdeps/unix/bsd/osf/Dist | 1 + sysdeps/unix/bsd/sun/Dist | 1 + sysdeps/unix/sysv/linux/Dist | 1 - 15 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 sysdeps/unix/arm/Dist create mode 100644 sysdeps/unix/bsd/hp/Dist create mode 100644 sysdeps/unix/bsd/osf/Dist create mode 100644 sysdeps/unix/bsd/sun/Dist diff --git a/iconvdata/Makefile b/iconvdata/Makefile index f10644a..3996d70 100644 --- a/iconvdata/Makefile +++ b/iconvdata/Makefile @@ -165,7 +165,8 @@ distribute := gconv-modules extra-module.mk gap.awk gaptab.awk \ koi8-t.c georgian-ps.c georgian-academy.c iso-ir-209.c \ mac-sami.c ibm1160.c ibm1160.h ibm1161.c ibm1161.h \ ibm1163.c ibm1163.h ibm1164.c ibm1164.h jisx0213.c jisx0213.h \ - euc-jisx0213.c shift_jisx0213.c iso-2022-jp-3.c + euc-jisx0213.c shift_jisx0213.c iso-2022-jp-3.c \ + tcvn5712-1.c armscii-8.c # We build the transformation modules only when we build shared libs. ifeq (yes,$(build-shared)) diff --git a/libio/fileops.c b/libio/fileops.c index 720796a..e9e9193 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -237,7 +237,7 @@ _IO_file_open (fp, filename, posix_mode, prot, read_write, is32not64) return NULL; fp->_fileno = fdesc; _IO_mask_flags (fp, read_write,_IO_NO_READS+_IO_NO_WRITES+_IO_IS_APPENDING); - if (read_write & _IO_IS_APPENDING) + if ((read_write & _IO_IS_APPENDING) && (read_write & _IO_NO_READS)) if (_IO_SEEKOFF (fp, (_IO_off64_t)0, _IO_seek_end, _IOS_INPUT|_IOS_OUTPUT) == _IO_pos_BAD && errno != ESPIPE) { diff --git a/locale/Makefile b/locale/Makefile index f01080e..0a5cac0 100644 --- a/locale/Makefile +++ b/locale/Makefile @@ -26,7 +26,7 @@ distribute = localeinfo.h categories.def iso-639.def iso-3166.def \ iso-4217.def weight.h weightwc.h strlen-hash.h elem-hash.h \ indigits.h indigitswc.h outdigits.h outdigitswc.h \ coll-lookup.h C-translit.h.in C-translit.h gen-translit.pl \ - locarchive.h \ + locarchive.h hashval.h \ $(addprefix programs/, \ locale.c localedef.c \ $(localedef-modules:=.c) $(locale-modules:=.c) \ diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index ff9a891..72dbfde 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1992,93,94,95,96,97,98,99,2000,2001 Free Software Foundation, Inc. +/* Copyright (C) 1992-2001, 2002 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 @@ -85,6 +85,31 @@ #endif +/* The standard library needs the functions from the ISO C90 standard + in the std namespace. At the same time we want to be safe for + future changes and we include the ISO C99 code in the non-standard + namespace __c99. The C++ wrapper header take case of adding the + definitions to the global namespace. */ +#if defined __cplusplus && defined _GLIBCPP_USE_NAMESPACES +# define __BEGIN_NAMESPACE_STD namespace std { +# define __END_NAMESPACE_STD } +# define __USING_NAMESPACE_STD(name) using std::name; +# define __BEGIN_NAMESPACE_C99 namespace __c99 { +# define __END_NAMESPACE_C99 } +# define __USING_NAMESPACE_C99(name) using __c99::name; +#else +/* For compatibility we do not add the declarations into any + namespace. They will end up in the global namespace which is what + old code expects. */ +# define __BEGIN_NAMESPACE_STD +# define __END_NAMESPACE_STD +# define __USING_NAMESPACE_STD(name) +# define __BEGIN_NAMESPACE_C99 +# define __END_NAMESPACE_C99 +# define __USING_NAMESPACE_C99(name) +#endif + + /* Support for bounded pointers. */ #ifndef __BOUNDED_POINTERS__ # define __bounded /* nothing */ diff --git a/sysdeps/generic/Dist b/sysdeps/generic/Dist index 0eb20a2..1837474 100644 --- a/sysdeps/generic/Dist +++ b/sysdeps/generic/Dist @@ -1,6 +1,8 @@ signame.c signame.h det_endian.c +dl-brk.c +dl-sbrk.c entry.h errno-loc.c getresgid.c diff --git a/sysdeps/gnu/Dist b/sysdeps/gnu/Dist index 7055326..9442793 100644 --- a/sysdeps/gnu/Dist +++ b/sysdeps/gnu/Dist @@ -1,4 +1,6 @@ errlist.awk +errlist-compat.c +errlist-compat.awk utmpx.h bits/utmpx.h netinet/tcp.h diff --git a/sysdeps/mach/hurd/Dist b/sysdeps/mach/hurd/Dist index 2331c52..52c8429 100644 --- a/sysdeps/mach/hurd/Dist +++ b/sysdeps/mach/hurd/Dist @@ -11,6 +11,7 @@ net/if_ether.h net/if_ppp.h net/route.h nfs/nfs.h +set-init.c siglist.h statfsconv.c xstatconv.c diff --git a/sysdeps/powerpc/Dist b/sysdeps/powerpc/Dist index 9d84c5b..ef13736 100644 --- a/sysdeps/powerpc/Dist +++ b/sysdeps/powerpc/Dist @@ -1,5 +1,7 @@ +divdi3.c dl-machine.c dl-start.S +libgcc-compat.S ppc-mcount.S gprsave1.S gprsave0.S diff --git a/sysdeps/unix/Dist b/sysdeps/unix/Dist index fbd1f4d..8aec698 100644 --- a/sysdeps/unix/Dist +++ b/sysdeps/unix/Dist @@ -7,3 +7,6 @@ make_errlist.c mk-local_lim.c s-proto.S make-syscalls.sh +i386/dl-brk.S +mips/dl-brk.S +sparc/dl-brk.S diff --git a/sysdeps/unix/arm/Dist b/sysdeps/unix/arm/Dist new file mode 100644 index 0000000..7785d5e --- /dev/null +++ b/sysdeps/unix/arm/Dist @@ -0,0 +1 @@ +dl-brk.S diff --git a/sysdeps/unix/bsd/Dist b/sysdeps/unix/bsd/Dist index ab3c4f4..e81952e 100644 --- a/sysdeps/unix/bsd/Dist +++ b/sysdeps/unix/bsd/Dist @@ -2,3 +2,4 @@ setrgid.c setruid.c bsdstat.h bsdtty.h +vax/dl-brk.S diff --git a/sysdeps/unix/bsd/hp/Dist b/sysdeps/unix/bsd/hp/Dist new file mode 100644 index 0000000..ccd3a61 --- /dev/null +++ b/sysdeps/unix/bsd/hp/Dist @@ -0,0 +1 @@ +m68k/dl-brk.S diff --git a/sysdeps/unix/bsd/osf/Dist b/sysdeps/unix/bsd/osf/Dist new file mode 100644 index 0000000..e792f44 --- /dev/null +++ b/sysdeps/unix/bsd/osf/Dist @@ -0,0 +1 @@ +alpha/dl-brk.S diff --git a/sysdeps/unix/bsd/sun/Dist b/sysdeps/unix/bsd/sun/Dist new file mode 100644 index 0000000..ccd3a61 --- /dev/null +++ b/sysdeps/unix/bsd/sun/Dist @@ -0,0 +1 @@ +m68k/dl-brk.S diff --git a/sysdeps/unix/sysv/linux/Dist b/sysdeps/unix/sysv/linux/Dist index 1540733..2d04d5c 100644 --- a/sysdeps/unix/sysv/linux/Dist +++ b/sysdeps/unix/sysv/linux/Dist @@ -1,7 +1,6 @@ bits/initspin.h bits/pthreadtypes.h cmsg_nxthdr.c -errlist.h getdirentries.c getdirentries64.c ipc_priv.h -- cgit v1.1