Searched refs:ps (Results 1 - 25 of 31) sorted by relevance

12

/ast/src/lib/libast/sfio/
H A D_sfputl.c38 reg uchar *s, *ps; local
48 s = ps = &(c[N_ARRAY-1]);
61 n = (ps-s)+1;
63 if(n > 8 || SFWPEEK(f,ps,p) < n)
68 case 8 : *ps++ = *s++;
69 case 7 : *ps++ = *s++;
70 case 6 : *ps++ = *s++;
71 case 5 : *ps++ = *s++;
72 case 4 : *ps++ = *s++;
73 case 3 : *ps
[all...]
H A D_sfputm.c39 reg uchar *s, *ps; local
51 s = ps = &(c[N_ARRAY-1]);
57 n = (ps-s)+1;
59 if(n > 8 || SFWPEEK(f,ps,p) < n)
64 case 8 : *ps++ = *s++;
65 case 7 : *ps++ = *s++;
66 case 6 : *ps++ = *s++;
67 case 5 : *ps++ = *s++;
68 case 4 : *ps++ = *s++;
69 case 3 : *ps
[all...]
H A D_sfputu.c38 reg uchar *s, *ps; local
50 s = ps = &(c[N_ARRAY-1]);
54 n = (ps-s)+1;
56 if(n > 8 || SFWPEEK(f,ps,p) < n)
61 case 8 : *ps++ = *s++;
62 case 7 : *ps++ = *s++;
63 case 6 : *ps++ = *s++;
64 case 5 : *ps++ = *s++;
65 case 4 : *ps++ = *s++;
66 case 3 : *ps
[all...]
H A Dsfputr.c38 uchar *ps; local
59 SFWPEEK(f,ps,p);
70 { memcpy(ps, s, n);
71 ps += n;
75 { *ps++ = rc;
78 f->next = ps;
102 { *ps++ = rc;
103 f->next = ps;
109 if((ps = (uchar*)memccpy(ps,
[all...]
H A Dsfnputc.c38 reg uchar* ps; local
53 if((size_t)(p = (f->endb-(ps = f->next))) < n)
54 { ps = buf; p = sizeof(buf); }
57 MEMSET(ps,c,p);
58 ps -= p;
61 if(ps == f->next)
71 if((p = SFWRITE(f,(Void_t*)ps,p)) <= 0 || (n -= p) <= 0)
/ast/src/lib/libast/stdio/
H A Dfgets.c31 unsigned char* ps; local
43 if((p = f->endb - (ps = f->next)) <= 0 )
46 if(SFRPEEK(f,ps,p) <= 0)
54 if((ps = (uchar*)memccpy((char*)is,(char*)ps,'\n',p)) != NIL(uchar*))
55 p = ps-is;
57 ps = f->next+p;
60 { while(p-- && (*is++ = *ps++) != '\n')
62 p = ps-f->next;
65 { reg int c = ps[
[all...]
H A Dgetdelim.c34 uchar* ps; local
53 if((p = f->endb - (ps = f->next)) <= 0 )
56 if(SFRPEEK(f,ps,p) <= 0)
63 { if(ps[k] == delim)
79 memcpy(s+m, ps, k); m += k;
80 f->next = ps+k; /* skip copied data in buffer */
/ast/src/cmd/std/
H A Dps.c25 * ps -- list process status
27 * fall back to /bin/ps if no support -- and you better match their args!
37 "[-1o?\n@(#)$Id: ps (AT&T Research) 2011-12-13 $\n]"
39 "[+NAME?ps - report process status]"
199 Pssent_t* ps; /* ps info */ member in struct:Ps_s
229 Pss_t* pss; /* ps stream */
230 Pssdisc_t pssdisc; /* ps stream discipline */
560 key(void* handle, register Sffmt_t* fp, const char* arg, char** ps, Sflong_t* pn) argument
632 *ps
826 ps(Ps_t* pp) function
[all...]
H A Dpss-info.c46 struct pentry ps[1];
79 if (read(fd, state->ps, n * sizeof(state->ps[0])) != n * sizeof(state->ps[0]))
86 state->pp = state->ps;
87 state->pe = state->ps + n;
104 for (state->pp = state->ps; state->pp < state->pe; state->pp++)
H A Dpss-ps.c42 Sfio_t* ps; member in struct:State_s
90 if (state->ps)
91 sfclose(state->ps);
107 if (state->ps)
109 sfclose(state->ps);
110 state->ps = 0;
155 if (!(state->ps = sfpopen(NiL, pss->buf, "r")) || !sfgetr(state->ps, '\n', 0))
207 if (!(s = sfgetr(state->ps, '\n', 1)))
350 "ps",
[all...]
H A DMakefile31 ps :: ps.c pss.c pss-null.c LICENSE=since=1998,author=gsf \
33 pss-ps.c pss-info.c $(CC.HOSTTYPE:N=(sol|unixware).*:??-lkvm?)
H A Ddf.c391 key(void* handle, register Sffmt_t* fp, const char* arg, char** ps, Sflong_t* pn) argument
420 if (!(*ps = sfstruse(state.mac)))
455 *ps = s;
541 *ps = s;
H A Dls.c464 key(void* handle, register Sffmt_t* fp, const char* arg, char** ps, Sflong_t* pn) argument
753 *ps = s;
770 *ps = fmtmode(n, 0);
772 *ps = fmtperm(n & S_IPERM);
788 *ps = t == TMX_NOTIME ? fmttime(arg, (time_t)n) : fmttmx(arg, t);
/ast/src/lib/libcmd/
H A Dvmstate.c70 key(void* handle, Sffmt_t* fp, const char* arg, char** ps, Sflong_t* pn) argument
89 *ps = s = fmtbuf(32);
100 if (s > *ps)
112 *ps = (char*)state->format;
116 *ps = "best";
118 *ps = "pool";
120 *ps = "last";
122 *ps = "debug";
124 *ps = "profile";
126 *ps
[all...]
H A Dpids.c59 key(void* handle, Sffmt_t* fp, const char* arg, char** ps, Sflong_t* pn) argument
85 *ps = (char*)handle;
/ast/src/lib/libcoshell/
H A Dcoclose.c51 Coshell_t* ps; local
82 ps = 0;
88 if (ps)
89 ps->next = cs;
95 ps = cs;
/ast/src/cmd/probe/
H A Dprobe.c304 struct stat ps; local
380 if (stat(path, &ps))
382 ps.st_mtime = 0;
383 ps.st_mode = 0;
385 if ((options & TEST) || !(ps.st_mode & S_IWUSR))
429 if (stat(path, &ps))
431 ps.st_mtime = 0;
432 ps.st_mode = 0;
446 if (lstat(processor, &vs) || getuid() != vs.st_uid && (!ps.st_mode || getgid() != ps
[all...]
/ast/src/cmd/bzip/
H A DMakefile24 manual.texi manual.ps manual_toc.html \
/ast/src/lib/libast/path/
H A Dpathprobe.c127 struct stat ps; local
161 if (!pathpath(lib, "", PATH_ABSOLUTE|PATH_EXECUTE, path, pathsize) || stat(path, &ps))
165 ptime = ps.st_mtime;
199 if (*path == '/' && pathexists(path, PATH_REGULAR|PATH_EXECUTE) && !stat(path, &ps))
208 if (op >= -1 && (!(st.st_mode & S_ISUID) && ps.st_uid != geteuid() || rofs(path)))
/ast/src/cmd/ksh93/tests/
H A Dnameref.sh198 typeset -n ps=$1
199 print -r -- "${ps}"
201 ps=(a=1 b=2)
202 [[ $(selfref ps) == *a=1* ]] || err_exit 'local nameref cannot reference global variable of the same name'
208 [[ $(subref ps) == 1 ]] || err_exit 'local nameref cannot reference global variable child'
212 typeset ps=(typeset -i a=3 b=4)
213 [[ $(subref ps) == 3 ]] || err_exit 'local nameref cannot reference caller compound variable'
/ast/src/cmd/html/
H A Dtroff2html.c381 n *= 8 * state.env->ps.current;
385 n *= 6 * state.env->ps.current;
436 n *= state.env->ps.current / 12;
438 n /= state.env->ps.current / 12;
460 n *= 8 * state.env->ps.current;
462 n /= 8 * state.env->ps.current;
467 n *= 6 * state.env->ps.current;
469 n /= 6 * state.env->ps.current;
1022 v->ps.current = v->ps
1720 ps(int n) function
4998 int ps = DEFAULT_ps; local
[all...]
H A Dtroff2html.h152 Value_t ps; /* font size */ member in struct:Env_s
/ast/src/cmd/pax/
H A Dmisc.c460 listlookup(void* handle, register Sffmt_t* fmt, const char* arg, char** ps, Sflong_t* pn) argument
721 *ps = s;
790 *ps = s;
794 *ps = fmtmode(n, 1);
806 *ps = t == TMX_NOTIME ? fmttime(arg, (time_t)n) : fmttmx(arg, t);
813 *ps = s;
/ast/src/lib/libtk/
H A DMakefile64 library/prolog.ps \
153 library/prolog.ps \
347 doc/tk4.0.ps \
/ast/src/cmd/tw/
H A Dexpr.c853 key(void* handle, register Sffmt_t* fp, const char* arg, char** ps, Sflong_t* pn) argument
868 *ps = v.string;

Completed in 65 milliseconds

12