[PATCH,HURD] ptrace: use __hurd_fail for EOPNOTSUPP

2012-08-29 Thread Pino Toscano
Hi, attached there is a minor patch to fix the return values of unimplemented cases, i.e. using __hurd_fail to set EOPNOTSUPP properly. Thanks, -- Pino Toscano Hurd: ptrace: use __hurd_fail for EOPNOTSUPP 2012-08-29 Pino Toscano * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to re

[PATCH.HURD] fix fdatasync/fsync if file_sync is not supported

2012-08-29 Thread Pino Toscano
Hi, Hurd's implementations of fdatasync and fsync do not take into account the fact that file_sync could not be implemented in the receiving port, or implemented as stub, returning (E)MIG_BAD_ID or EOPNOTSUPP. Attached there is a patch to normalize them to EINVAL, as specified by POSIX. Thanks