[uClibc]__NR_* definitions

David Byron dbyron at coactive.com
Tue Mar 12 00:08:35 UTC 2002


I'm getting a bunch of warnings compiling busybox/pwd_grp/setgroups.c.  Not sure
if this is a bug in that file, in uClibc, or in my toolchain.  I'm using Davidm's
arm-elf toolchain at the moment.

The warnings are:

/home/dbyron/salem/install-MOAB/usr/include/asm/unistd.h:25: warning: `__NR_exit' redefined
/home/dbyron/salem/install-MOAB/usr/include/bits/syscall.h:12: warning: this is the location of the previous definition

for all of the __NR_* functions.

We don't see these errors using an arm-linux toolchain.  Is it OK for setgroups.c
to include both <sys/syscall.h> (which includes bits/syscall.h), and asm/unistd.h?

Thanks for your help.

-DB
---
David Byron                     dbyron at coactive.com
Coactive Networks, Inc.         http://www.coactive.com
28 Liberty Ship Way             voice:(415)289-7800
Sausalito, CA  94965            fax:(415)289-1320



More information about the uClibc mailing list