Home
last modified time | relevance | path

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

/titanic_44/usr/src/lib/libc/port/gen/
H A Dstrlcat.c41 strlcat(char *dst, const char *src, size_t dstsize) in strlcat() argument
44 size_t left = dstsize; in strlcat()
52 if (dstsize == l1) in strlcat()
55 copied = l1 + l2 >= dstsize ? dstsize - l1 - 1 : l2; in strlcat()
/titanic_44/usr/src/uts/common/krtld/
H A Dkobj_subr.c86 stand_strlcat(char *dst, const char *src, size_t dstsize) in stand_strlcat() argument
89 size_t left = dstsize; in stand_strlcat()
97 if (dstsize == l1) in stand_strlcat()
100 copied = l1 + l2 >= dstsize ? dstsize - l1 - 1 : l2; in stand_strlcat()
/titanic_44/usr/src/lib/print/libpapi-common/common/
H A Dmisc.c73 strlcat(char *dst, const char *src, size_t dstsize) in strlcat() argument
76 size_t left = dstsize; in strlcat()
84 if (dstsize == l1) in strlcat()
87 copied = l1 + l2 >= dstsize ? dstsize - l1 - 1 : l2; in strlcat()
/titanic_44/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()
/titanic_44/usr/src/cmd/ssh/include/
H A Dloginrec.h148 char *line_fullname(char *dst, const char *src, int dstsize);
149 char *line_stripname(char *dst, const char *src, int dstsize);
150 char *line_abbrevname(char *dst, const char *src, int dstsize);
/titanic_44/usr/src/cmd/ssh/sshd/
H A Dloginrec.c518 line_fullname(char *dst, const char *src, int dstsize) in line_fullname() argument
520 (void) memset(dst, '\0', dstsize); in line_fullname()
523 ((strncmp(src, "/dev/", 5) == 0) || (dstsize < (strlen(src) + 5)))) { in line_fullname()
524 (void) strlcpy(dst, src, dstsize); in line_fullname()
526 (void) strlcpy(dst, "/dev/", dstsize); in line_fullname()
527 (void) strlcat(dst, src, dstsize); in line_fullname()
534 line_stripname(char *dst, const char *src, int dstsize) in line_stripname() argument
536 (void) memset(dst, '\0', dstsize); in line_stripname()
538 (void) strlcpy(dst, src + 5, dstsize); in line_stripname()
540 (void) strlcpy(dst, src, dstsize); in line_stripname()
[all …]
/titanic_44/usr/src/cmd/mailx/
H A Daux.c293 istrcpy(char *dst, int dstsize, char *src) in istrcpy() argument
300 while (--dstsize > 0 && *cp != '\0') in istrcpy()
776 nstrcpy(char *dst, int dstsize, char *src) in nstrcpy() argument
783 while (--dstsize > 0 && *cp != '\0') in nstrcpy()
795 nstrcat(char *dst, int dstsize, char *src) in nstrcat() argument
804 dstsize--; in nstrcat()
806 while (--dstsize > 0 && *cp != '\0') in nstrcat()
H A Doptim.c999 stradd(register char *dst, int dstsize, register int c) in stradd() argument
1003 dstsize--; in stradd()
1005 if (--dstsize > 0) in stradd()
/titanic_44/usr/src/lib/print/libhttp-core/common/
H A Dhttp-support.c57 int dstsize, const char *term);
331 int dstsize, /* I - Destination size */ in http_copy_decode() argument
344 for (ptr = dst, end = dst + dstsize - 1; *src && !strchr(term, *src); src ++) in http_copy_decode()
/titanic_44/usr/src/lib/libresolv2/common/nameser/
H A Dns_samedomain.c166 ns_makecanon(const char *src, char *dst, size_t dstsize) { in ns_makecanon() argument
169 if (n + sizeof "." > dstsize) { /*%< Note: sizeof == 2 */ in ns_makecanon()
/titanic_44/usr/src/common/util/
H A Dstring.c563 strlcat(char *dst, const char *src, size_t dstsize) in strlcat() argument
566 size_t left = dstsize; in strlcat()
575 if (dstsize == l1) in strlcat()
578 copied = l1 + l2 >= dstsize ? dstsize - l1 - 1 : l2; in strlcat()
/titanic_44/usr/src/cmd/mailx/hdr/
H A Ddef.h512 extern void istrcpy(char *dest, int dstsize, char *src);
538 extern char *nstrcpy(char *dst, int dstsize, char *src);
539 extern char *nstrcat(char *dst, int dstsize, char *src);
/titanic_44/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()
/titanic_44/usr/src/common/exacct/
H A Dexacct_core.c130 ea_cond_memcpy_at_offset(void *dst, size_t offset, size_t dstsize, void *src, in ea_cond_memcpy_at_offset() argument
136 if (dst == NULL || src == NULL || size == 0 || offset + size > dstsize) in ea_cond_memcpy_at_offset()
/titanic_44/usr/src/lib/libdtrace/common/
H A Ddt_cg.c471 size_t dstsize = dt_node_type_size(dst); in dt_cg_typecast() local
478 if (dstsize == srcsize && in dt_cg_typecast()
481 if (dstsize > srcsize && (src->dn_flags & DT_NF_SIGNED) == 0) in dt_cg_typecast()
486 if (dstsize > srcsize) { in dt_cg_typecast()
488 int s = (dstsize - srcsize) * NBBY; in dt_cg_typecast()
512 } else if (dstsize != sizeof (uint64_t)) { in dt_cg_typecast()
513 int n = sizeof (uint64_t) * NBBY - dstsize * NBBY; in dt_cg_typecast()
H A Ddt_parser.c1912 size_t dstsize = dt_node_type_size(lp); in dt_cast() local
1914 if (dstsize < srcsize) { in dt_cast()
1915 int n = (sizeof (uint64_t) - dstsize) * NBBY; in dt_cast()
1918 } else if (dstsize > srcsize) { in dt_cast()
1920 int s = (dstsize - srcsize) * NBBY; in dt_cast()
/titanic_44/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()
/titanic_44/usr/src/uts/common/vm/
H A Dvm_anon.c603 #define ANON_INITBUF(src, srclen, dst, dstsize, tail) \ argument
605 bzero((dst), (dstsize) - (srclen)); \
606 bcopy((src), (char *)(dst) + (dstsize) - (srclen), (srclen)); \
609 bzero((char *)(dst) + (srclen), (dstsize) - (srclen)); \
/titanic_44/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c446 fetchprop(xmlNodePtr cur, const xmlChar *propname, char *dst, size_t dstsize) in fetchprop() argument
453 srcsize = strlcpy(dst, (char *)property, dstsize); in fetchprop()
455 if (srcsize >= dstsize) in fetchprop()
/titanic_44/usr/src/cmd/boot/bootadm/
H A Dbootadm.c875 elide_trailing_slash(const char *src, char *dst, size_t dstsize) in elide_trailing_slash() argument
882 (void) strlcpy(dst, src, dstsize); in elide_trailing_slash()
/titanic_44/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv.c471 extern size_t strlcpy(char *dst, const char *src, size_t dstsize);