5 #include <minix/endpoint.h>
6 #include <minix/sys_config.h>
13 int main(int argc
, char *argv
[])
18 return(-1); /* Unreachable */
27 for (g
= 0; g
<= _ENDPOINT_MAX_GENERATION
; g
++) {
28 for (p
= -MAX_NR_TASKS
; p
< MAX_NR_PROCS
; p
++) {
31 ept
= _ENDPOINT(g
, p
);
32 mg
= _ENDPOINT_G(ept
);
33 mp
= _ENDPOINT_P(ept
);
34 if (mg
!= g
|| mp
!= p
) e(1);
35 if (g
== 0 && ept
!= p
) e(2);
36 if (ept
== ANY
|| ept
== SELF
|| ept
== NONE
) e(3);