Lines Matching defs:size
34 static const char *inet_ntop4(const u_char *src, char *dst, size_t size);
35 static const char *inet_ntop6(const u_char *src, char *dst, size_t size);
38 * inet_ntop(af, src, dst, size)
46 inet_ntop(int af, const void *src, char *dst, size_t size)
50 return (inet_ntop4(src, dst, size));
52 return (inet_ntop6(src, dst, size));
61 * inet_ntop4(src, dst, size)
72 inet_ntop4(const u_char *src, char *dst, size_t size)
80 if (l <= 0 || (size_t)l >= size || (size_t)l >= sizeof(tmp)) {
82 l = snprintf(tmp, size, fmt, src[0], src[1], src[2], src[3]);
83 if (l <= 0 || (size_t)l >= size) {
88 strlcpy(dst, tmp, size);
93 * inet_ntop6(src, dst, size)
99 inet_ntop6(const u_char *src, char *dst, size_t size)
103 * to contain a value of the specified size. On some systems, like
196 if ((size_t)(tp - tmp) > size) {
200 strlcpy(dst, tmp, size);