This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11125] <stdio.h> is incomplete for POSIX 2008
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 4 Jan 2010 21:02:57 -0000
- Subject: [Bug libc/11125] <stdio.h> is incomplete for POSIX 2008
- References: <20100101230839.11125.ebb9@byu.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2010-01-04 21:02 -------
Can't reproduce the getline issue, it is prototyped (since 2009-02-26).
va_list is defined only with -D_XOPEN_SOURCE=700, not with
-D_POSIX_C_SOURCE=200809L, not sure what is right. If it is supposed to be
defined also for _POSIX_C_SOURCE >= 200909L, then
#ifdef __USE_XOPEN
# ifdef __GNUC__
# ifndef _VA_LIST_DEFINED
typedef _G_va_list va_list;
# define _VA_LIST_DEFINED
# endif
# else
# include <stdarg.h>
# endif
#endif
would need to use #if defined __USE_XOPEN || defined __USE_XOPEN2K8
instead (or __USE_XOPEN2K?).
ssize_t would need something like:
#ifdef __USE_XOPEN2K8
# ifndef __ssize_t_defined
typedef __ssize_t ssize_t;
# define __ssize_t_defined
# endif
#endif
in a right spot in libio/stdio.h.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11125
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.