comparison src/unexsunos4.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 2b6fa2618f76
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
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);