[PATCH 20/46] utime: Use utimensat if arch does not have the utime syscall

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/utime.c | 22 +- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/libc/sysdeps/linux/common/utime.c

[PATCH 16/46] dup2: Use dup3 if arch does not have the dup2 syscall

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/dup2.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/libc/sysdeps/linux/common/dup2.c b/libc/sysdeps/linux/common/dup2.c

[PATCH 25/46] sendfile: Use sendfile64 if arch does not have the sendfile syscall

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/sendfile.c | 44 +++-- 1 files changed, 41 insertions(+), 3 deletions(-) diff --git a/libc/sysdeps/linux/common/sendfile.c

[PATCH 26/46] getdents: Use getdents64 if arch does not have the getdents syscall

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/getdents.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/libc/sysdeps/linux/common/getdents.c

[PATCH 27/46] statfs: Use statfs64 if arch does not have the statfs syscall

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/statfs.c | 49 1 files changed, 49 insertions(+), 0 deletions(-) diff --git a/libc/sysdeps/linux/common/statfs.c

[PATCH 30/46] stat64: Use fstatat64 if arch does not have the stat64 syscall

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/stat64.c | 16 ++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/common/stat64.c

[PATCH 29/46] fstatat64: Use newfstatat only for 64-bit operations

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/fstatat64.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libc/sysdeps/linux/common/fstatat64.c

[PATCH 31/46] lstat: Use fstatat64 if arch does not have the lstat syscall

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/lstat.c | 17 +++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/common/lstat.c

[PATCH 32/46] lstat64: Use fstatat64 if arch does not have the lstat64 syscall

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/lstat64.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/libc/sysdeps/linux/common/lstat64.c

[PATCH 34/46] stat: Use fstatat64 if arch does not have the stat syscall

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/stat.c | 17 ++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/libc/sysdeps/linux/common/stat.c

[PATCH 35/46] fstat: Use fstat64() if arch does not have the fstat syscall

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/fstat.c | 20 +++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/libc/sysdeps/linux/common/fstat.c

[PATCH 36/46] fstatfs: Add __libc_fstatfs wrapper

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com New architectures don't have fstatfs anymore, so we use a wrapper for __libc_fstatfs which will use fstatfs64 internally. The interface however needs to remain the same (i.e accepting a struct statfs as a second argument) for backwards

[PATCH 37/46] fstatfs64: Prefer fstatfs64 system call instead of __libc_fstatfs

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Using __libc_fstatfs for fstatfs64 adds a small delay as it needs to use a 32-bit data structure to get the file info and them pass them to the 64-bit data structure which was given as a fstatfs64 argument. Using the system call directly should

[PATCH 39/46] fcntl: Use fcntl64 is arch does not have the fcntl syscall

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/__syscall_fcntl.c | 57 +++- libc/sysdeps/linux/common/__syscall_fcntl64.c |5 ++ 2 files changed, 59 insertions(+), 3 deletions(-)

[PATCH 28/46] fstatat: Use newfstatat only for 64-bit operations

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/fstatat.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libc/sysdeps/linux/common/fstatat.c b/libc/sysdeps/linux/common/fstatat.c

[PATCH 22/46] fork: Use clone if arch does not have the fork syscall

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/fork.c | 20 +++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/libc/sysdeps/linux/common/fork.c

[PATCH 33/46] ustat: Return ENOSYS if ustat syscall is not defined

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/ustat.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/libc/sysdeps/linux/common/ustat.c

[PATCH 40/46] openat: Add openat syscall for NPTL

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/Makefile.in |2 +- .../sysdeps/unix/sysv/linux/Makefile.commonarch|4 ++- libpthread/nptl/sysdeps/unix/sysv/linux/openat.S | 22

[PATCH 43/46] open-wrapper: Use a wrapper for the open() symbol

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Internal libc operations, gcc and other packages require for libc to define an open() symbol. In case the arch does not have NR_open, we define this symbol to be a wrapper to the openat syscall. Signed-off-by: Markos Chandras

[PATCH 38/46] llseek: Use the llseek system call if defined

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/llseek.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/libc/sysdeps/linux/common/llseek.c

[PATCH 42/46] not-cancel.h: Use openat if arch does not have the open syscall

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/not-cancel.h |7 +++ .../linuxthreads.old/sysdeps/pthread/not-cancel.h |9 + .../linuxthreads/sysdeps/pthread/not-cancel.h

[PATCH 44/46] ldso: Use newer syscalls if arch does not have the deprecated syscalls

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- ldso/include/dl-syscall.h | 88 + ldso/include/ldso.h |4 ++ 2 files changed, 92 insertions(+), 0 deletions(-) diff --git

[PATCH 45/46] libc/ipc: Don't pass IPC_64 to arches that don't need it

2012-11-13 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com New architectures don't define ARCH_WANT_IPC_PARSE_VERSION in their kernel. This means that every cmd passed to semctl,msgctl and shmctl is IPC_64 by default. We need to prevent uClibc from XOR'ing this flag to the cmd otherwise it will break the

Re: [PATCH] include/elf.h: update for ELFOSABI_* changes.

2012-11-13 Thread Mike Frysinger
On Friday 02 November 2012 14:34:43 Bernhard Reutner-Fischer wrote: On 31 October 2012 20:41:50 Thomas Schwinge tho...@codesourcery.com wrote: ELFOSABI_GNU replaces ELFOSABI_LINUX, the latter is kept as a compatibility alias, and ELFOSABI_HURD is removed. See the table on

Re: [PATCH] libc/sysdeps: add {get,make,set,swap}context for x86_64

2012-11-13 Thread Mike Frysinger
On Wednesday 31 October 2012 09:25:16 Natanael Copa wrote: +ifeq ($(UCLIBC_SUSV4_LEGACY),y) i don't think these are even SUSV4 legacy. they're part of SUSV3 and marked obsolete there and then removed from SUSV4. +ASFLAGS-setcontext.S := -D_LIBC_REENTRANT +ASFLAGS-getcontext.S :=