Commit | Line | Data |
---|---|---|
87f7c3b6 GM |
1 | |
2 | main() | |
3 | { | |
4 | int gate; | |
5 | ||
6 | if ((gate = api_name_resolve("SESSMGR")) == -1) { | |
7 | printf("api_sup_errno = 0x%x.\n", api_sup_errno); | |
8 | } else { | |
9 | printf("SESSMGR is %d.\n", gate); | |
10 | } | |
11 | if ((gate = api_name_resolve("KEYBOARD")) == -1) { | |
12 | printf("api_sup_errno = 0x%x.\n", api_sup_errno); | |
13 | } else { | |
14 | printf("KEYBOARD is %d.\n", gate); | |
15 | } | |
16 | if ((gate = api_name_resolve("COPY")) == -1) { | |
17 | printf("api_sup_errno = 0x%x.\n", api_sup_errno); | |
18 | } else { | |
19 | printf("COPY is %d.\n", gate); | |
20 | } | |
21 | if ((gate = api_name_resolve("OIAM")) == -1) { | |
22 | printf("api_sup_errno = 0x%x.\n", api_sup_errno); | |
23 | } else { | |
24 | printf("OIAM is %d.\n", gate); | |
25 | } | |
26 | } |