Changeset 879 for trunk/src/ash-messup/error.h
- Timestamp:
- Apr 21, 2007, 8:33:35 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ash-messup/error.h
r632 r879 62 62 }; 63 63 64 /* 64 65 extern struct jmploc *handler; 65 66 extern int exception; 66 extern int exerrno; /* error for EXEXEC */67 extern int exerrno;*/ /* error for EXEXEC */ 67 68 68 69 /* exceptions */ … … 80 81 */ 81 82 82 extern volatile int suppressint;83 extern volatile int intpending; 83 /*extern volatile int suppressint; 84 extern volatile int intpending;*/ 84 85 85 #define INTOFF suppressint++86 #define INTON { if (-- suppressint == 0 && intpending) onint(); }87 #define FORCEINTON {suppressint = 0; if ( intpending) onint();}88 #define CLEAR_PENDING_INT intpending = 089 #define int_pending() intpending86 #define INTOFF psh->suppressint++ 87 #define INTON { if (--psh->suppressint == 0 && psh->intpending) onint(psh); } 88 #define FORCEINTON {suppressint = 0; if (psh->intpending) onint(psh);} 89 #define CLEAR_PENDING_INT psh->intpending = 0 90 #define int_pending() psh->intpending 90 91 91 void exraise( int) __attribute__((__noreturn__));92 void onint( void);93 void error( const char *, ...) __attribute__((__noreturn__));94 void exerror( int, const char *, ...) __attribute__((__noreturn__));95 const char *errmsg( int, int);92 void exraise(struct shinstance *, int) __attribute__((__noreturn__)); 93 void onint(struct shinstance *); 94 void error(struct shinstance *, const char *, ...) __attribute__((__noreturn__)); 95 void exerror(struct shinstance *, int, const char *, ...) __attribute__((__noreturn__)); 96 const char *errmsg(struct shinstance *, int, int); 96 97 97 void sh_err( int, const char *, ...) __attribute__((__noreturn__));98 void sh_verr( int, const char *, va_list) __attribute__((__noreturn__));99 void sh_errx( int, const char *, ...) __attribute__((__noreturn__));100 void sh_verrx( int, const char *, va_list) __attribute__((__noreturn__));101 void sh_warn( const char *, ...);102 void sh_vwarn( const char *, va_list);103 void sh_warnx( const char *, ...);104 void sh_vwarnx( const char *, va_list);98 void sh_err(struct shinstance *, int, const char *, ...) __attribute__((__noreturn__)); 99 void sh_verr(struct shinstance *, int, const char *, va_list) __attribute__((__noreturn__)); 100 void sh_errx(struct shinstance *, int, const char *, ...) __attribute__((__noreturn__)); 101 void sh_verrx(struct shinstance *, int, const char *, va_list) __attribute__((__noreturn__)); 102 void sh_warn(struct shinstance *, const char *, ...); 103 void sh_vwarn(struct shinstance *, const char *, va_list); 104 void sh_warnx(struct shinstance *, const char *, ...); 105 void sh_vwarnx(struct shinstance *, const char *, va_list); 105 106 106 void sh_exit( int) __attribute__((__noreturn__));107 void sh_exit(struct shinstance *, int) __attribute__((__noreturn__)); 107 108 108 109
Note:
See TracChangeset
for help on using the changeset viewer.