let rec really_input iz buf pos len = if len <= 0 then () else ( let n = input iz buf pos len in if n = 0 then raise End_of_file else really_input iz buf (pos + n) (len - n) )