Bug 161593 - bad prototype for clone()
Summary: bad prototype for clone()
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-06-24 18:33 UTC by John Reiser
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-07-07 21:15:44 UTC
Type: ---


Attachments (Terms of Use)

Description John Reiser 2005-06-24 18:33:02 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
In Linux kernel 2.6.*, clone() takes upto 7 arguments, but /usr/include/bits/sched.h (from sysdeps/unix/sysv/linux/bits/sched.h) says there are only 5.  The glibc internal include/sched.h says at least 5, which is correct.

Version-Release number of selected component (if applicable):
glibc-2.3.5-10

How reproducible:
Always

Steps to Reproduce:
1. Find the prototype for clone().
2.
3.
  

Actual Results:  -----sysdeps/unix/sysv/linux/bits/sched.h
#ifdef __USE_MISC
extern int clone (int (*__fn) (void *__arg), void *__child_stack,
                  int __flags, void *__arg) __THROW;
#endif


Expected Results:  #ifdef __USE_MISC
extern int clone (int (*__fn) (void *__arg), void *__child_stack,
                  int __flags, void *__arg, ...) __THROW;
#endif


Additional info:

Comment 1 Ulrich Drepper 2005-07-07 21:15:44 UTC
I made a change upstream.

Comment 2 Jakub Jelinek 2005-07-10 20:25:40 UTC
Changes are in glibc-2.3.90-2.


Note You need to log in before you can comment on or make changes to this bug.