Home
last modified time | relevance | path

Searched refs:bufsiz (Results 1 – 25 of 42) sorted by relevance

12

/openbsd/sys/arch/sh/sh/
H A Ddb_disasm.c150 disasm_branch(char *buf, size_t bufsiz, const char *opstr, vaddr_t addr) in disasm_branch() argument
159 snprintf(buf, bufsiz, "%-8s", opstr); in disasm_branch()
162 bufsiz -= len; in disasm_branch()
169 snprintf(buf, bufsiz, "%s", name); in disasm_branch()
171 snprintf(buf, bufsiz, "%s+", name); in disasm_branch()
174 bufsiz -= len; in disasm_branch()
175 db_format(buf, bufsiz, d, DB_FORMAT_R, 1, 0); in disasm_branch()
181 db_format(buf, bufsiz, addr, DB_FORMAT_N, 1, 0); in disasm_branch()
194 get_opcode(vaddr_t loc, char *buf, size_t bufsiz) in get_opcode() argument
199 snprintf(buf, bufsiz, " in get_opcode()
209 f_02(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_02() argument
251 f_03(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_03() argument
281 f_04(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_04() argument
306 f_08(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_08() argument
348 f_09(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_09() argument
373 f_0a(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_0a() argument
409 f_0b(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_0b() argument
432 f_0c(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_0c() argument
457 f_10(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_10() argument
470 f_20(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_20() argument
492 f_24(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_24() argument
517 f_28(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_28() argument
542 f_2c(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_2c() argument
567 f_30(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_30() argument
589 f_34(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_34() argument
614 f_38(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_38() argument
636 f_3c(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_3c() argument
661 f_40(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_40() argument
682 f_41(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_41() argument
703 f_42(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_42() argument
739 f_43(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_43() argument
781 f_44(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_44() argument
799 f_45(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_45() argument
820 f_46(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_46() argument
856 f_47(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_47() argument
898 f_48(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_48() argument
919 f_49(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_49() argument
940 f_4a(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_4a() argument
976 f_4b(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_4b() argument
997 f_4c(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_4c() argument
1007 f_4d(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_4d() argument
1017 f_4e(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_4e() argument
1059 f_4f(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_4f() argument
1069 f_50(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_50() argument
1082 f_60(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_60() argument
1107 f_64(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_64() argument
1132 f_68(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_68() argument
1157 f_6c(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_6c() argument
1182 f_70(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_70() argument
1193 f_80(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_80() argument
1269 f_90(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_90() argument
1281 f_a0(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_a0() argument
1294 f_b0(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_b0() argument
1307 f_c0(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_c0() argument
1389 f_d0(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_d0() argument
1401 f_e0(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_e0() argument
1412 f_f0(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_f0() argument
1437 f_f4(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_f4() argument
1462 f_f8(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_f8() argument
1487 f_fc(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_fc() argument
1498 f_fd(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_fd() argument
1548 f_fe(vaddr_t loc,u_int insn,char * buf,size_t bufsiz) f_fe() argument
[all...]
/openbsd/gnu/lib/libexecinfo/
H A Dbacktrace.c54 if (*buf && offs < *bufsiz) { in rasprintf()
59 len = vsnprintf(*buf + offs, *bufsiz - offs, fmt, ap); in rasprintf()
62 if (len < 0 || (size_t)len + 1 < *bufsiz - offs) in rasprintf()
64 nbufsiz = MAX(*bufsiz + 512, (size_t)len + 1); in rasprintf()
66 nbufsiz = MAX(offs, *bufsiz) + 512; in rasprintf()
72 *bufsiz = nbufsiz; in rasprintf()
97 len = rasprintf(buf, bufsiz, o, "%p", addr); in format_string()
104 len = rasprintf(buf, bufsiz, o, "+0x%tx", diff); in format_string()
109 len = rasprintf(buf, bufsiz, o, "0x%tx", diff); in format_string()
116 len = rasprintf(buf, bufsiz, o, "%c", *fmt); in format_string()
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/
H A Dkod.c90 LONGEST bufsiz = 0; in gdb_kod_query() local
94 bufsiz = target_read_partial (&current_target, TARGET_OBJECT_KOD, in gdb_kod_query()
96 if (bufsiz < 0) in gdb_kod_query()
108 *maxsiz = bufsiz; in gdb_kod_query()
114 if (bufsiz > *maxsiz) in gdb_kod_query()
115 bufsiz = *maxsiz; in gdb_kod_query()
119 if (strlen (arg) >= bufsiz) in gdb_kod_query()
124 arg, result, 0, bufsiz) < 0) in gdb_kod_query()
H A Dkod-cisco.c51 int bufsiz = PBUFSIZ; in cisco_kod_open() local
69 (*gdb_kod_query) ("oI;", buffer, &bufsiz); in cisco_kod_open()
136 int bufsiz = PBUFSIZ; in cisco_kod_request() local
150 (*gdb_kod_query) (command, buffer, &bufsiz); in cisco_kod_request()
252 int bufsiz = PBUFSIZ; in cisco_kod_request() local
263 (*gdb_kod_query) (command, buffer, &bufsiz); in cisco_kod_request()
H A Davr-tdep.c1326 LONGEST bufsiz = 0; in avr_io_reg_read_command() local
1335 bufsiz = target_read_partial (&current_target, TARGET_OBJECT_AVR, in avr_io_reg_read_command()
1337 if (bufsiz < 0) in avr_io_reg_read_command()
1344 if (bufsiz > sizeof (buf)) in avr_io_reg_read_command()
1345 bufsiz = sizeof (buf); in avr_io_reg_read_command()
1350 bufsiz); in avr_io_reg_read_command()
1352 if (strncmp (buf, "", bufsiz) == 0) in avr_io_reg_read_command()
1382 0, bufsiz); in avr_io_reg_read_command()
/openbsd/regress/sys/kern/pipe/
H A Dtest-run-down.c80 ctx_setup(struct context *ctx, size_t bufsiz) in ctx_setup() argument
87 ctx->c_buf = malloc(bufsiz); in ctx_setup()
90 ctx->c_bufsiz = bufsiz; in ctx_setup()
146 test_run_down(size_t bufsiz) in test_run_down() argument
152 ctx_setup(&ctx, bufsiz); in test_run_down()
/openbsd/sys/lib/libsa/
H A Dgetln.c38 getln(char *buf, size_t bufsiz) in getln() argument
43 if (bufsiz == 0) in getln()
45 ep = buf + bufsiz - 1; in getln()
/openbsd/usr.sbin/radiusctl/
H A Dradiusctl.c1005 strlcpy(buf, hbuf, bufsiz); in sockaddr_str()
1020 strftime(buf, bufsiz, "%F %T", &tm); in time_long_str()
1027 size_t bufsiz) in time_short_str() argument
1035 strftime(buf, bufsiz, "%e%b%y", &tm); in time_short_str()
1037 strftime(buf, bufsiz, "%m/%d", &tm); in time_short_str()
1051 if (bufsiz == 0) in humanize_seconds()
1055 strlcat(buf, " (", bufsiz); in humanize_seconds()
1059 strlcat(buf, fbuf, bufsiz); in humanize_seconds()
1062 strlcat(buf, " and ", bufsiz); in humanize_seconds()
1066 strlcat(buf, fbuf, bufsiz); in humanize_seconds()
[all …]
/openbsd/sys/dev/usb/
H A Durng.c57 int bufsiz; member
143 sc->sc_chip.bufsiz, in urng_attach()
193 sc->sc_buf = usbd_alloc_buffer(sc->sc_xfer, sc->sc_chip.bufsiz); in urng_attach()
196 sc->sc_chip.bufsiz); in urng_attach()
246 sc->sc_chip.bufsiz, USBD_SHORT_XFER_OK | USBD_SYNCHRONOUS, in urng_task()
/openbsd/lib/libc/gen/
H A Dreadpassphrase.c40 readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags) in readpassphrase() argument
50 if (bufsiz == 0) { in readpassphrase()
114 end = buf + bufsiz - 1; in readpassphrase()
/openbsd/gnu/usr.bin/perl/ext/PerlIO-encoding/
H A Dencoding.xs211 if (!e->base.bufsiz) in PerlIOEncode_get_base()
212 e->base.bufsiz = 1024; in PerlIOEncode_get_base()
214 e->bufsv = newSV(e->base.bufsiz); in PerlIOEncode_get_base()
228 if (SvLEN(e->bufsv) < e->base.bufsiz) { in PerlIOEncode_get_base()
231 e->base.buf = (STDCHAR *) SvGROW(e->bufsv, e->base.bufsiz); in PerlIOEncode_get_base()
321 if (use + SvCUR(e->dataSV) > e->base.bufsiz) { in PerlIOEncode_fill()
324 e->base.bufsiz = use + SvCUR(e->dataSV); in PerlIOEncode_fill()
328 use = e->base.bufsiz - SvCUR(e->dataSV); in PerlIOEncode_fill()
/openbsd/sys/kern/
H A Dsubr_kubsan.c476 char *buf, size_t bufsiz) in kubsan_format_int() argument
482 snprintf(buf, bufsiz, "%lld", i); in kubsan_format_int()
485 snprintf(buf, bufsiz, "%llu", u); in kubsan_format_int()
489 snprintf(buf, bufsiz, "%#x<NaN>", typ->t_kind); in kubsan_format_int()
495 size_t bufsiz) in kubsan_format_location() argument
501 return snprintf(buf, bufsiz, "%s:%u:%u", in kubsan_format_location()
/openbsd/lib/libfido2/src/
H A Dnfc.c238 const size_t bufsiz = count; in rx_msg() local
257 if (bufsiz - count > INT_MAX) { in rx_msg()
262 return (int)(bufsiz - count); in rx_msg()
/openbsd/usr.sbin/httpd/
H A Dserver_file.c277 size_t bufsiz; in server_file_request() local
320 bufsiz = MAXIMUM(st->st_blksize, 64 * 1024); in server_file_request()
322 bufsiz); in server_file_request()
354 size_t content_length = 0, bufsiz; in server_partial_file_request() local
445 bufsiz = MAXIMUM(st->st_blksize, 64 * 1024); in server_partial_file_request()
447 bufsiz); in server_partial_file_request()
/openbsd/gnu/usr.bin/cvs/vms/
H A Dreadlink.c1 int readlink(char *path, char *buf, int bufsiz) in readlink() argument
/openbsd/usr.bin/skeyinit/
H A Dskeyinit.c323 char *buf, size_t bufsiz) in secure_mode() argument
337 (void)fgets(buf, bufsiz, stdin); in secure_mode()
389 (void)fgets(buf, bufsiz, stdin); in secure_mode()
/openbsd/lib/libskey/
H A Dskeylogin.c563 tgetline(int fd, char *buf, size_t bufsiz, int timeout) in tgetline() argument
571 if (bufsiz == 0) in tgetline()
575 left = bufsiz; in tgetline()
/openbsd/usr.bin/openssl/
H A Dapps.c274 password_callback(char *buf, int bufsiz, int verify, void *arg) in password_callback() argument
291 if (res > bufsiz) in password_callback()
292 res = bufsiz; in password_callback()
310 PW_MIN_LENGTH, bufsiz - 1); in password_callback()
312 buff = malloc(bufsiz); in password_callback()
314 PW_MIN_LENGTH, bufsiz - 1, buf); in password_callback()
322 freezero(buff, (unsigned int) bufsiz); in password_callback()
328 explicit_bzero(buf, (unsigned int) bufsiz); in password_callback()
333 explicit_bzero(buf, (unsigned int) bufsiz); in password_callback()
H A Dapps.h141 int password_callback(char *buf, int bufsiz, int verify, void *cb_data);
/openbsd/usr.sbin/dhcpd/
H A Dconfpars.c1510 size_t bufsiz = 0, bufn = 0, count = 0, i; in parse_domain_and_comp() local
1534 bufsiz = bufsiz + 2 + strlen(domain); in parse_domain_and_comp()
1538 buf = malloc(bufsiz); in parse_domain_and_comp()
1547 if (!(bufsiz <= INT_MAX)) in parse_domain_and_comp()
1553 n = dn_comp(domains[i], &buf[bufn], bufsiz - bufn, bufptrs, in parse_domain_and_comp()
/openbsd/regress/lib/libssl/ssl/
H A Dssltest.c783 size_t bufsiz = 256; /* small buffer for testing */ in doit_biopair() local
785 if (!BIO_new_bio_pair(&server, bufsiz, &server_io, bufsiz)) in doit_biopair()
787 if (!BIO_new_bio_pair(&client, bufsiz, &client_io, bufsiz)) in doit_biopair()
/openbsd/usr.bin/ssh/
H A Dssh-keyscan.c445 size_t bufsiz; in congreet() local
473 bufsiz = sizeof(buf); in congreet()
475 while (bufsiz-- && in congreet()
/openbsd/gnu/usr.bin/perl/
H A Dperlio.c4038 if (avail > (SSize_t)b->bufsiz) in PerlIOBuf_fill()
4039 avail = b->bufsiz; in PerlIOBuf_fill()
4045 avail = PerlIO_read(n, b->ptr, b->bufsiz); in PerlIOBuf_fill()
4098 avail = b->bufsiz; in PerlIOBuf_unread()
4105 b->posn -= b->bufsiz; in PerlIOBuf_unread()
4171 if (b->ptr >= (b->buf + b->bufsiz)) in PerlIOBuf_write()
4278 if (!b->bufsiz) in PerlIOBuf_get_base()
4279 b->bufsiz = PERLIOBUF_DEFAULT_BUFSIZ; in PerlIOBuf_get_base()
4280 Newx(b->buf,b->bufsiz, STDCHAR); in PerlIOBuf_get_base()
4283 b->bufsiz = sizeof(b->oneword); in PerlIOBuf_get_base()
[all …]
/openbsd/usr.bin/rdist/
H A Dcommon.c315 remread(int fd, u_char *buf, size_t bufsiz) in remread() argument
317 return(read(fd, (char *)buf, bufsiz)); in remread()
/openbsd/gnu/llvm/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h794 #define __sanitizer_syscall_pre_readlink(path, buf, bufsiz) \ argument
796 (long)(bufsiz))
797 #define __sanitizer_syscall_post_readlink(res, path, buf, bufsiz) \ argument
799 (long)(bufsiz))
1660 #define __sanitizer_syscall_pre_readlinkat(dfd, path, buf, bufsiz) \ argument
1662 (long)(buf), (long)(bufsiz))
1665 (long)(buf), (long)(bufsiz))
2460 void __sanitizer_syscall_pre_impl_readlink(long path, long buf, long bufsiz);
2462 long bufsiz);
2966 long bufsiz);
[all …]

12