question against 22825 commit

Matthieu CASTET matthieu.castet at parrot.com
Tue Jul 15 09:15:42 UTC 2008


Hi,

why does it is need ?
if you look to linux include, there already it undefine stuff [1].
Why does it need to be done in uclibc header. It could be a pain to keep 
it in sync...



Also there is(was) some missing stuff in the gen_bits_syscall_h.sh script.
Application check if syscall exist by testing SYS_XXXXX definition.
Uclibc script does SYS_XXXXX definition even if NR_XXXX is undefined.

This mean we end on arm in include/bits/sysnum.h with :
#undef __NR_socketcall
#define __NR_socketcall __NR_socketcall
#define SYS_socketcall __NR_socketcall

Buildroot is(was) aware of the problem (see strace-undef-syscall.patch), 
they did a strace patch instead of fixing uclibc ...

Matthieu



[1]
include/asm-arm/unistd.h
#if defined(__ARM_EABI__) && !defined(__KERNEL__)
#undef __NR_time
#undef __NR_umount
#undef __NR_stime
#undef __NR_alarm
#undef __NR_utime
#undef __NR_getrlimit
#undef __NR_select
#undef __NR_readdir
#undef __NR_mmap
#undef __NR_socketcall
#undef __NR_syscall
#undef __NR_ipc
#endif



More information about the uClibc mailing list