Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/branches/SMLNJ/src/smlnj-lib/Unix/unix-env-sig.sml
ViewVC logotype

Annotation of /sml/branches/SMLNJ/src/smlnj-lib/Unix/unix-env-sig.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (view) (download)
Original Path: sml/trunk/src/smlnj-lib/Unix/unix-env-sig.sml

1 : monnier 2 (* unix-env-sig.sml
2 :     *
3 :     * COPYRIGHT (c) 1993 by AT&T Bell Laboratories. See COPYRIGHT file for details.
4 :     *
5 :     * A UNIX environment is a list of strings of the form "name=value", where
6 :     * the "=" character does not appear in name.
7 :     * NOTE: binding the user's environment as an ML value and then exporting the
8 :     * ML image can result in incorrect behavior, since the environment bound in the
9 :     * heap image may differ from the user's environment when the exported image
10 :     * is used.
11 :     *)
12 :    
13 :     signature UNIX_ENV =
14 :     sig
15 :    
16 :     val getFromEnv : (string * string list) -> string option
17 :     (* return the value, if any, bound to the name. *)
18 :    
19 :     val getValue : {name : string, default : string, env : string list} -> string
20 :     (* return the value bound to the name, or a default value *)
21 :    
22 :     val removeFromEnv : (string * string list) -> string list
23 :     (* remove a binding from an environment *)
24 :    
25 :     val addToEnv : (string * string list) -> string list
26 :     (* add a binding to an environment, replacing an existing binding
27 :     * if necessary.
28 :     *)
29 :    
30 :     val environ : unit -> string list
31 :     (* return the user's environment *)
32 :    
33 :     val getEnv : string -> string option
34 :     (* return the binding of an environment variable in the
35 :     * user's environment.
36 :     *)
37 :    
38 :     end; (* UNIX_ENV *)
39 :    

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0