comparison src/unexhp9k3.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 84b14dcb0985
children 13e47461d509
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
70 70
71 #define MASK_DOWN(x,p_of_two) (((unsigned long) (x)) & (~((p_of_two) - 1))) 71 #define MASK_DOWN(x,p_of_two) (((unsigned long) (x)) & (~((p_of_two) - 1)))
72 72
73 /********************** Function Prototypes/Declarations ***********/ 73 /********************** Function Prototypes/Declarations ***********/
74 74
75 static void unexec_error (CONST char *fmt, int use_errno, ...); 75 static void unexec_error (const char *fmt, int use_errno, ...);
76 static int unexec_open (char *filename, int flag, int mode); 76 static int unexec_open (char *filename, int flag, int mode);
77 static long unexec_seek (int fd, long position); 77 static long unexec_seek (int fd, long position);
78 static void unexec_read (int fd, long position, char *buf, int bytes); 78 static void unexec_read (int fd, long position, char *buf, int bytes);
79 static void unexec_write (int fd, long position, char *buf, int bytes); 79 static void unexec_write (int fd, long position, char *buf, int bytes);
80 static void unexec_copy (int new_fd, int old_fd, long old_pos, long new_pos, 80 static void unexec_copy (int new_fd, int old_fd, long old_pos, long new_pos,
94 static unsigned long sbrk_of_0_at_unexec; 94 static unsigned long sbrk_of_0_at_unexec;
95 95
96 /*******************************************************************/ 96 /*******************************************************************/
97 97
98 static void 98 static void
99 unexec_error (CONST char *fmt, int use_errno, ...) 99 unexec_error (const char *fmt, int use_errno, ...)
100 { 100 {
101 CONST char *err_msg = SYS_ERR; 101 const char *err_msg = SYS_ERR;
102 va_list args; 102 va_list args;
103 103
104 fprintf (stderr, "unexec - "); 104 fprintf (stderr, "unexec - ");
105 va_start (args, use_errno); 105 va_start (args, use_errno);
106 vfprintf (stderr, fmt, args); 106 vfprintf (stderr, fmt, args);