3 #include <minix/endpoint.h>
4 #include <minix/sys_config.h>
10 int main(int argc
, char *argv
[])
15 return(-1); /* Unreachable */
24 for (g
= 0; g
<= _ENDPOINT_MAX_GENERATION
; g
++) {
25 for (p
= -MAX_NR_TASKS
; p
< _NR_PROCS
; p
++) {
28 ept
= _ENDPOINT(g
, p
);
29 mg
= _ENDPOINT_G(ept
);
30 mp
= _ENDPOINT_P(ept
);
31 if (mg
!= g
|| mp
!= p
) e(1);
32 if (g
== 0 && ept
!= p
) e(2);
33 if (ept
== ANY
|| ept
== SELF
|| ept
== NONE
) e(3);