comparison src/unexalpha.c @ 438:84b14dcb0985 r21-2-27

Import from CVS: tag r21-2-27
author cvs
date Mon, 13 Aug 2007 11:32:25 +0200
parents 3ecd8885ac67
children abe6d1db359e
comparison
equal deleted inserted replaced
437:e2a4e8b94b82 438:84b14dcb0985
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