comparison src/unexsunos4.c @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 74fd4e045ea6
children 697ef44129c6 2b6fa2618f76
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
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);