Searched refs:len (Results 26 - 50 of 7789) sorted by relevance

1234567891011>>

/macosx-10.10.1/Libc-1044.1.2/secure/
H A Dmemcpy_chk.c29 __memcpy_chk (void *dest, const void *src, size_t len, size_t dstlen) argument
31 if (__builtin_expect (dstlen < len, 0))
37 * __chk_overlap(dest, len, src, len);
40 return memcpy (dest, src, len);
H A Dmemmove_chk.c29 __memmove_chk (void *dest, const void *src, size_t len, size_t dstlen) argument
31 if (__builtin_expect (dstlen < len, 0))
34 return memmove (dest, src, len);
H A Dmemset_chk.c29 __memset_chk (void *dest, int val, size_t len, size_t dstlen) argument
31 if (__builtin_expect (dstlen < len, 0))
34 return memset (dest, val, len);
H A Dmemccpy_chk.c29 __memccpy_chk (void *dest, const void *src, int c, size_t len, size_t dstlen) argument
33 if (__builtin_expect (dstlen < len, 0))
36 /* retval is NULL if len was copied, otherwise retval is the
39 retval = memccpy (dest, src, c, len);
42 len = (uintptr_t)retval - (uintptr_t)dest;
45 __chk_overlap(dest, len, src, len);
H A Dstpcpy_chk.c32 size_t len = retval - dest + 1; local
34 if (__builtin_expect (dstlen < len, 0))
38 __chk_overlap(dest, len, src, len);
H A Dstrcpy_chk.c32 size_t len = stpcpy(dest, src) - dest + 1; local
34 if (__builtin_expect (dstlen < len, 0))
38 __chk_overlap(dest, len, src, len);
/macosx-10.10.1/postfix-255/postfix/src/util/
H A Ddummy_write.c12 /* size_t len;
55 ssize_t dummy_write(int fd, void *unused_buf, size_t len, argument
59 msg_info("dummy_write: fd %d, len %lu", fd, (unsigned long) len);
60 return (len);
H A Dtrimblanks.c9 /* char *trimblanks(string, len)
11 /* int len;
37 char *trimblanks(char *string, int len) argument
41 if (len) {
42 curr = string + len;
/macosx-10.10.1/ruby-106/ruby/missing/
H A Dmemcmp.c7 memcmp(const void *s1, const void *s2, size_t len) argument
13 for (; len; --len) {
/macosx-10.10.1/xnu-2782.1.97/libsyscall/mach/
H A Dmig_strncpy.c58 * buffer of length len. Assures that the copy is still null terminated
67 * len - Length of destination buffer.
78 int len)
82 if (len <= 0) {
86 for (i = 1; i < len; i++) {
75 mig_strncpy( char *dest, const char *src, int len) argument
/macosx-10.10.1/Heimdal-398.1.2/lib/roken/
H A Drkcf.c44 CFIndex len; local
51 len = CFStringGetLength(string);
52 len = 1 + CFStringGetMaximumSizeForEncoding(len, kCFStringEncodingUTF8);
53 str = malloc(len);
57 if (!CFStringGetCString (string, str, len, kCFStringEncodingUTF8)) {
H A Dstrndup.c44 size_t len = strnlen (old, sz); local
45 char *t = malloc(len + 1);
48 memcpy (t, old, len);
49 t[len] = '\0';
/macosx-10.10.1/cxxfilt-11/cxxfilt/libiberty/
H A Dstrndup.c44 size_t len = strlen (s); local
46 if (n < len)
47 len = n;
49 result = (char *) malloc (len + 1);
53 result[len] = '\0';
54 return (char *) memcpy (result, s, len);
H A Dstpncpy.c23 @deftypefn Supplemental char* stpncpy (char *@var{dst}, const char *@var{src}, size_t @var{len})
25 Copies the string @var{src} into @var{dst}, copying exactly @var{len}
26 and padding with zeros if necessary. If @var{len} < strlen(@var{src})
27 then return @var{dst} + @var{len}, otherwise returns @var{dst} +
41 stpncpy (char *dst, const char *src, size_t len) argument
44 if (n > len)
45 n = len;
46 return strncpy (dst, src, len) + n;
/macosx-10.10.1/procmail-14/procmail/src/
H A Decommon.c19 void*tmalloc(len)const size_t len;
21 if(p=malloc(len))
26 void*trealloc(old,len)void*old;const size_t len;
27 { if(old=realloc(old,len))
/macosx-10.10.1/OpenSSL098-52/src/crypto/buffer/
H A Dbuffer.c97 int BUF_MEM_grow(BUF_MEM *str, int len) argument
102 if (len < 0)
107 if (str->length >= len)
109 str->length=len;
110 return(len);
112 if (str->max >= len)
114 memset(&str->data[str->length],0,len-str->length);
115 str->length=len;
116 return(len);
118 /* This limit is sufficient to ensure (len
144 BUF_MEM_grow_clean(BUF_MEM *str, int len) argument
[all...]
/macosx-10.10.1/gnutar-453/gnutar/lib/
H A Dmemset.c21 memset (void *str, int c, size_t len) argument
25 while (len-- > 0)
H A Dstrndup.c29 size_t len = strnlen (s, n); local
30 char *new = malloc (len + 1);
35 new[len] = '\0';
36 return memcpy (new, s, len);
/macosx-10.10.1/postfix-255/postfix/src/global/
H A Ddsn_util.c32 /* void DSN_UPDATE(dsn_buf, dsn, len)
35 /* size_t len;
115 size_t len; local
123 if ((len = strspn((char *) cp, "0123456789")) < 1 || len > DSN_DIGS2
124 || cp[len] != '.')
128 cp += len + 1;
129 if ((len = strspn((char *) cp, "0123456789")) < 1 || len > DSN_DIGS3
130 || (cp[len] !
142 size_t len; local
[all...]
/macosx-10.10.1/groff-38/groff/src/libs/libgroff/
H A Dstring.cpp26 static char *salloc(int len, int *sizep);
28 static char *sfree_alloc(char *ptr, int size, int len, int *sizep);
31 static char *salloc(int len, int *sizep) argument
33 if (len == 0) {
38 return new char[*sizep = len*2];
46 static char *sfree_alloc(char *ptr, int oldsz, int len, int *sizep) argument
48 if (oldsz >= len) {
53 if (len == 0) {
58 return new char[*sizep = len*2];
81 string::string() : ptr(0), len(
329 int len = s.length(); local
[all...]
/macosx-10.10.1/expat-12/expat/tests/
H A Dchardata.c26 int len = 0; local
28 while (s[len] != 0)
29 ++len;
30 return len;
45 int len; local
48 len = strlen(s);
51 if ((len + storage->count) > maxchars) {
52 len = (maxchars - storage->count);
54 if (len + storage->count < sizeof(storage->data)) {
55 memcpy(storage->data + storage->count, s, len);
61 CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len) argument
86 int len; local
115 int len = xmlstrlen(expected); local
[all...]
/macosx-10.10.1/Libc-1044.1.2/string/FreeBSD/
H A Dstrdup.c43 size_t len; local
46 len = strlen(str) + 1;
47 if ((copy = malloc(len)) == NULL)
49 memcpy(copy, str, len);
H A Dwcsdup.c37 size_t len; local
39 len = wcslen(s) + 1;
40 if ((copy = malloc(len * sizeof(wchar_t))) == NULL)
42 return (wmemcpy(copy, s, len));
/macosx-10.10.1/OpenSSL098-52/src/crypto/asn1/
H A Da_print.c63 int ASN1_PRINTABLE_type(const unsigned char *s, int len) argument
69 if (len <= 0) len= -1;
72 while ((*s) && (len-- != 0))
/macosx-10.10.1/curl-83.1.2/curl/lib/
H A Dcurl_md4.h30 void Curl_md4it(unsigned char *output, const unsigned char *input, size_t len);

Completed in 201 milliseconds

1234567891011>>