Check libc call failure

The parameter framework was not compiling on chrome because the libc is forcing call status to be checked  

Handle failure of calls by returning an error if possible or just logging if not.

assert ?