X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Funistd.c;h=209c0c1c450c1bae02b7fec90dbdcae168d1d94c;hb=feca28835d4e3cb2be67bdcbd4f54fee62c3797a;hp=9fe9d7c6ad6ac3b60fa41ab06f5824a25bcc2e50;hpb=4eb352bcb3ef7a71dc9ab62c5cd2d5e7598619f7;p=mono.git diff --git a/support/unistd.c b/support/unistd.c index 9fe9d7c6ad6..209c0c1c450 100644 --- a/support/unistd.c +++ b/support/unistd.c @@ -239,25 +239,22 @@ Mono_Posix_Syscall_swab (void *from, void *to, mph_ssize_t n) int Mono_Posix_Syscall_setusershell (void) { - errno = 0; setusershell (); - return errno == 0 ? 0 : -1; + return 0; } int Mono_Posix_Syscall_endusershell (void) { - errno = 0; endusershell (); - return errno == 0 ? 0 : -1; + return 0; } int Mono_Posix_Syscall_sync (void) { - errno = 0; sync (); - return errno == 0 ? 0 : -1; + return 0; }