/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | strlcat.c | 39 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 D | kobj_subr.c | 91 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 D | misc.c | 71 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 D | devalloc.c | 61 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 D | util.c | 291 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 D | optim.c | 996 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 D | http-support.c | 55 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 D | ns_samedomain.c | 162 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 D | string.c | 597 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 D | def.h | 513 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 D | util.h | 68 void hal_util_compute_udi (HalDeviceStore *store, gchar *dst, gsize dstsize, const gchar *format, .…
|
H A D | util.c | 424 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 D | exacct_core.c | 128 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 D | dt_cg.c | 475 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 D | dt_parser.c | 1924 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 D | elfedit.c | 211 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 D | vm_anon.c | 601 #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 D | libzonecfg.c | 452 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 D | bootadm.c | 970 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 D | nfs4_srv.c | 580 extern size_t strlcpy(char *dst, const char *src, size_t dstsize);
|