Home
last modified time | relevance | path

Searched refs:dstlen (Results 1 – 24 of 24) sorted by relevance

/illumos-gate/usr/src/uts/common/zmod/
H A Dzmod.c40 z_uncompress(void *dst, size_t *dstlen, const void *src, size_t srclen) in z_uncompress() argument
49 zs.avail_out = *dstlen; in z_uncompress()
64 *dstlen = zs.total_out; in z_uncompress()
69 z_compress_level(void *dst, size_t *dstlen, const void *src, size_t srclen, in z_compress_level() argument
80 zs.avail_out = *dstlen; in z_compress_level()
90 *dstlen = zs.total_out; in z_compress_level()
95 z_compress(void *dst, size_t *dstlen, const void *src, size_t srclen) in z_compress() argument
97 return (z_compress_level(dst, dstlen, src, srclen, in z_compress()
H A Dzlib_lint.c34 z_uncompress(void *dst, size_t *dstlen, const void *src, size_t srclen) in z_uncompress() argument
41 z_compress(void *dst, size_t *dstlen, const void *src, size_t srclen) in z_compress() argument
48 z_compress_level(void *dst, size_t *dstlen, const void *src, size_t srclen, in z_compress_level() argument
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dgzip.c40 size_t dstlen = d_len; in gzip_compress() local
44 if (z_compress_level(d_start, &dstlen, s_start, s_len, n) != Z_OK) { in gzip_compress()
52 return (dstlen); in gzip_compress()
59 size_t dstlen = d_len; in gzip_decompress() local
63 if (z_uncompress(d_start, &dstlen, s_start, s_len) != Z_OK) in gzip_decompress()
/illumos-gate/usr/src/boot/libsa/zfs/
H A Dgzip.c29 z_uncompress(void *dst, size_t *dstlen, const void *src, size_t srclen) in z_uncompress() argument
38 zs.avail_out = *dstlen; in z_uncompress()
53 *dstlen = zs.total_out; in z_uncompress()
61 size_t dstlen = d_len; in gzip_decompress() local
63 if (z_uncompress(d_start, &dstlen, s_start, s_len) != Z_OK) in gzip_decompress()
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_ttl.c46 ns_format_ttl(u_long src, char *dst, size_t dstlen) { in ns_format_ttl() argument
59 T(fmt1(weeks, 'W', &dst, &dstlen)); in ns_format_ttl()
63 T(fmt1(days, 'D', &dst, &dstlen)); in ns_format_ttl()
67 T(fmt1(hours, 'H', &dst, &dstlen)); in ns_format_ttl()
71 T(fmt1(mins, 'M', &dst, &dstlen)); in ns_format_ttl()
75 T(fmt1(secs, 'S', &dst, &dstlen)); in ns_format_ttl()
H A Dns_name.c214 ns_name_pton2(const char *src, u_char *dst, size_t dstsiz, size_t *dstlen) { in ns_name_pton2() argument
295 if (dstlen != NULL) in ns_name_pton2()
296 *dstlen = (bp - dst); in ns_name_pton2()
334 if (dstlen != NULL) in ns_name_pton2()
335 *dstlen = (bp - dst); in ns_name_pton2()
416 u_char *dst, size_t dstsiz, size_t *dstlen) in ns_name_unpack2() argument
483 if (dstlen != NULL) in ns_name_unpack2()
484 *dstlen = dstp - dst; in ns_name_unpack2()
/illumos-gate/usr/src/cmd/boot/fiocompress/
H A Dfiocompress.c177 size_t blks, dstlen, hlen; in do_comp() local
195 dstlen = ZMAXBUF(blksize); in do_comp()
196 dstbuf = malloc(dstlen); in do_comp()
198 (void) fprintf(stderr, BUF_ALLOC, dstlen); in do_comp()
214 dlen = dstlen; in do_comp()
/illumos-gate/usr/src/lib/libzpool/common/
H A Dkernel.c563 z_uncompress(void *dst, size_t *dstlen, const void *src, size_t srclen) in z_uncompress() argument
566 uLongf len = *dstlen; in z_uncompress()
569 *dstlen = (size_t)len; in z_uncompress()
575 z_compress_level(void *dst, size_t *dstlen, const void *src, size_t srclen, in z_compress_level() argument
579 uLongf len = *dstlen; in z_compress_level()
582 *dstlen = (size_t)len; in z_compress_level()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/
H A Dnetstat.c152 char *dst, uint_t dstlen);
153 static char *pr_addr(uint_t addr, char *dst, uint_t dstlen);
154 static char *pr_addrnz(ipaddr_t addr, char *dst, uint_t dstlen);
156 char *dst, uint_t dstlen);
157 static char *pr_mask(uint_t addr, char *dst, uint_t dstlen);
159 uint_t prefixlen, char *dst, uint_t dstlen);
161 char *proto, char *dst, uint_t dstlen);
163 char *proto, char *dst, uint_t dstlen);
165 char *dst, uint_t dstlen);
167 char *dst, uint_t dstlen);
[all …]
/illumos-gate/usr/src/cmd/filesync/
H A Drecon.c762 { int i, srclen, dstlen; in samelink() local
768 dstlen = readlink(dstname, dstbuf, sizeof (dstbuf)); in samelink()
771 if (srclen < 0 || dstlen < 0 || srclen != dstlen) in samelink()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dlocaltime.c1793 size_t dstlen; in load_posixinfo() local
1833 dstlen = name - dstname; in load_posixinfo()
1834 if (dstlen < 1) in load_posixinfo()
1879 dstlen = 0; in load_posixinfo()
1890 if (dstlen != 0) in load_posixinfo()
1891 sp->charcnt += dstlen + 1; in load_posixinfo()
1918 if (dstlen != 0) { in load_posixinfo()
1921 (void) strncpy(cp, dstname, dstlen); in load_posixinfo()
1922 while (dstlen < 3) in load_posixinfo()
1923 cp[dstlen++] = ' '; in load_posixinfo()
[all …]
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c128 z_uncompress(void *dst, size_t *dstlen, const void *src, size_t srclen) in z_uncompress() argument
130 return (zlib.z_uncompress(dst, (ulong_t *)dstlen, src, srclen)); in z_uncompress()
315 z_compress(void *dst, size_t *dstlen, const void *src, size_t srclen) in z_compress() argument
324 zs.avail_out = *dstlen; in z_compress()
335 *dstlen = zs.total_out; in z_compress()
/illumos-gate/usr/src/cmd/mdb/common/libstandctf/
H A Dctf_subr.c147 z_uncompress(void *dst, size_t *dstlen, const void *src, size_t srclen) in z_uncompress() argument
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipfstat.c1176 int len, srclen, dstlen, forward = 1, c = 0; local
1228 srclen = dstlen = 0;
1295 if (dstlen < len)
1296 dstlen = len;
1470 if (dstlen < 15)
1471 dstlen = 15;
1478 srclen + 6, "Source IP", dstlen + 6, "Destination IP",
1507 printw("%-*s %-*s", srclen + 6, str1, dstlen + 6, str2);
/illumos-gate/usr/src/common/ctf/
H A Dctf_open.c638 size_t srclen, dstlen; in ctf_bufopen() local
654 dstlen = size; in ctf_bufopen()
656 if ((rc = z_uncompress(buf, &dstlen, src, srclen)) != Z_OK) { in ctf_bufopen()
662 if (dstlen != size) { in ctf_bufopen()
664 "bytes\n", (ulong_t)dstlen, (ulong_t)size); in ctf_bufopen()
/illumos-gate/usr/src/cmd/lofiadm/
H A Dmain.c171 gzip_compress(void *src, size_t srclen, void *dst, size_t *dstlen, int level) in gzip_compress() argument
194 if ((*compress2p)(dst, (ulong_t *)dstlen, src, srclen, level) != 0) in gzip_compress()
224 size_t *dstlen, int level) in lzma_compress() argument
235 outsize2 = *dstlen; in lzma_compress()
252 if (*dstlen < LZMA_HEADER_SIZE) in lzma_compress()
274 *dstlen = outsizeprocessed + LZMA_HEADER_SIZE; in lzma_compress()
/illumos-gate/usr/src/common/smbios/
H A Dsmb_info.c250 smb_info_bcopy_offset(const smb_header_t *hp, void *dst, size_t dstlen, in smb_info_bcopy_offset() argument
254 bzero(dst, dstlen); in smb_info_bcopy_offset()
255 } else if (offset + dstlen > hp->smbh_len) { in smb_info_bcopy_offset()
256 size_t nvalid = MIN(hp->smbh_len - offset, dstlen); in smb_info_bcopy_offset()
258 bzero((char *)dst + nvalid, dstlen - nvalid); in smb_info_bcopy_offset()
260 bcopy((char *)hp + offset, dst, dstlen); in smb_info_bcopy_offset()
265 smb_info_bcopy(const smb_header_t *hp, void *dst, size_t dstlen) in smb_info_bcopy() argument
267 return (smb_info_bcopy_offset(hp, dst, dstlen, 0)); in smb_info_bcopy()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_util.c182 char *dstbuf, size_t dstlen) in hextobin() argument
190 if (dstlen < outlen) in hextobin()
/illumos-gate/usr/src/uts/common/io/
H A Dpshot.c3132 pshot_devices_grow(pshot_device_t **dstp, size_t dstlen, in pshot_devices_grow() argument
3138 newdst = kmem_alloc((srclen + dstlen) * sizeof (*src), in pshot_devices_grow()
3143 bcopy(*dstp, newdst, dstlen * sizeof (*src)); in pshot_devices_grow()
3145 newdst[i + dstlen].name = in pshot_devices_grow()
3148 newdst[i + dstlen].nodetype = in pshot_devices_grow()
3151 newdst[i + dstlen].compat = in pshot_devices_grow()
3157 kmem_free(*dstp, dstlen * sizeof (*src)); in pshot_devices_grow()
H A Dlofi.c241 size_t *dstlen, int level);
1278 size_t *dstlen, int level __unused) in gzip_decompress() argument
1280 ASSERT(*dstlen >= srclen); in gzip_decompress()
1282 if (z_uncompress(dst, dstlen, src, srclen) != Z_OK) in gzip_decompress()
1290 size_t *dstlen, int level __unused) in lzma_decompress() argument
1299 if (LzmaDecode((Byte *)dst, (size_t *)dstlen, in lzma_decompress()
/illumos-gate/usr/src/cmd/ptools/pargs/
H A Dpargs.c349 size_t dstlen; in quote_string_ascii() local
375 dstlen = strlen(src) + 3 + 4 * quote_count; in quote_string_ascii()
376 dst = safe_zalloc(dstlen); in quote_string_ascii()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_session.c82 uint8_t *dst, size_t dstlen);
/illumos-gate/usr/src/contrib/bhyve/dev/nvme/
H A Dnvme.h1923 void nvme_strvis(uint8_t *dst, const uint8_t *src, int dstlen, int srclen);
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c972 size_t dstlen; in elide_trailing_slash() local
979 dstlen = strlen(dst); in elide_trailing_slash()
980 if (dst[dstlen - 1] == '/') { in elide_trailing_slash()
981 dst[dstlen - 1] = '\0'; in elide_trailing_slash()