diff options
Diffstat (limited to 'libgloss/i386/cygmon-salib.c')
-rw-r--r-- | libgloss/i386/cygmon-salib.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/libgloss/i386/cygmon-salib.c b/libgloss/i386/cygmon-salib.c index e0d5e72f7..1fd29cacf 100644 --- a/libgloss/i386/cygmon-salib.c +++ b/libgloss/i386/cygmon-salib.c @@ -1,7 +1,7 @@ /* * Standard x86 syscalls for user programs running under Cygmon * - * Copyright (c) 1998 Cygnus Support + * Copyright (c) 1998, 2000 Cygnus Support * * The authors hereby grant permission to use, copy, modify, distribute, * and license this software and its documentation for any purpose, provided @@ -22,8 +22,15 @@ extern int errno; _syscall3(int,write,int,i,char *,c,int,len); - +#if 0 _syscall3(int,read,int,i,char *,c,int,len); +#else +int +read (int des, char *dest, int len) +{ + return -1; +} +#endif _syscall2(int,kill,int,pid,int,signal); @@ -43,7 +50,11 @@ _syscall1(int, close, int, fd); int open (const char *filename, int mode, ...) { +#if 0 return __open (filename, mode, 0644); +#else + return -1; +#endif } /* Ultra-super cheezy. */ @@ -108,7 +119,7 @@ clock () return t.tv_sec * 1000 + (t.tv_usec / 1000); } -#ifndef COFF +#if ! defined(COFF) && ! defined(AOUT) typedef void (*ctp)(); void __do_global_ctors () |