Re: wrongly auxvt in __uClibc_main

2012-11-26 Thread Carmelo AMOROSO
On 26/11/2012 20.45, Rich Felker wrote: > On Mon, Nov 26, 2012 at 04:45:18PM +0100, Filippo ARCIDIACONO wrote: >> Folks, >> we have seen some issues recently in uClibc related to the way the >> aux vect is managed inside __uClibc_main. >> >> Running a set-[user,group]-ID ELF binaries with some 'uns

Re: [PATCH v2 46/46] Config.in: Introduce symbol for arches with deprecated syscalls

2012-11-26 Thread Mark Salter
On Mon, 2012-11-26 at 20:21 +, Markos Chandras wrote: > Hi Mark, > > That's weird. It makes me wonder how come C6X is supported in uClibc > without the deprecated syscalls. I will have a look The upstream kernel requires a patched uClibc. The original c6x support which went into uClibc was ba

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

2012-11-26 Thread Rich Felker
On Mon, Nov 26, 2012 at 08:26:11PM +, Markos Chandras wrote: > On 26 November 2012 19:49, Rich Felker wrote: > > On Mon, Nov 26, 2012 at 02:31:06PM -0500, Mark Salter wrote: > >> On Mon, 2012-11-26 at 14:24 +, Markos Chandras wrote: > >> > +int __libc_statfs(const char *path, struct statfs

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

2012-11-26 Thread Markos Chandras
On 26 November 2012 19:49, Rich Felker wrote: > On Mon, Nov 26, 2012 at 02:31:06PM -0500, Mark Salter wrote: >> On Mon, 2012-11-26 at 14:24 +, Markos Chandras wrote: >> > +int __libc_statfs(const char *path, struct statfs *buf) >> > +{ >> > + struct statfs64 b; >> > + int err; >> >

Re: [PATCH v2 46/46] Config.in: Introduce symbol for arches with deprecated syscalls

2012-11-26 Thread Markos Chandras
On 26 November 2012 19:37, Mark Salter wrote: > On Mon, 2012-11-26 at 14:24 +, Markos Chandras wrote: >> diff --git a/extra/Configs/Config.c6x b/extra/Configs/Config.c6x >> index 96adfb3..cc8d647 100644 >> --- a/extra/Configs/Config.c6x >> +++ b/extra/Configs/Config.c6x >> @@ -11,6 +11,7 @@ co

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

2012-11-26 Thread Rich Felker
On Mon, Nov 26, 2012 at 02:31:06PM -0500, Mark Salter wrote: > On Mon, 2012-11-26 at 14:24 +, Markos Chandras wrote: > > +int __libc_statfs(const char *path, struct statfs *buf) > > +{ > > + struct statfs64 b; > > + int err; > > + > > + /* > > +* See if pointer has a s

Re: wrongly auxvt in __uClibc_main

2012-11-26 Thread Rich Felker
On Mon, Nov 26, 2012 at 04:45:18PM +0100, Filippo ARCIDIACONO wrote: > Folks, > we have seen some issues recently in uClibc related to the way the > aux vect is managed inside __uClibc_main. > > Running a set-[user,group]-ID ELF binaries with some 'unsecure' > environment variable set (i.e LD_LIBR

Re: [PATCH v2 46/46] Config.in: Introduce symbol for arches with deprecated syscalls

2012-11-26 Thread Mark Salter
On Mon, 2012-11-26 at 14:24 +, Markos Chandras wrote: > diff --git a/extra/Configs/Config.c6x b/extra/Configs/Config.c6x > index 96adfb3..cc8d647 100644 > --- a/extra/Configs/Config.c6x > +++ b/extra/Configs/Config.c6x > @@ -11,6 +11,7 @@ config FORCE_OPTIONS_FOR_ARCH > default y >

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

2012-11-26 Thread Mark Salter
On Mon, 2012-11-26 at 14:24 +, Markos Chandras wrote: > +int __libc_statfs(const char *path, struct statfs *buf) > +{ > + struct statfs64 b; > + int err; > + > + /* > +* See if pointer has a sane value. > +* This does not prevent the user from > +* pass

Re: dlclose segfaults on x86_64

2012-11-26 Thread Carmelo AMOROSO
On 01/11/2012 16.26, Natanael Copa wrote: > On Fri, Oct 5, 2012 at 1:46 PM, Natanael Copa wrote: >> building vlc will end up with a segfaulting ./vlc-cache-gen on x86_64. > ... >> Core was generated by >> `/home/ncopa/aports/main/vlc/src/vlc-2.0.3/bin/.libs/lt-vlc-cache-gen >> ../modules'. >> Prog

wrongly auxvt in __uClibc_main

2012-11-26 Thread Filippo ARCIDIACONO
Folks, we have seen some issues recently in uClibc related to the way the aux vect is managed inside __uClibc_main. Running a set-[user,group]-ID ELF binaries with some 'unsecure' environment variable set (i.e LD_LIBRARY_PATH or LD_PRELOAD), auxvt is wrongly set in __uClibc_main. The proble

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/fstatat64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/fstatat64.c b/libc/sysdeps/linux/common/fstatat64.c index 95627af..203ec4c 100644 --- a/libc/sysdeps/linu

[PATCH v2 45/46] libc/ipc: Allow architectures to define their own __IPC_64 macro

2012-11-26 Thread Markos Chandras
From: Markos Chandras 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. For these architectures we need to define __IPC_64 as 0. Existing architectures are not affected by this change. Si

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/fstat.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/fstat.c b/libc/sysdeps/linux/common/fstat.c index 4726a68..cf69580 100644 --- a/libc/sys

[PATCH v2 41/46] open64: Use openat if arch does not have the open syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/open64.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/open64.c b/libc/sysdeps/linux/common/open64.c index c1f5400..cb43af6 100644 --- a/libc/sysdeps/linux

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- include/sys/stat.h| 1 + libc/sysdeps/linux/common/fstatat64.c | 1 + libc/sysdeps/linux/common/stat64.c| 16 ++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/include/sys/stat.h b/

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/vfork.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/vfork.c b/libc/sysdeps/linux/common/vfork.c index e7c9208..377418c 100644 --- a/libc/sysdeps

[PATCH v2 46/46] Config.in: Introduce symbol for arches with deprecated syscalls

2012-11-26 Thread Markos Chandras
From: Markos Chandras Linuxthreads(old and new) need deprecated syscalls to build. Existing architectures support these system calls but new architectures don't. This symbol has no functional change apart from hidding the Linuxthreads symbols from arches that don't support them. Signed-off-by: M

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/lstat.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/common/lstat.c b/libc/sysdeps/linux/common/lstat.c index db72d1f..9f086f4 100644 --- a/libc/sysde

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/fork.c | 17 - libc/sysdeps/linux/common/stubs.c | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/common/fork.c b/libc/sysdeps/linux/common/fork.c index

[PATCH v2 19/46] epoll: Use epoll_pwait if arch does not have the epoll_wait syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/epoll.c | 10 ++ libc/sysdeps/linux/common/stubs.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/epoll.c b/libc/sysdeps/linux/common/epoll.c index f07a

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- ldso/include/dl-syscall.h | 88 +++ ldso/include/ldso.h | 4 +++ 2 files changed, 92 insertions(+) diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h index 547dad1..3c7d7

[PATCH v2 37/46] fstatfs: Add __libc_fstatfs wrapper

2012-11-26 Thread Markos Chandras
From: Markos Chandras 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 compatibility Signed-off-by: Markos Ch

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras 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 --- libc/sysdeps/linux/common/Makefile.in

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/Makefile.in | 2 +- .../sysdeps/unix/sysv/linux/Makefile.commonarch| 4 +++- libpthread/nptl/sysdeps/unix/sysv/linux/openat.S | 22 ++ 3 files changed, 26 insertions(+), 2

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/not-cancel.h | 7 +++ libpthread/linuxthreads.old/sysdeps/pthread/not-cancel.h | 9 + libpthread/linuxthreads/sysdeps/pthread/not-cancel.h | 9 + libpthread/nptl/sysdeps/

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/__syscall_fcntl.c | 57 +-- libc/sysdeps/linux/common/__syscall_fcntl64.c | 5 +++ 2 files changed, 59 insertions(+), 3 deletions(-) diff --git a/libc/sysdeps/linux/common/__syscall_fc

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/stat.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/libc/sysdeps/linux/common/stat.c b/libc/sysdeps/linux/common/stat.c index 829f35a..038e0c0 100644 --- a/libc/sysdeps/l

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- include/sys/statfs.h | 1 + libc/sysdeps/linux/common/statfs.c | 53 +- 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/include/sys/statfs.h b/include/sys/statfs.h index c7

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/fstatat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/fstatat.c b/libc/sysdeps/linux/common/fstatat.c index 33daa7c..a0bc3cd 100644 --- a/libc/sysdeps/linux/comm

[PATCH v2 24/46] ftruncate: Use ftruncate64 if arch does not have the ftruncate syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/ftruncate.c | 9 + 1 file changed, 9 insertions(+) diff --git a/libc/sysdeps/linux/common/ftruncate.c b/libc/sysdeps/linux/common/ftruncate.c index 3bdef3f..72f86f9 100644 --- a/libc/sysdeps/linux/commo

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras 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 make the entire process much f

[PATCH v2 34/46] ustat: Add ustat stub for arches that don't have the ustat system call

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/stubs.c | 4 libc/sysdeps/linux/common/ustat.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/libc/sysdeps/linux/common/stubs.c b/libc/sysdeps/linux/common/stubs.c index 1837195..160d27f 100644 ---

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/utime.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/utime.c b/libc/sysdeps/linux/common/utime.c index c9fd1bf..75d4d2c 100644 --- a/libc/s

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- include/sys/sendfile.h | 1 + libc/sysdeps/linux/common/sendfile.c | 44 +++--- libc/sysdeps/linux/common/sendfile64.c | 1 + libc/sysdeps/linux/common/stubs.c | 3 ++- 4 files changed

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/lstat64.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/lstat64.c b/libc/sysdeps/linux/common/lstat64.c index 235b76d..89c8707 100644 --- a/libc/sys

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/getdents.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/getdents.c b/libc/sysdeps/linux/common/getdents.c index 46f7b8e..9823e5d 100644 --- a/libc/sysdeps/linu

[PATCH v2 25/46] truncate: Use truncate64 if arch does not have the truncate syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- include/unistd.h | 1 + libc/sysdeps/linux/common/truncate.c | 9 + libc/sysdeps/linux/common/truncate64.c | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/include/unistd.h b/include/u

[PATCH v2 20/46] inotify_init: Use inotify_init1 if inotify_init syscall is not defined

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/inotify.c | 14 ++ libc/sysdeps/linux/common/stubs.c | 3 ++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/libc/sysdeps/linux/common/inotify.c b/libc/sysdeps/linux/common/inotif

[PATCH v2 18/46] epoll: Use epoll_create1 if arch does not have the epoll_create syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/epoll.c | 20 ++-- libc/sysdeps/linux/common/stubs.c | 2 +- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/libc/sysdeps/linux/common/epoll.c b/libc/sysdeps/linux/common/epoll.c

[PATCH v2 14/46] readlink: Use readlinkat if arch does not have the readlink syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- include/unistd.h | 1 + libc/sysdeps/linux/common/readlink.c | 8 libc/sysdeps/linux/common/readlinkat.c | 1 + 3 files changed, 10 insertions(+) diff --git a/include/unistd.h b/include/unistd.h index 296

[PATCH v2 15/46] symlink: Use symlinkat if arch does not have the symlink syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- include/unistd.h | 1 + libc/sysdeps/linux/common/symlink.c | 13 + libc/sysdeps/linux/common/symlinkat.c | 1 + 3 files changed, 15 insertions(+) diff --git a/include/unistd.h b/include/unistd.h inde

[PATCH v2 10/46] rmdir: Use unlinkat if arch does not have the rmdir syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/rmdir.c | 8 1 file changed, 8 insertions(+) diff --git a/libc/sysdeps/linux/common/rmdir.c b/libc/sysdeps/linux/common/rmdir.c index bad6654..4d12a22 100644 --- a/libc/sysdeps/linux/common/rmdir.c +++

[PATCH v2 12/46] mkdir: Use mkdirat if arch does not have the mkdir syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- include/sys/stat.h | 1 + libc/sysdeps/linux/common/mkdir.c | 8 libc/sysdeps/linux/common/mkdirat.c | 1 + 3 files changed, 10 insertions(+) diff --git a/include/sys/stat.h b/include/sys/stat.h index 88b7044.

[PATCH v2 17/46] pipe: Use pipe2 if arch does not have the pipe syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/pipe.c | 8 1 file changed, 8 insertions(+) diff --git a/libc/sysdeps/linux/common/pipe.c b/libc/sysdeps/linux/common/pipe.c index 8eae27c..614cc24 100644 --- a/libc/sysdeps/linux/common/pipe.c +++ b/li

[PATCH v2 11/46] lchown: Use fchownat if arch does not have the lchown syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/lchown.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/libc/sysdeps/linux/common/lchown.c b/libc/sysdeps/linux/common/lchown.c index c0f8ce7..25acfa2 100644 --- a/libc/sysdeps/linux/common/lch

[PATCH v2 08/46] mknod: Use mknodat if arch does not have the mknod syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/mknod.c | 8 1 file changed, 8 insertions(+) diff --git a/libc/sysdeps/linux/common/mknod.c b/libc/sysdeps/linux/common/mknod.c index b52c8c5..9e31ef3 100644 --- a/libc/sysdeps/linux/common/mknod.c +++

[PATCH v2 13/46] rename: Use renameat if arch does not have the rename syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- include/stdio.h | 1 + libc/sysdeps/linux/common/rename.c | 9 - libc/sysdeps/linux/common/renameat.c | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/include/stdio.h b/include/stdio.h i

[PATCH v2 05/46] access: Use faccessat if arch does not have the access syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- include/unistd.h | 1 + libc/sysdeps/linux/common/access.c| 10 ++ libc/sysdeps/linux/common/faccessat.c | 1 + 3 files changed, 12 insertions(+) diff --git a/include/unistd.h b/include/unistd.h index 7

[PATCH v2 06/46] link: Use linkat if arch does not have the link syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- include/unistd.h | 1 + libc/sysdeps/linux/common/link.c | 9 + libc/sysdeps/linux/common/linkat.c | 1 + 3 files changed, 11 insertions(+) diff --git a/include/unistd.h b/include/unistd.h index 1540aa9..ee08e

[PATCH v2 01/46] libc/sysdeps: add dup3 syscall wrapper

2012-11-26 Thread Markos Chandras
From: Mike Frysinger Some projects (like udev) are starting to use this. Signed-off-by: Mike Frysinger --- include/unistd.h | 6 ++ libc/sysdeps/linux/common/Makefile.in | 1 + libc/sysdeps/linux/common/dup3.c | 13 + 3 files changed, 20 insertions(+

[PATCH v2 00/46] Support for cut-down Linux syscalls

2012-11-26 Thread Markos Chandras
From: Markos Chandras Hi, This is the v2 of the patchset I sent on the 13th of November 2012[1]. Changes since v1: - drop dup3 patch and cherry-pick the dup3 patches from master branch[2] - Fix dup2 to check if file descriptors are the same before calling dup3[3] - Make vfork act as fork() ins

[PATCH v2 07/46] unlink: Use unlinkat if arch does not have the unlink syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- include/unistd.h | 1 + libc/sysdeps/linux/common/unlink.c | 8 libc/sysdeps/linux/common/unlinkat.c | 1 + 3 files changed, 10 insertions(+) diff --git a/include/unistd.h b/include/unistd.h index ee08e19..

[PATCH v2 04/46] chmod: Use fchmodat if arch does not have the chmod syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- include/sys/stat.h | 1 + libc/sysdeps/linux/common/chmod.c| 9 + libc/sysdeps/linux/common/fchmodat.c | 1 + 3 files changed, 11 insertions(+) diff --git a/include/sys/stat.h b/include/sys/stat.h index 170a

[PATCH v2 16/46] utimes: Use utimensat if arch does not have the utimes syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/utimes.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/common/utimes.c b/libc/sysdeps/linux/common/utimes.c index 99d9202..3074e4e 100644 --- a/l

[PATCH v2 02/46] libc/sysdeps: dup3: check for __NR_dup3 since older kernels/arches lack it

2012-11-26 Thread Markos Chandras
From: Mike Frysinger Signed-off-by: Mike Frysinger --- libc/sysdeps/linux/common/dup3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/sysdeps/linux/common/dup3.c b/libc/sysdeps/linux/common/dup3.c index 539c071..8a57785 100644 --- a/libc/sysdeps/linux/common/dup3.c +++ b/libc/sysde

[PATCH v2 09/46] chown: Use fchownat if arch does not have the chown syscall

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- include/unistd.h | 1 + libc/sysdeps/linux/common/chown.c| 9 + libc/sysdeps/linux/common/fchownat.c | 1 + 3 files changed, 11 insertions(+) diff --git a/include/unistd.h b/include/unistd.h index e58945d.

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

2012-11-26 Thread Markos Chandras
From: Markos Chandras Signed-off-by: Markos Chandras --- libc/sysdeps/linux/common/dup2.c | 17 + 1 file changed, 17 insertions(+) diff --git a/libc/sysdeps/linux/common/dup2.c b/libc/sysdeps/linux/common/dup2.c index 006f06b..88856ab 100644 --- a/libc/sysdeps/linux/common/dup2

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

2012-11-26 Thread Markos Chandras
On 19 November 2012 09:51, Markos Chandras wrote: > On Sat, Nov 17, 2012 at 8:37 PM, Mike Frysinger wrote: >> On Tuesday 13 November 2012 06:31:47 Markos Chandras wrote: >>> -#if defined __NR__llseek && defined __UCLIBC_HAS_LFS__ >>> +#if (defined __NR__llseek ||defined __NR_llseek) && defined >>