Searched refs:len (Results 176 - 200 of 6914) sorted by relevance

1234567891011>>

/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dbase64-test.c46 size_t len; member in struct:test
60 int len; local
61 len = base64_encode(t->data, t->len, &str);
69 len = base64_decode(t->result, str);
70 if(len != t->len) {
71 fprintf(stderr, "failed test %d: len %lu != %lu\n", numtest,
72 (unsigned long)len, (unsigned long)t->len);
[all...]
H A Dstrpool.c42 size_t len; member in struct:rk_strpool
68 int len; local
75 p->len = 0;
78 len = vasprintf(&str, fmt, ap);
84 str2 = realloc(p->str, len + p->len + 1);
90 memcpy(p->str + p->len, str, len + 1);
91 p->len += len;
[all...]
/freebsd-11-stable/lib/libc/iconv/
H A Dcitrus_bcs.c107 _citrus_bcs_skip_ws_len(const char * __restrict p, size_t * __restrict len) argument
110 while (*p && *len > 0 && _bcs_isspace(*p)) {
112 (*len)--;
122 _citrus_bcs_skip_nonws_len(const char * __restrict p, size_t * __restrict len) argument
125 while (*p && *len > 0 && !_bcs_isspace(*p)) {
127 (*len)--;
137 _citrus_bcs_trunc_rws_len(const char * __restrict p, size_t * __restrict len) argument
140 while (*len > 0 && _bcs_isspace(p[*len - 1]))
141 (*len)
[all...]
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/posix/
H A DLockFilePosix.cpp22 const uint64_t len) {
28 fl.l_len = len;
44 Status LockFilePosix::DoWriteLock(const uint64_t start, const uint64_t len) { argument
45 return fileLock(m_fd, F_SETLKW, F_WRLCK, start, len);
48 Status LockFilePosix::DoTryWriteLock(const uint64_t start, const uint64_t len) { argument
49 return fileLock(m_fd, F_SETLK, F_WRLCK, start, len);
52 Status LockFilePosix::DoReadLock(const uint64_t start, const uint64_t len) { argument
53 return fileLock(m_fd, F_SETLKW, F_RDLCK, start, len);
56 Status LockFilePosix::DoTryReadLock(const uint64_t start, const uint64_t len) { argument
57 return fileLock(m_fd, F_SETLK, F_RDLCK, start, len);
21 fileLock(int fd, int cmd, int lock_type, const uint64_t start, const uint64_t len) argument
[all...]
/freebsd-11-stable/crypto/openssh/
H A Dsshbuf-getput-basic.c32 sshbuf_get(struct sshbuf *buf, void *v, size_t len) argument
37 if ((r = sshbuf_consume(buf, len)) < 0)
39 if (v != NULL && len != 0)
40 memcpy(v, p, len);
100 size_t len; local
107 if ((r = sshbuf_get_string_direct(buf, &val, &len)) < 0)
110 if ((*valp = malloc(len + 1)) == NULL) {
114 if (len != 0)
115 memcpy(*valp, val, len);
116 (*valp)[len]
126 size_t len; local
153 u_int32_t len; local
183 size_t len; local
218 u_int32_t len; local
236 sshbuf_put(struct sshbuf *buf, const void *v, size_t len) argument
270 int r, len; local
348 sshbuf_put_string(struct sshbuf *buf, const void *v, size_t len) argument
381 size_t len; local
402 sshbuf_put_bignum2_bytes(struct sshbuf *buf, const void *v, size_t len) argument
435 size_t len, olen; local
[all...]
H A Dssh_api.h104 size_t len);
107 * ssh_input_space() checks if 'len' bytes can be appended to the
110 int ssh_input_space(struct ssh *ssh, size_t len);
115 int ssh_input_append(struct ssh *ssh, const u_char *data, size_t len);
118 * ssh_output_space() checks if 'len' bytes can be appended to the
121 int ssh_output_space(struct ssh *ssh, size_t len);
129 const u_char *ssh_output_ptr(struct ssh *ssh, size_t *len);
135 int ssh_output_consume(struct ssh *ssh, size_t len);
/freebsd-11-stable/crypto/heimdal/kadmin/
H A Drandom_password.c54 random_password(char *pw, size_t len) argument
61 otp_print_stddict (newkey, pw, len);
70 strlcpy(pw, pass, len);
116 int len; member in struct:__anon5930
120 int len, i; local
130 len = 0;
133 classes[i].len = strlen(classes[i].str);
135 len += classes[i].freq;
138 *pw = malloc(len + 1);
143 for(i = 0; i < len;
[all...]
/freebsd-11-stable/crypto/heimdal/lib/asn1/
H A Dder_put.c40 * which to write, from the right, `len' which means the maximum
47 der_put_unsigned (unsigned char *p, size_t len, const unsigned *v, size_t *size) argument
53 while (len > 0 && val) {
56 --len;
62 if(len < 1)
69 } else if (len < 1)
79 der_put_integer (unsigned char *p, size_t len, const int *v, size_t *size) argument
86 if(len < 1)
89 len--;
93 if(len <
120 der_put_length(unsigned char *p, size_t len, size_t val, size_t *size) argument
147 der_put_boolean(unsigned char *p, size_t len, const int *data, size_t *size) argument
160 der_put_general_string(unsigned char *p, size_t len, const heim_general_string *str, size_t *size) argument
174 der_put_utf8string(unsigned char *p, size_t len, const heim_utf8_string *str, size_t *size) argument
181 der_put_printable_string(unsigned char *p, size_t len, const heim_printable_string *str, size_t *size) argument
188 der_put_ia5_string(unsigned char *p, size_t len, const heim_ia5_string *str, size_t *size) argument
195 der_put_bmp_string(unsigned char *p, size_t len, const heim_bmp_string *data, size_t *size) argument
212 der_put_universal_string(unsigned char *p, size_t len, const heim_universal_string *data, size_t *size) argument
231 der_put_visible_string(unsigned char *p, size_t len, const heim_visible_string *str, size_t *size) argument
238 der_put_octet_string(unsigned char *p, size_t len, const heim_octet_string *data, size_t *size) argument
250 der_put_heim_integer(unsigned char *p, size_t len, const heim_integer *data, size_t *size) argument
302 der_put_generalized_time(unsigned char *p, size_t len, const time_t *data, size_t *size) argument
322 der_put_utctime(unsigned char *p, size_t len, const time_t *data, size_t *size) argument
342 der_put_oid(unsigned char *p, size_t len, const heim_oid *data, size_t *size) argument
372 der_put_tag(unsigned char *p, size_t len, Der_class class, Der_type type, unsigned int tag, size_t *size) argument
403 der_put_length_and_tag(unsigned char *p, size_t len, size_t len_val, Der_class class, Der_type type, unsigned int tag, size_t *size) argument
430 const size_t len = gtimep ? 15 : 13; local
451 der_put_bit_string(unsigned char *p, size_t len, const heim_bit_string *data, size_t *size) argument
[all...]
/freebsd-11-stable/contrib/groff/src/include/
H A Dstringclass.h89 int len; member in class:string
99 assert(i >= 0 && i < len);
105 assert(i >= 0 && i < len);
111 return len;
116 return len == 0;
121 return len;
131 return string(s1.ptr, s1.len, s2.ptr, s2.len);
140 return string(s1.ptr, s1.len, s2, strlen(s2));
142 return s2 == 0 ? s1 : string(s1.ptr, s1.len, s
[all...]
/freebsd-11-stable/sys/contrib/zlib/
H A Dinftrees.c40 unsigned len; /* a code's length in bits */ local
107 for (len = 0; len <= MAXBITS; len++)
108 count[len] = 0;
132 for (len = 1; len <= MAXBITS; len++) {
134 left -= count[len];
142 for (len
[all...]
/freebsd-11-stable/sbin/dhclient/tests/
H A Doption-domain-search.c20 option.len = 0;
27 if (p.options[DHO_DOMAIN_SEARCH].len != 0 ||
43 option->len = 13;
44 option->data = malloc(option->len);
45 memcpy(option->data, data, option->len);
51 if (option->len != strlen(expected) ||
68 option->len = 12;
69 option->data = malloc(option->len);
70 memcpy(option->data, data, option->len);
92 option->len
[all...]
/freebsd-11-stable/lib/librpcsvc/
H A Dxcrypt.c65 int len; local
67 len = strlen(secret) / 2;
68 if ((buf = malloc((unsigned)len)) == NULL) {
72 hex2bin(len, secret, buf);
76 err = cbc_crypt(key, buf, len, DES_ENCRYPT | DES_HW, ivec);
81 bin2hex(len, (unsigned char *) buf, secret);
98 int len; local
100 len = strlen(secret) / 2;
101 if ((buf = malloc((unsigned)len)) == NULL) {
105 hex2bin(len, secre
141 hex2bin(int len, char *hexnum, char *binnum) argument
154 bin2hex(int len, unsigned char *binnum, char *hexnum) argument
[all...]
/freebsd-11-stable/crypto/heimdal/lib/gssapi/krb5/
H A Dencapsulate.c38 size_t *len,
44 *len = 1 + 1 + mech->length + data_len;
46 len_len = der_length_len(*len);
48 *total_len = 1 + len_len + *len;
53 size_t *len,
57 _gssapi_encap_length(data_len + 2, len, total_len, mech);
62 size_t len,
67 p = _gssapi_make_mech_header(p, len, mech);
75 size_t len,
83 len_len = der_length_len(len);
37 _gssapi_encap_length(size_t data_len, size_t *len, size_t *total_len, const gss_OID mech) argument
52 _gsskrb5_encap_length(size_t data_len, size_t *len, size_t *total_len, const gss_OID mech) argument
61 _gsskrb5_make_header(void *ptr, size_t len, const void *type, const gss_OID mech) argument
74 _gssapi_make_mech_header(void *ptr, size_t len, const gss_OID mech) argument
107 size_t len, outer_len; local
138 size_t len, outer_len; local
[all...]
H A Ddisplay_name.c47 size_t len; local
57 len = strlen (buf);
58 output_name_buffer->length = len;
59 output_name_buffer->value = malloc(len + 1);
65 memcpy (output_name_buffer->value, buf, len);
66 ((char *)output_name_buffer->value)[len] = '\0';
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dstring.h59 memdup_user(const void *ptr, size_t len) argument
64 retval = malloc(len, M_KMALLOC, M_WAITOK);
65 error = linux_copyin(ptr, retval, len);
74 memdup_user_nul(const void *ptr, size_t len) argument
79 retval = malloc(len + 1, M_KMALLOC, M_WAITOK);
80 error = linux_copyin(ptr, retval, len);
85 retval[len] = '\0';
90 kmemdup(const void *src, size_t len, gfp_t gfp) argument
94 dst = kmalloc(len, gfp);
96 memcpy(dst, src, len);
104 size_t len; local
116 kstrndup(const char *string, size_t len, gfp_t gfp) argument
[all...]
H A Dsocket.h38 memcpy_toiovec(struct iovec *v, unsigned char *kdata, int len) argument
46 uio.uio_resid = len;
49 error = -uiomove(kdata, len, &uio);
54 memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len) argument
62 uio.uio_resid = len;
65 error = -uiomove(kdata, len, &uio);
/freebsd-11-stable/contrib/ncurses/progs/
H A Dtransform.c41 trim_suffix(const char *a, size_t *len) argument
49 if (*len > need) {
50 size_t first = *len - need;
53 for (n = first; n < *len; ++n) {
60 *len -= need;
66 #define trim_suffix(a, len) /* nothing */
/freebsd-11-stable/contrib/netbsd-tests/kernel/
H A Dt_sysctl.c52 size_t len; local
53 for (len = 0; len < sizeof(buf); len++) {
54 size_t oldlen = len;
58 if (len < sizeof(int)) {
/freebsd-11-stable/contrib/gcclibs/libssp/ssp/
H A Dstring.h56 #define memcpy(dest, src, len) \
58 ? __builtin___memcpy_chk (dest, src, len, __ssp_bos0 (dest)) \
59 : __memcpy_ichk (dest, src, len))
68 #define memmove(dest, src, len) \
70 ? __builtin___memmove_chk (dest, src, len, __ssp_bos0 (dest)) \
71 : __memmove_ichk (dest, src, len))
79 #define mempcpy(dest, src, len) \
81 ? __builtin___mempcpy_chk (dest, src, len, __ssp_bos0 (dest)) \
82 : __mempcpy_ichk (dest, src, len))
91 #define memset(dest, ch, len) \
[all...]
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/
H A Dadler32.c49 svn__adler32(apr_uint32_t checksum, const char *data, apr_off_t len) argument
58 if (len >= 80)
66 (uInt)len);
78 for (; len >= 8; len -= 8, input += 8)
92 while (len--)
/freebsd-11-stable/tools/test/devrandom/
H A Dhammer.urandom15 $len = sysread(BIN, $a, 20);
18 if ($len > 0) {
19 for ($j = 0; $j < $len; $j += 2) {
H A Dstat.16bit16 $len = sysread(BIN, $a, 512);
18 if ($len > 0) {
19 for ($j = 0; $j < $len; $j += 2) {
H A Dstat.8bit16 $len = sysread(BIN, $a, 256);
18 if ($len > 0) {
19 for ($j = 0; $j < $len; $j++) {
/freebsd-11-stable/usr.bin/cksum/
H A Dprint.c47 pcrc(char *fn, uint32_t val, off_t len) argument
49 (void)printf("%lu %jd", (u_long)val, (intmax_t)len);
56 psum1(char *fn, uint32_t val, off_t len) argument
58 (void)printf("%lu %jd", (u_long)val, (intmax_t)(len + 1023) / 1024);
65 psum2(char *fn, uint32_t val, off_t len) argument
67 (void)printf("%lu %jd", (u_long)val, (intmax_t)(len + 511) / 512);
/freebsd-11-stable/lib/libutil/
H A Dkinfo_getproc.c45 size_t len; local
47 len = 0;
52 if (sysctl(mib, nitems(mib), NULL, &len, NULL, 0) < 0)
55 kipp = malloc(len);
59 if (sysctl(mib, nitems(mib), kipp, &len, NULL, 0) < 0)
61 if (len != sizeof(*kipp))

Completed in 140 milliseconds

1234567891011>>