|
|
1.1 root 1: /*
2: * IPC module
3: */
4:
5: #include <ipc.h>
6:
7: char *
8: ipc_open(argv)
9: char *argv[];
10: {
11: extern char sys_fd[];
12: int fd;
13:
14: if ((fd = ipcopen(ipcpath(argv[0], "dk", ""), "light")) < 0) {
15: error(-1, "ipc %s: %s", argv[0], errstr);
16: return 0;
17: }
18: return sys_fd + fd;
19: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.