First support for new Apache log scheme
[hcoop/domtool2.git] / src / slave.sig
index 7d78217..c1706bf 100644 (file)
@@ -56,4 +56,18 @@ signature SLAVE = sig
 
     val hostname : unit -> string
     (* Get hostname of this machine *)
+
+    val readList : string -> string list
+    val writeList : string * string list -> unit
+    (* Reading and writing lists of strings stored on separate lines in files *)
+
+    val lineInFile : string -> string -> bool
+    (* Is there a line in the file (first arg) that matches that given? *)
+
+    val inGroup : {user : string, group : string} -> bool
+    (* Check membership in a UNIX group. *)
+
+    val mkDirAll : string -> unit
+    (* [mkDirAll p] creates directory "p", creating all parent directories, as
+     * necessary. *)
 end