glibc/sysdeps/unix/sysv/linux/sparc/sparc64
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.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
__longjmp.S
__start_context.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
brk.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bsd-_setjmp.S
bsd-setjmp.S
c++-types.data SPARC: Consolidate nptl/ subdirectories under linux/... 2014-06-25 10:03:52 -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-brk.S
dl-cache.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
dl-fxstatat64.c Remove __ASSUME_ATFCTS conditionals in sysdeps/unix/sysv/linux/. 2014-06-20 15:41:35 +00:00
fxstat.c sparc64: Use i386 implementation for fxstat. 2011-01-04 12:22:41 -08:00
fxstatat.c Adjust for recent input file changes. 2006-01-09 19:50:01 +00:00
get_clockfreq.c 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 Update. 2004-03-24 00:06:13 +00:00
kernel_stat.h Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
ld.abilist SPARC: Consolidate nptl/ subdirectories under linux/... 2014-06-25 10:03:52 -07:00
libanl.abilist SPARC: Consolidate nptl/ subdirectories under linux/... 2014-06-25 10:03:52 -07:00
libBrokenLocale.abilist SPARC: Consolidate nptl/ subdirectories under linux/... 2014-06-25 10:03:52 -07:00
libc.abilist libio: fmemopen rewrite to POSIX compliance 2015-07-08 12:07:21 -03:00
libcrypt.abilist SPARC: Consolidate nptl/ subdirectories under linux/... 2014-06-25 10:03:52 -07:00
libdl.abilist SPARC: Consolidate nptl/ subdirectories under linux/... 2014-06-25 10:03:52 -07:00
libm.abilist SPARC: Consolidate nptl/ subdirectories under linux/... 2014-06-25 10:03:52 -07:00
libnsl.abilist SPARC: Consolidate nptl/ subdirectories under linux/... 2014-06-25 10:03:52 -07:00
libpthread.abilist SPARC: Consolidate nptl/ subdirectories under linux/... 2014-06-25 10:03:52 -07:00
libresolv.abilist SPARC: Consolidate nptl/ subdirectories under linux/... 2014-06-25 10:03:52 -07:00
librt.abilist SPARC: Consolidate nptl/ subdirectories under linux/... 2014-06-25 10:03:52 -07:00
libthread_db.abilist SPARC: Consolidate nptl/ subdirectories under linux/... 2014-06-25 10:03:52 -07:00
libutil.abilist SPARC: Consolidate nptl/ subdirectories under linux/... 2014-06-25 10:03:52 -07:00
localplt.data Update sparc localplt.data 2015-04-27 14:53:13 -07:00
longjmp.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
lxstat.c * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h (_JMPBUF_UNWINDS): Add 2006-01-09 21:17:57 +00:00
makecontext.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Makefile Move remaining SPARC code out of nptl/. 2014-06-20 17:13:47 -07:00
msgctl.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
msgrcv.c nptl: Rewrite cancellation macros 2015-06-04 18:58:36 -03:00
pause.c [BZ #3291] 2006-10-02 18:41:30 +00:00
pipe.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
semctl.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setcontext.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setjmp.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
shlib-versions Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
shmctl.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sigaction.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sigcontextinfo.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sigjmp.S
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
sizes.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
swapcontext.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
syscall.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
syscalls.list Remove stray *_internal aliases (bug 14132). 2014-10-09 01:11:14 +00:00
sysdep-cancel.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sysdep.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
time.c Adjust old #include's of sysdeps/unix/time.c to point to sysdeps/posix/time.c instead. 2012-08-17 14:16:12 -07:00
timer_create.c Move remaining SPARC code out of nptl/. 2014-06-20 17:13:47 -07:00
timer_delete.c Move remaining SPARC code out of nptl/. 2014-06-20 17:13:47 -07:00
timer_getoverr.c Move remaining SPARC code out of nptl/. 2014-06-20 17:13:47 -07:00
timer_gettime.c Move remaining SPARC code out of nptl/. 2014-06-20 17:13:47 -07:00
timer_settime.c Move remaining SPARC code out of nptl/. 2014-06-20 17:13:47 -07:00
ucontext_i.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Versions Move remaining SPARC code out of nptl/. 2014-06-20 17:13:47 -07:00
vfork.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wordexp.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
xstat.c Remove __ASSUME_STAT64_SYSCALL. 2012-08-27 19:36:04 +00:00
xstatconv.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00