From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id EDF0DBC57 for ; Thu, 8 Jul 2010 13:44:40 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAFdXNUxQRFuw/2dsb2JhbACgJ3G/NIUlBA X-IronPort-AV: E=Sophos;i="4.53,558,1272837600"; d="scan'208";a="66024188" Received: from furbychan.cocan.org ([80.68.91.176]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 08 Jul 2010 13:44:40 +0200 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1OWpWs-0007wP-4L; Thu, 08 Jul 2010 12:44:34 +0100 Date: Thu, 8 Jul 2010 12:44:34 +0100 To: Daniel =?iso-8859-1?Q?B=FCnzli?= Cc: caml-list List Subject: Re: [Caml-list] Distinguish between osx and linux programmatically Message-ID: <20100708114434.GB16057@annexia.org> References: <20100708102314.GA16057@annexia.org> <20100708104517.GA848@Stubb-2.local> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Spam: no; 0.00; 0200,:01 bunzli:01 uname:01 uname:01 stdlib:01 hacks:01 wrote:01 wrote:01 caml-list:01 kernel:02 external:03 external:03 seems:03 daniel:04 jul:05 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 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. http://www.kernel.org/doc/man-pages/online/pages/man2/uname.2.html#NOTES Rich. -- Richard Jones Red Hat