dfaure added a comment.

  Not sure I understand your question. If we agree on using return values then 
there is only one way to do that. E.g. chmod() returns 0 on success, so the 
code could be like
  
    if (chmod(...) == 0)
         return reply;
     break;
  
  which jumps to the if (errno) code when chmod returns non-zero.
  Same for all other methods, check the man page for each to avoid making any 
assumptions, but presumably they all return 0 on success.

REVISION DETAIL
  https://phabricator.kde.org/D6197

To: chinmoyr, elvisangelaccio, #frameworks, dfaure

Reply via email to