mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: Is "memory.h" wanted?
Date: Tue, 23 Aug 2011 08:17:44 -0400	[thread overview]
Message-ID: <20110823121744.GD132@brightrain.aerifal.cx> (raw)
In-Reply-To: <20110823000637.813c40f2.idunham@lavabit.com>

On Tue, Aug 23, 2011 at 12:06:37AM -0700, Isaac Dunham wrote:
> On Mon, 22 Aug 2011 21:44:33 -0400
> Rich Felker <dalias@aerifal.cx> wrote:
> 
> > On Mon, Aug 22, 2011 at 06:37:10PM -0700, Isaac Dunham wrote:
> > > I recently tried building OpenSSL, and it failed to build due to a
> > > missing "memory.h".
> <snip>
> > > Which, IIRC, means a BSD-flavored/other legacy string.h
> > > Is this header desired for compatability, or should code using it be considered 
> > > non-conformant and patched?
> > 
> > Probably both, i.e. we should add it and OpenSSL should be patched. In
> > the long term I'm thinking about adding #warning to all of the
> > nonsensical legacy headers and wrong-location headers (missing sys/-
> > prefix or incorrect sys/- prefix) to help track down and correct such
> > errors in programs.
> I had assumed the header wanted was a libc header; however, when I
> looked up memory.h, the recommended header to use was a *private*
> kernel header (not one of the cleaned headers). There was talk about

Where did this information come from? The *only* thing "memory.h" is
for is memcpy, memset, etc. which belong in string.h and have always
been in string.h. The whole "memory.h" thing was some BSD nonsense,
probably because they preferred their bzero, bcopy, etc. interfaces
and were bitter than mem* was adopted by ANSI/ISO C.

Rich


  reply	other threads:[~2011-08-23 12:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-23  1:37 Isaac Dunham
2011-08-23  1:44 ` Rich Felker
2011-08-23  7:06   ` Isaac Dunham
2011-08-23 12:17     ` Rich Felker [this message]
2011-08-25  6:37       ` Isaac Dunham
2011-08-25 11:34         ` Szabolcs Nagy
2011-08-25 12:42         ` Rich Felker
2011-08-23 14:26   ` Szabolcs Nagy

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=20110823121744.GD132@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).