3 #include <minix/endpoint.h>
4 #include <minix/sys_config.h>
6 int main(int argc
, char *argv
[])
12 for(g
= 0; g
<= _ENDPOINT_MAX_GENERATION
; g
++) {
13 for(p
= -MAX_NR_TASKS
; p
< _NR_PROCS
; p
++) {
19 if(mg
!= g
|| mp
!= p
) {
20 printf("%d != %d || %d != %d\n", mg
, g
, mp
, p
);
23 if(g
== 0 && e
!= p
) {
24 printf("%d != %d and g=0\n", e
, p
);
27 if(e
== ANY
|| e
== SELF
|| e
== NONE
) {
28 printf("endpoint (%d,%d) is %d; ANY, SELF or NONE\n",