remove dependencies on libpthread
PATCH 4/7 remove dependencies on libpthread
Remove a module called Condition and a function called statfs that are unused.
These make xenstored dependent on libpthread and some libc functions that are not present in newlib, and therefore make it harder to port to mini-OS.
Signed-off-by Alex Zeffertt <[email protected]>
libs/stdext/threadext.ml +0 -5
@@ -23,11 +23,6 @@ let r = begin try f () with exn -> Mutex.unlock lock; raise exn end; in Mutex.unlock lock; r -end - -module Condition = struct - include Condition - external timedwait : Condition.t -> Mutex.t -> float -> bool = "caml_condition_timedwait" end (** create thread loops which periodically applies a function *)
libs/stdext/threadext.mli +0 -10
@@ -24,16 +24,6 @@ val execute : Mutex.t -> (unit -> 'a) -> 'a end -module Condition : - sig - type t = Condition.t - val create : unit -> t - val signal : t -> unit - val broadcast: t -> unit - val wait : t -> Mutex.t -> unit - val timedwait : t -> Mutex.t -> float -> bool - end - module Thread_loop : functor (Tr : sig type t val delay : unit -> float end) -> sig
libs/stdext/unixext.ml +0 -13
@@ -406,19 +406,6 @@ | x :: rest, n -> remove_dots (n - 1) rest (* munch *) in to_string (remove_dots 0 (of_string path)) -type statfs_t = { - statfs_type: int64; - statfs_bsize: int; - statfs_blocks: int64; - statfs_bfree: int64; - statfs_bavail: int64; - statfs_files: int64; - statfs_ffree: int64; - statfs_namelen: int; -} - -external statfs: string -> statfs_t = "stub_unixext_statfs" - external get_major_minor : string -> int * int = "stub_unixext_get_major_minor" module Fdset = struct
libs/stdext/unixext.mli +0 -12
@@ -57,18 +57,6 @@ val get_process_output : ?handler:(string -> int -> string) -> string -> string val resolve_dot_and_dotdot : string -> string -type statfs_t = { - statfs_type: int64; - statfs_bsize: int; - statfs_blocks: int64; - statfs_bfree: int64; - statfs_bavail: int64; - statfs_files: int64; - statfs_ffree: int64; - statfs_namelen: int; -} - -val statfs: string -> statfs_t val get_major_minor : string -> int * int module Fdset : sig
libs/stdext/unixext_stubs.c +0 -65
80 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel