<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/01/eb3e199755827e6ec36840e2b70fec49"
  from="Michal Moskal &lt;malekith@p...&gt;"
  author="Michal Moskal"
  date="2003-01-24T12:02:46"
  subject="Re: [Caml-list] Re: uname for Ocaml"
  prev="2003/01/bbfcc4a81696d676b28eef051f7f310f"
  next="2003/01/dada62d32711fa97d364d3a4758c7a44"
  prev-in-thread="2003/01/3ec900eef42b08b0fd4f98e4b1164ef2"
  prev-thread="2003/01/ff00f860be700a943d78413e07a43f74"
  next-thread="2003/01/4a9754e53ff07723caf21b4496d1d267"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] uname for Ocaml">
<msg 
  url="2003/01/0e9c2bc35f3c3fbbe7e967dccafbddfc"
  from="Basile STARYNKEVITCH &lt;basile@s...&gt;"
  author="Basile STARYNKEVITCH"
  date="2003-01-21T15:23:15"
  subject="[Caml-list] uname for Ocaml">
<msg 
  url="2003/01/8d002668cc150c0c58d3c343dbd39a6e"
  from="Issac Trotts &lt;ijtrotts@u...&gt;"
  author="Issac Trotts"
  date="2003-01-21T20:26:01"
  subject="Re: [Caml-list] uname for Ocaml">
<msg 
  url="2003/01/6ccb28289ee64d32905dfd95daa0f506"
  from="Basile STARYNKEVITCH &lt;basile@s...&gt;"
  author="Basile STARYNKEVITCH"
  date="2003-01-21T20:53:17"
  subject="Re: [Caml-list] uname for Ocaml">
<msg 
  url="2003/01/b0cc1fe837514fbfc9cf209458fc068a"
  from="Issac Trotts &lt;ijtrotts@u...&gt;"
  author="Issac Trotts"
  date="2003-01-21T22:38:13"
  subject="Re: [Caml-list] uname for Ocaml">
</msg>
</msg>
</msg>
<msg 
  url="2003/01/3ec900eef42b08b0fd4f98e4b1164ef2"
  from="michael-grunewald@w..."
  author="michael-grunewald@w..."
  date="2003-01-23T10:27:55"
  subject="[Caml-list] Re: uname for Ocaml">
<msg 
  url="2003/01/eb3e199755827e6ec36840e2b70fec49"
  from="Michal Moskal &lt;malekith@p...&gt;"
  author="Michal Moskal"
  date="2003-01-24T12:02:46"
  subject="Re: [Caml-list] Re: uname for Ocaml">
</msg>
</msg>
</msg>
</thread>

<contents>
On Wed, Jan 22, 2003 at 05:47:29PM +0100, Michaël Grünewald wrote:
&gt; Basile STARYNKEVITCH &lt;basile@starynkevitch.net&gt; writes:
&gt; 
&gt; &gt; Dear All,
&gt; &gt; 
&gt; &gt; If you need to call uname(2) from some Ocaml program you can steal my
&gt; &gt; tiny code in util.ml util.mli util_ml.c on
&gt; &gt; 
&gt; &gt; I actually wish that uname(2) will be incorporated in the Unix module.
&gt; 
&gt; Would not be more accurate to complete, and much more simple, the
&gt; 'Sys.os_type' information string by a 'Sys.os_name' information string
&gt; (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}&gt;+++ 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

</contents>

</message>

