Changeset 1099
- Timestamp:
- Jan 29, 2004, 5:18:35 AM (22 years ago)
- Location:
- trunk/src/emx/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/lgpl/misc/error.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r1098 r1099 26 26 27 27 #include <stdio.h> 28 #ifndef __EMX__ /* bird */ 28 29 #include <libintl.h> 30 #endif /* bird */ 29 31 #ifdef _LIBC 30 32 # include <wchar.h> … … 72 74 #ifdef _LIBC 73 75 /* In the GNU C library, there is a predefined variable for this. */ 74 75 76 # define program_name program_invocation_name 76 77 # include <errno.h> … … 84 85 unsigned int line_number, const char *message, 85 86 ...) 86 __attribute__ ((__format__ (__printf__, 5, 6))); ;87 __attribute__ ((__format__ (__printf__, 5, 6))); 87 88 # define error __error 88 89 # define error_at_line __error_at_line … … 102 103 # endif 103 104 104 #ifndef __EMX__ 105 #ifndef __EMX__ /* bird */ 105 106 /* The calling program should define program_name and set it to the 106 107 name of the executing program. */ 107 108 extern char *program_name; 108 #else 109 #else /* bird */ 109 110 /* Use the BSD _getprogname() which the Innotek LIBC also implements. 110 111 Using this save the time used to maintain the two program_* vars … … 112 113 extern const char *_getprogname(void); 113 114 #define program_name _getprogname() 114 #endif 115 116 /* In GNU libc we want do not want to use the common name `error' directly. 117 Instead make it a weak alias. */ 118 extern void __error (int status, int errnum, const char *message, ...) 119 __attribute__ ((__format__ (__printf__, 3, 4))); 120 extern void __error_at_line (int status, int errnum, const char *file_name, 121 unsigned int line_number, const char *message, 122 ...) 123 __attribute__ ((__format__ (__printf__, 5, 6))); 124 # define error __error 125 # define error_at_line __error_at_line 126 127 #endif /* bird */ 115 128 116 129 # if HAVE_STRERROR_R || defined strerror_r -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/libc.def
-
Property cvs2svn:cvs-rev
changed from
1.45
to1.46
r1098 r1099 991 991 "___spawni" @1018 992 992 "_strsignal" @1019 993 "_ error" @1020994 "_ error_at_line" @1021993 "___error" @1020 994 "___error_at_line" @1021 995 995 "_sys_nsig" @1022 996 996 "_sys_siglist" @1023 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.