This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/13198] New: sched.h should define pid_t


http://sourceware.org/bugzilla/show_bug.cgi?id=13198

             Bug #: 13198
           Summary: sched.h should define pid_t
           Product: glibc
           Version: 2.11
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: bruno@clisp.org
    Classification: Unclassified


According to POSIX:2008
<http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sched.h.html>
the <sched.h> header should ensure that the pid_t type gets defined, like
<sys/types.h> does, if the "Process Scheduling" features of POSIX are
supported.

In this header, these features consist of the functions sched_get_priority_max,
sched_get_priority_min, sched_getparam, sched_getscheduler,
sched_rr_get_interval,
sched_setparam, sched_setscheduler - which are all supported by glibc.
So I believe the intent is that glibc supports the "Process Scheduling"
features.
But then <sched.h> should define 'pid_t'.

How to reproduce:
================= bug.c ================
#include <sched.h>
pid_t x;
========================================

$ gcc -c bug.c
bug.c:2:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'x'
$ gcc -c -D_GNU_SOURCE bug.c
bug.c:2:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'x'

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]