@@ -85,238 +85,11 @@ module Struct : sig
8585 end
8686end
8787
88- module In : sig
89- module T = Types. In
90-
91- module Opcode : sig
92- module T = T. Opcode
93-
94- type t = T .t
95-
96- val to_string : t -> string
97-
98- val returns : t -> bool
99-
100- val of_uint32 : Unsigned .uint32 -> t
101-
102- val to_uint32 : t -> Unsigned .uint32
103- end
104-
105- module Hdr : sig
106- module T = T. Hdr
107-
108- val sz : int
109-
110- val packet :
111- opcode :Opcode .t ->
112- unique :Unsigned .uint64 ->
113- nodeid :Unsigned .uint64 ->
114- uid :Unsigned .uint32 ->
115- gid :Unsigned .uint32 ->
116- pid :Unsigned .uint32 -> count :int -> char Ctypes.CArray .t
117-
118- val make :
119- opcode :Opcode .t ->
120- unique :Unsigned .uint64 ->
121- nodeid :Unsigned .uint64 ->
122- uid :Unsigned .uint32 ->
123- gid :Unsigned .uint32 -> pid :Unsigned .uint32 -> 'a Ctypes .typ -> 'a
124-
125- val memcpy :
126- dest :unit Ctypes .ptr -> src :unit Ctypes .ptr -> int -> unit
127-
128- val packet_from_hdr :
129- T .t structure ->
130- count :int -> char Ctypes.CArray .t
131-
132- val make_from_hdr :
133- T .t structure -> 'a Ctypes .typ -> 'a
134- end
135-
136- module Init : sig
137- module T = T. Init
138- end
139-
140- module Open : sig
141- module T = T. Open
142- end
143-
144- module Read : sig
145- module T = T. Read
146- end
147-
148- module Release : sig
149- module T = T. Release
150- end
151-
152- module Access : sig
153- module T = T. Access
154- end
155-
156- module Forget : sig
157- module T = T. Forget
158- end
159-
160- module Flush : sig
161- module T = T. Flush
162- end
163-
164- module Create : sig
165- module T = T. Create
166-
167- val name : unit Ctypes .ptr -> string
168- end
169-
170- module Mknod : sig
171- module T = T. Mknod
172-
173- val name : unit Ctypes .ptr -> string
174- end
175-
176- module Mkdir : sig
177- module T = T. Mkdir
178-
179- val name : unit Ctypes .ptr -> string
180- end
181-
182- module Rename : sig
183- module T = T. Rename
184-
185- val source_destination : unit Ctypes .ptr -> string * string
186- end
187-
188- module Link : sig
189- module T = T. Link
190-
191- val name : unit Ctypes .ptr -> string
192- end
193-
194- module Write : sig
195- module T = T. Write
196- end
197-
198- module Fsync : sig
199- module T = T. Fsync
200- end
201-
202- module Lk : sig
203- module T = T. Lk
204- end
205-
206- module Interrupt : sig
207- module T = T. Interrupt
208- end
209-
210- module Bmap : sig
211- module T = T. Bmap
212- end
213-
214- module Setattr : sig
215- module T = T. Setattr
216-
217- module Valid : sig
218- module T = T. Valid
219-
220- type t = {
221- mode : bool ;
222- uid : bool ;
223- gid : bool ;
224- size : bool ;
225- atime : bool ;
226- mtime : bool ;
227- fh : bool ;
228- unknown : int32 ;
229- (* atime_now : bool;
230- mtime_now : bool;
231- lockowner : bool;*)
232- }
233-
234- val to_string_list : t -> string list
235-
236- val of_uint32 : Unsigned .uint32 -> t
237-
238- val to_uint32 : t -> Unsigned .uint32
239- end
240-
241- val create_from_hdr :
242- valid :Unsigned .uint32 ->
243- fh :Unsigned .uint64 ->
244- size :Unsigned .uint64 ->
245- atime :Unsigned .uint64 ->
246- mtime :Unsigned .uint64 ->
247- atimensec :Unsigned .uint32 ->
248- mtimensec :Unsigned .uint32 ->
249- mode :Unsigned .uint32 ->
250- uid :Unsigned .uint32 ->
251- gid :Unsigned .uint32 ->
252- Hdr .T .t structure -> char Ctypes.CArray .t
253- end
254-
255- module Getxattr : sig
256- module T = T. Getxattr
257-
258- val create_from_hdr :
259- size :Unsigned .uint32 ->
260- Hdr .T .t structure -> char Ctypes.CArray .t
261- end
262-
263- module Setxattr : sig
264- module T = T. Setxattr
265-
266- val create_from_hdr :
267- size :Unsigned .uint32 ->
268- flags :Unsigned .uint32 ->
269- Hdr .T .t structure -> char Ctypes.CArray .t
270- end
271-
272- module Message : sig
273- type t =
274- | Init of Init .T .t Ctypes .structure
275- | Getattr
276- | Lookup of string
277- | Opendir of Open .T .t Ctypes .structure
278- | Readdir of Read .T .t Ctypes .structure
279- | Releasedir of Release .T .t Ctypes .structure
280- | Fsyncdir of Fsync .T .t Ctypes .structure
281- | Rmdir of string
282- | Getxattr of Getxattr .T .t Ctypes .structure * string
283- | Setxattr of Setxattr .T .t Ctypes .structure * string
284- | Listxattr of Getxattr .T .t Ctypes .structure
285- | Removexattr of string
286- | Access of Access .T .t Ctypes .structure
287- | Forget of Forget .T .t Ctypes .structure
288- | Readlink
289- | Open of Open .T .t Ctypes .structure
290- | Read of Read .T .t Ctypes .structure
291- | Write of Write .T .t structure * char Ctypes .ptr
292- | Statfs
293- | Flush of Flush .T .t Ctypes .structure
294- | Release of Release .T .t Ctypes .structure
295- | Fsync of Fsync .T .t Ctypes .structure
296- | Unlink of string
297- | Create of Create .T .t Ctypes .structure * string
298- | Mknod of Mknod .T .t Ctypes .structure * string
299- | Mkdir of Mkdir .T .t Ctypes .structure * string
300- | Setattr of Setattr .T .t Ctypes .structure
301- | Link of Link .T .t Ctypes .structure * string
302- | Symlink of string * string
303- | Rename of Rename .T .t Ctypes .structure * string * string
304- | Getlk of Lk .T .t Ctypes .structure
305- | Setlk of Lk .T .t Ctypes .structure
306- | Setlkw of Lk .T .t Ctypes .structure
307- | Interrupt of Interrupt .T .t Ctypes .structure
308- | Bmap of Bmap .T .t Ctypes .structure
309- | Destroy
310- | Other of Opcode .t
311- | Unknown of int32
312-
313- val parse :
314- chan -> Hdr .T .t Ctypes .structure -> int -> unit Ctypes .ptr
315- -> (Hdr .T .t, t ) packet
316-
317- val describe : (Hdr .T .t, t ) packet -> string
318- end
319- end
88+ module In : Profuse_signatures .Signatures_7_8_in
89+ with module Struct := Types. Struct
90+ with module T = Types. In
91+ and type chan := chan
92+ and type ('h , 'b ) packet := ('h, 'b) packet
32093
32194type 'a request = (In.Hdr .T .t, 'a ) packet
32295
0 commit comments