Searched refs:srcbuf (Results 1 - 15 of 15) sorted by relevance

/freebsd-13-stable/lib/libc/tests/locale/
H A Dwcstombs_test.c51 wchar_t srcbuf[128]; local
57 wmemset(srcbuf, 0xcc, sizeof(srcbuf) / sizeof(*srcbuf));
58 wcscpy(srcbuf, L"hello");
60 ATF_REQUIRE(wcstombs(dstbuf, srcbuf, sizeof(dstbuf)) == 5);
65 wmemset(srcbuf, 0xcc, sizeof(srcbuf) / sizeof(*srcbuf));
66 wcscpy(srcbuf,
[all...]
H A Dmbstowcs_test.c51 char srcbuf[128]; local
57 memset(srcbuf, 0xcc, sizeof(srcbuf));
58 strcpy(srcbuf, "hello");
60 ATF_REQUIRE(mbstowcs(dstbuf, srcbuf, sizeof(dstbuf) / sizeof(*dstbuf)) == 5);
65 memset(srcbuf, 0xcc, sizeof(srcbuf));
66 strcpy(srcbuf, "hello");
68 ATF_REQUIRE(mbstowcs(dstbuf, srcbuf, 4) == 4);
73 memset(srcbuf,
[all...]
H A Dwcsrtombs_test.c51 wchar_t srcbuf[128]; local
59 wmemset(srcbuf, 0xcc, sizeof(srcbuf) / sizeof(*srcbuf));
60 wcscpy(srcbuf, L"hello");
62 src = srcbuf;
71 wmemset(srcbuf, 0xcc, sizeof(srcbuf) / sizeof(*srcbuf));
72 wcscpy(srcbuf,
[all...]
H A Dwcsnrtombs_test.c50 wchar_t srcbuf[128]; local
58 wmemset(srcbuf, 0xcc, sizeof(srcbuf) / sizeof(*srcbuf));
59 wcscpy(srcbuf, L"hello");
61 src = srcbuf;
70 wmemset(srcbuf, 0xcc, sizeof(srcbuf) / sizeof(*srcbuf));
71 wcscpy(srcbuf,
[all...]
H A Dmbsrtowcs_test.c51 char srcbuf[128]; local
61 memset(srcbuf, 0xcc, sizeof(srcbuf));
62 strcpy(srcbuf, "hello");
64 src = srcbuf;
73 memset(srcbuf, 0xcc, sizeof(srcbuf));
74 strcpy(srcbuf, "hello");
76 src = srcbuf;
81 ATF_REQUIRE(src == srcbuf
[all...]
H A Dmbsnrtowcs_test.c50 char srcbuf[128]; local
58 memset(srcbuf, 0xcc, sizeof(srcbuf));
59 strcpy(srcbuf, "hello");
61 src = srcbuf;
70 memset(srcbuf, 0xcc, sizeof(srcbuf));
71 strcpy(srcbuf, "hello");
73 src = srcbuf;
79 ATF_REQUIRE(src == srcbuf
[all...]
/freebsd-13-stable/lib/libc/locale/
H A DmbrtocXX_iconv.h49 char srcbuf[MB_LEN_MAX]; member in struct:__anon7486
98 if (n > sizeof(cs->srcbuf) - cs->srcbuf_len)
99 n = sizeof(cs->srcbuf) - cs->srcbuf_len;
100 memcpy(cs->srcbuf + cs->srcbuf_len, s, n);
108 src = cs->srcbuf;
112 assert(srcleft <= sizeof(cs->srcbuf) &&
120 assert(src - cs->srcbuf > cs->srcbuf_len);
121 retval = src - cs->srcbuf - cs->srcbuf_len;
138 memmove(cs->srcbuf, src, srcleft);
H A DcXXrtomb_iconv.h50 } srcbuf; member in struct:__anon7479
88 assert(cs->srcbuf_len < sizeof(cs->srcbuf.widechar) / sizeof(charXX_t));
89 cs->srcbuf.widechar[cs->srcbuf_len++] = c;
92 src = cs->srcbuf.bytes;
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/gen/
H A Dt_vis.c68 char *srcbuf, *dstbuf, *visbuf; local
72 ATF_REQUIRE((srcbuf = malloc(SIZE)) != NULL);
76 srcbuf[i] = (char)i;
79 ATF_REQUIRE(strsvisx(visbuf, srcbuf, SIZE, styles[i], "") > 0);
89 free(srcbuf);
/freebsd-13-stable/contrib/ntp/ntpq/
H A Dlibntpq.h90 extern int ntpq_stripquotes ( char *resultbuf, char *srcbuf, int datalen, int maxlen );
H A Dlibntpq.c41 * Parses a given character buffer srcbuf and removes all quoted
49 * srcbuf char* The buffer holding the original string
50 * datalen int The number of bytes stored in srcbuf
58 int ntpq_stripquotes ( char *resultbuf, char *srcbuf, int datalen, int maxlen ) argument
62 char* src = srcbuf;
63 char* sep = srcbuf + (datalen >= 0 ? datalen : 0);
/freebsd-13-stable/stand/powerpc/kboot/
H A Dmain.c398 void *srcbuf; local
402 segsize = get_phys_buffer(src, remainder, &srcbuf);
403 bcopy(srcbuf, dest, segsize);
/freebsd-13-stable/sys/netinet/
H A Dip_icmp.c426 char srcbuf[INET_ADDRSTRLEN]; local
430 inet_ntoa_r(ip->ip_src, srcbuf),
1010 char srcbuf[INET_ADDRSTRLEN]; local
1014 inet_ntoa_r(ip->ip_src, srcbuf));
H A Dip_options.c203 char srcbuf[INET_ADDRSTRLEN]; local
214 inet_ntoa_r(ip->ip_src, srcbuf),
/freebsd-13-stable/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c1918 uint8_t *srcbuf, *dstbuf; local
1921 srcbuf = plainbuf;
1924 srcbuf = cipherbuf;
1928 ret = qat_crypt((encrypt) ? QAT_ENCRYPT : QAT_DECRYPT, srcbuf,

Completed in 194 milliseconds