Home
last modified time | relevance | path

Searched refs:conv (Results 1 – 25 of 210) sorted by relevance

123456789

/freebsd/contrib/bsnmp/tests/
H A Dasn1.cc271 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 Dchartype.c50 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 …]
H A Dsearch.c117 static ct_buffer_t conv; in el_match() local
133 if (regcomp(&re, ct_encode_string(pat, &conv), 0) == 0) { in el_match()
134 rv = regexec(&re, ct_encode_string(str, &conv), (size_t)0, NULL, in el_match()
142 if ((re = regcomp(ct_encode_string(pat, &conv))) != NULL) { in el_match()
143 rv = regexec(re, ct_encode_string(str, &conv)); in el_match()
150 if (re_comp(ct_encode_string(pat, &conv)) != NULL) in el_match()
153 return re_exec(ct_encode_string(str, &conv)) == 1; in el_match()
573 static ct_buffer_t conv; in cv_repeat_srch() local
575 c, el->el_search.patlen, ct_encode_string(el->el_search.patbuf, &conv)); in cv_repeat_srch()
/freebsd/contrib/openpam/lib/libpam/
H A Dpam_vprompt.c65 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 DMakefile5 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/contrib/nvi/common/
H A Dconv.c159 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 …]
H A Dkey.h14 sp->conv.file2int(sp, n, nlen, &buf, &wlen, &w)
16 sp->conv.int2file(sp, w, wlen, &sp->cw, &nlen, &n)
18 sp->conv.sys2int(sp, n, nlen, &buf, &wlen, &w)
20 sp->conv.int2sys(sp, w, wlen, &sp->cw, &nlen, &n)
22 sp->conv.input2int(sp, n, nlen, &(cw), &wlen, &w)
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_conv.c304 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/
H A Dremoval_nopwrite.ksh43 conv=notrunc >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed."
46 conv=notrunc >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed."
51 conv=notrunc >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed."
54 count=$MEGS oflag=sync conv=notrunc >/dev/null 2>&1 || \
66 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
70 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
76 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
80 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
104 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
108 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
[all …]
/freebsd/usr.bin/calendar/
H A Devents.c41 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/usr.sbin/makefs/msdos/
H A Dmsdosfs_conv.c299 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 Dnopwrite_negative.ksh46 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \
52 conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
59 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \
65 conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
71 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \
76 conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
82 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \
87 conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
H A Dnopwrite_copies.ksh46 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \
52 conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
62 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \
68 conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
/freebsd/tests/sys/geom/class/gate/
H A Dggate_test.sh21 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 Dpam_unix.c68 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/eli/
H A Dintegrity_test.sh21 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 Dsend_hole_birth.ksh86 conv=notrunc
88 conv=notrunc
113 log_must dd if=/dev/urandom of=/$sendfs/file1 bs=512 count=128k conv=notrunc
118 conv=notrunc
/freebsd/tools/test/stress2/misc/
H A Dtmpfs24.sh60 printf "\001" | dd of=$file seek=$((0*bs)) bs=1 count=1 conv=notrunc status=none
61 printf "\002" | dd of=$file seek=$((2*bs)) bs=1 count=1 conv=notrunc status=none
62 printf "\003" | dd of=$file seek=$((4*bs)) bs=1 count=1 conv=notrunc status=none
H A Dseekhole.sh64 printf "\001" | dd of=$file seek=$((0*bs)) bs=1 count=1 conv=notrunc status=none
65 printf "\002" | dd of=$file seek=$((2*bs)) bs=1 count=1 conv=notrunc status=none
66 printf "\003" | dd of=$file seek=$((4*bs)) bs=1 count=1 conv=notrunc status=none
/freebsd/lib/libiconv_modules/mapper_std/
H A Dcitrus_mapper_std.c86 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/
H A Dcp_files_002_pos.ksh110 count=1 conv=notrunc
123 seek=$(($RANDOM % $SRC_SIZE)) count=$((1 + $RANDOM % 16)) conv=notrunc
148 count=1 conv=notrunc
155 seek=$(($RANDOM % $SRC_SIZE)) count=$((1 + $RANDOM % 16)) conv=notrunc
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_misc/
H A Dzvol_misc_trim.ksh85 log_must dd if=$datafile1 of=$zvolpath conv=fsync
105 log_must dd if=/dev/zero of="$datafile1" bs=1M count=1 conv=notrunc
106 log_must dd if=/dev/zero of="$datafile1" bs=1M count=2 seek=3 conv=notrunc
/freebsd/usr.sbin/nvram/
H A Dnvram.c55 } conv; variable
121 memcpy(conv.buf, cp, sizeof(struct chrp_header)); in main()
122 size = conv.header.length * 0x10; in main()
123 if (strncmp(conv.header.name, "common", 7) == 0) in main()
/freebsd/tools/tools/nanobsd/
H A Dlegacy.sh139 dd conv=sparse if=/dev/${MD} of=${NANO_DISKIMGDIR}/_.disk.image bs=64k
197 dd conv=sparse if=${NANO_DISKIMGDIR}/_.disk.image of=/dev/${MD}${NANO_SLICE_ROOT} bs=64k
202 dd conv=sparse if=/dev/${MD}${NANO_SLICE_ROOT} of=/dev/${MD}${NANO_SLICE_ALTROOT} bs=64k
239 dd conv=sparse if=/dev/${MD} of=${IMG} bs=64k
/freebsd/contrib/lua/src/
H A Dloslib.c272 static const char *checkoption (lua_State *L, const char *conv, in checkoption() argument
279 else if (memcmp(conv, option, oplen) == 0) { /* match? */ in checkoption()
280 memcpy(buff, conv, oplen); /* copy valid option to buffer */ in checkoption()
282 return conv + oplen; /* return next item */ in checkoption()
286 lua_pushfstring(L, "invalid conversion specifier '%%%s'", conv)); in checkoption()
287 return conv; /* to avoid warnings */ in checkoption()

123456789