| /freebsd/contrib/bsnmp/tests/ |
| H A D | asn1.cc | 271 const auto conv = [] (asn_len_t alen, asn_len_t vlen, uint8_t type, variable 294 conv(2, 0, ASN_TYPE_OCTETSTRING, "x04:00"_cbuf); 308 const auto conv = [] (const auto &buf, uint64_t xval) { in __anon4d4e46190302() variable 335 conv("x46:01:00"_cbuf, 0x0ULL); 336 conv("x46:01:01"_cbuf, 0x1ULL); 337 conv("x46:01:7f"_cbuf, 0x7fULL); 339 conv("x46:02:00:80"_cbuf, 0x80ULL); 340 conv("x46:02:00:ff"_cbuf, 0xffULL); 341 conv("x46:02:7f:ff"_cbuf, 0x7fffULL); 343 conv("x46:03:00:80:00"_cbuf, 0x8000ULL); [all …]
|
| /freebsd/contrib/libedit/ |
| H A D | chartype.c | 50 ct_conv_cbuff_resize(ct_buffer_t *conv, size_t csize) in ct_conv_cbuff_resize() argument 54 if (csize <= conv->csize) in ct_conv_cbuff_resize() 57 conv->csize = csize; in ct_conv_cbuff_resize() 59 p = el_realloc(conv->cbuff, conv->csize * sizeof(*conv->cbuff)); in ct_conv_cbuff_resize() 61 conv->csize = 0; in ct_conv_cbuff_resize() 62 el_free(conv->cbuff); in ct_conv_cbuff_resize() 63 conv->cbuff = NULL; in ct_conv_cbuff_resize() 66 conv->cbuff = p; in ct_conv_cbuff_resize() 71 ct_conv_wbuff_resize(ct_buffer_t *conv, size_t wsize) in ct_conv_wbuff_resize() argument 75 if (wsize <= conv->wsize) in ct_conv_wbuff_resize() [all …]
|
| /freebsd/contrib/openpam/lib/libpam/ |
| H A D | pam_vprompt.c | 65 const struct pam_conv *conv; in pam_vprompt() local 73 conv = convp; in pam_vprompt() 74 if (conv == NULL || conv->conv == NULL) { in pam_vprompt() 83 r = (conv->conv)(1, &msgp, &rsp, conv->appdata_ptr); in pam_vprompt()
|
| /freebsd/bin/dd/ |
| H A D | Makefile | 5 SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c 17 .for conv in ascii ebcdic ibm oldascii oldebcdic oldibm \ 20 @${ECHO} testing conv=${conv} 22 LC_ALL=en_US.US-ASCII ./dd conv=${conv} 2>/dev/null | \ 24 diff -I FreeBSD - ${.CURDIR}/ref.${conv} 27 @./gen 189284 | ./dd ibs=16 obs=8 conv=sparse of=obs_zeroes 2> /dev/null 32 @./dd if=1M_zeroes of=1M_zeroes.1 bs=1048576 conv=sparse 2> /dev/null
|
| /freebsd/lib/libc/stdlib/ |
| H A D | strfrom.c | 184 sf_special(struct sf_buf *b, char conv, int signflag, int is_nan) in sf_special() argument 189 upper = isupper((unsigned char)conv); in sf_special() 205 sf_efmt(struct sf_buf *b, int prec, char conv, in sf_efmt() argument 226 sf_emit_exp(b, isupper((unsigned char)conv) ? 'E' : 'e', decpt - 1, 2); in sf_efmt() 287 sf_gfmt(struct sf_buf *b, int prec, char conv, in sf_gfmt() argument 340 sf_emit_exp(b, isupper((unsigned char)conv) ? 'E' : 'e', in sf_gfmt() 359 sf_afmt(struct sf_buf *b, int user_prec, char conv, in sf_afmt() argument 368 sf_putc(b, isupper((unsigned char)conv) ? 'X' : 'x'); in sf_afmt() 390 sf_emit_exp(b, isupper((unsigned char)conv) ? 'P' : 'p', decpt - 1, 1); in sf_afmt() 400 __sf_xdigits(char conv) in __sf_xdigits() argument [all …]
|
| H A D | strfromd.c | 15 char conv, lc, *digits, *dend; in strfromd() local 18 conv = __sf_parse_fmt(fmt, &prec); in strfromd() 19 if (conv == '\0') in strfromd() 21 lc = tolower((unsigned char)conv); in strfromd() 24 digits = __hdtoa(fp, __sf_xdigits(conv), in strfromd() 26 ret = __sf_render_hex(s, n, conv, prec, digits, dend, decpt, in strfromd() 39 ret = __sf_render_decimal(s, n, conv, lc, prec, digits, dend, decpt, in strfromd()
|
| H A D | strfromf.c | 15 char conv, lc, *digits, *dend; in strfromf() local 20 conv = __sf_parse_fmt(fmt, &prec); in strfromf() 21 if (conv == '\0') in strfromf() 23 lc = tolower((unsigned char)conv); in strfromf() 26 digits = __hdtoa(dbl, __sf_xdigits(conv), in strfromf() 28 ret = __sf_render_hex(s, n, conv, prec, digits, dend, decpt, in strfromf() 41 ret = __sf_render_decimal(s, n, conv, lc, prec, digits, dend, decpt, in strfromf()
|
| H A D | strfroml.c | 16 char conv, lc, *digits, *dend; in strfroml() local 19 conv = __sf_parse_fmt(fmt, &prec); in strfroml() 20 if (conv == '\0') in strfroml() 22 lc = tolower((unsigned char)conv); in strfroml() 25 digits = __hldtoa(fp, __sf_xdigits(conv), in strfroml() 27 ret = __sf_render_hex(s, n, conv, prec, digits, dend, decpt, in strfroml() 40 ret = __sf_render_decimal(s, n, conv, lc, prec, digits, dend, decpt, in strfroml()
|
| /freebsd/contrib/nvi/common/ |
| H A D | conv.c | 159 sp->conv.id[IC_FE_CHAR2INT]); in fe_char2int() 167 sp->conv.id[IC_IE_CHAR2INT]); in ie_char2int() 296 sp->conv.id[IC_FE_INT2CHAR]); in fe_int2char() 322 memmove(&sp->conv, &orig->conv, sizeof(CONV)); in conv_init() 343 sp->conv.sys2int = sp->conv.file2int = raw2int; in conv_init() 344 sp->conv.int2sys = sp->conv.int2file = int2raw; in conv_init() 345 sp->conv.input2int = raw2int; in conv_init() 347 sp->conv.sys2int = cs_char2int; in conv_init() 348 sp->conv.int2sys = cs_int2char; in conv_init() 349 sp->conv.file2int = fe_char2int; in conv_init() [all …]
|
| /freebsd/crypto/krb5/src/util/ |
| H A D | def-check.pl | 36 my %conv; 198 %conv = (); 199 map { $conv{$_} = "default"; } @convD; 200 map { $conv{$_} = "KRB5_CALLCONV"; } @convK; 201 map { $conv{$_} = "KRB5_CALLCONV_C"; } @convC; 202 map { $conv{$_} = "KRB5_CALLCONV_WRONG"; } @convW; 253 if (!defined($conv{$_})) { 256 } elsif (! ($conv{$_} eq $xconv)) { 257 print "Function $_ should have calling convention '$xconv', but has '$conv{$_}' instead.\n";
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/ |
| H A D | removal_nopwrite.ksh | 40 conv=notrunc >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed." 43 conv=notrunc >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed." 48 conv=notrunc >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed." 51 count=$MEGS oflag=sync conv=notrunc >/dev/null 2>&1 || \ 63 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 67 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 73 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 77 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 101 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 105 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." [all …]
|
| /freebsd/sys/fs/msdosfs/ |
| H A D | msdosfs_conv.c | 304 int conv = 1; in unix2dosfn() local 389 if (conv != 3) in unix2dosfn() 390 conv = 2; in unix2dosfn() 393 conv = 3; in unix2dosfn() 400 if (((dn[j] & 0x80) || *(cp - 1) != dn[j]) && conv != 3) in unix2dosfn() 401 conv = 2; in unix2dosfn() 403 conv = 3; in unix2dosfn() 407 conv = 3; in unix2dosfn() 412 conv = 3; in unix2dosfn() 428 if (conv != 3) in unix2dosfn() [all …]
|
| /freebsd/usr.bin/calendar/ |
| H A D | events.c | 41 static iconv_t conv = (iconv_t)-1; variable 68 if (conv != (iconv_t) -1) { in set_new_encoding() 69 iconv_close(conv); in set_new_encoding() 70 conv = (iconv_t) -1; in set_new_encoding() 91 if (conv == (iconv_t)-1) { in convert() 92 conv = iconv_open(outputEncoding, currentEncoding); in convert() 93 if (conv == (iconv_t)-1) { in convert() 113 converted = iconv(conv, (char **) &inbuf, &inleft, &outbuf, &outleft); in convert() 137 iconv(conv, NULL, NULL, &outbuf, &outleft); in convert()
|
| /freebsd/contrib/pam-krb5/module/ |
| H A D | prompting.c | 148 struct pam_conv *conv; in pamk5_conv() local 153 pamret = pam_get_item(args->pamh, PAM_CONV, (PAM_CONST void **) &conv); in pamk5_conv() 156 if (conv->conv == NULL) in pamk5_conv() 161 pamret = conv->conv(1, &pmsg, &resp, conv->appdata_ptr); in pamk5_conv() 370 struct pam_conv *conv; in pamk5_prompter_krb5() local 383 pamret = pam_get_item(args->pamh, PAM_CONV, (PAM_CONST void **) &conv); in pamk5_prompter_krb5() 386 if (conv->conv == NULL) in pamk5_prompter_krb5() 424 pamret = conv->conv(total_prompts, (PAM_CONST struct pam_message **) msg, in pamk5_prompter_krb5() 425 &resp, conv->appdata_ptr); in pamk5_prompter_krb5()
|
| /freebsd/usr.sbin/makefs/msdos/ |
| H A D | msdosfs_conv.c | 299 int conv = 1; in unix2dosfn() local 367 && conv != 3) in unix2dosfn() 368 conv = 2; in unix2dosfn() 370 conv = 3; in unix2dosfn() 375 conv = 3; in unix2dosfn() 393 && conv != 3) in unix2dosfn() 394 conv = 2; in unix2dosfn() 396 conv = 3; in unix2dosfn() 401 conv = 3; in unix2dosfn() 420 if (conv != 3) { in unix2dosfn() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/nopwrite/ |
| H A D | nopwrite_negative.ksh | 47 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \ 53 conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 60 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \ 66 conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 72 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \ 77 conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 83 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \ 88 conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
|
| H A D | nopwrite_copies.ksh | 47 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \ 53 conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 63 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \ 69 conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
|
| /freebsd/tests/sys/geom/class/gate/ |
| H A D | ggate_test.sh | 21 atf_check -e ignore -o ignore dd if=/dev/random of=/dev/$work bs=1m count=1 conv=notrunc 63 dd if=/dev/random of=/dev/$work bs=1m count=1 conv=notrunc 65 dd if=/dev/random of=/dev/$src bs=1m count=1 conv=notrunc 78 dd if=/dev/${src} of=${ggate_dev} bs=1m count=1 conv=notrunc 114 dd if=src of=${ggate_dev} bs=1m count=1 conv=notrunc 142 dd if=/dev/random of=$work bs=1m count=1 conv=notrunc 144 dd if=/dev/random of=$src bs=1m count=1 conv=notrunc 153 dd if=/dev/$src of=${ggate_dev} bs=1m count=1 conv=notrunc
|
| /freebsd/contrib/openpam/modules/pam_unix/ |
| H A D | pam_unix.c | 68 struct pam_conv *conv; in pam_sm_authenticate() local 89 pam_err = pam_get_item(pamh, PAM_CONV, (const void **)&conv); in pam_sm_authenticate() 102 pam_err = (*conv->conv)(1, &msgp, &resp, conv->appdata_ptr); in pam_sm_authenticate()
|
| /freebsd/tests/sys/geom/class/ |
| H A D | zoned_subr.sh | 19 local conv=$1 22 atf_check gzoned create -s 256m ${conv:+-c ${conv}} ${md}
|
| /freebsd/tests/sys/geom/class/eli/ |
| H A D | integrity_test.sh | 21 conv=notrunc status=none 23 conv=notrunc status=none 39 seek=$(( $secsize / 512 )) of=sector conv=notrunc status=none 41 seek=$(( $secsize / 256 )) if=sector conv=notrunc status=none 83 atf_check dd if=rnd of=sector bs=1 count=8 seek=64 conv=notrunc status=none 127 atf_check dd if=rnd of=sector bs=1 count=16 conv=notrunc status=none
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
| H A D | send_hole_birth.ksh | 77 conv=notrunc 79 conv=notrunc 104 log_must dd if=/dev/urandom of=/$sendfs/file1 bs=512 count=128k conv=notrunc 109 conv=notrunc
|
| /freebsd/lib/libiconv_modules/mapper_std/ |
| H A D | citrus_mapper_std.c | 86 uint32_t conv; in rowcol_convert() local 110 conv = _region_peek8(&rc->rc_table, idx); in rowcol_convert() 113 conv = be16toh(_region_peek16(&rc->rc_table, idx*2)); in rowcol_convert() 116 conv = be32toh(_region_peek32(&rc->rc_table, idx*4)); in rowcol_convert() 122 if (conv == rc->rc_dst_invalid) { in rowcol_convert() 126 if (conv == rc->rc_dst_ilseq) in rowcol_convert() 129 *dst = conv; in rowcol_convert()
|
| /freebsd/sbin/fsck_msdosfs/tests/ |
| H A D | fsck_msdosfs_large_test.sh | 29 dd of="$1" bs=1 seek="$2" conv=notrunc status=none 36 dd of="$1" bs=1 seek="$2" conv=notrunc status=none 45 dd of="$1" bs=1 seek="$2" conv=notrunc status=none 51 printf '%s' "$3" | dd of="$1" bs=1 seek="$2" conv=notrunc status=none
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | tmpfs24.sh | 59 printf "\001" | dd of=$file seek=$((0*bs)) bs=1 count=1 conv=notrunc status=none 60 printf "\002" | dd of=$file seek=$((2*bs)) bs=1 count=1 conv=notrunc status=none 61 printf "\003" | dd of=$file seek=$((4*bs)) bs=1 count=1 conv=notrunc status=none
|