Overview  Index  Help 
Standard ML Basis Library

POSIX_PROC_ENV


signature POSIX_PROC_ENV =
sig
  eqtype pid
  eqtype file_desc
  eqtype uid
  eqtype gid
  val uidToWord : uid -> SysWord.word
  val wordToUid : SysWord.word -> uid
  val gidToWord : gid -> SysWord.word
  val wordToGid : SysWord.word -> gid
  val getpid : unit -> pid
  val getppid : unit -> pid
  val getuid : unit -> uid
  val geteuid : unit -> uid
  val getgid : unit -> gid
  val getegid : unit -> gid
  val setuid : uid -> unit
  val setgid : gid -> unit
  val getgroups : unit -> gid list
  val getlogin : unit -> string
  val getpgrp : unit -> pid
  val setsid : unit -> pid
  val setpgid : {pid : pid option, pgid : pid option} -> unit
  val uname : unit -> (string * stringlist
  val time : unit -> Time.time
  val times
      : unit ->
          {
            elapsed : Time.time,
            utime : Time.time,
            stime : Time.time,
            cutime : Time.time,
            cstime : Time.time
          }
  val getenv : string -> string option
  val environ : unit -> string list
  val ctermid : unit -> string
  val ttyname : file_desc -> string
  val isatty : file_desc -> bool
  val sysconf : string -> SysWord.word
end

 
Type detail

pid

eqtype pid


file_desc

eqtype file_desc


uid

eqtype uid


gid

eqtype gid

     
Value detail

uidToWord

val uidToWord : uid -> SysWord.word


wordToUid

val wordToUid : SysWord.word -> uid


gidToWord

val gidToWord : gid -> SysWord.word


wordToGid

val wordToGid : SysWord.word -> gid


getpid

val getpid : unit -> pid


getppid

val getppid : unit -> pid


getuid

val getuid : unit -> uid


geteuid

val geteuid : unit -> uid


getgid

val getgid : unit -> gid


getegid

val getegid : unit -> gid


setuid

val setuid : uid -> unit


setgid

val setgid : gid -> unit


getgroups

val getgroups : unit -> gid list


getlogin

val getlogin : unit -> string


getpgrp

val getpgrp : unit -> pid


setsid

val setsid : unit -> pid


setpgid

val setpgid : {pid : pid option, pgid : pid option} -> unit


uname

val uname : unit -> (string * stringlist


time

val time : unit -> Time.time


times

val times
    : unit ->
        {
          elapsed : Time.time,
          utime : Time.time,
          stime : Time.time,
          cutime : Time.time,
          cstime : Time.time
        }


getenv

val getenv : string -> string option


environ

val environ : unit -> string list


ctermid

val ctermid : unit -> string


ttyname

val ttyname : file_desc -> string


isatty

val isatty : file_desc -> bool


sysconf

val sysconf : string -> SysWord.word

 


Overview  Index  Help 
Standard ML Basis Library

This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.

Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.

Permission is granted for internet users to make one paper copy for their own personal use. Further hardcopy reproduction is strictly prohibited. Permission to distribute the HTML document electronically on any medium other than the internet must be requested from the copyright holders by contacting the editors. Printed versions of the SML Basis Manual are available from Cambridge University Press. To order, please visit www.cup.org (North America) or www.cup.cam.ac.uk (outside North America).