English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Distinguish between osx and linux programmatically
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-07-08 (11:44)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Distinguish between osx and linux programmatically
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.

Stdlib /could/ bind the uname(2) syscall, but it's legendary in its
complexity.  Seems more likely to cause problems than just calling out
to the external program.



Richard Jones
Red Hat