This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/13171] New: missing XSI declarations, such as crypt in <unistd.h>


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]