|
|
1.1 root 1: SOURCES=ps.c coffnlist.c fifo.c
2:
3: AR=ar
4: RANLIB=ranlib
5: INCLUDE=
6: LIBS=
7: CFLAGS=$(INCLUDE)
8:
9: all: $(TARGETS)
10: @true # nop
11:
12: ps: $(OBJECTS)
13: $(CC) -o ps $(OBJECTS) $(LIBS)
14:
15: readker: readker.o
16: $(CC) -o readker readker.o $(LIBS)
17:
18: pt: pt.o
19: $(CC) -o pt pt.o $(LIBS)
20:
21: search: search.o
22: $(CC) -o search search.o $(LIBS)
23:
24: coffnlist: coffnlist.c
25: $(CC) $(CFLAGS) -DTEST -c coffnlist.c
26: $(CC) -o coffnlist coffnlist.o $(LIBS)
27:
28: clean:
29: -- Coherent MicroEMACS -- Makefile -- File: Makefile ---------------------------
30: close(fd);
31:
32: found = 0; /* We are looking for the command line. */
33: if (F_NULL != (ffp = fifo_open(&boot_gift, 0))) {
34:
35: for (; !found && T_NULL != (tp = fifo_read(ffp)); ) {
36: if (T_STR_ARGF == tp->ts_type) {
37: found = 1;
38: break;
39: }
40: }
41: fifo_close(ffp);
42:
43: if (!found) {
44: printf("can't find command line, assuming /autoboot.\n");
45: strcpy(retval, "/autoboot");
46: } else {
47: /* Recast the argument list, so we can read it. */
48: RETYPE(tp, T_FIFO_SIC);
49: ffp = fifo_open(tp, 0);
50: tp = fifo_read(ffp);
51: sprintf(retval, "/%14s", tp->ts_data);
52: fifo_close(ffp);
53: }
54: } else {
55: strcpy(retval, "/autoboot");
56: }
57:
58: return(retval);
59: -- Coherent MicroEMACS -- ps.c -- File: ps.c -----------------------------------
60: failing i-search forward: strcpys
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.