glibc/sysdeps/unix/sysv/linux/s390/s390-64
Adhemerval Zanella fdb7d390dd libio: fmemopen rewrite to POSIX compliance
This patch added a new fmemopen version, for glibc 2.22, that aims to be
POSIX complaint.  It fixes some long-stading glibc fmemopen issues, such
as:

* it changes the way fseek with SEEK_END works on fmemopen to seek
  relative to buffer size instead of first '\0'.  This is default mode and
  'b' opening mode does not change internal behavior (bz#6544).

* fix apending opening mode to use as start position either first null
  byte of len specified in function call (bz#13152 and #13151).

* remove binary option 'b' and internal different handling (bz#12836)

* fix seek/SEE_END with negative values (bz#14292).

A compatibility symbol is provided to with old behavior for older symbols
version (2.2.5).

	* include/stdio.h (fmemopen): Remove hidden prototype.
	(__fmemopen): Add new hidden prototype.
	* libio/Makefile: Add oldfmemopen object.
	* libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
	* libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
	compliance.
	* libio/oldfmemopen.c: New file: old fmemopen implementation for
	symbol compatibility.
	* stdio-common/Makefile [tests]: Add new tst-fmemopen3.
	* stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
	fmemopen.
	* stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
	on append and read mode.
	* sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
	fmemopen.
	* sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
	Likewise.
	* sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
	[GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
	Likewise.
	* sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
	Likewise.
	* sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
	[GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
	[GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
	[GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
	[GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
	[GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
	[GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
	[GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
	Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
	Likewise.
	* sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
	[GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
	[GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
	[GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
	[GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
	Likewise.
	* sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
	Likewise.
	* sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
	Likewise.
	* sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
	* sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
2015-07-08 12:07:21 -03:00
..
____longjmp_chk.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
__makecontext_ret.S S390: Fix "backtrace() returns infinitely deep stack frames with makecontext()" [BZ #18508]. 2015-07-07 16:11:14 +02:00
c++-types.data S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
clone.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
configure Refactor handling of /lib64 etc. cases, move out of sysdeps/gnu/configure.ac. 2014-07-17 14:35:48 +00:00
configure.ac Refactor handling of /lib64 etc. cases, move out of sysdeps/gnu/configure.ac. 2014-07-17 14:35:48 +00:00
dl-cache.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getcontext.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Implies
kernel_stat.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ld.abilist S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
libBrokenLocale.abilist S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
libc.abilist libio: fmemopen rewrite to POSIX compliance 2015-07-08 12:07:21 -03:00
libcrypt.abilist S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
libdl.abilist S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
libm.abilist S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
libnsl.abilist S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
libpthread.abilist S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
libresolv.abilist S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
librt.abilist S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
libthread_db.abilist S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
libutil.abilist S390: Consolidate nptl/ subdirectories under linux/... 2014-06-26 09:34:34 -07:00
makecontext.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Makefile S/390: Fix uc_link == NULL handling for makecontext 2012-07-19 15:58:17 +02:00
mmap.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
profil-counter.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
register-dump.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setcontext.S S/390: Fix setcontext/swapcontext which are not restoring sigmask. 2015-03-12 11:08:11 +01:00
shlib-versions Remove shlib-versions entries redundant with DEFAULT entries. 2014-09-26 17:34:22 +00:00
sigaction.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sigpending.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sigprocmask.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
swapcontext.S S/390: Fix setcontext/swapcontext which are not restoring sigmask. 2015-03-12 11:08:11 +01:00
syscall.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
syscalls.list S390: Consolidate NPTL/non versions of vfork 2014-06-26 09:30:52 -07:00
sysdep-cancel.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sysdep.h Consolidate gettimeofday across aarch64/s390/tile 2015-05-26 17:03:35 -03:00
sysdep.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
timer_create.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
timer_delete.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
timer_getoverr.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
timer_gettime.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
timer_settime.c Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
Versions Move remaining S390 code out of nptl/. 2014-06-26 09:31:11 -07:00
vfork.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00