X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Funistd.c;h=9fe9d7c6ad6ac3b60fa41ab06f5824a25bcc2e50;hb=444f1ae2c091de3ce8646fcd5be4479a46deb1d4;hp=740afe79e5841654d539cb68ebe9918910c1e477;hpb=f73e0d5c67f0d26e85b92fc4b75fc48783f20d64;p=mono.git diff --git a/support/unistd.c b/support/unistd.c index 740afe79e58..9fe9d7c6ad6 100644 --- a/support/unistd.c +++ b/support/unistd.c @@ -4,7 +4,7 @@ * Authors: * Jonathan Pryor (jonpryor@vt.edu) * - * Copyright (C) 2004-2005 Jonathan Pryor + * Copyright (C) 2004-2006 Jonathan Pryor */ #ifndef _GNU_SOURCE @@ -227,20 +227,13 @@ Mono_Posix_Syscall_lockf (int fd, int cmd, mph_off_t len) return lockf (fd, cmd, (off_t) len); } -void +int Mono_Posix_Syscall_swab (void *from, void *to, mph_ssize_t n) { if (mph_have_long_overflow (n)) - return; + return -1; swab (from, to, (ssize_t) n); -} - -int -Mono_Posix_Syscall_encrypt (void* block, int edflag) -{ - errno = 0; - encrypt (block, edflag); - return errno == 0 ? 0 : -1; + return 0; } int