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
= -NR_TASKS
; p
< _NR_PROCS
; p
++) {
18 if(mg
!= g
|| mp
!= p
) {
19 printf("%d != %d || %d != %d\n", mg
, g
, mp
, p
);
22 if(g
== 0 && e
!= p
) {
23 printf("%d != %d and g=0\n", e
, p
);
26 if(e
== ANY
|| e
== SELF
|| e
== NONE
) {
27 printf("endpoint (%d,%d) is %d; ANY, SELF or NONE\n",