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

* [Bug libc/13171] missing XSI declarations, such as crypt in <unistd.h>
  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 ` bugdal at aerifal dot cx
  2014-06-27 12:07 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: bugdal at aerifal dot cx @ 2011-09-09  1:46 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13171

Rich Felker <bugdal at aerifal dot cx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugdal at aerifal dot cx
         Resolution|                            |INVALID

--- Comment #1 from Rich Felker <bugdal at aerifal dot cx> 2011-09-09 01:45:38 UTC ---
The XSI option is only usable when _XOPEN_SOURCE is defined with an appropriate
value (700 for SUSv4/POSIX 2008, 600 for SUSv3). _POSIX_C_SOURCE does not
request the XSI option. This is in accordance with:

http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_02_01

-- 
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

* [Bug libc/13171] missing XSI declarations, such as crypt in <unistd.h>
  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
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 12:07 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13171

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
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).