Searched refs:pss (Results 1 - 14 of 14) sorted by relevance

/ast/src/cmd/std/
H A Dpss.c28 static const char id[] = "\n@(#)$Id: pss library (AT&T Research) 2011-05-09 $\0\n";
30 static const char lib[] = "std:pss";
37 * open a pss stream
43 register Pss_t* pss; local
48 if (!(vm = vmopen(Vmdcheap, Vmbest, 0)) || !(pss = vmnewof(vm, 0, Pss_t, 1, 0)))
50 pss->id = lib;
51 pss->disc = disc;
52 pss->vm = vm;
53 pss->ttybynamedisc.key = offsetof(Tty_t, name);
54 pss
83 pssclose(Pss_t* pss) argument
102 pssread(register Pss_t* pss, Pss_id_t pid) argument
238 psssave(register Pss_t* pss, register Pssent_t* pe) argument
259 pssttyadd(register Pss_t* pss, const char* name, Pss_dev_t dev) argument
285 ttyscan(register Pss_t* pss) argument
354 pssttydev(register Pss_t* pss, const char* name) argument
390 pssttyname(register Pss_t* pss, Pssent_t* pe) argument
[all...]
H A Dpss-procfs.c110 procfs_init(Pss_t* pss)
115 sfsprintf(pss->buf, sizeof(pss->buf), _PS_path_num, (unsigned long)1, _PS_status);
116 if ((fd = open(pss->buf, O_RDONLY|O_BINARY)) < 0)
119 if (!(state = vmnewof(pss->vm, 0, State_t, 1, 0)))
121 if (pss->disc->errorf)
122 (*pss->disc->errorf)(pss, pss->disc, ERROR_SYSTEM|2, "out of space");
127 if (pss
[all...]
H A Dpss-info.c50 info_init(Pss_t* pss)
61 if (pss->disc->errorf)
62 (*pss->disc->errorf)(pss, pss->disc, ERROR_SYSTEM|2, "%s: cannot read", mem);
67 if (!(state = vmnewof(pss->vm, 0, State_t, 1, (n - 1) * sizeof(struct pentry))))
69 if (pss->disc->errorf)
70 (*pss->disc->errorf)(pss, pss
[all...]
H A Dpss-null.c37 null_init(register Pss_t* pss)
45 "[-version?@(#)$Id: pss null (AT&T Research) 2003-02-01 $\n]"
H A Dpss-cygwin.c73 cygwin_init(Pss_t* pss)
80 cygwin_done(Pss_t* pss)
87 cygwin_read(Pss_t* pss, Pss_id_t pid)
90 pss->pid = pid;
93 if (!pss->data)
94 pss->pid = 0;
95 else if (!(pss->pid = ((struct external_pinfo*)pss->data)->pid))
97 pss->data = 0;
100 pss
[all...]
H A Dpss-getprocs.c67 getprocs_init(Pss_t* pss)
71 if (!(state = vmnewof(pss->vm, 0, State_t, 1, 0)))
73 if (pss->disc->errorf)
74 (*pss->disc->errorf)(pss, pss->disc, ERROR_SYSTEM|2, "out of space");
77 pss->data = state;
82 getprocs_read(Pss_t* pss, Pss_id_t pid)
84 register State_t* state = (State_t*)pss->data;
88 pss
[all...]
H A Dpss-ps.c61 ps_init(Pss_t* pss) argument
68 if (!(state = vmnewof(pss->vm, 0, State_t, 1, 0)))
70 if (pss->disc->errorf)
71 (*pss->disc->errorf)(pss, pss->disc, ERROR_SYSTEM|2, "out of space");
80 pss->meth->fields = state->fields = fields;
81 pss->data = state;
86 ps_done(Pss_t* pss) argument
88 register State_t* state = (State_t*)pss
96 ps_read(Pss_t* pss, Pss_id_t pid) argument
197 ps_part(register Pss_t* pss, register Pssent_t* pe) argument
[all...]
H A Dpss-kvm.c120 kvm_init(Pss_t* pss)
124 if (!(state = vmnewof(pss->vm, 0, State_t, 1, 0)))
126 if (pss->disc->errorf)
127 (*pss->disc->errorf)(pss, pss->disc, ERROR_SYSTEM|2, "out of space");
132 if (pss->disc->errorf)
133 (*pss->disc->errorf)(pss, pss
[all...]
H A Dpss-pstat.c55 pstat_init(Pss_t* pss)
59 if (!(state = vmnewof(pss->vm, 0, State_t, 1, 0)))
61 if (pss->disc->errorf)
62 (*pss->disc->errorf)(pss, pss->disc, ERROR_SYSTEM|2, "out of space");
65 pss->data = state;
70 pstat_read(Pss_t* pss, Pss_id_t pid)
72 register State_t* state = (State_t*)pss->data;
95 pss
[all...]
H A DMakefile31 ps :: ps.c pss.c pss-null.c LICENSE=since=1998,author=gsf \
32 pss-procfs.c pss-getprocs.c pss-cygwin.c pss-kvm.c pss-pstat.c \
33 pss-ps.c pss-info.c $(CC.HOSTTYPE:N=(sol|unixware).*:??-lkvm?)
H A Dpsslib.h62 #include <pss.h>
H A Dps.c126 #include <pss.h>
172 unsigned long field; /* pss field */
229 Pss_t* pss; /* ps stream */ member in struct:State_s
537 sfprintf(sp, "%s The title string is \b%s\b and the default width is %d.%s]", keys[i].desc, keys[i].head, keys[i].width, (!keys[i].field || (state.pss->meth->fields & keys[i].field)) ? "" : " Not available on this system.");
551 return pssttydev(state.pss, name);
589 if (!kp->head && (state.pss->meth->fields & keys[kp->index].field))
601 if (!(state.pss->meth->fields & kp->field))
763 s = pssttyname(state.pss, pp->ps);
949 s = pssttyname(state.pss, pr);
1052 if (pp->ps->pss
[all...]
H A Dpss.h100 int pss; member in struct:Pssent_s
/ast/src/lib/libcs/
H A Dcss.c344 register Css_t* pss; local
358 pss = 0;
387 if (pss)
388 pss->next = oss->next;
399 pss = xss;

Completed in 47 milliseconds