Mercurial > hg > xemacs-beta
comparison src/unexfreebsd.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 | 2b6fa2618f76 |
comparison
equal
deleted
inserted
replaced
441:72a7cfa4a488 | 442:abe6d1db359e |
---|---|
69 long endaddr; | 69 long endaddr; |
70 }; | 70 }; |
71 | 71 |
72 /********************** Function Prototypes/Declarations ***********/ | 72 /********************** Function Prototypes/Declarations ***********/ |
73 | 73 |
74 static void unexec_error (CONST char *m, int use_errno, ...); | 74 static void unexec_error (const char *m, int use_errno, ...); |
75 static int unexec_open (char *filename, int flag, int mode); | 75 static int unexec_open (char *filename, int flag, int mode); |
76 static caddr_t unexec_mmap (int fd, size_t len, int prot, int flags); | 76 static caddr_t unexec_mmap (int fd, size_t len, int prot, int flags); |
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); |
102 static unsigned long sbrk_of_0_at_unexec; | 102 static unsigned long sbrk_of_0_at_unexec; |
103 | 103 |
104 /*******************************************************************/ | 104 /*******************************************************************/ |
105 | 105 |
106 static void | 106 static void |
107 unexec_error (CONST char *fmt, int use_errno, ...) | 107 unexec_error (const char *fmt, int use_errno, ...) |
108 { | 108 { |
109 CONST char *err_msg = SYS_ERR; | 109 const char *err_msg = SYS_ERR; |
110 va_list args; | 110 va_list args; |
111 | 111 |
112 fprintf (stderr, "unexec - "); | 112 fprintf (stderr, "unexec - "); |
113 va_start (args, use_errno); | 113 va_start (args, use_errno); |
114 vfprintf (stderr, fmt, args); | 114 vfprintf (stderr, fmt, args); |