mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Zvi Gilboa <zg7s@eservices.virginia.edu>
To: <musl@lists.openwall.com>
Subject: Re: question: hard-coded file descriptors in stdin/stdout/stderr
Date: Mon, 18 Mar 2013 00:38:33 -0400	[thread overview]
Message-ID: <51469A49.2090109@eservices.virginia.edu> (raw)
In-Reply-To: <1363580542.15703.24@driftwood>

 >> My concern isn't that you'll succeed or fail either way, it's that 
in trying to do it you'll mess up the nice clean Linux C library Rich 
has made by forcing a bunch of non-posix assumptions on it.

No need to worry, I shall never do something like that.  As mentioned a 
couple of days ago, my library is written so that all additions to musl 
will take place in the form of architecture-specific sub-folders, as is 
the case today with mips, x86_64, etc.


 >> This assumption that started this thread is a perfect example... so 
musl relying on what posix said _is_ what you were objecting to.

Not really an assumption, just an attempt to better understand things.  
The answers I received were enlightening and very useful, and thus saved 
me a lot of time.  I also do not recall trying to object to the current 
musl implementation, hence the use of question marks and the subjunctive 
mood in my original post:)


 >> I don't understand why this new approach thinks it won't encounter 
the problems of either previous project. I'd wait to see code...

You know, sometimes dreams come true.  Maybe mine will be one of them.

ZG






On 03/18/2013 12:22 AM, Rob Landley wrote:
> On 03/17/2013 10:28:51 PM, Zvi Gilboa wrote:
>> >> Doesn't mingw already exist?
>>
>> Of course it does, but it does not allow one to compile unmodified 
>> posix code.
>>
>>
>> >> How on earth does licensing on WINDOWS matter, since the base OS 
>> is proprietary? So this is explicitly "provide free stuff to make 
>> paying money to Microsoft more appealing"?
>>
>> My approach on that issue is apparently rather different.  But as often
>> happens, the greatest resistance comes not from those who oppose 
>> one's goal,
>> but rather from those who share the same goal, yet differ in their 
>> vision as
>> to how it should be reached.  My hope is that as my project evolves, 
>> you,
>> too, will become one of its supports.
>
> Oh no, I oppose your goal entirely. I think that a posix libc 
> attempting to support windows is a bad idea.
>
> My concern isn't that you'll succeed or fail either way, it's that in 
> trying to do it you'll mess up the nice clean Linux C library Rich has 
> made by forcing a bunch of non-posix assumptions on it. (I.E. fork it 
> all you like, that's merely useless, but pushing this stuff upstream 
> makes no sense to me and seems actively harmful.)
>
> This assumption that started this thread is a perfect example. The 
> posix-2008 stdin definition under system interfaces in the function 
> list explicitly says that stdin is 0, stdout is 1, and stderr is 2. So 
> musl relying on what posix said _is_ what you were objecting to. 
> Meanwhile Rich is saying that letting windows programs rely on posix 
> is the advantage of your approach. This seems like a direct conflict 
> to me.
>
> It is of course Rich's call not mine. But I'm not following the logic 
> at all.
>
> Rob



  reply	other threads:[~2013-03-18  4:38 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-14 16:18 Zvi Gilboa
2013-03-14 17:17 ` Szabolcs Nagy
2013-03-14 17:51   ` Zvi Gilboa
2013-03-14 18:17     ` Szabolcs Nagy
2013-03-14 19:34       ` Zvi Gilboa
     [not found]     ` <CAFipMOE4xkYBYb1rEDtB0T8+Nfgs9cEG_=Va1=PKN4H6CLDHMw@mail.gmail.com>
2013-03-14 19:57       ` Zvi Gilboa
2013-03-15  8:33     ` Rich Felker
2013-03-15 11:43       ` LM
2013-03-15 14:46       ` Zvi Gilboa
2013-03-15 18:43         ` Rich Felker
2013-03-15 18:55           ` Zvi Gilboa
2013-03-15 19:03             ` Rich Felker
2013-03-15 19:20               ` Zvi Gilboa
2013-03-18  3:14     ` Rob Landley
2013-03-18  3:26       ` Rich Felker
2013-03-18  3:50         ` Strake
2013-03-18  4:08           ` Rich Felker
2013-03-18  4:30             ` Rob Landley
2013-03-18  4:09         ` Rob Landley
2013-03-18  3:28       ` Zvi Gilboa
2013-03-18  4:22         ` Rob Landley
2013-03-18  4:38           ` Zvi Gilboa [this message]
2013-03-18  3:06 ` Rob Landley

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=51469A49.2090109@eservices.virginia.edu \
    --to=zg7s@eservices.virginia.edu \
    --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).