projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wed Jul 11 12:41:32 CEST 2007 Paolo Molaro <lupus@ximian.com>
[mono.git]
/
support
/
unistd.c
diff --git
a/support/unistd.c
b/support/unistd.c
index 352bdce87d47b41b973084eb6729b12b42958cb9..209c0c1c450c1bae02b7fec90dbdcae168d1d94c 100644
(file)
--- a/
support/unistd.c
+++ b/
support/unistd.c
@@
-4,7
+4,7
@@
* Authors:
* Jonathan Pryor (jonpryor@vt.edu)
*
* Authors:
* Jonathan Pryor (jonpryor@vt.edu)
*
- * Copyright (C) 2004-200
5
Jonathan Pryor
+ * Copyright (C) 2004-200
6
Jonathan Pryor
*/
#ifndef _GNU_SOURCE
*/
#ifndef _GNU_SOURCE
@@
-227,36
+227,34
@@
Mono_Posix_Syscall_lockf (int fd, int cmd, mph_off_t len)
return lockf (fd, cmd, (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))
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);
swab (from, to, (ssize_t) n);
+ return 0;
}
int
Mono_Posix_Syscall_setusershell (void)
{
}
int
Mono_Posix_Syscall_setusershell (void)
{
- errno = 0;
setusershell ();
setusershell ();
- return
errno == 0 ? 0 : -1
;
+ return
0
;
}
int
Mono_Posix_Syscall_endusershell (void)
{
}
int
Mono_Posix_Syscall_endusershell (void)
{
- errno = 0;
endusershell ();
endusershell ();
- return
errno == 0 ? 0 : -1
;
+ return
0
;
}
int
Mono_Posix_Syscall_sync (void)
{
}
int
Mono_Posix_Syscall_sync (void)
{
- errno = 0;
sync ();
sync ();
- return
errno == 0 ? 0 : -1
;
+ return
0
;
}
}