[uClibc 0000899]: sched_getaffinity / sched_setaffinity are not implemented

bugs at busybox.net bugs at busybox.net
Thu Jun 15 15:17:47 UTC 2006


The following issue has been UPDATED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=899 
====================================================================== 
Reported By:                syn
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   899
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             06-12-2006 03:11 PDT
Last Modified:              06-15-2006 08:17 PDT
====================================================================== 
Summary:                    sched_getaffinity / sched_setaffinity are not
implemented
Description: 
When building Busybox against uClibc, I got the error :
/home/syn/xivo/uclibc-toolchain/busybox/miscutils/taskset.c: In function
`taskset_main':
/home/syn/xivo/uclibc-toolchain/busybox/miscutils/taskset.c:16: error:
`cpu_set_t' undeclared (first use in this function)
/home/syn/xivo/uclibc-toolchain/busybox/miscutils/taskset.c:16: error:
(Each undeclared identifier is reported only once
/home/syn/xivo/uclibc-toolchain/busybox/miscutils/taskset.c:16: error: for
each function it appears in.)
/home/syn/xivo/uclibc-toolchain/busybox/miscutils/taskset.c:16: error:
syntax error before "mask"
/home/syn/xivo/uclibc-toolchain/busybox/miscutils/taskset.c:39: warning:
implicit declaration of function `CPU_ZERO'
/home/syn/xivo/uclibc-toolchain/busybox/miscutils/taskset.c:39: error:
`new_mask' undeclared (first use in this function)
/home/syn/xivo/uclibc-toolchain/busybox/miscutils/taskset.c:40: error:
`CPU_SETSIZE' undeclared (first use in this function)
/home/syn/xivo/uclibc-toolchain/busybox/miscutils/taskset.c:42: warning:
implicit declaration of function `CPU_SET'
/home/syn/xivo/uclibc-toolchain/busybox/miscutils/taskset.c:49: warning:
implicit declaration of function `sched_getaffinity'
/home/syn/xivo/uclibc-toolchain/busybox/miscutils/taskset.c:49: error:
`mask' undeclared (first use in this function)
/home/syn/xivo/uclibc-toolchain/busybox/miscutils/taskset.c:57: warning:
implicit declaration of function `sched_setaffinity'

The header bits/sched.h doesn't typedef cpu_set_t and doesn't define some
macros. This is simply a matter of complying with glibc, I guess.
====================================================================== 

---------------------------------------------------------------------- 
 vapier - 06-15-06 08:17  
---------------------------------------------------------------------- 
no, uClibc does not implement sched_setaffinity / sched_getaffinity, so the
types are also disabled 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-12-06 03:11  syn            New Issue                                    
06-12-06 03:11  syn            Status                   new => assigned     
06-12-06 03:11  syn            Assigned To               => uClibc          
06-15-06 08:17  vapier         Note Added: 0001427                          
06-15-06 08:17  vapier         version                  0.9.28 =>           
06-15-06 08:17  vapier         Summary                  bits/sched.h lacks
declerations => sched_getaffinity / sched_setaffinity are not implemented
======================================================================




More information about the uClibc-cvs mailing list