This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13171] New: missing XSI declarations, such as crypt in <unistd.h>
- From: "eblake at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 08 Sep 2011 20:41:58 +0000
- Subject: [Bug libc/13171] New: missing XSI declarations, such as crypt in <unistd.h>
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13171
Bug #: 13171
Summary: missing XSI declarations, such as crypt in <unistd.h>
Product: glibc
Version: 2.14
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: eblake@redhat.com
Classification: Unclassified
According to POSIX 2008, crypt() and encrypt() should unconditionally be
declared in <unistd.h> by any implementation claiming to provide XSI. Yet:
$ printf '#define _POSIX_C_SOURCE 200809L\n#include <unistd.h>\n' \
| gcc -E - | grep crypt
$
shows 0 hits, and it takes _GNU_SOURCE to convince glibc that we want those
declarations. The same is true of POSIX 2001. Likewise for setkey() in
<stdlib.h>.
https://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00096.html
--
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.