Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-10-25 23:18:46 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-10-25 23:18:46 +0400
commit664252b754b47fc328bfeaf77dc8c2a82b2e2a99 (patch)
tree7f74cc52413fc5fedff40534dadd414b488f5f2c /libgloss/i386/cygmon-salib.c
parent8dec3c152c85a68adcf6d72fb9d92989e7aca5d3 (diff)
2002-10-25 Bernd Schmidt <bernds@redhat.com>
* i386/cygmon.ld: Add entry for .gcc_except_table. 2000-10-25 Mark Salter <msalter@redhat.com> * i386/cygmon-crt0.S: Use __USER_LABEL_PREFIX__ for symbols. Always use __start for start symbol. * i386/cygmon-salib.c: Don't build __do_global_[cd]tors for AOUT. Disable file I/O extensions to make Plum Hall happy. * i386/cygmon.ld: Set __start as entry point. * i386/Makefile.in: Support IS_AOUT. * i386/configure.in: Support IS_AOUT. * i386/configure: Regenerated. * i386/cygmon-salib.c: * i386/cygmon-gmon.c (_mcount): It's _etext.
Diffstat (limited to 'libgloss/i386/cygmon-salib.c')
-rw-r--r--libgloss/i386/cygmon-salib.c17
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 ()