mailing list of musl libc
 help / color / mirror / code / Atom feed
* getpass misplaced
@ 2012-05-21  2:25 Isaac Dunham
  2012-05-21  3:01 ` Rich Felker
  0 siblings, 1 reply; 5+ messages in thread
From: Isaac Dunham @ 2012-05-21  2:25 UTC (permalink / raw)
  To: musl

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

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.

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

include/tgmath.h
include/glob.h
include/arpa/inet.h
include/sys/select.h
include/sys/wait.h
include/sys/socket.h
include/sys/un.h
include/sys/uio.h
include/sys/mman.h
include/sys/stat.h
include/setjmp.h
include/dirent.h
include/time.h
include/netinet/ip.h
include/netinet/tcp.h
include/netinet/ip_icmp.h
include/netinet/in.h		Missing structs
include/netinet/if_ether.h
include/shadow.h
include/endian.h
include/grp.h
include/net/if.h

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



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

end of thread, other threads:[~2012-05-21  4:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-21  2:25 getpass misplaced Isaac Dunham
2012-05-21  3:01 ` Rich Felker
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

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