Add i386/dl-brk.S, mips/dl-brk.S, and sparc/dl-brk.S.
authorUlrich Drepper <drepper@redhat.com>
Wed, 28 Aug 2002 08:41:52 +0000 (08:41 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 28 Aug 2002 08:41:52 +0000 (08:41 +0000)
15 files changed:
iconvdata/Makefile
libio/fileops.c
locale/Makefile
misc/sys/cdefs.h
sysdeps/generic/Dist
sysdeps/gnu/Dist
sysdeps/mach/hurd/Dist
sysdeps/powerpc/Dist
sysdeps/unix/Dist
sysdeps/unix/arm/Dist [new file with mode: 0644]
sysdeps/unix/bsd/Dist
sysdeps/unix/bsd/hp/Dist [new file with mode: 0644]
sysdeps/unix/bsd/osf/Dist [new file with mode: 0644]
sysdeps/unix/bsd/sun/Dist [new file with mode: 0644]
sysdeps/unix/sysv/linux/Dist

index f10644a..3996d70 100644 (file)
@@ -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))
index 720796a..e9e9193 100644 (file)
@@ -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)
       {
index f01080e..0a5cac0 100644 (file)
@@ -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) \
index ff9a891..72dbfde 100644 (file)
@@ -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
 #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 */
index 0eb20a2..1837474 100644 (file)
@@ -1,6 +1,8 @@
 signame.c
 signame.h
 det_endian.c
+dl-brk.c
+dl-sbrk.c
 entry.h
 errno-loc.c
 getresgid.c
index 7055326..9442793 100644 (file)
@@ -1,4 +1,6 @@
 errlist.awk
+errlist-compat.c
+errlist-compat.awk
 utmpx.h
 bits/utmpx.h
 netinet/tcp.h
index 2331c52..52c8429 100644 (file)
@@ -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
index 9d84c5b..ef13736 100644 (file)
@@ -1,5 +1,7 @@
+divdi3.c
 dl-machine.c
 dl-start.S
+libgcc-compat.S
 ppc-mcount.S
 gprsave1.S
 gprsave0.S
index fbd1f4d..8aec698 100644 (file)
@@ -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 (file)
index 0000000..7785d5e
--- /dev/null
@@ -0,0 +1 @@
+dl-brk.S
index ab3c4f4..e81952e 100644 (file)
@@ -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 (file)
index 0000000..ccd3a61
--- /dev/null
@@ -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 (file)
index 0000000..e792f44
--- /dev/null
@@ -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 (file)
index 0000000..ccd3a61
--- /dev/null
@@ -0,0 +1 @@
+m68k/dl-brk.S
index 1540733..2d04d5c 100644 (file)
@@ -1,7 +1,6 @@
 bits/initspin.h
 bits/pthreadtypes.h
 cmsg_nxthdr.c
-errlist.h
 getdirentries.c
 getdirentries64.c
 ipc_priv.h