File tree Expand file tree Collapse file tree 6 files changed +6
-202
lines changed
libs/xapi-stdext/lib/xapi-stdext-unix Expand file tree Collapse file tree 6 files changed +6
-202
lines changed Original file line number Diff line number Diff line change 16
16
(language c)
17
17
(names
18
18
blkgetsize_stubs
19
- unixext_open_stubs
20
- unixext_stubs
21
- unixext_write_stubs))
19
+ unixext_stubs))
22
20
)
Original file line number Diff line number Diff line change @@ -925,35 +925,6 @@ let test_open n =
925
925
done
926
926
)
927
927
928
- module Direct = struct
929
- type t = Unix .file_descr
930
-
931
- external openfile : string -> Unix .open_flag list -> Unix .file_perm -> t
932
- = " stub_stdext_unix_open_direct"
933
-
934
- let close = Unix. close
935
-
936
- let with_openfile path flags perms f =
937
- let t = openfile path flags perms in
938
- finally (fun () -> f t) (fun () -> close t)
939
-
940
- external unsafe_write : t -> bytes -> int -> int -> int
941
- = " stub_stdext_unix_write"
942
-
943
- let write fd buf ofs len =
944
- if ofs < 0 || len < 0 || ofs > Bytes. length buf - len then
945
- invalid_arg " Unixext.write"
946
- else
947
- unsafe_write fd buf ofs len
948
-
949
- let copy_from_fd ?limit socket fd =
950
- copy_file_internal ?limit (Unix. read socket) (write fd)
951
-
952
- let fsync x = fsync x
953
-
954
- let lseek fd x cmd = Unix.LargeFile. lseek fd x cmd
955
- end
956
-
957
928
(* --------------------------------------------------------------------------------------- *)
958
929
959
930
module Daemon = struct
Original file line number Diff line number Diff line change @@ -266,36 +266,6 @@ val test_open : int -> unit
266
266
The file descriptors will stay open until the program exits.
267
267
*)
268
268
269
- module Direct : sig
270
- (* * Perform I/O in O_DIRECT mode using 4KiB page-aligned buffers *)
271
-
272
- (* * represents a file open in O_DIRECT mode *)
273
- type t
274
-
275
- val openfile : string -> Unix .open_flag list -> Unix .file_perm -> t
276
- (* * [openfile name flags perm] behaves the same as [Unix.openfile] but includes the O_DIRECT flag *)
277
-
278
- val close : t -> unit
279
- (* * [close t] closes [t], a file open in O_DIRECT mode *)
280
-
281
- val with_openfile :
282
- string -> Unix .open_flag list -> Unix .file_perm -> (t -> 'a ) -> 'a
283
- (* * [with_openfile name flags perm f] opens [name], applies the result to [f] and closes *)
284
-
285
- val write : t -> bytes -> int -> int -> int
286
- (* * [write t buf ofs len] writes [len] bytes at offset [ofs] from buffer [buf] to
287
- [t] using page-aligned buffers. *)
288
-
289
- val copy_from_fd : ?limit : int64 -> Unix .file_descr -> t -> int64
290
- (* * [copy_from_fd ?limit fd t] copies from [fd] to [t] up to [limit] *)
291
-
292
- val fsync : t -> unit
293
- (* * [fsync t] commits all outstanding writes, throwing an error if necessary. *)
294
-
295
- val lseek : t -> int64 -> Unix .seek_command -> int64
296
- (* * [lseek t offset command]: see Unix.LargeFile.lseek *)
297
- end
298
-
299
269
module Daemon : sig
300
270
(* * OCaml interface to libsystemd.
301
271
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 534
534
<description >A Failure occurred accessing an API object</description >
535
535
<value >153</value >
536
536
</code >
537
+ <code >
538
+ <name >APIProtocolError</name >
539
+ <description >A protocol error was received when accessing the API</description >
540
+ <value >154</value >
541
+ </code >
537
542
538
543
<!-- Netapp Specific Error codes -->
539
544
<code >
You can’t perform that action at this time.
0 commit comments