1 (* Copyright (C
) 2009 Matthew Fluet
.
2 * Copyright (C
) 1999-2005 Henry Cejtin
, Matthew Fluet
, Suresh
3 * Jagannathan
, and Stephen Weeks
.
5 * MLton is released under a BSD
-style license
.
6 * See the file MLton
-LICENSE for details
.
11 local open Posix
.Process
14 val toString
= SysWord
.fmt
StringCvt.DEC
o pidToWord
16 Option
.map(Pervasive
.Int.fromString s
, wordToPid
o SysWord
.fromInt
)
19 val layout
= Layout
.str
o toString
21 local open Posix
.ProcEnv