mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: getpass misplaced
Date: Sun, 20 May 2012 23:01:06 -0400	[thread overview]
Message-ID: <20120521030106.GD163@brightrain.aerifal.cx> (raw)
In-Reply-To: <20120520192550.2cef3782@newbook>

On Sun, May 20, 2012 at 07:25:50PM -0700, Isaac Dunham wrote:
> I know getpass is an atrocious security mistake of years ago, but
> if we are going to support it, glibc defines it with GNU, BSD, or *old*
> X/Open feature macros in <unistd.h>, not <pwd.h>.

Fixed.

> Also, I've found two more headers that actually don't need _BSD_SOURCE
> added before they offer the BSD functionality (all BSD functions are
> also available in every other relevant namespace): pwd.h and utmp.h.

OK.

> This has me down to 22 headers that still need work/reviewing. Here's
> the TODO for _BSD_SOURCE:
> 
> include/tgmath.h

This is purely C99 stuff; I don't think GNU would add anything.

> include/glob.h

We don't support the extensions here, and even if we want to have the
macros for extension flags, they seem to be in the reserved namespace
and thus ok to defined unconditionall.

> include/shadow.h
> include/endian.h

These are nonstandard and in principle don't need any feature test
macros. However, we use them in endian.h so that other headers can
include endian.h.

> <netinet/in.h> could cause breakage without extension.  I forget
> exactly what the problem was, though.

..what?

Rich


  reply	other threads:[~2012-05-21  3:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-21  2:25 Isaac Dunham
2012-05-21  3:01 ` Rich Felker [this message]
2012-05-21  3:38   ` Isaac Dunham
2012-05-21  4:52   ` Question on setjmp.h Isaac Dunham
2012-05-21  4:53     ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120521030106.GD163@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).