Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] uname for Ocaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Michal Moskal <malekith@p...>
Subject: Re: [Caml-list] Re: uname for Ocaml
On Wed, Jan 22, 2003 at 05:47:29PM +0100, Michaël Grünewald wrote:
> Basile STARYNKEVITCH <basile@starynkevitch.net> writes:
> 
> > Dear All,
> > 
> > If you need to call uname(2) from some Ocaml program you can steal my
> > tiny code in util.ml util.mli util_ml.c on
> > 
> > I actually wish that uname(2) will be incorporated in the Unix module.
> 
> Would not be more accurate to complete, and much more simple, the
> 'Sys.os_type' information string by a 'Sys.os_name' information string
> (or os_uname ...).

There are also other fields in structure returned by uname:

              struct utsname {
                      char sysname[];
                      char nodename[];
                      char release[];
                      char version[];
                      char machine[];
              #ifdef _GNU_SOURCE
                      char domainname[];
              #endif
              };

I don't see much point messing with Sys modules with all this stuff.

-- 
: Michal Moskal ::::: malekith/at/pld-linux.org :  GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::: Wroclaw University, CS Dept :  {E-,w}-- {b++,e}>+++ h
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners