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

1234567891011>>

/openbsd-current/usr.bin/indent/
H A Dparse.c50 while (ps.p_stack[ps.tos] == ifhead && tk != elselit) {
52 ps.p_stack[ps.tos] = stmt; /* apply the if(..) stmt ::= stmt
62 ps.search_brace = btype_2;
64 if (ps.p_stack[ps.tos] != decl) { /* only put one declaration
68 ps.p_stack[++ps.tos] = decl;
69 ps
[all...]
H A Dindent.c169 struct parser_state ps; variable in typeref:struct:parser_state
214 ps.p_stack[0] = stmt; /* this is the parser's stack */
215 ps.last_nl = true; /* this is true if the last thing scanned was
217 ps.last_token = semicolon;
232 ps.else_if = 1; /* Default else-if special processing to on */
244 had_eof = ps.in_decl = ps.decl_on_line = break_comma = false;
246 ps.in_or_st = false;
247 ps.bl_line = true;
249 di_stack[ps
[all...]
H A Dpr_comment.c85 int l_just_saw_decl = ps.just_saw_decl;
87 * int ps.last_nl = 0; true iff the last significant thing
92 ps.just_saw_decl = 0;
94 ps.box_com = false; /* at first, assume that we are not in
97 ++ps.out_coms; /* keep track of number of comments */
104 if (ps.col_1 && !format_col1_comments) { /* if comment starts in column
106 ps.box_com = true;
107 ps.com_col = 1;
111 ps.box_com = true; /* a comment with a '-', '*' or newline
116 if ( /* ps
[all...]
H A Dlexi.c130 ps.col_1 = ps.last_nl; /* tell world that this token started in
132 ps.last_nl = false;
135 ps.col_1 = false; /* leading blanks imply token is not in column
224 ps.its_a_keyword = false;
225 ps.sizeof_keyword = false;
230 ps.last_u_d = true;
233 ps.last_u_d = false; /* Operator after identifier is binary */
257 ps.its_a_keyword = true;
258 ps
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.niklas/
H A Dt139.C7 void f () { struct stat* ps; stat (ps); } local
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Ddivconst-1.c6 f (t1 *ps) argument
8 ps->a = 10000;
9 ps->b = ps->a / 3;
10 ps->c = 10000;
11 ps->d = ps->c / 3;
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/expr/
H A Dcomma1.C15 struct gtst * ps; local
16 ps = &s;
17 pc = (ps->data[0]='A', ps->data);
/openbsd-current/lib/libc/locale/
H A Dmbrlen.c32 mbrlen(const char * __restrict s, size_t n, mbstate_t * __restrict ps) argument
36 if (ps == NULL)
37 ps = &mbs;
38 return (mbrtowc(NULL, s, n, ps));
H A Dc32rtomb.c11 c32rtomb(char *s, char32_t c32, mbstate_t *ps) argument
15 if (ps == NULL)
16 ps = &mbs;
17 return wcrtomb(s, c32, ps);
H A Dmbrtoc32.c11 mbrtoc32(char32_t *pc32, const char *s, size_t n, mbstate_t *ps) argument
15 if (ps == NULL)
16 ps = &mbs;
17 return mbrtowc(pc32, s, n, ps);
H A Dmultibyte_citrus.c38 mbsinit(const mbstate_t *ps) argument
40 if (ps == NULL || __mb_cur_max() == 1)
42 return _citrus_utf8_ctype_mbsinit(ps);
47 mbrtowc(wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) argument
51 if (ps == NULL)
52 ps = &mbs;
55 return _citrus_utf8_ctype_mbrtowc(pwc, s, n, ps);
60 mbsrtowcs(wchar_t *dst, const char **src, size_t len, mbstate_t *ps) argument
64 if (ps == NULL)
65 ps
71 mbsnrtowcs(wchar_t *dst, const char **src, size_t nmc, size_t len, mbstate_t *ps) argument
85 wcrtomb(char *s, wchar_t wc, mbstate_t *ps) argument
98 wcsrtombs(char *dst, const wchar_t **src, size_t len, mbstate_t *ps) argument
109 wcsnrtombs(char *dst, const wchar_t **src, size_t nwc, size_t len, mbstate_t *ps) argument
[all...]
H A Dc16rtomb.c32 c16rtomb(char *s, char16_t c16, mbstate_t *ps) argument
38 if (ps == NULL)
39 ps = &mbs;
43 * to avoid inspecting c16 and ps and possibly drawing
51 memset(ps, 0, sizeof(*ps));
55 us = (struct _utf16_state *)ps;
99 return wcrtomb(s, wc, ps);
/openbsd-current/gnu/usr.bin/perl/
H A Dperly.c138 const yy_stack_frame *ps, *min; local
140 min = parser->ps - 8 + 1;
145 for (ps = min; ps <= parser->ps; ps++)
146 PerlIO_printf(Perl_debug_log, " %8d", (int)(ps - parser->stack));
149 for (ps = min; ps <= parser->ps; p
225 yy_stack_frame *ps = parser->ps; local
276 yy_stack_frame *ps; /* current parser stack frame */ local
[all...]
/openbsd-current/regress/sys/uvm/mmap_mod/
H A Dmmap_mod.c24 size_t ps; local
27 ps = getpagesize();
35 if (ftruncate(fd, ps))
38 if ((pat = malloc(ps)) == NULL)
41 memset(pat, 'a', ps);
43 if (pwrite(fd, pat, ps, 0) != ps)
46 buf = mmap(NULL, ps, PROT_READ|PROT_WRITE, MAP_FILE|MAP_SHARED, fd, 0);
53 memset(buf, 'x', ps);
55 if (munmap(buf, ps)
[all...]
/openbsd-current/bin/ps/
H A DMakefile3 PROG= ps
4 SRCS= keyword.c nlist.c print.c ps.c utf8.c
/openbsd-current/usr.bin/mandoc/
H A Dterm_ps.c41 (size_t)((double)(x) * (1000.0 / (double)(p)->ps->scale))
45 ((double)(x) / (1000.0 / (double)(p)->ps->scale))
539 p->ps = mandoc_calloc(1, sizeof(*p->ps));
552 p->ps->medianame = "Letter";
566 p->ps->medianame = "A3";
570 p->ps->medianame = "A4";
574 p->ps->medianame = "A5";
578 p->ps->medianame = "Legal";
582 p->ps
[all...]
/openbsd-current/gnu/llvm/libcxx/include/
H A D__bsd_locale_defaults.h24 #define __libcpp_wcsnrtombs_l(dst, src, nwc, len, ps, loc) wcsnrtombs_l(dst, src, nwc, len, ps, loc)
25 #define __libcpp_wcrtomb_l(src, wc, ps, loc) wcrtomb_l(src, wc, ps, loc)
26 #define __libcpp_mbsnrtowcs_l(dst, src, nms, len, ps, loc) mbsnrtowcs_l(dst, src, nms, len, ps, loc)
27 #define __libcpp_mbrtowc_l(pwc, s, n, ps, l) mbrtowc_l(pwc, s, n, ps, l)
29 #define __libcpp_mbrlen_l(s, n, ps, l) mbrlen_l(s, n, ps,
[all...]
/openbsd-current/regress/sys/uvm/mmap_write_self/
H A Dmmap_write_self.c36 size_t ps; local
39 ps = getpagesize();
47 buf = mmap(NULL, ps, PROT_READ, MAP_FILE|MAP_SHARED, fd, 0);
51 if (pwrite(fd, buf, ps, 0) == ps)
/openbsd-current/sys/arch/arm64/dev/
H A Daplpmgr.c97 struct aplpmgr_pwrstate *ps; local
123 ps = sc->sc_pwrstate;
135 ps->ps_sc = sc;
136 ps->ps_offset = reg[0];
138 ps->ps_enablecount = 1;
140 ps->ps_pd.pd_node = node;
141 ps->ps_pd.pd_cookie = ps;
142 ps->ps_pd.pd_enable = aplpmgr_enable;
143 power_domain_register(&ps
157 struct aplpmgr_pwrstate *ps = cookie; local
206 struct aplpmgr_pwrstate *ps = cookie; local
[all...]
/openbsd-current/sbin/iked/
H A Dproc.c72 proc_exec(struct privsep *ps, struct privsep_proc *procs, unsigned int nproc, argument
110 for (i = 0; i < ps->ps_instances[p->p_id]; i++) {
114 fd = ps->ps_pipes[p->p_id][i].pp_pipes[PROC_PARENT][0];
115 ps->ps_pipes[p->p_id][i].pp_pipes[PROC_PARENT][0] = -1;
144 proc_connect(struct privsep *ps, void (*connected)(struct privsep *)) argument
150 if (ps->ps_noaction) {
153 connected(ps);
156 ps->ps_connected = connected;
163 for (inst = 0; inst < ps->ps_instances[dst]; inst++) {
164 iev = &ps
205 proc_init(struct privsep *ps, struct privsep_proc *procs, unsigned int nproc, int debug, int argc, char **argv, enum privsep_procid proc_id) argument
270 proc_accept(struct privsep *ps, int fd, enum privsep_procid dst, unsigned int n) argument
301 proc_setup(struct privsep *ps, struct privsep_proc *procs, unsigned int nproc) argument
374 proc_kill(struct privsep *ps) argument
412 proc_open(struct privsep *ps, int src, int dst) argument
460 proc_close(struct privsep *ps) argument
491 struct privsep *ps = p->p_ps; local
526 proc_run(struct privsep *ps, struct privsep_proc *p, struct privsep_proc *procs, unsigned int nproc, void (*run)(struct privsep *, struct privsep_proc *, void *), void *arg) argument
607 struct privsep *ps = p->p_ps; local
769 proc_range(struct privsep *ps, enum privsep_procid id, int *n, int *m) argument
782 proc_compose_imsg(struct privsep *ps, enum privsep_procid id, int n, uint16_t type, uint32_t peerid, int fd, void *data, uint16_t datalen) argument
798 proc_compose(struct privsep *ps, enum privsep_procid id, uint16_t type, void *data, uint16_t datalen) argument
805 proc_composev_imsg(struct privsep *ps, enum privsep_procid id, int n, uint16_t type, uint32_t peerid, int fd, const struct iovec *iov, int iovcnt) argument
820 proc_composev(struct privsep *ps, enum privsep_procid id, uint16_t type, const struct iovec *iov, int iovcnt) argument
827 proc_forward_imsg(struct privsep *ps, struct imsg *imsg, enum privsep_procid id, int n) argument
835 proc_ibuf(struct privsep *ps, enum privsep_procid id, int n) argument
844 proc_iev(struct privsep *ps, enum privsep_procid id, int n) argument
854 proc_flush_imsg(struct privsep *ps, enum privsep_procid id, int n) argument
[all...]
/openbsd-current/usr.bin/vi/docs/USD.doc/vi.man/
H A DMakefile5 DOCS= vi.0 vi.0.ps
11 vi.0.ps: vi.1
/openbsd-current/regress/bin/
H A DMakefile3 SUBDIR+= cat chmod csh ed expr ksh ln md5 pax ps test
/openbsd-current/usr.sbin/relayd/
H A Dproc.c70 proc_exec(struct privsep *ps, struct privsep_proc *procs, unsigned int nproc, argument
108 for (i = 0; i < ps->ps_instances[p->p_id]; i++) {
112 fd = ps->ps_pipes[p->p_id][i].pp_pipes[PROC_PARENT][0];
113 ps->ps_pipes[p->p_id][i].pp_pipes[PROC_PARENT][0] = -1;
142 proc_connect(struct privsep *ps) argument
148 if (ps->ps_noaction)
156 for (inst = 0; inst < ps->ps_instances[dst]; inst++) {
157 iev = &ps->ps_ievs[dst][inst];
158 imsg_init(&iev->ibuf, ps->ps_pp->pp_pipes[dst][inst]);
172 proc_open(ps, sr
177 proc_init(struct privsep *ps, struct privsep_proc *procs, unsigned int nproc, int debug, int argc, char **argv, enum privsep_procid proc_id) argument
242 proc_accept(struct privsep *ps, int fd, enum privsep_procid dst, unsigned int n) argument
273 proc_setup(struct privsep *ps, struct privsep_proc *procs, unsigned int nproc) argument
346 proc_kill(struct privsep *ps) argument
384 proc_open(struct privsep *ps, int src, int dst) argument
437 proc_close(struct privsep *ps) argument
468 struct privsep *ps = p->p_ps; local
506 proc_run(struct privsep *ps, struct privsep_proc *p, struct privsep_proc *procs, unsigned int nproc, void (*run)(struct privsep *, struct privsep_proc *, void *), void *arg) argument
592 struct privsep *ps = p->p_ps; local
727 proc_range(struct privsep *ps, enum privsep_procid id, int *n, int *m) argument
740 proc_compose_imsg(struct privsep *ps, enum privsep_procid id, int n, uint16_t type, uint32_t peerid, int fd, void *data, uint16_t datalen) argument
756 proc_compose(struct privsep *ps, enum privsep_procid id, uint16_t type, void *data, uint16_t datalen) argument
763 proc_composev_imsg(struct privsep *ps, enum privsep_procid id, int n, uint16_t type, uint32_t peerid, int fd, const struct iovec *iov, int iovcnt) argument
778 proc_composev(struct privsep *ps, enum privsep_procid id, uint16_t type, const struct iovec *iov, int iovcnt) argument
785 proc_forward_imsg(struct privsep *ps, struct imsg *imsg, enum privsep_procid id, int n) argument
793 proc_ibuf(struct privsep *ps, enum privsep_procid id, int n) argument
802 proc_iev(struct privsep *ps, enum privsep_procid id, int n) argument
812 proc_flush_imsg(struct privsep *ps, enum privsep_procid id, int n) argument
[all...]
/openbsd-current/gnu/llvm/libcxx/src/support/ibm/
H A Dmbsnrtowcs.cpp24 mbstate_t *__restrict ps) {
49 result = mbrtowc(NULL, *src + source_converted, source_remaining, ps);
52 result = mbrtowc(dst + dest_converted, *src + source_converted, source_remaining, ps);
64 if (ps != nullptr)
65 mbstate_tmp = *ps;
66 result = mbrtowc(buff, *src + source_converted, source_remaining, ps);
70 if (ps != nullptr)
71 *ps = mbstate_tmp;
22 mbsnrtowcs(wchar_t *__restrict dst, const char **__restrict src, size_t src_size_bytes, size_t max_dest_chars, mbstate_t *__restrict ps) argument
H A Dwcsnrtombs.cpp23 mbstate_t *__restrict ps) {
43 result = wcrtomb(NULL, c, ps);
46 result = wcrtomb(dst + dest_converted, c, ps);
58 if (ps != nullptr)
59 mbstate_tmp = *ps;
60 result = wcrtomb(buff, c, ps);
64 if (ps != nullptr)
65 *ps = mbstate_tmp;
21 wcsnrtombs(char *__restrict dst, const wchar_t **__restrict src, size_t max_source_chars, size_t dst_size_bytes, mbstate_t *__restrict ps) argument

Completed in 186 milliseconds

1234567891011>>