diff options
author | aiju <aiju@phicode.de> | 2011-06-25 16:17:20 +0200 |
---|---|---|
committer | aiju <aiju@phicode.de> | 2011-06-25 16:17:20 +0200 |
commit | 0b22dfd1f69985aabc5af37dca8a217a1e6e54e9 (patch) | |
tree | 577216074a5edb2402525c2d219ad8a96af8f9d7 /sys/src/cmd/5e/dat.h | |
parent | b4ae96bcb95e76293a81241bf6edebf27cab7e35 (diff) |
5e: added note support
added wstat / fwstat / alarm
Diffstat (limited to 'sys/src/cmd/5e/dat.h')
-rw-r--r-- | sys/src/cmd/5e/dat.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/sys/src/cmd/5e/dat.h b/sys/src/cmd/5e/dat.h index 63499bc97..153b99ee3 100644 --- a/sys/src/cmd/5e/dat.h +++ b/sys/src/cmd/5e/dat.h @@ -5,10 +5,8 @@ typedef struct Fd Fd; enum { STACKSIZE = 0x100000, - NAMEMAX = 27, - - FDBLOCK = 16, + NNOTE = 5, SEGNUM = 8, flN = 1<<31, @@ -26,15 +24,24 @@ enum { }; struct Process { - Segment *S[SEGNUM]; + Process *prev, *next; /* linked list (for fs) */ + int pid; + char name[NAMEMAX+1]; /* name for status file */ + Ref *path; /* Ref + string data */ + + Segment *S[SEGNUM]; /* memory */ u32int R[16]; /* general purpose registers / PC (R15) */ u32int CPSR; /* status register */ + char errbuf[ERRMAX]; - char name[NAMEMAX+1]; - Ref *path; /* Ref + string data */ - Fd *fd; - int pid; - Process *prev, *next; + Fd *fd; /* bitmap of OCEXEC files */ + + /* note handling */ + u32int notehandler; + int innote; + jmp_buf notejmp; + char notes[ERRMAX][NNOTE]; + long notein, noteout; }; extern void **_privates; @@ -69,4 +76,3 @@ struct Fd { #define havesymbols 0 #define ultraverbose 0 #define systrace 0 - |