comparison src/unexsunos4.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
78 long bssaddr; 78 long bssaddr;
79 }; 79 };
80 80
81 /********************** Function Prototypes/Declarations ***********/ 81 /********************** Function Prototypes/Declarations ***********/
82 82
83 static void unexec_error (const char *m, int use_errno, ...); 83 static void unexec_error (CONST char *m, int use_errno, ...);
84 static int unexec_open (char *filename, int flag, int mode); 84 static int unexec_open (char *filename, int flag, int mode);
85 static caddr_t unexec_mmap (int fd, size_t len, int prot, int flags); 85 static caddr_t unexec_mmap (int fd, size_t len, int prot, int flags);
86 static long unexec_seek (int fd, long position); 86 static long unexec_seek (int fd, long position);
87 static void unexec_read (int fd, long position, char *buf, int bytes); 87 static void unexec_read (int fd, long position, char *buf, int bytes);
88 static void unexec_write (int fd, long position, char *buf, int bytes); 88 static void unexec_write (int fd, long position, char *buf, int bytes);
114 static unsigned long sbrk_of_0_at_unexec; 114 static unsigned long sbrk_of_0_at_unexec;
115 115
116 /*******************************************************************/ 116 /*******************************************************************/
117 117
118 static void 118 static void
119 unexec_error (const char *fmt, int use_errno, ...) 119 unexec_error (CONST char *fmt, int use_errno, ...)
120 { 120 {
121 const char *err_msg = SYS_ERR; 121 CONST char *err_msg = SYS_ERR;
122 va_list args; 122 va_list args;
123 123
124 fprintf (stderr, "unexec - "); 124 fprintf (stderr, "unexec - ");
125 va_start (args, use_errno); 125 va_start (args, use_errno);
126 vfprintf (stderr, fmt, args); 126 vfprintf (stderr, fmt, args);