public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13198] New: sched.h should define pid_t
@ 2011-09-18 21:22 bruno at clisp dot org
  2011-09-19 22:16 ` [Bug libc/13198] " eblake at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bruno at clisp dot org @ 2011-09-18 21:22 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/13198] sched.h should define pid_t
  2011-09-18 21:22 [Bug libc/13198] New: sched.h should define pid_t bruno at clisp dot org
@ 2011-09-19 22:16 ` eblake at redhat dot com
  2011-09-28 12:22 ` aj at suse dot de
  2014-06-27 12:03 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: eblake at redhat dot com @ 2011-09-19 22:16 UTC (permalink / raw)
  To: glibc-bugs

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

Eric Blake <eblake at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eblake at redhat dot com

--- Comment #1 from Eric Blake <eblake at redhat dot com> 2011-09-19 22:15:42 UTC ---
This appears to be fixed by at least glibc 2.13:

$ printf '#include<sched.h>\n' | gcc -E - | grep pid_t | head -n2
typedef int __pid_t;
typedef __pid_t pid_t;
$ printf '#define _POSIX_C_SOURCE 200809L\n#include<sched.h>\n' \
  | gcc -E - | grep pid_t | head -n2
typedef int __pid_t;
typedef __pid_t pid_t;

-- 
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/13198] sched.h should define pid_t
  2011-09-18 21:22 [Bug libc/13198] New: sched.h should define pid_t bruno at clisp dot org
  2011-09-19 22:16 ` [Bug libc/13198] " eblake at redhat dot com
@ 2011-09-28 12:22 ` aj at suse dot de
  2014-06-27 12:03 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: aj at suse dot de @ 2011-09-28 12:22 UTC (permalink / raw)
  To: glibc-bugs

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

Andreas Jaeger <aj at suse dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |aj at suse dot de
         Resolution|                            |FIXED

--- Comment #2 from Andreas Jaeger <aj at suse dot de> 2011-09-28 12:21:35 UTC ---
This is fixed in current glibc (tested 2.14).

-- 
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/13198] sched.h should define pid_t
  2011-09-18 21:22 [Bug libc/13198] New: sched.h should define pid_t bruno at clisp dot org
  2011-09-19 22:16 ` [Bug libc/13198] " eblake at redhat dot com
  2011-09-28 12:22 ` aj at suse dot de
@ 2014-06-27 12:03 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 12:03 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-27 12:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-18 21:22 [Bug libc/13198] New: sched.h should define pid_t bruno at clisp dot org
2011-09-19 22:16 ` [Bug libc/13198] " eblake at redhat dot com
2011-09-28 12:22 ` aj at suse dot de
2014-06-27 12:03 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).