comparison src/unexalpha.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 7d59cb494b73
children de805c49cfc1
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
29 #include <sys/types.h> 29 #include <sys/types.h>
30 #include <sys/file.h> 30 #include <sys/file.h>
31 #include <sys/stat.h> 31 #include <sys/stat.h>
32 #include <sys/mman.h> 32 #include <sys/mman.h>
33 #include <stdio.h> 33 #include <stdio.h>
34 #include <errno.h>
34 #include <varargs.h> 35 #include <varargs.h>
35 #include <filehdr.h> 36 #include <filehdr.h>
36 #include <aouthdr.h> 37 #include <aouthdr.h>
37 #include <scnhdr.h> 38 #include <scnhdr.h>
38 #include <syms.h> 39 #include <syms.h>
51 52
52 #define SEEK(_fd, _position, _error_message, _error_arg) \ 53 #define SEEK(_fd, _position, _error_message, _error_arg) \
53 errno = EEOF; \ 54 errno = EEOF; \
54 if (lseek (_fd, _position, L_SET) != _position) \ 55 if (lseek (_fd, _position, L_SET) != _position) \
55 fatal_unexec (_error_message, _error_arg); 56 fatal_unexec (_error_message, _error_arg);
56
57 extern int errno;
58 extern char *strerror ();
59 57
60 void *sbrk(); 58 void *sbrk();
61 59
62 #define EEOF -1 60 #define EEOF -1
63 61