Home
last modified time | relevance | path

Searched refs:bufp (Results 1 – 25 of 133) sorted by relevance

123456

/openbsd-src/lib/libcurses/tinfo/
H A Dcomp_expand.c68 int bufp; in _nc_tic_expand() local
96 bufp = 0; in _nc_tic_expand()
99 buffer[bufp++] = *str++; in _nc_tic_expand()
111 _nc_SPRINTF(buffer + bufp, _nc_SLIMIT(P_LIMIT(bufp)) in _nc_tic_expand()
113 bufp += (int) strlen(buffer + bufp); in _nc_tic_expand()
116 buffer[bufp++] = *str; in _nc_tic_expand()
136 buffer[bufp++] = S_QUOTE; in _nc_tic_expand()
139 buffer[bufp++] = '\\'; in _nc_tic_expand()
140 buffer[bufp++] = (char) ch; in _nc_tic_expand()
141 buffer[bufp++] = S_QUOTE; in _nc_tic_expand()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/java/
H A Dbuffer.c30 buffer_grow (bufp, size) in buffer_grow() argument
31 struct buffer *bufp; in buffer_grow()
34 if (bufp->limit - bufp->ptr >= size)
36 if (bufp->data == 0)
40 bufp->data = xmalloc (size);
41 bufp->ptr = bufp->data;
45 int index = bufp->ptr - bufp->data;
46 size += 2 * (bufp->limit - bufp->data);
47 bufp->data = xrealloc (bufp->data, size);
48 bufp->ptr = bufp->data + index;
[all …]
/openbsd-src/lib/libc/db/hash/
H A Dhash_bigkey.c82 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) in __big_insert() argument
89 cp = bufp->page; /* Character pointer of p. */ in __big_insert()
111 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
112 if (!bufp) in __big_insert()
141 p = (u_int16_t *)bufp->page; in __big_insert()
142 cp = bufp->page; in __big_insert()
143 bufp->flags |= BUF_MOD; in __big_insert()
167 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
168 if (!bufp) in __big_insert()
170 cp = bufp->page; in __big_insert()
[all …]
H A Dhash_page.c118 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) in __delpair() argument
123 bp = (u_int16_t *)bufp->page; in __delpair()
127 return (__big_delete(hashp, bufp)); in __delpair()
137 char *src = bufp->page + (int)OFFSET(bp); in __delpair()
166 bufp->flags |= BUF_MOD; in __delpair()
276 BUFHEAD *bufp; /* Buffer header for ino */ in ugly_split() local
287 bufp = old_bufp; in ugly_split()
298 new_bufp, bufp, bufp->addr, obucket, &ret)) in ugly_split()
308 bufp = ret.nextp; in ugly_split()
309 if (!bufp) in ugly_split()
[all …]
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Dsomread.c92 struct symbol_dictionary_record *buf, *bufp, *endbufp; in som_symtab_read() local
131 for (bufp = buf; bufp < endbufp; ++bufp) in som_symtab_read()
137 switch (bufp->symbol_scope) in som_symtab_read()
141 switch (bufp->symbol_type) in som_symtab_read()
151 symname = bufp->name.n_strx + stringtab; in som_symtab_read()
153 bufp->symbol_value += text_offset; in som_symtab_read()
154 bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); in som_symtab_read()
158 symname = bufp->name.n_strx + stringtab; in som_symtab_read()
166 bufp->symbol_value += text_offset; in som_symtab_read()
167 bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); in som_symtab_read()
[all …]
/openbsd-src/games/hack/
H A Dhack.tty.c203 getlin(char *bufp) in getlin() argument
205 char *obufp = bufp; in getlin()
212 *bufp = 0; in getlin()
221 if(bufp != obufp) { in getlin()
222 bufp--; in getlin()
226 *bufp = 0; in getlin()
231 *bufp = c; in getlin()
232 bufp[1] = 0; in getlin()
233 putstr(bufp); in getlin()
234 if(bufp-obufp < BUFSZ-1 && bufp-obufp < COLNO) in getlin()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/fixinc/
H A Dgnu-regex.c314 static int re_match_2_internal PARAMS ((struct re_pattern_buffer *bufp,
834 print_compiled_pattern (bufp) in print_compiled_pattern() argument
835 struct re_pattern_buffer *bufp; in print_compiled_pattern()
837 unsigned char *buffer = bufp->buffer;
839 print_partial_compiled_pattern (buffer, buffer + bufp->used);
841 bufp->used, bufp->allocated);
843 if (bufp->fastmap_accurate && bufp->fastmap)
846 print_fastmap (bufp->fastmap);
849 printf ("re_nsub: %d\t", bufp->re_nsub);
850 printf ("regs_alloc: %d\t", bufp->regs_allocated);
[all …]
/openbsd-src/gnu/usr.bin/cvs/lib/
H A Dregex.c966 print_compiled_pattern (bufp) in print_compiled_pattern() argument
967 struct re_pattern_buffer *bufp; in print_compiled_pattern()
969 unsigned char *buffer = bufp->buffer;
971 print_partial_compiled_pattern (buffer, buffer + bufp->used);
972 printf ("%d bytes used/%d bytes allocated.\n", bufp->used, bufp->allocated);
974 if (bufp->fastmap_accurate && bufp->fastmap)
977 print_fastmap (bufp->fastmap);
980 printf ("re_nsub: %d\t", bufp->re_nsub);
981 printf ("regs_alloc: %d\t", bufp->regs_allocated);
982 printf ("can_be_null: %d\t", bufp->can_be_null);
[all …]
/openbsd-src/usr.bin/mg/
H A Dtags.c72 char fname[NFILEN], *bufp, *temp; in tagsvisit() local
83 bufp = eread("Visit tags table (default %s): ", fname, in tagsvisit()
85 if (bufp == NULL) in tagsvisit()
95 temp = bufp; in tagsvisit()
110 char *tok, *bufp; in findtag() local
115 bufp = eread("Find tag: ", utok, MAX_TOKEN, EFNUL | EFNEW); in findtag()
117 bufp = eread("Find tag (default %s): ", utok, MAX_TOKEN, in findtag()
120 if (bufp == NULL) in findtag()
122 else if (bufp[0] == '\0') in findtag()
508 struct buffer *bufp; in loadbuffer() local
[all …]
H A Dbuffer.c42 char buf[8], *bufp; in settabw() local
52 if ((bufp = eread("Tab Width: ", buf, sizeof(buf), in settabw()
55 if (bufp[0] == '\0') in settabw()
109 usebufname(const char *bufp) in usebufname() argument
114 if (bufp == NULL) { in usebufname()
117 } else if (bufp[0] == '\0' && curbp->b_altb != NULL) in usebufname()
119 else if ((bp = bfind(bufp, TRUE)) == NULL) in usebufname()
139 char bufn[NBUFN], *bufp; in usebuffer() local
143 bufp = eread("Switch to buffer: ", bufn, NBUFN, EFNEW | EFBUF); in usebuffer()
145 bufp = eread("Switch to buffer (default %s): ", bufn, NBUFN, in usebuffer()
[all …]
H A Dextend.c38 char buf[BUFSIZE], *bufp, *cp; in insert() local
57 if ((bufp = eread("Insert: ", buf, sizeof(buf), EFNEW)) == NULL) in insert()
59 else if (bufp[0] == '\0') in insert()
325 char bprompt[80], *bufp, *pep; in dobind() local
365 if ((bufp = eread("%s to command: ", bprompt, sizeof(bprompt), in dobind()
368 else if (bufp[0] == '\0') in dobind()
486 char tmp[32], *bufp; in redefine_key() local
490 if ((bufp = eread("%s", tmp, sizeof(tmp), EFNEW, buf)) == NULL) in redefine_key()
492 else if (bufp[0] == '\0') in redefine_key()
527 char xname[NXNAME], *bufp; in extend() local
[all …]
H A Dfile.c30 char fname[NFILEN], *bufp, *adjf; in fileinsert() local
34 bufp = eread("Insert file: ", fname, NFILEN, in fileinsert()
36 if (bufp == NULL) in fileinsert()
38 else if (bufp[0] == '\0') in fileinsert()
40 adjf = adjustname(bufp, TRUE); in fileinsert()
56 char fname[NFILEN], *bufp, *adjf; in filevisit() local
61 bufp = eread("Find file: ", fname, NFILEN, in filevisit()
63 if (bufp == NULL) in filevisit()
65 else if (bufp[0] == '\0') in filevisit()
94 char fname[NFILEN], *bufp; in filevisitalt() local
[all …]
H A Dgrep.c67 char cprompt[NFILEN], *bufp; in grep() local
72 if ((bufp = eread("Run grep: ", cprompt, NFILEN, in grep()
75 else if (bufp[0] == '\0') in grep()
92 char cprompt[NFILEN], *bufp; in compile() local
97 if ((bufp = eread("Compile command: ", cprompt, NFILEN, in compile()
100 else if (bufp[0] == '\0') in compile()
104 (void)strlcpy(compile_last_command, bufp, sizeof(compile_last_command)); in compile()
121 char cprompt[NFILEN], *bufp; in gid() local
155 if ((bufp = eread("Run gid (with args): ", cprompt, NFILEN, in gid()
158 else if (bufp[0] == '\0') in gid()
/openbsd-src/gnu/lib/libiberty/src/
H A Dregex.c73 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ argument
74 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop)
75 # define re_match(bufp, string, size, pos, regs) \ argument
76 __re_match (bufp, string, size, pos, regs)
77 # define re_search(bufp, string, size, startpos, range, regs) \ argument
78 __re_search (bufp, string, size, startpos, range, regs)
79 # define re_compile_pattern(pattern, length, bufp) \ argument
80 __re_compile_pattern (pattern, length, bufp)
82 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument
83 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop)
[all …]
/openbsd-src/usr.sbin/pppd/
H A Dcbcp.c314 u_char *bufp = buf; in cbcp_resp() local
327 PUTCHAR(CB_CONF_USER, bufp); in cbcp_resp()
329 PUTCHAR(len , bufp); in cbcp_resp()
330 PUTCHAR(5, bufp); /* delay */ in cbcp_resp()
331 PUTCHAR(1, bufp); in cbcp_resp()
332 BCOPY(us->us_number, bufp, strlen(us->us_number) + 1); in cbcp_resp()
339 PUTCHAR(CB_CONF_ADMIN, bufp); in cbcp_resp()
341 PUTCHAR(len , bufp); in cbcp_resp()
342 PUTCHAR(5, bufp); /* delay */ in cbcp_resp()
343 PUTCHAR(0, bufp); in cbcp_resp()
[all...]
/openbsd-src/sys/kern/
H A Dvfs_getcwd.c54 char *bufp, struct proc *p) in vfs_getcwd_scandir() argument
73 if (bufp != NULL) { in vfs_getcwd_scandir()
104 if (bufp == NULL) { in vfs_getcwd_scandir()
178 if (bp <= bufp) { in vfs_getcwd_scandir()
210 char *bufp) in vfs_getcwd_getcache() argument
219 error = cache_revlookup(lvp, uvpp, bpp, bufp); in vfs_getcwd_getcache()
270 vfs_getcwd_common(struct vnode *lvp, struct vnode *rvp, char **bpp, char *bufp, in vfs_getcwd_common() argument
294 if (bufp) in vfs_getcwd_common()
349 error = vfs_getcwd_getcache(&lvp, &uvp, &bp, bufp); in vfs_getcwd_common()
353 error = vfs_getcwd_scandir(&lvp, &uvp, &bp, bufp, p); in vfs_getcwd_common()
[all …]
/openbsd-src/gnu/usr.bin/cvs/src/
H A Dbuffer.c182 - (buf->last->bufp + buf->last->size))
185 memcpy (buf->last->bufp + buf->last->size, data, len);
208 newdata->bufp = newdata->text;
246 != buf->last->bufp + buf->last->size))
248 *(buf->last->bufp + buf->last->size) = ch;
283 status = (*buf->output) (buf->closure, data->bufp, data->size,
306 data->bufp += nbytes;
439 data->bufp = data->text;
475 data->bufp = data->text;
555 data->bufp = data->text;
[all …]
/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A Dbfd.c428 char *bufp; in _bfd_default_error_handler() local
440 bufp = buf; in _bfd_default_error_handler()
459 memcpy (bufp, fmt, len + 1); in _bfd_default_error_handler()
467 memcpy (bufp, fmt, len); in _bfd_default_error_handler()
468 bufp += len; in _bfd_default_error_handler()
477 *bufp++ = '*'; in _bfd_default_error_handler()
478 *bufp++ = '*'; in _bfd_default_error_handler()
479 *bufp = '\0'; in _bfd_default_error_handler()
487 snprintf (bufp, avail, "%s(%s)", in _bfd_default_error_handler()
490 snprintf (bufp, avail, "%s", abfd->filename); in _bfd_default_error_handler()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/
H A D980329-1.c16 re_match_2_internal (struct re_pattern_buffer *bufp, in re_match_2_internal() argument
19 unsigned char *p = bufp->buffer; in re_match_2_internal()
20 unsigned char *pend = p + bufp->used; in re_match_2_internal()
25 if (bufp) in re_match_2_internal()
/openbsd-src/gnu/usr.bin/gcc/gcc/config/ns32k/
H A Dns32k.c149 int used_regs_buf[8], *bufp = used_regs_buf; local
156 *bufp++ = regno; g_regs_used++;
158 *bufp = -1;
167 bufp = used_regs_buf;
178 while (*bufp >= 0)
179 fprintf (file, "\tmovd r%d,tos\n", *bufp++);
184 while (*bufp >= 0)
186 fprintf (file, "r%d", *bufp++);
187 if (*bufp >= 0)
236 int used_regs_buf[8], *bufp = used_regs_buf; local
[all …]
/openbsd-src/usr.sbin/dhcpd/
H A Dtree.c238 tree_evaluate_recurse(int *bufix, unsigned char **bufp, in tree_evaluate_recurse() argument
246 t1 = tree_evaluate_recurse(bufix, bufp, bufcount, in tree_evaluate_recurse()
248 t2 = tree_evaluate_recurse(bufix, bufp, bufcount, in tree_evaluate_recurse()
255 do_data_copy(bufix, bufp, bufcount, tree->data.const_val.data, in tree_evaluate_recurse()
262 t1 = tree_evaluate_recurse(bufix, bufp, bufcount, in tree_evaluate_recurse()
275 do_data_copy(int *bufix, unsigned char **bufp, int *bufcount, in do_data_copy() argument
289 memcpy(*bufp + *bufix, data, space); in do_data_copy()
H A Dparse.c323 unsigned char *bufp = buf, *s = NULL; in parse_numeric_aggregate() local
326 if (!bufp && *max) { in parse_numeric_aggregate()
327 bufp = malloc(*max * size / 8); in parse_numeric_aggregate()
328 if (!bufp) in parse_numeric_aggregate()
331 s = bufp; in parse_numeric_aggregate()
376 bufp = malloc(count * size / 8); in parse_numeric_aggregate()
377 if (!bufp) in parse_numeric_aggregate()
379 s = bufp + count - size / 8; in parse_numeric_aggregate()
391 return (bufp); in parse_numeric_aggregate()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D990106-1.c1 foo(bufp) in foo() argument
2 char *bufp; in foo()
5 return (*bufp++ = x ? 'a' : 'b');
/openbsd-src/sbin/sysctl/
H A Dsysctl.c374 char *cp, *bufp, buf[SYSCTL_BUFSIZ]; in parse() local
378 bufp = buf; in parse()
387 if ((indx = findname(string, "top", &bufp, &toplist)) == -1) in parse()
399 if (bufp == NULL) { in parse()
403 if ((indx = findname(string, "second", &bufp, lp)) == -1) in parse()
429 sysctl_forkstat(string, &bufp, mib, flags, &type); in parse()
432 len = sysctl_tty(string, &bufp, mib, flags, &type); in parse()
437 sysctl_nchstats(string, &bufp, mib, flags, &type); in parse()
440 len = sysctl_malloc(string, &bufp, mib, flags, &type); in parse()
479 len = sysctl_seminfo(string, &bufp, mi in parse()
1962 char *name, bufp[SYSCTL_BUFSIZ], *buf, *ptr; sysctl_malloc() local
2953 findname(char * string,char * level,char ** bufp,struct list * namelist) findname() argument
[all...]
/openbsd-src/sbin/dmesg/
H A Ddmesg.c123 struct msgbuf *bufp; in main() local
139 if (KREAD(nl[X_MSGBUF].n_value, bufp)) in main()
142 if (KREAD((long)bufp, cur)) in main()
144 (unsigned long)bufp); in main()
150 if (kvm_read(kd, (long)&bufp->msg_bufc, bufdata, in main()

123456