Searched refs:dstbuf (Results 1 - 13 of 13) sorted by relevance

/freebsd-11-stable/lib/libc/tests/locale/
H A Dmbstowcs_test.c52 wchar_t dstbuf[128]; local
59 wmemset(dstbuf, 0xcccc, sizeof(dstbuf) / sizeof(*dstbuf));
60 ATF_REQUIRE(mbstowcs(dstbuf, srcbuf, sizeof(dstbuf) / sizeof(*dstbuf)) == 5);
61 ATF_REQUIRE(wcscmp(dstbuf, L"hello") == 0);
62 ATF_REQUIRE(dstbuf[6] == 0xcccc);
67 wmemset(dstbuf,
[all...]
H A Dwcstombs_test.c52 char dstbuf[128]; local
59 memset(dstbuf, 0xcc, sizeof(dstbuf));
60 ATF_REQUIRE(wcstombs(dstbuf, srcbuf, sizeof(dstbuf)) == 5);
61 ATF_REQUIRE(strcmp(dstbuf, "hello") == 0);
62 ATF_REQUIRE((unsigned char)dstbuf[6] == 0xcc);
67 memset(dstbuf, 0xcc, sizeof(dstbuf));
68 ATF_REQUIRE(wcstombs(dstbuf, srcbu
[all...]
H A Dmbsrtowcs_test.c52 wchar_t dstbuf[128]; local
63 wmemset(dstbuf, 0xcccc, sizeof(dstbuf) / sizeof(*dstbuf));
66 ATF_REQUIRE(mbsrtowcs(dstbuf, (const char **)&src, sizeof(dstbuf) /
67 sizeof(*dstbuf), &s) == 5);
68 ATF_REQUIRE(wcscmp(dstbuf, L"hello") == 0);
69 ATF_REQUIRE(dstbuf[6] == 0xcccc);
75 wmemset(dstbuf,
[all...]
H A Dmbsnrtowcs_test.c51 wchar_t dstbuf[128]; local
60 wmemset(dstbuf, 0xcccc, sizeof(dstbuf) / sizeof(*dstbuf));
63 ATF_REQUIRE(mbsnrtowcs(dstbuf, (const char **)&src, 6, sizeof(dstbuf) /
64 sizeof(*dstbuf), &s) == 5);
65 ATF_REQUIRE(wcscmp(dstbuf, L"hello") == 0);
66 ATF_REQUIRE(dstbuf[6] == 0xcccc);
72 wmemset(dstbuf,
[all...]
H A Dwcsrtombs_test.c52 char dstbuf[128]; local
61 memset(dstbuf, 0xcc, sizeof(dstbuf));
64 ATF_REQUIRE(wcsrtombs(dstbuf, (const wchar_t **)&src, sizeof(dstbuf),
66 ATF_REQUIRE(strcmp(dstbuf, "hello") == 0);
67 ATF_REQUIRE((unsigned char)dstbuf[6] == 0xcc);
73 memset(dstbuf, 0xcc, sizeof(dstbuf));
76 ATF_REQUIRE(wcsrtombs(dstbuf, (cons
[all...]
H A Dwcsnrtombs_test.c51 char dstbuf[128]; local
60 memset(dstbuf, 0xcc, sizeof(dstbuf));
63 ATF_REQUIRE(wcsnrtombs(dstbuf, (const wchar_t **)&src, 6, sizeof(dstbuf),
65 ATF_REQUIRE(strcmp(dstbuf, "hello") == 0);
66 ATF_REQUIRE((unsigned char)dstbuf[6] == 0xcc);
72 memset(dstbuf, 0xcc, sizeof(dstbuf));
75 ATF_REQUIRE(wcsnrtombs(dstbuf, (cons
[all...]
/freebsd-11-stable/lib/libc/locale/
H A DmbrtocXX_iconv.h52 } dstbuf; member in struct:__anon6663
108 dst = cs->dstbuf.bytes;
111 dstleft <= sizeof(cs->dstbuf.bytes));
114 cs->dstbuf_len = (dst - cs->dstbuf.bytes) / sizeof(charXX_t);
142 retchar = cs->dstbuf.widechar[0];
143 memmove(&cs->dstbuf.widechar[0], &cs->dstbuf.widechar[1],
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/gen/
H A Dt_vis.c68 char *srcbuf, *dstbuf, *visbuf; local
71 ATF_REQUIRE((dstbuf = malloc(SIZE)) != NULL);
80 memset(dstbuf, 0, SIZE);
81 ATF_REQUIRE(strunvisx(dstbuf, visbuf,
84 if (dstbuf[j] != (char)j)
86 "char %d [%d]", styles[i], j, dstbuf[j]);
88 free(dstbuf);
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dblkptr.c142 uint8_t dstbuf[BPE_PAYLOAD_SIZE]; local
143 decode_embedded_bp_compressed(bp, dstbuf);
145 dstbuf, buf, psize, buflen));
/freebsd-11-stable/sys/netinet/
H A Dip_icmp.c412 char dstbuf[INET_ADDRSTRLEN]; local
416 inet_ntoa_r(ip->ip_dst, dstbuf), icmplen);
680 char dstbuf[INET_ADDRSTRLEN]; local
684 inet_ntoa_r(icp->icmp_ip.ip_dst, dstbuf),
933 char dstbuf[INET_ADDRSTRLEN]; local
937 inet_ntoa_r(ip->ip_dst, dstbuf),
H A Dip_options.c200 char dstbuf[INET_ADDRSTRLEN]; local
211 inet_ntoa_r(ip->ip_dst, dstbuf));
/freebsd-11-stable/sys/dev/ath/ath_hal/
H A Dah.c850 void *dstbuf, int space)
852 uint32_t *dp = dstbuf;
867 return (char *) dp - (char *) dstbuf;
849 ath_hal_getregdump(struct ath_hal *ah, const HAL_REGRANGE *regs, void *dstbuf, int space) argument
/freebsd-11-stable/sys/dev/mwl/
H A Dmwlhal.c2272 void *dstbuf, int space)
2274 uint32_t *dp = dstbuf;
2300 return (char *) dp - (char *) dstbuf;
2271 mwl_hal_getregdump(struct mwl_hal_priv *mh, const MWL_DIAG_REGRANGE *regs, void *dstbuf, int space) argument

Completed in 183 milliseconds