mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: paths.h and similar constants, internal usage?
Date: Sat, 29 Mar 2014 13:19:46 -0400	[thread overview]
Message-ID: <20140329171946.GV26358@brightrain.aerifal.cx> (raw)
In-Reply-To: <20140329083856.GI8221@example.net>

On Sat, Mar 29, 2014 at 08:38:57AM +0000, u-igbb@aetey.se wrote:
> Hello,
> 
> I noticed that musl defines certain constants but does not use them
> even when it could. I find if better in the long run to have
> a single definition of a string instead of multiple ones, for
> various reasons.
> 
> Would it be suitable for upstream to make use of the available symbolic
> constants in the following cases where explicit strings are being used
> instead:

paths.h is just there for making some bad legacy apps happy. It's not
a system we want to use.

As for changing these paths, it's of course something you can do by
changing the source and I can't keep you from doing it, but it's also
not something I have an interest in making easy/automated. For the
most part, changing them has no purpose except making it so your
static binaries don't work on normal systems. musl aims to make
minimal assumptions about pathnames, and those which it does assume
are either required by standards, de facto requirements for
compatibility with anything (e.g. the shell has to be at /bin/sh for
scripts to work anyway), or historically so universal that any system
can be expected to have them.

Anyway, if you have specific requirements you're trying to find a
solution to, please let us know what you're doing. For any request
like this, a strong motivation is needed.

Rich


  reply	other threads:[~2014-03-29 17:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-29  8:38 u-igbb
2014-03-29 17:19 ` Rich Felker [this message]
2014-03-29 17:36   ` u-igbb

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=20140329171946.GV26358@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).