error.h File Reference

#include <setjmp.h>

Include dependency graph for error.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  jmploc

Defines

#define E_OPEN   01
#define E_CREAT   02
#define E_EXEC   04
#define EXINT   0
#define EXERROR   1
#define EXSHELLPROC   2
#define INTOFF   suppressint++
#define INTON   if (--suppressint == 0 && intpending) onint(); else
#define FORCEINTON   {suppressint = 0; if (intpending) onint();}
#define CLEAR_PENDING_INT   intpending = 0
#define int_pending()   intpending
#define errmsg(errno, action)   strerror(errno)

Functions

void exraise ()
void onint ()
void error2 ()
void error ()
char * errmsg ()

Variables

jmplochandler
int exception
volatile int suppressint
volatile int intpending
char * commandname


Define Documentation

#define CLEAR_PENDING_INT   intpending = 0
 

Definition at line 87 of file error.h.

Referenced by error(), and waitforjob().

#define E_CREAT   02
 

Definition at line 44 of file error.h.

Referenced by openredirect().

#define E_EXEC   04
 

Definition at line 45 of file error.h.

Referenced by shellexec().

#define E_OPEN   01
 

Definition at line 43 of file error.h.

Referenced by openredirect().

#define errmsg errno,
action   )     strerror(errno)
 

Definition at line 105 of file error.h.

Referenced by cmd_errlist(), find_device(), main(), mcat(), mformat(), mpartition(), openredirect(), parse_errmsg(), shellexec(), and unix_write().

#define EXERROR   1
 

Definition at line 69 of file error.h.

Referenced by error().

#define EXINT   0
 

Definition at line 68 of file error.h.

Referenced by main(), and onint().

#define EXSHELLPROC   2
 

Definition at line 70 of file error.h.

Referenced by main(), and tryexec().

#define FORCEINTON   {suppressint = 0; if (intpending) onint();}
 

Definition at line 86 of file error.h.

Referenced by evalbackcmd(), and main().

 
#define int_pending  )     intpending
 

Definition at line 88 of file error.h.

#define INTOFF   suppressint++
 

Definition at line 84 of file error.h.

Referenced by addcmdentry(), clear_traps(), clearcmdentry(), copyfd(), defun(), delete_cmd_entry(), deletefuncs(), docd(), dowait(), emptyoutbuf(), error(), evalpipe(), evalsubshell(), expandarg(), expandmeta(), expbackq(), find_command(), forkshell(), freejob(), freestdout(), getpwd(), growstackblock(), lccmd(), listsetvar(), main(), makejob(), mklocal(), openredirect(), popfile(), popstackmark(), read_profile(), readcmdfile(), setcmd(), setinputfile(), setinputstring(), shiftcmd(), stalloc(), umaskcmd(), unsetvar(), and waitforjob().

#define INTON   if (--suppressint == 0 && intpending) onint(); else
 

Definition at line 85 of file error.h.

Referenced by addcmdentry(), clear_traps(), defun(), delete_cmd_entry(), docd(), emptyoutbuf(), evalpipe(), evalsubshell(), expandarg(), find_command(), forkshell(), freejob(), freestdout(), getpwd(), growstackblock(), lccmd(), main(), mklocal(), openredirect(), popfile(), popstackmark(), read_profile(), readcmdfile(), setcmd(), setinputfile(), setinputstring(), shiftcmd(), stalloc(), umaskcmd(), and waitforjob().


Function Documentation

char* errmsg  ) 
 

void error  ) 
 

void error2  ) 
 

void exraise  ) 
 

void onint  ) 
 

Definition at line 97 of file error.c.

References _exit, EXINT, exraise(), iflag, intpending, rootshell, SIGINT, and suppressint.


Variable Documentation

char* commandname
 

Definition at line 9 of file error.c.

int exception
 

Definition at line 65 of file error.c.

struct jmploc* handler
 

Definition at line 64 of file error.c.

volatile int intpending
 

Definition at line 67 of file error.c.

Referenced by onint().

volatile int suppressint
 

Definition at line 66 of file error.c.

Referenced by onint().


Generated on Fri Apr 14 22:58:31 2006 for minix by  doxygen 1.4.6