[Bug 6074] New: Test __USE_XOPEN2K8 instead of __USE_GNU for several functions in <string.h>
bugzilla at busybox.net
bugzilla at busybox.net
Wed Mar 6 20:06:17 UTC 2013
https://bugs.busybox.net/show_bug.cgi?id=6074
Summary: Test __USE_XOPEN2K8 instead of __USE_GNU for several
functions in <string.h>
Product: uClibc
Version: 0.9.33.2
Platform: All
URL: http://pubs.opengroup.org/onlinepubs/9699919799/functi
ons/strndup.html
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Standard Compliance
AssignedTo: unassigned at uclibc.org
ReportedBy: maarten at treewalker.org
CC: uclibc-cvs at uclibc.org
Estimated Hours: 0.0
Functions such as strndup() are included in POSIX-2008.1, but are still marked
as GNU extensions in uClibc. The <string.h> header is based on glibc, so I ran
a diff between glibc 2.15 and uClibc 0.9.33.2 of that header file; everywhere
glibc checks for __USE_XOPEN2K8 and uClibc checks for __USE_GNU I patched
uClibc. The resulting patch is attached.
I only looked at <string.h>, it is likely other headers might need a similar
update, but my immediate problem of strndup() not being declared is solved now.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the uClibc-cvs
mailing list