plan9port/src/lib9/9proc.h
rsc bcf527a98e Continue switching library over to pthreads when possible.
Tprimes works on Linux 2.6.  You can only have 128 procs
though.
2004-09-17 03:34:32 +00:00

27 lines
336 B
C

#ifndef _9PROC_H_
#define _9PROC_H_ 1
enum
{
NPRIV = 16,
RENDHASH = 33,
};
typedef struct Uproc Uproc;
struct Uproc
{
int pid;
int state;
void *priv[NPRIV];
ulong rendval;
ulong rendtag;
Uproc *rendhash;
p9jmp_buf notejb;
};
extern Uproc *_p9uproc(int);
extern void _p9uprocdie(void);
extern void _clearuproc(void);
#endif