Re: [PATCH uClibc] libc/metag: add __kernel_long_t and __kernel_ulong_t

2013-11-06 Thread Markos Chandras
On 08/14/2013 02:57 PM, Markos Chandras wrote: Add __kernel_long_t and __kernel_ulong_t types for Meta. The rest of the architectures have been fixed in: 6a76edddaa62ff06f178143b582167734cb55c18 libc/sysdeps: add __kernel_long and __kernel_ulong Signed-off-by: Markos Chandras markos.chand

Re: [PATCH] libc/sysdeps: Fix common-generic stat.h for BE

2013-03-22 Thread Markos Chandras
Oops yes. Thanks for that! -- Regards, Markos Chandras - Gentoo Linux Developer http://dev.gentoo.org/~hwoarang ___ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc

Re: Bug in _scanf.c

2013-03-18 Thread Markos Chandras
-send-email[1] to send it to the mailing list. It makes review much easier [1] http://www.uclibc.org/developing.html -- Regards, Markos Chandras ___ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc

Re: [PATCH 6/7] fstat64: Fix Build warnings with common-generic ABI build

2013-03-14 Thread Markos Chandras
; #if defined __UCLIBC_HAS_LFS__ extern void __xstat64_conv(struct kernel_stat64 *kbuf, struct stat64 *buf) attribute_hidden; #endif +#endif Looks good to me. Thanks -- Regards, Markos Chandras ___ uClibc mailing list uClibc@uclibc.org http

Re: [PATCH 2/7] utimes: Export utimensat based utimes

2013-03-12 Thread Markos Chandras
n 12 March 2013 08:14, Vineet Gupta vineet.gup...@synopsys.com wrote: On Monday 11 March 2013 10:26 PM, Markos Chandras wrote: On 11 March 2013 13:21, Vineet Gupta vineet.gup...@synopsys.com wrote: sys/time.h has libc_hidden_proto(utimes) which generates the hidden __GI_utimes symbol reference

Re: [PATCH 3/7] leek: if lseek syscall is not available, use lseek64 even for !LFS

2013-03-12 Thread Markos Chandras
; +#endif +/* No need to handle __WORDSIZE == 64 as such a kernel won't define __NR_llseek */ } #else # include errno.h -- That looks ok but I see no reason to define 'high' to be 0. Couldn't you pass '0' directly to INLINE_SYSCALL? -- Regards, Markos Chandras

Re: [PATCH 1/7] vfork: Fix flags when using clone syscall

2013-03-11 Thread Markos Chandras
On 11 March 2013 13:21, Vineet Gupta vineet.gup...@synopsys.com wrote: Signed-off-by: Vineet Gupta vgu...@synopsys.com Cc: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/vfork.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libc/sysdeps

Re: [PATCH 4/7] libpthread: linuxthreads{, .old}: Allow building for no-legacy-syscalls ABI

2013-03-11 Thread Markos Chandras
On 11 March 2013 13:21, Vineet Gupta vineet.gup...@synopsys.com wrote: Since NPTL port to an ARCH can be non-trivial, we must allow the legacy pthread lib to be built for the common-generic syscall ABI Signed-off-by: Vineet Gupta vgu...@synopsys.com Cc: Markos Chandras markos.chand

Re: [PATCH 5/7] ldso: Fix Build warnings with common-generic ABI build

2013-03-11 Thread Markos Chandras
: ./include/sys/stat.h:164:1: warning: this is the location of the previous definition - Cleanly seperated the legacy ABI vs. new ABI scenario. Signed-off-by: Vineet Gupta vgu...@synopsys.com Cc: Markos Chandras markos.chand

Re: [PATCH 4/7] libpthread: linuxthreads{, .old}: Allow building for no-legacy-syscalls ABI

2013-03-11 Thread Markos Chandras
On 11 March 2013 13:39, Vineet Gupta vineet.gup...@synopsys.com wrote: On Monday 11 March 2013 07:04 PM, Markos Chandras wrote: On 11 March 2013 13:21, Vineet Gupta vineet.gup...@synopsys.com wrote: Since NPTL port to an ARCH can be non-trivial, we must allow the legacy pthread lib to be built

Re: [PATCH 2/7] utimes: Export utimensat based utimes

2013-03-11 Thread Markos Chandras
-off-by: Vineet Gupta vgu...@synopsys.com Cc: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/utimes.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libc/sysdeps/linux/common/utimes.c b/libc/sysdeps/linux/common/utimes.c index a459d15

[PATCH] libpthread: Remove useless .cvsignore files

2013-03-03 Thread Markos Chandras
Signed-off-by: Markos Chandras hwoar...@gentoo.org --- libpthread/linuxthreads/.cvsignore | 3 --- libpthread/linuxthreads/sysdeps/pthread/.cvsignore | 2 -- libpthread/linuxthreads/sysdeps/unix/sysv/linux/.cvsignore | 2 -- libpthread/linuxthreads_db/.cvsignore

Re: Output from Build Tools?

2013-03-01 Thread Markos Chandras
/__syscall_rt_sigaction.os ... Jeff ___ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc Try make V=1 -- Regards, Markos Chandras - Gentoo Linux Developer http://dev.gentoo.org/~hwoarang

Re: Output from Build Tools?

2013-03-01 Thread Markos Chandras
On 1 March 2013 19:42, Jeffrey Walton noloa...@gmail.com wrote: On Fri, Mar 1, 2013 at 2:33 PM, Markos Chandras hwoar...@gentoo.org wrote: On 1 March 2013 19:01, Jeffrey Walton noloa...@gmail.com wrote: Hi All, How do I instruct the build tools to output information? Currently, I am only

Re: [PATCH uClibc 1/3] Makerules: Respect $(SYMBOL_PREFIX) when prelinking

2013-02-28 Thread Markos Chandras
On 28 February 2013 12:00, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 27 February 2013 22:45, Markos Chandras markos.chand...@gmail.com wrote: On 27 February 2013 21:06, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 25 February 2013 10:59, Markos Chandras markos.chand

Re: [PATCH uClibc 1/3] Makerules: Respect $(SYMBOL_PREFIX) when prelinking

2013-02-28 Thread Markos Chandras
On 28 February 2013 12:14, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 28 February 2013 13:07, Markos Chandras markos.chand...@gmail.com wrote: Either way is fine for me. Would you be able to extend the one I submitted to include the _start symbol changes in the ldso/ldso/bfin/dl

Re: [PATCH uClibc 1/3] Makerules: Respect $(SYMBOL_PREFIX) when prelinking

2013-02-27 Thread Markos Chandras
On 27 February 2013 21:06, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 25 February 2013 10:59, Markos Chandras markos.chand...@gmail.com wrote: I sent a new patch that fixes all the missing $(SYMBOL_PREFIX) and what about _start (see git grep \-e,)? Hi Bernhard, The Meta arch

[PATCH uClibc] buildsys: Add missing $(SYMBOL_PREFIX) to symbol names

2013-02-25 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- Makerules |2 +- ldso/libdl/Makefile.in |2 +- libpthread/nptl/Makefile.in |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [PATCH uClibc 1/3] Makerules: Respect $(SYMBOL_PREFIX) when prelinking

2013-02-25 Thread Markos Chandras
On 22 February 2013 18:35, Markos Chandras markos.chand...@gmail.com wrote: On 22 February 2013 18:34, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 22 February 2013 13:14:03 Markos Chandras markos.chand...@gmail.com wrote: Hi, Any chance to apply this patch to both master

Re: [PATCH 03/12] nptl/Makefile.in: Append $(SYMBOL_PREFIX) to symbol names

2013-02-22 Thread Markos Chandras
On 21 February 2013 17:05, Markos Chandras markos.chand...@gmail.com wrote: On 21 February 2013 15:23, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 21 February 2013 16:07, Markos Chandras markos.chand...@gmail.com wrote: On 21 February 2013 14:03, Bernhard Reutner-Fischer rep.dot

Re: [PATCH uClibc 1/3] Makerules: Respect $(SYMBOL_PREFIX) when prelinking

2013-02-22 Thread Markos Chandras
On 14 December 2012 10:17, Markos Chandras markos.chand...@gmail.com wrote: From: Markos Chandras markos.chand...@imgtec.com Commit a33796043bdef5345bc00a528c942f91a87af8e9 introduced the runtime prelink support. However, the linker script that is being generated by the create-lds rule

Re: [PATCH 12/12] sched_setaffinity: Don't use function calls as arguments to INTERNAL_SYSCALL.

2013-02-22 Thread Markos Chandras
On 21 February 2013 15:00, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 21 February 2013 11:12, Markos Chandras markos.chand...@gmail.com wrote: From: Markos Chandras markos.chand...@imgtec.com This patch fixes a bug in sched_setaffinity() for Meta where the affinity argument

Re: [PATCH uClibc 1/3] Makerules: Respect $(SYMBOL_PREFIX) when prelinking

2013-02-22 Thread Markos Chandras
On 22 February 2013 18:34, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 22 February 2013 13:14:03 Markos Chandras markos.chand...@gmail.com wrote: Hi, Any chance to apply this patch to both master and 0.9.33 branches? Do you have a combined patch at hand that deals with all

[PATCH 00/12] Meta uClibc port

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Hi, This patchset adds support for Imagination's Meta ATP (Meta 1) and HTP (Meta 2) processor cores in uClibc. Meta cores are 32-bit, hardware multithreaded, general purpose, embedded processors which also feature a DSP instruction set, and can

[PATCH 01/12] libc/not-cancel.h: Enable pause_not_cancel for arches without __NR_pause

2013-02-21 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/common/not-cancel.h b/libc/sysdeps/linux/common

[PATCH 02/12] libc/pause: Add __pause_not_cancel weak alias.

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com On architectures that don't provide __NR_pause __pause_nocancel is needed when wanting to perform an uncancelable pause. Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/pause.c | 4 ++-- 1 file changed, 2

[PATCH 03/12] nptl/Makefile.in: Append $(SYMBOL_PREFIX) to symbol names

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libpthread/nptl/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpthread/nptl/Makefile.in b/libpthread/nptl/Makefile.in index 158bcae..0008822 100644

[PATCH 05/12] elf: Add ELF magic number and relocations for the Meta architecture

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- include/elf.h | 44 1 file changed, 44 insertions(+) diff --git a/include/elf.h b/include/elf.h index d70cafe..877d081 100644 --- a/include

[PATCH 04/12] nptl/allocatestack.c: Fix stack mprotect alignment for STACK_GROWS_UP

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com mprotect() expects the first argument to be aligned to a page boundary. Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libpthread/nptl/allocatestack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpthread

[PATCH 06/12] ldd: Add MATCH_MACHINE definition for Meta

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- utils/ldd.c | 5 + 1 file changed, 5 insertions(+) diff --git a/utils/ldd.c b/utils/ldd.c index e53f360..a95e569 100644 --- a/utils/ldd.c +++ b/utils/ldd.c @@ -63,6 +63,11

[PATCH 08/12] libm: Add support for the Meta architecture

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/metag/bits/fenv.h | 77 ++ libc/sysdeps/linux/metag/metag.c | 1 + libm/metag/Makefile.arch | 24 ++ libm/metag

[PATCH 09/12] metag: Add support for loading shared objects into core memories.

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- ldso/ldso/metag/dl-inlines.h | 38 ++ ldso/ldso/metag/dl-sysdep.h | 25 + 2 files changed, 63 insertions(+) create mode

[PATCH 10/12] extra/locale: Mark __codeset_8_bit_t as packed for Meta

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com gen_ldc writes offsets into the __locale_mmap_t structure. This relies on the host system having the same struct offsets as the target. On Meta, the structs are always aligned to a multiple of 4 bytes, and for these targets it is required

[PATCH 12/12] sched_setaffinity: Don't use function calls as arguments to INTERNAL_SYSCALL.

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com This patch fixes a bug in sched_setaffinity() for Meta where the affinity argument was ignored when trying to set a process's scheduling affinity. INTERNAL_SYSCALL places its arguments in the argument registers in preparation for a system call

Re: [PATCH 01/12] libc/not-cancel.h: Enable pause_not_cancel for arches without __NR_pause

2013-02-21 Thread Markos Chandras
On 21 February 2013 13:53, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 21 February 2013 11:11, Markos Chandras markos.chand...@gmail.com wrote: # define pause_not_cancel() \ INLINE_SYSCALL (pause, 0) -/*#else +#else # define pause_not_cancel() \ - __pause_nocancel

Re: [PATCH 00/12] Meta uClibc port

2013-02-21 Thread Markos Chandras
On 21 February 2013 10:11, Markos Chandras markos.chand...@gmail.com wrote: From: Markos Chandras markos.chand...@imgtec.com Hi, This patchset adds support for Imagination's Meta ATP (Meta 1) and HTP (Meta 2) processor cores in uClibc. Meta cores are 32-bit, hardware multithreaded, general

Re: [PATCH 03/12] nptl/Makefile.in: Append $(SYMBOL_PREFIX) to symbol names

2013-02-21 Thread Markos Chandras
On 21 February 2013 14:03, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 21 February 2013 11:12, Markos Chandras markos.chand...@gmail.com wrote: From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libpthread/nptl

Re: [PATCH 01/12] libc/not-cancel.h: Enable pause_not_cancel for arches without __NR_pause

2013-02-21 Thread Markos Chandras
On 21 February 2013 14:14, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 21 February 2013 14:58, Markos Chandras markos.chand...@gmail.com wrote: On 21 February 2013 13:53, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 21 February 2013 11:11, Markos Chandras markos.chand

Re: [PATCH 03/12] nptl/Makefile.in: Append $(SYMBOL_PREFIX) to symbol names

2013-02-21 Thread Markos Chandras
On 21 February 2013 15:23, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 21 February 2013 16:07, Markos Chandras markos.chand...@gmail.com wrote: On 21 February 2013 14:03, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: + -Wl,-z,nodelete,-z,initfirst,-init

Re: [PATCH v3 00/48] Support for cut-down Linux syscalls

2013-02-11 Thread Markos Chandras
On 9 February 2013 10:39, Markos Chandras markos.chand...@gmail.com wrote: On 9 February 2013 10:35, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: Fixed int fstat64(int fd, struct stat64 *buf) { int result; +#ifdef __ARCH_HAS_DEPRECATED_SYSCALLS__ +#else + return

Re: [PATCH v3 00/48] Support for cut-down Linux syscalls

2013-02-09 Thread Markos Chandras
using buildroot so there is a lot of noise in there. I will fix it and do a clean build for x86_64 again. But anyway, i'll have another look during the weekend. Thanks for your patience! cheers, Thank you. -- Regards, Markos Chandras ___ uClibc

Re: [PATCH] libc/{arm, i386}/Makefile.arch: Don't build 64-bit code if LFS is disabled

2013-02-09 Thread Markos Chandras
On 17 January 2013 15:15, Markos Chandras markos.chand...@gmail.com wrote: From: Markos Chandras markos.chand...@imgtec.com Fixes the following compilation error: _lfs_64.h: # error Do not include this header in files not built when LFS is disabled Signed-off-by: Markos Chandras

[PATCH 1/2] libc/unistd/Makefile.in: Handle !UCLIBC_HAS_GET{, SUB}OPT cases

2013-02-07 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com A regression introduced in 1b3025b7352f5e432ffa1c7adc57085ac9092b77 buildsys: switch libc to kbuild-style leading to the following linking problems: libc/libc_so.a(getsubopt-susv3.os): In function getsubopt': getsubopt-susv3.c:(.text+0x0

[PATCH 2/2] libc/inet/rpc/Makefile.in: Move INET_RPC_{DIR, OUT} before CSRC_ALL

2013-02-07 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com A regression introduced in 1b3025b7352f5e432ffa1c7adc57085ac9092b77 buildsys: switch libc to kbuild-style leading to the following linking problems: libc/libc_so.a(rpc_thread.oS): In function __rpc_thread_svc_max_pollfd': rpc_thread.c:(.text+0x148

Re: [PATCH v3 00/48] Support for cut-down Linux syscalls

2013-02-07 Thread Markos Chandras
or if this branch is good enough for inclusion. -- Regards, Markos Chandras ___ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc

Re: [PATCH v3 00/48] Support for cut-down Linux syscalls

2013-02-06 Thread Markos Chandras
On 6 February 2013 10:06, Will Newton will.new...@gmail.com wrote: On Tue, Feb 5, 2013 at 9:45 PM, Markos Chandras markos.chand...@gmail.com wrote: On 5 February 2013 19:08, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 23 January 2013 12:41, Markos Chandras markos.chand

Re: [PATCH v3 00/48] Support for cut-down Linux syscalls

2013-02-06 Thread Markos Chandras
On 6 February 2013 16:03, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 6 February 2013 14:02, Markos Chandras markos.chand...@gmail.com wrote: On 6 February 2013 10:06, Will Newton will.new...@gmail.com wrote: On Tue, Feb 5, 2013 at 9:45 PM, Markos Chandras markos.chand

Re: [PATCH v3 00/48] Support for cut-down Linux syscalls

2013-02-05 Thread Markos Chandras
On 5 February 2013 19:08, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 23 January 2013 12:41, Markos Chandras markos.chand...@gmail.com wrote: From: Markos Chandras markos.chand...@imgtec.com Hi, This is the v3 of the patchset I sent on the 26th of November 2012[1]. Changes

Re: Next release of uclibc

2013-01-26 Thread Markos Chandras
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 01/25/2013 04:11 PM, Markos Chandras wrote: On 25 January 2013 10:52, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 25 January 2013 10:09, Markos Chandras markos.chand...@gmail.com wrote: [2] http://lists.uclibc.org/pipermail

Re: Next release of uclibc

2013-01-25 Thread Markos Chandras
On 25 January 2013 07:59, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 23 January 2013 21:35:19 Markos Chandras markos.chand...@gmail.com wrote: I also sent 3 patches[1][2][3] with generic fixes which can go on the 0.9.33 branch as well. Please consider to apply them [1] http

Re: Next release of uclibc

2013-01-25 Thread Markos Chandras
On 25 January 2013 10:52, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 25 January 2013 10:09, Markos Chandras markos.chand...@gmail.com wrote: [2] http://lists.uclibc.org/pipermail/uclibc/2012-December/047345.html Where is that needed exactly, I don't have the kernel sources

[PATCH v3 03/48] Makefile.in: Use non-legacy interfaces for new architectures

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com New architectures, which don't define ARCH_HAS_DEPRECATED syscalls, need to use the new interfaces from libc/sysdeps/linux/common-no-legacy/bits/ Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- Makefile.in

[PATCH v3 05/48] chmod: Use fchmodat if arch does not have the chmod syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- 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

[PATCH v3 01/48] libc/sysdeps: Add new interfaces for new architectures

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- .../linux/common-no-legacy/bits/align64bit.h | 17 ++ libc/sysdeps/linux/common-no-legacy/bits/dirent.h | 55 ++ .../linux/common-no-legacy/bits/kernel_stat.h | 20

[PATCH v3 09/48] mknod: Use mknodat if arch does not have the mknod syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- 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

[PATCH v3 02/48] Config.in: Introduce symbol for arches with deprecated syscalls

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com 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

[PATCH v3 11/48] rmdir: Use unlinkat if arch does not have the rmdir syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- 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

[PATCH v3 04/48] dup2: Use dup3 if arch does not have the dup2 syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- include/unistd.h | 1 + libc/sysdeps/linux/common/dup2.c | 17 + libc/sysdeps/linux/common/dup3.c | 1 + 3 files changed, 19 insertions(+) diff --git

[PATCH v3 17/48] utimes: Use utimensat if arch does not have the utimes syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/utimes.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/utimes.c b/libc/sysdeps/linux

[PATCH v3 13/48] mkdir: Use mkdirat if arch does not have the mkdir syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- 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

[PATCH v3 19/48] epoll: Use epoll_create1 if arch does not have the epoll_create syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/epoll.c | 8 libc/sysdeps/linux/common/stubs.c | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common

[PATCH v3 06/48] access: Use faccessat if arch does not have the access syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- include/unistd.h | 1 + libc/sysdeps/linux/common/access.c| 10 ++ libc/sysdeps/linux/common/faccessat.c | 1 + 3 files changed, 12 insertions

[PATCH v3 23/48] vfork: Use clone if arch does not have the vfork syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/vfork.c | 21 + 1 file changed, 21 insertions(+) diff --git a/libc/sysdeps/linux/common/vfork.c b/libc/sysdeps/linux/common/vfork.c index

[PATCH v3 25/48] ftruncate: Use ftruncate64 if arch does not have the ftruncate syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/ftruncate.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/libc/sysdeps/linux/common/ftruncate.c b/libc/sysdeps/linux/common

[PATCH v3 12/48] lchown: Use fchownat if arch does not have the lchown syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- 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

[PATCH v3 18/48] pipe: Use pipe2 if arch does not have the pipe syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- 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

[PATCH v3 10/48] chown: Use fchownat if arch does not have the chown syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- 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

[PATCH v3 15/48] readlink: Use readlinkat if arch does not have the readlink syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- include/unistd.h | 1 + libc/sysdeps/linux/common/readlink.c | 8 libc/sysdeps/linux/common/readlinkat.c | 1 + 3 files changed, 10 insertions(+) diff

[PATCH v3 20/48] epoll: Use epoll_pwait if arch does not have the epoll_wait syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/epoll.c | 10 ++ libc/sysdeps/linux/common/stubs.c | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common

[PATCH v3 08/48] unlink: Use unlinkat if arch does not have the unlink syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- 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

[PATCH v3 24/48] fork: Use clone if arch does not have the fork syscall

2013-01-23 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 | 19 +++ libc/sysdeps/linux/common/stubs.c | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux

[PATCH v3 22/48] utime: Use utimensat if arch does not have the utime syscall

2013-01-23 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 | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/common/utime.c b/libc/sysdeps/linux

[PATCH v3 26/48] truncate: Use truncate64 if arch does not have the truncate syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- include/unistd.h | 1 + libc/sysdeps/linux/common/truncate.c | 22 ++ libc/sysdeps/linux/common/truncate64.c | 4 +++- 3 files changed, 26

[PATCH v3 41/48] fstatfs: Add __libc_fstatfs wrapper

2013-01-23 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 v3 28/48] lseek: Use lseek64 is arch does not have the lseek syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/lseek.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/libc/sysdeps/linux/common/lseek.c b/libc/sysdeps/linux/common/lseek.c index 3032a27

[PATCH v3 16/48] symlink: Use symlinkat if arch does not have the symlink syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- include/unistd.h | 1 + libc/sysdeps/linux/common/stubs.c | 2 +- libc/sysdeps/linux/common/symlink.c | 16 ++-- libc/sysdeps/linux/common

[PATCH v3 30/48] statfs: Use statfs64 if arch does not have the statfs syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- include/sys/statfs.h | 1 + libc/sysdeps/linux/common/statfs.c | 31 ++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git

[PATCH v3 29/48] getdents: Use getdents64 if arch does not have the getdents syscall

2013-01-23 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 | 26 +++--- libc/sysdeps/linux/common/getdents64.c | 2 +- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git

[PATCH v3 45/48] not-cancel.h: Use openat if arch does not have the open syscall

2013-01-23 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 +++ libpthread/linuxthreads.old/sysdeps/pthread/not-cancel.h | 9 + libpthread/linuxthreads/sysdeps/pthread

[PATCH v3 32/48] fstat: Use fstat64 if arch does not have the fstat syscall

2013-01-23 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 libc/sysdeps/linux/common/fstat64.c | 4 2 files changed, 24 insertions(+) diff --git a/libc/sysdeps/linux/common

[PATCH v3 46/48] open: Use openat if arch does not have the open syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/open.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/libc/sysdeps/linux/common/open.c b/libc/sysdeps/linux/common/open.c index

[PATCH v3 31/48] libc/statfs64: Skip conversion code for new architectures

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Fixes the following tests in LTP statfs02_64 ( test case #5 ) The purpose of this test is to pass an invalid pointer to the statfs64 syscall and check if the kernel returns EFAULT or not. However, uClibc creates a new statfs struct which

[PATCH v3 33/48] fstatat: Use newfstatat only for 64-bit operations

2013-01-23 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/fstatat.c b/libc/sysdeps/linux/common/fstatat.c index

[PATCH v3 34/48] fstatat64: Use newfstatat only for 64-bit operations

2013-01-23 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/fstatat64.c b/libc/sysdeps/linux/common/fstatat64

[PATCH v3 38/48] lstat64: Use fstatat64 if arch does not have the lstat64 syscall

2013-01-23 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 | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/lstat64.c b/libc/sysdeps/linux/common

[PATCH v3 35/48] fstatat{64}: No conversion code is needed for new architectures

2013-01-23 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 | 15 +-- libc/sysdeps/linux/common/fstatat64.c | 4 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps

[PATCH v3 36/48] stat64: Use fstatat64 if arch does not have the stat64 syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- include/sys/stat.h| 1 + libc/sysdeps/linux/common/fstatat64.c | 1 + libc/sysdeps/linux/common/stat64.c| 20 +--- 3 files changed, 19

[PATCH v3 39/48] ustat: Add ustat stub for arches that don't have the ustat system call

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/stubs.c | 12 libc/sysdeps/linux/common/ustat.c | 2 ++ 2 files changed, 14 insertions(+) diff --git a/libc/sysdeps/linux/common/stubs.c b/libc

[PATCH v3 40/48] stat: Use fstatat64 if arch does not have the stat syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- include/sys/stat.h | 1 + libc/sysdeps/linux/common/fstatat.c | 1 + libc/sysdeps/linux/common/stat.c| 17 ++--- 3 files changed, 16 insertions(+), 3

[PATCH v3 37/48] lstat: Use fstatat64 if arch does not have the lstat syscall

2013-01-23 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 file changed, 15 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/common/lstat.c b/libc/sysdeps/linux/common

[PATCH v3 44/48] open64: Use openat if arch does not have the open syscall

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/open64.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/open64.c b/libc/sysdeps/linux/common/open64.c index

[PATCH v3 43/48] fcntl: Use fcntl64 is arch does not have the fcntl syscall

2013-01-23 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 | 18 -- libc/sysdeps/linux/common/__syscall_fcntl64.c | 1 + 2 files changed, 17 insertions(+), 2 deletions(-) diff

[PATCH v3 42/48] fstatfs64: Prefer fstatfs64 system call instead of __libc_fstatfs

2013-01-23 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 v3 47/48] ldso: Use newer syscalls if arch does not have the deprecated syscalls

2013-01-23 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- ldso/include/dl-syscall.h | 33 - ldso/include/ldso.h | 4 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/ldso/include/dl

[PATCH v3 48/48] libc/ipc: Allow architectures to define their own __IPC_64 macro

2013-01-23 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. For these architectures we need to define __IPC_64 as 0. Existing architectures

Re: Next release of uclibc

2013-01-23 Thread Markos Chandras
On 23 January 2013 11:44, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 23 January 2013 12:27, Florian Fainelli flor...@openwrt.org wrote: Bernhard, Do you want to backport more fixes into 0.9.33.3 or do you think it is ready for a release now? I have pushed these 3 additional

[PATCH] libc/{arm, i386}/Makefile.arch: Don't build 64-bit code if LFS is disabled

2013-01-17 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Fixes the following compilation error: _lfs_64.h: # error Do not include this header in files not built when LFS is disabled Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/arm/Makefile.arch | 3 ++- libc

[PATCH uClibc 2/3] gen_bits_syscall_h.sh: undefine SYS_x too

2012-12-14 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com When processing #defines and #undefs from the Linux asm/unistd.h, define __NR_x produces an extra #define SYS_x, but undef __NR_x doesn't produce an extra #undef SYS_x. Add the extra #undef so that kernel header files can #undef syscall numbers

[PATCH uClibc 3/3] libc/pause: Add __pause_nocancel weak alias.

2012-12-14 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com On architectures that don't provide __NR_pause, __pause_nocancel is needed when wanting to perform an uncancelable pause. Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/pause.c | 1 + 1 file changed, 1

Re: ftruncate with LFS OFF (was Re: [PATCH v2 24/46] ftruncate: Use ftruncate64 if arch does not have the ftruncate syscall)

2012-12-10 Thread Markos Chandras
On 10 December 2012 05:26, Vineet Gupta vineet.gup...@synopsys.com wrote: The fix looks reasonable to me (probably similar fixes for the other syscalls apply too, except for the getdents one that looks a bit complicated.) However, I am affraid that the code might become a bit unreadable with

  1   2   >