Mercurial > hg > xemacs-beta
comparison src/unexmips.c @ 398:74fd4e045ea6 r21-2-29
Import from CVS: tag r21-2-29
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:13:30 +0200 |
parents | 376386a54a3c |
children | 697ef44129c6 04bc9d2f42c7 |
comparison
equal
deleted
inserted
replaced
397:f4aeb21a5bad | 398:74fd4e045ea6 |
---|---|
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> | |
29 #include <varargs.h> | 30 #include <varargs.h> |
30 | 31 |
31 #ifdef MACH | 32 #ifdef MACH |
32 | 33 |
33 #include <a.out.h> | 34 #include <a.out.h> |
93 #define SEEK(_fd, _position, _error_message, _error_arg) \ | 94 #define SEEK(_fd, _position, _error_message, _error_arg) \ |
94 errno = EEOF; \ | 95 errno = EEOF; \ |
95 if (lseek (_fd, _position, L_SET) != _position) \ | 96 if (lseek (_fd, _position, L_SET) != _position) \ |
96 fatal_unexec (_error_message, _error_arg); | 97 fatal_unexec (_error_message, _error_arg); |
97 | 98 |
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; |