[uClibc 0000899]: sched_getaffinity / sched_setaffinity are not implemented

bugs at busybox.net bugs at busybox.net
Sat Jan 5 23:40:20 UTC 2008


The following issue has been CLOSED 
====================================================================== 
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:                     closed
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             06-12-2006 03:11 PDT
Last Modified:              01-05-2008 15:40 PST
====================================================================== 
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 

---------------------------------------------------------------------- 
 vapier - 01-05-08 15:40  
---------------------------------------------------------------------- 
the functions in question have been implemented 

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
01-05-08 15:40  vapier         Note Added: 0003424                          
01-05-08 15:40  vapier         Status                   assigned => closed  
01-05-08 15:40  vapier         Resolution               open => fixed       
======================================================================




More information about the uClibc-cvs mailing list