The return value of these functions was not always correct in case of errors: they were not returning -1 and setting errno. Signed-off-by: Francois Berder <francois.berder@imgtec.com>
The return value of these functions was not always correct in case of errors: they were not returning -1 and setting errno. Signed-off-by: Francois Berder <francois.berder@imgtec.com>