Home
last modified time | relevance | path

Searched refs:dstsize (Results 1 – 20 of 20) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstrlcat.c39 strlcat(char *dst, const char *src, size_t dstsize) in strlcat() argument
42 size_t left = dstsize; in strlcat()
50 if (dstsize == l1) in strlcat()
53 copied = l1 + l2 >= dstsize ? dstsize - l1 - 1 : l2; in strlcat()
/illumos-gate/usr/src/uts/common/krtld/
H A Dkobj_subr.c91 stand_strlcat(char *dst, const char *src, size_t dstsize) in stand_strlcat() argument
94 size_t left = dstsize; in stand_strlcat()
102 if (dstsize == l1) in stand_strlcat()
105 copied = l1 + l2 >= dstsize ? dstsize - l1 - 1 : l2; in stand_strlcat()
/illumos-gate/usr/src/lib/print/libpapi-common/common/
H A Dmisc.c71 strlcat(char *dst, const char *src, size_t dstsize) in strlcat() argument
74 size_t left = dstsize; in strlcat()
82 if (dstsize == l1) in strlcat()
85 copied = l1 + l2 >= dstsize ? dstsize - l1 - 1 : l2; in strlcat()
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevalloc.c61 int len, dstsize; in _da_check_for_usb() local
68 dstsize = sizeof (path); in _da_check_for_usb()
70 if (strlcat(path, root_dir, dstsize) >= dstsize) in _da_check_for_usb()
76 (void) snprintf(path, dstsize - len, "%s", link); in _da_check_for_usb()
83 (void) snprintf(path, dstsize, "%s%s", rpath, ",raw"); in _da_check_for_usb()
/illumos-gate/usr/src/cmd/mailx/
H A Dutil.c291 istrcpy(char *dst, int dstsize, char *src) in istrcpy() argument
298 while (--dstsize > 0 && *cp != '\0') in istrcpy()
774 nstrcpy(char *dst, int dstsize, char *src) in nstrcpy() argument
781 while (--dstsize > 0 && *cp != '\0') in nstrcpy()
793 nstrcat(char *dst, int dstsize, char *src) in nstrcat() argument
802 dstsize--; in nstrcat()
804 while (--dstsize > 0 && *cp != '\0') in nstrcat()
H A Doptim.c996 stradd(register char *dst, int dstsize, register int c) in stradd() argument
1000 dstsize--; in stradd()
1002 if (--dstsize > 0) in stradd()
/illumos-gate/usr/src/lib/print/libhttp-core/common/
H A Dhttp-support.c55 int dstsize, const char *term);
329 int dstsize, /* I - Destination size */ in http_copy_decode() argument
342 for (ptr = dst, end = dst + dstsize - 1; *src && !strchr(term, *src); src ++) in http_copy_decode()
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_samedomain.c162 ns_makecanon(const char *src, char *dst, size_t dstsize) { in ns_makecanon() argument
165 if (n + sizeof "." > dstsize) { /*%< Note: sizeof == 2 */ in ns_makecanon()
/illumos-gate/usr/src/common/util/
H A Dstring.c597 strlcat(char *dst, const char *src, size_t dstsize) in strlcat() argument
600 size_t left = dstsize; in strlcat()
609 if (dstsize == l1) in strlcat()
612 copied = l1 + l2 >= dstsize ? dstsize - l1 - 1 : l2; in strlcat()
/illumos-gate/usr/src/cmd/mailx/hdr/
H A Ddef.h513 extern void istrcpy(char *dest, int dstsize, char *src);
539 extern char *nstrcpy(char *dst, int dstsize, char *src);
540 extern char *nstrcat(char *dst, int dstsize, char *src);
/illumos-gate/usr/src/cmd/hal/hald/
H A Dutil.h68 void hal_util_compute_udi (HalDeviceStore *store, gchar *dst, gsize dstsize, const gchar *format, .…
H A Dutil.c424 hal_util_compute_udi (HalDeviceStore *store, gchar *dst, gsize dstsize, const gchar *format, ...) in hal_util_compute_udi() argument
440 g_strlcpy (dst, buf, dstsize); in hal_util_compute_udi()
445 g_snprintf (dst, dstsize, "%s_%d", buf, i); in hal_util_compute_udi()
/illumos-gate/usr/src/common/exacct/
H A Dexacct_core.c128 ea_cond_memcpy_at_offset(void *dst, size_t offset, size_t dstsize, void *src, in ea_cond_memcpy_at_offset() argument
134 if (dst == NULL || src == NULL || size == 0 || offset + size > dstsize) in ea_cond_memcpy_at_offset()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_cg.c475 size_t dstsize = dt_node_type_size(dst); in dt_cg_typecast() local
482 if (dstsize == srcsize && in dt_cg_typecast()
485 if (dstsize > srcsize && (src->dn_flags & DT_NF_SIGNED) == 0) in dt_cg_typecast()
490 if (dstsize > srcsize) { in dt_cg_typecast()
492 int s = (dstsize - srcsize) * NBBY; in dt_cg_typecast()
516 } else if (dstsize != sizeof (uint64_t)) { in dt_cg_typecast()
517 int n = sizeof (uint64_t) * NBBY - dstsize * NBBY; in dt_cg_typecast()
H A Ddt_parser.c1924 size_t dstsize = dt_node_type_size(lp); in dt_cast() local
1926 if (dstsize < srcsize) { in dt_cast()
1927 int n = (sizeof (uint64_t) - dstsize) * NBBY; in dt_cast()
1930 } else if (dstsize > srcsize) { in dt_cast()
1932 int s = (dstsize - srcsize) * NBBY; in dt_cast()
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit.c211 elfedit_strnbcpy(char *dst, const char *src, size_t cpsize, size_t dstsize) in elfedit_strnbcpy() argument
213 if (cpsize >= dstsize) in elfedit_strnbcpy()
214 cpsize = dstsize - 1; in elfedit_strnbcpy()
/illumos-gate/usr/src/uts/common/vm/
H A Dvm_anon.c601 #define ANON_INITBUF(src, srclen, dst, dstsize, tail) \ argument
603 bzero((dst), (dstsize) - (srclen)); \
604 bcopy((src), (char *)(dst) + (dstsize) - (srclen), (srclen)); \
607 bzero((char *)(dst) + (srclen), (dstsize) - (srclen)); \
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c452 fetchprop(xmlNodePtr cur, const xmlChar *propname, char *dst, size_t dstsize) in fetchprop() argument
459 srcsize = strlcpy(dst, (char *)property, dstsize); in fetchprop()
461 if (srcsize >= dstsize) in fetchprop()
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c970 elide_trailing_slash(const char *src, char *dst, size_t dstsize) in elide_trailing_slash() argument
977 (void) strlcpy(dst, src, dstsize); in elide_trailing_slash()
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv.c580 extern size_t strlcpy(char *dst, const char *src, size_t dstsize);