public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13171] New: missing XSI declarations, such as crypt in <unistd.h>
@ 2011-09-08 20:43 eblake at redhat dot com
  2011-09-09  1:46 ` [Bug libc/13171] " bugdal at aerifal dot cx
  2014-06-27 12:07 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: eblake at redhat dot com @ 2011-09-08 20:43 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-27 12:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-08 20:43 [Bug libc/13171] New: missing XSI declarations, such as crypt in <unistd.h> eblake at redhat dot com
2011-09-09  1:46 ` [Bug libc/13171] " bugdal at aerifal dot cx
2014-06-27 12:07 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).