Browse thread
Distinguish between osx and linux programmatically
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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. http://www.kernel.org/doc/man-pages/online/pages/man2/uname.2.html#NOTES Rich. -- Richard Jones Red Hat