; ----------------------------------------------------------------------------------------------------------------------------- ;
; +ve lib4th error number defn's, from <l4text.inc>
; ----------------------------------------------------------------------------------------------------------------------------- ;

;		"not implemented"		; 0 => 19
mptyad		"empty stack"			; 1
datsad		"out of dictionary space"	; 2 <r.om>
adrsad		"addressing mode"		; 3 <ram>, <r.am>
xistad		"already exists"		; 4
hovfad		"digit storage ovf"		; 5
		'protocol error'		; 6
sovfad		"stack overflow"		; 7
		'device busy'			; 8
colder		"fatal error - don't retry!"	; 9
locerr		"too many locals"		;10
dcpuad		"36818358"			;15
versad		{.vers,'-',__FMODE__," ",__PROG," (C) .hpr ",DATE} ; 16
compad		"compilation only"		;17 <rco>
execad		"executing only"		;18 <rxo>
nimpad		"not implemented"		;19 <rni> <p.nf>
nfinad		"definition not finished"	;20 <rdn>
fncdad		"protected dictionary"		;21 <rpd>
loadad		"use only when loading"		;22 
edisad		"off working area"		;23 <r.oa> <m.oa>
vocsad		"?vocabulary"			;24
ldecad		"LIST arg not decimal"		;25
exvcad		"execution vector undef'd"	;26 <rud>
trapad		"system address error"		;27 <r.sa>
nparad		"conditionals not paired"	;28
abtqnm		"Bytes free, Job# "		;30
idnonm		"neither name nor number "	;31 <rno>
msgnm		"msg #"				;32

; ----------------------------------------------------------------------------------------------------------------------------- ;
; -ve linux (2.2) error number defn's
; ----------------------------------------------------------------------------------------------------------------------------- ;
; common
        dbs 'Operation not permitted'				,EPERM		,1
	dbs 'Permission denied'					,EACCES		,13
        dbs 'Timer expired'					,ETIME		,62
        dbs 'Package not installed'				,ENOPKG		,65
        dbs 'Value too large for defined data type'		,EOVERFLOW	,75
        dbs 'Illegal byte sequence'				,EILSEQ		,84
; ----------------------------------------------------------------------------------------------------------------------------- ;
; device
        dbs 'Block device required'				,ENOTBLK	,15
        dbs 'Device or resource busy'				,EBUSY		,16
        dbs 'Cross-device link'					,EXDEV		,18
        dbs 'No such device'					,ENODEV		,19
        dbs 'No space left on device'				,ENOSPC		,28
        dbs 'Device not a stream'				,ENOSTR		,60
        dbs 'Quota exceeded'					,EDQUOT		,122
        dbs 'No medium found'					,ENOMEDIUM	,123
        dbs 'Wrong medium type'					,EMEDIUMTYPE	,124
; ----------------------------------------------------------------------------------------------------------------------------- ;
; file
	dbs 'No such file or directory'				,ENOENT		,2
        dbs 'No such device or address'				,ENXIO		,6
        dbs 'Bad file number'					,EBADF		,9
        dbs 'File exists'					,EEXIST		,17
        dbs 'Not a directory'					,ENOTDIR	,20
        dbs 'Is a directory'					,EISDIR		,21
        dbs 'File table overflow'				,ENFILE		,23
        dbs 'Too many open files'				,EMFILE		,24
        dbs 'Text file busy'					,ETXTBSY	,26
        dbs 'File too large'					,EFBIG		,27
        dbs 'Illegal seek'					,ESPIPE		,29
        dbs 'Read-only file system'				,EROFS		,30
        dbs 'Too many links'					,EMLINK		,31
        dbs 'File name too long'				,ENAMETOOLONG	,36
        dbs 'Directory not empty'				,ENOTEMPTY	,39
        dbs 'Too many symbolic links encountered'		,ELOOP		,40
        dbs 'Link number out of range'				,ELNRNG		,48
        dbs 'Bad font file format'				,EBFONT		,59
        dbs 'Link has been severed'				,ENOLINK	,67
        dbs 'RFS specific error'				,EDOTDOT	,73
        dbs 'File descriptor in bad state'			,EBADFD		,77
        dbs 'Not a XENIX named type file'			,ENOTNAM	,118
        dbs 'Is a named type file'				,EISNAM		,120
; ----------------------------------------------------------------------------------------------------------------------------- ;
; i/o
        dbs 'I/O error'						,EIO		,5
        dbs 'Try again'						,EAGAIN		,11
        dbs 'Not a typewriter'					,ENOTTY		,25
        dbs 'Broken pipe'					,EPIPE		,32
        dbs 'Channel number out of range'			,ECHRNG		,44
	dbs 'Operation would block'				,EWOULDBLOCK	,EAGAIN ;11
        dbs 'No data available'					,ENODATA	,61	; <EOF>		<==
        dbs 'Out of streams resources'				,ENOSR		,63
        dbs 'Streams pipe error'				,ESTRPIPE	,86
; ----------------------------------------------------------------------------------------------------------------------------- ;
; program xec
        dbs 'Arg list too long'					,E2BIG		,7
        dbs 'Exec format error'					,ENOEXEC	,8
        dbs 'Invalid argument'					,EINVAL		,22
        dbs 'Function not implemented'				,ENOSYS		,38
; ----------------------------------------------------------------------------------------------------------------------------- ;
; process
        dbs 'No such process'					,ESRCH		,3
        dbs 'No child processes'				,ECHILD		,10
        dbs 'Math argument out of domain of func'		,EDOM		,33
        dbs 'Math result not representable'			,ERANGE		,34
        dbs 'Too many users'					,EUSERS		,87
        dbs 'No XENIX semaphores available'			,ENAVAIL	,119
        dbs 'Operation already in progress'			,EALREADY	,114
        dbs 'Operation now in progress'				,EINPROGRESS	,115
; ----------------------------------------------------------------------------------------------------------------------------- ;
; system
        dbs 'Interrupted system call'				,EINTR		,4
        dbs 'Out of memory'					,ENOMEM		,12
        dbs 'Bad address'					,EFAULT		,14
        dbs 'Resource deadlock would occur'			,EDEADLK	,35
	dbs 'Resource deadlock would occur'			,EDEADLOCK	,EDEADLK;35
        dbs 'Can not access a needed shared library'		,ELIBACC	,79
        dbs 'Accessing a corrupted shared library'		,ELIBBAD	,80
        dbs 'lib section in a.out corrupted'			,ELIBSCN	,81
        dbs 'Attempting to link in too many shared libraries'	,ELIBMAX	,82
        dbs 'Cannot exec a shared library directly'		,ELIBEXEC	,83
        dbs 'Interrupted system call should be restarted'	,ERESTART	,85
        dbs 'No buffer space available'				,ENOBUFS	,105
        dbs 'Too many references: cannot splice'		,ETOOMANYREFS	,109
; ----------------------------------------------------------------------------------------------------------------------------- ;
; net/socket
        dbs 'No record locks available'				,ENOLCK		,37
        dbs 'No message of desired type'			,ENOMSG		,42
        dbs 'Identifier removed'				,EIDRM		,43
        dbs 'Level 2 not synchronized'				,EL2NSYNC	,45
        dbs 'Level 3 halted'					,EL3HLT		,46
        dbs 'Level 3 reset'					,EL3RST		,47
        dbs 'Protocol driver not attached'			,EUNATCH	,49
        dbs 'No CSI structure available'			,ENOCSI		,50
        dbs 'Level 2 halted'					,EL2HLT		,51
        dbs 'Invalid exchange'					,EBADE		,52
        dbs 'Invalid request descriptor'			,EBADR		,53
        dbs 'Invalid request code'				,EBADRQC	,56
        dbs 'Invalid slot'					,EBADSLT	,57
        dbs 'Machine is not on the network'			,ENONET		,64
        dbs 'Object is remote'					,EREMOTE	,66
        dbs 'Communication error on send'			,ECOMM		,70
        dbs 'Protocol error'					,EPROTO		,71
        dbs 'Multihop attempted'				,EMULTIHOP	,72
        dbs 'Not a data message'				,EBADMSG	,74
        dbs 'Name not unique on network'			,ENOTUNIQ	,76
        dbs 'Remote address changed'				,EREMCHG	,78
        dbs 'Socket operation on non-socket'			,ENOTSOCK	,88
        dbs 'Destination address required'			,EDESTADDRREQ	,89
        dbs 'Message too long'					,EMSGSIZE	,90
        dbs 'Protocol wrong type for socket'			,EPROTOTYPE	,91
        dbs 'Protocol not available'				,ENOPROTOOPT	,92
        dbs 'Protocol not supported'				,EPROTONOSUPPORT,93
        dbs 'Socket type not supported'				,ESOCKTNOSUPPORT,94
        dbs 'Operation not supported on transport endpoint'	,EOPNOTSUPP	,95
        dbs 'Protocol family not supported'			,EPFNOSUPPORT	,96
        dbs 'Address family not supported by protocol'		,EAFNOSUPPORT	,97
        dbs 'Address already in use'				,EADDRINUSE	,98
        dbs 'Cannot assign requested address'			,EADDRNOTAVAIL	,99
        dbs 'Network is down'					,ENETDOWN	,100
        dbs 'Network is unreachable'				,ENETUNREACH	,101
        dbs 'Network dropped connection because of reset'	,ENETRESET	,102
        dbs 'Software caused connection abort'			,ECONNABORTED	,103
        dbs 'Connection reset by peer'				,ECONNRESET	,104
        dbs 'Transport endpoint is already connected'		,EISCONN	,106
        dbs 'Transport endpoint is not connected'		,ENOTCONN	,107
        dbs 'Cannot send after transport endpoint shutdown'	,ESHUTDOWN	,108
        dbs 'Connection timed out'				,ETIMEDOUT	,110
        dbs 'Connection refused'				,ECONNREFUSED	,111
        dbs 'Host is down'					,EHOSTDOWN	,112
        dbs 'No route to host'					,EHOSTUNREACH	,113
        dbs 'Stale NFS file handle'				,ESTALE		,116
        dbs 'Remote I/O error'					,EREMOTEIO	,121
; ----------------------------------------------------------------------------------------------------------------------------- ;
; misc
        dbs 'Exchange full'					,EXFULL		,54
        dbs 'No anode'						,ENOANO		,55
        dbs 'Advertise error'					,EADV		,68
        dbs 'Srmount error'					,ESRMNT		,69
        dbs 'Structure needs cleaning'				,EUCLEAN	,117
; ----------------------------------------------------------------------------------------------------------------------------- ;
%ifdef __I386_ERRNO_X
	dbs 'Errnum 125'					,E125		,125;?; not defd by kernel source
	dbs 'Errnum 126'					,E126		,126;?; not defd by kernel source
	dbs 'Command unknown'					,ENOTKNOWN	,127;empiric, not defd by kernel source
%endif

; ----------------------------------------------------------------------------------------------------------------------------- ;
; linux (2.2) signal number defn's
; ----------------------------------------------------------------------------------------------------------------------------- ;
    sbs GHUP	, 1,"Hangup"			;:1:(cannot be caught nor ignored)
    sbs GINT	, 2,"Terminal Interrupt"	;:1: ctr/"c"
    sbs GKILL	, 9,"Killed"			;:1:(cannot be caught nor ignored)
    sbs GUSR1	,10,"User Signal 1"		;:1:
    sbs GUSR2	,12,"User Signal 2"		;:1:
    sbs GPIPE	,13,"Broken Pipe"		;:1: Write on a pipe with no one to read it.
    sbs GALRM	,14,"Alarm Clock"		;:1:
    sbs GTERM	,15,"Terminated"		;:1:
    sbs GVTALRM	,26,"Virtual Timer expired"	;:1:
    sbs GPROF	,27,"Profiling Timer expired"	;:1:

    sbs GQUIT	, 3,"Quit"			;:2: alt-r/ctr/"\"
    sbs GILL	, 4,"Illegal Instruction"	;:2:
    sbs GTRAP	, 5,"Trace/Breakpoint Trap"	;:2:
    sbs GABRT	, 6,"Aborted"			;:2:
    sbs GBUS	, 7,"Bus Error"			;:2: Access to an undefined portion of a memory object.
    sbs GFPE	, 8,"Arithmetic Fault"		;:2: div-0
    sbs GSEGV	,11,"Invalid Memory Reference"	;:2:
    sbs GXCPU	,24,"CPU Time Limit exceeded"	;:2:
    sbs GXFSZ	,25,"File Size Limit exceeded"	;:2:

    sbs GCHLD	,17,"Child exited"		;:3:
    sbs GURG	,23,"Urgent I/O at a Socket"	;:3:

    sbs GSTOP	,19,"Halted"			;:4: ctr/"z", inactivate job (cannot be caught or ignored)
    sbs GTSTP	,20,"Halt by Terminal Stop Signal"	 ;:4:
    sbs GTTIN	,21,"Background Process attempting Read" ;:4:
    sbs GTTOU	,22,"Background Process attempting Write";:4:

    sbs GCONT	,18,"Continued"			;:5: restarts, but console chan. lost

    sbs GSTKFLT	,16,"Stack Fault"
    sbs GWINCH	,28,"Window changed"
    sbs GIO	,29,"I/O possible"
    sbs GPWR	,30,"Power Failure"
    sbs GUNUSED	,31,"signal unused"
; ----------------------------------------------------------------------------------------------------------------------------- ;
; signals default actions:
;	:1:	Abnormal termination of the process. The process is terminated with all the consequences 
;		of _exit() except that the status made available to wait() and waitpid() indicates abnormal
;		termination by the specified signal.
;	:2:	Abnormal termination of the process. Additionally, implementation-dependent abnormal 
;		termination actions, such as creation of a core file, may occur.
;	:3:	Ignore the signal.
;	:4:	Stop the process.
;	:5:	Continue the process, if it is stopped; otherwise ignore the signal.
; ----------------------------------------------------------------------------------------------------------------------------- ;
"ersig.txt" <eof>
