From: oliver@first.in-berlin.de
To: caml-list List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Distinguish between osx and linux programmatically
Date: Thu, 8 Jul 2010 19:23:18 +0200 [thread overview]
Message-ID: <20100708172318.GB2178@first.in-berlin.de> (raw)
In-Reply-To: <AANLkTikdfDvzDuUXacj-usqI8C_7eyo3MzG0q4KrIzAB@mail.gmail.com>
On Thu, Jul 08, 2010 at 01:09:41PM +0200, Daniel Bünzli wrote:
> On Thu, Jul 8, 2010 at 12:23 PM, Richard Jones <rich@annexia.org> wrote:
>
> > How about running the external "uname" program.
>
> Yes, why not. I was hoping that I wouldn't have to resort to that kind
> of hacks, that I was missing a function using uname(3) directly.
[...]
There is uname(1) and uname(2).
Why do you call it "hack"?
You could write a C-binding for uname(2), but does the effort makes sense
for this call?
It's not like you start a whole shell over and over again, just to get
the basename of a file for some 100000 files...
I would assume the call of uname a thing that will be done once
at startup of the program.
For many syscalls I think it makes sense to have them in the stdlib,
but this one is not the one, where I think it's really urgent to have it.
Ciao,
Oliver
prev parent reply other threads:[~2010-07-08 17:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-08 10:02 Daniel Bünzli
2010-07-08 10:23 ` [Caml-list] " Richard Jones
2010-07-08 10:48 ` Alex
2010-07-08 11:09 ` Daniel Bünzli
2010-07-08 11:44 ` Richard Jones
2010-07-08 15:42 ` Romain Beauxis
2010-07-08 17:01 ` Richard Jones
2010-07-08 17:17 ` oliver
2010-07-08 17:22 ` David Allsopp
2010-07-08 18:22 ` Török Edwin
2010-07-08 17:47 ` Romain Beauxis
2010-07-08 17:23 ` oliver [this message]
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=20100708172318.GB2178@first.in-berlin.de \
--to=oliver@first.in-berlin.de \
--cc=caml-list@yquem.inria.fr \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox