Mercurial > hg > xemacs-beta
comparison src/unexmips.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
24 #include <config.h> | 24 #include <config.h> |
25 #include <sys/types.h> | 25 #include <sys/types.h> |
26 #include <sys/file.h> | 26 #include <sys/file.h> |
27 #include <sys/stat.h> | 27 #include <sys/stat.h> |
28 #include <stdio.h> | 28 #include <stdio.h> |
29 #include <errno.h> | |
30 #include <varargs.h> | 29 #include <varargs.h> |
31 | 30 |
32 #ifdef MACH | 31 #ifdef MACH |
33 | 32 |
34 #include <a.out.h> | 33 #include <a.out.h> |
94 #define SEEK(_fd, _position, _error_message, _error_arg) \ | 93 #define SEEK(_fd, _position, _error_message, _error_arg) \ |
95 errno = EEOF; \ | 94 errno = EEOF; \ |
96 if (lseek (_fd, _position, L_SET) != _position) \ | 95 if (lseek (_fd, _position, L_SET) != _position) \ |
97 fatal_unexec (_error_message, _error_arg); | 96 fatal_unexec (_error_message, _error_arg); |
98 | 97 |
98 extern int errno; | |
99 extern char *strerror (); | 99 extern char *strerror (); |
100 #define EEOF -1 | 100 #define EEOF -1 |
101 | 101 |
102 static struct scnhdr *text_section; | 102 static struct scnhdr *text_section; |
103 static struct scnhdr *init_section; | 103 static struct scnhdr *init_section; |