Searched refs:len (Results 151 - 175 of 6822) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/unbound/sldns/
H A Dstr2wire.h41 * @param len: length of the buffer on input, length of the result on output.
44 int sldns_str2wire_dname_buf(const char* str, uint8_t* buf, size_t* len);
51 * @param len: length of the buffer on input, length of the result on output.
56 int sldns_str2wire_dname_buf_origin(const char* str, uint8_t* buf, size_t* len,
62 * @param len: returned length of wireformat.
65 uint8_t* sldns_str2wire_dname(const char* str, size_t* len);
75 * @param len: on input the length of the buffer, on output the amount of
86 int sldns_str2wire_rr_buf(const char* str, uint8_t* rr, size_t* len,
96 * @param len: on input the length of the buffer, on output the amount of
106 int sldns_str2wire_rr_question_buf(const char* str, uint8_t* rr, size_t* len,
[all...]
/freebsd-13-stable/sys/libkern/
H A Dbcmp.c60 int shl, shr, len = length; local
64 if (len == 0)
73 if (--len <= 0)
90 while ((len -= sizeof(long)) >= 0) {
99 * At this point, len is between -sizeof(long) and -1,
102 if (!(len += sizeof(long)))
105 len <<= 3; /* remaining length in bits */
112 return ((((va >> shr | ((shl < len) ? *(culp)p2 << shl : 0)) ^
113 *(culp)p1) & ((1L << len) - 1)) != 0);
116 while ((len
[all...]
/freebsd-13-stable/stand/mips/beri/loader/
H A Darch.c44 static ssize_t beri_arch_copyin(const void *src, vm_offset_t va, size_t len);
45 static ssize_t beri_arch_copyout(vm_offset_t va, void *dst, size_t len);
47 static ssize_t beri_arch_readin(readin_handle_t fd, vm_offset_t va, size_t len);
67 beri_arch_copyin(const void *src, vm_offset_t va, size_t len) argument
70 memcpy((void *)va, src, len);
71 return (len);
75 beri_arch_copyout(vm_offset_t va, void *dst, size_t len) argument
78 memcpy(dst, (void *)va, len);
79 return (len);
93 beri_arch_readin(readin_handle_t fd, vm_offset_t va, size_t len) argument
[all...]
/freebsd-13-stable/usr.bin/asa/
H A Dasa.c98 size_t len; local
101 if ((buf = fgetln(f, &len)) != NULL) {
102 if (buf[len - 1] == '\n')
103 buf[--len] = '\0';
114 if (len > 1 && buf[0] && buf[1])
115 printf("%.*s", (int)(len - 1), buf + 1);
117 while ((buf = fgetln(f, &len)) != NULL) {
118 if (buf[len - 1] == '\n')
119 buf[--len] = '\0';
137 if (len >
[all...]
/freebsd-13-stable/sbin/iscontrol/
H A Dauth_subr.c62 int len; local
70 if((len = str2bin(chapSecret, &tmp)) == 0) {
74 MD5Update(&ctx, tmp, len);
77 if((len = str2bin(cp, &tmp)) == 0) {
81 MD5Update(&ctx, tmp, len);
95 int len; local
103 if((len = str2bin(chapSecret, &tmp)) == 0) {
107 SHA1_Update(&ctx, tmp, len);
110 if((len = str2bin(cp, &tmp)) == 0) {
114 SHA1_Update(&ctx, tmp, len);
132 int len; local
154 genChapChallenge(char *encoding, uint len) argument
174 puke(char *str, unsigned char *dg, int len) argument
185 int len; local
[all...]
/freebsd-13-stable/contrib/bearssl/src/int/
H A Di31_encode.c29 br_i31_encode(void *dst, size_t len, const uint32_t *x) argument
38 memset(dst, 0, len);
41 buf = (unsigned char *)dst + len;
45 while (len != 0) {
59 if (len >= 4) {
61 len -= 4;
64 switch (len) {
/freebsd-13-stable/contrib/openpam/lib/libpam/
H A Dopenpam_get_option.c61 size_t len; local
68 len = strlen(option);
70 if (strncmp(cur->optv[i], option, len) == 0) {
71 if (cur->optv[i][len] == '\0')
72 RETURNS(&cur->optv[i][len]);
73 else if (cur->optv[i][len] == '=')
74 RETURNS(&cur->optv[i][len + 1]);
/freebsd-13-stable/stand/efi/libefi/
H A Dwchar.c51 * 0 terminates it. len is the size of *dst in bytes.
54 cpy8to16(const char *src, CHAR16 *dst, size_t len) argument
56 len <<= 1; /* Assume CHAR16 is 2 bytes */
57 while (len > 0 && *src) {
59 len--;
65 cpy16to8(const CHAR16 *src, char *dst, size_t len) argument
69 for (i = 0; i < len && src[i]; i++)
71 if (i < len)
/freebsd-13-stable/stand/libsa/
H A Din_cksum.c53 in_cksum(p, len)
55 int len;
61 while (len > 0) {
64 len--;
67 while ((len -= 2) >= 0) {
72 while ((len -= 2) >= 0) {
82 if ((oddbyte = len & 1) != 0)
/freebsd-13-stable/crypto/heimdal/appl/test/
H A Dnt_gss_common.c54 uint32_t len; local
57 len = buf->length;
59 net_len[0] = (len >> 0) & 0xFF;
60 net_len[1] = (len >> 8) & 0xFF;
61 net_len[2] = (len >> 16) & 0xFF;
62 net_len[3] = (len >> 24) & 0xFF;
66 if (write (sock, buf->value, len) != len)
80 uint32_t len; local
84 len
[all...]
/freebsd-13-stable/crypto/heimdal/lib/krb5/
H A Dn-fold.c36 rr13(unsigned char *buf, size_t len) argument
39 int bytes = (len + 7) / 8;
41 if(len == 0)
44 const int bits = 13 % len;
45 const int lbit = len % 8;
54 for(i = lbit; i < 8; i += len)
63 bb += len;
70 s2 = (len + 8 - s1) % 8;
83 add1(unsigned char *a, unsigned char *b, size_t len) argument
87 for(i = len
100 _krb5_n_fold(const void *str, size_t len, void *key, size_t size) argument
[all...]
/freebsd-13-stable/lib/libsecureboot/openpgp/
H A Ddecode.c114 int len = -1; local
124 len = *ptr++;
126 len = ((*ptr - 192) << 8) + *(ptr+1) + 192;
129 len = (*ptr++ << 24);
130 len |= (*ptr++ << 16);
131 len |= (*ptr++ < 8);
132 len |= *ptr++;
136 return (len);
148 int len; local
160 len
262 int len; local
296 int len; local
[all...]
/freebsd-13-stable/contrib/bearssl/src/ssl/
H A Dssl_io.c32 unsigned char *data, size_t len),
35 const unsigned char *data, size_t len),
68 size_t len; local
71 buf = br_ssl_engine_sendrec_buf(ctx->engine, &len);
72 wlen = ctx->low_write(ctx->write_context, buf, len);
119 size_t len; local
122 buf = br_ssl_engine_recvrec_buf(ctx->engine, &len);
123 rlen = ctx->low_read(ctx->read_context, buf, len);
147 br_sslio_read(br_sslio_context *ctx, void *dst, size_t len) argument
152 if (len
29 br_sslio_init(br_sslio_context *ctx, br_ssl_engine_context *engine, int (*low_read)(void *read_context, unsigned char *data, size_t len), void *read_context, int (*low_write)(void *write_context, const unsigned char *data, size_t len), void *write_context) argument
169 br_sslio_read_all(br_sslio_context *ctx, void *dst, size_t len) argument
189 br_sslio_write(br_sslio_context *ctx, const void *src, size_t len) argument
211 br_sslio_write_all(br_sslio_context *ctx, const void *src, size_t len) argument
253 size_t len; local
[all...]
/freebsd-13-stable/contrib/tnftp/src/
H A Dprogressbar.c129 #define BUFLEFT (sizeof(buf) - len)
152 size_t len; local
183 len = snprintf(buf, sizeof(buf), "\r\n%s: "
186 (void)write(fileno(ttyout), buf, len); local
212 len = 0;
220 len += snprintf(buf + len, BUFLEFT, "\r");
222 len += snprintf(buf + len, BUFLEFT, "%s", prefix);
227 len
297 (void)write(fileno(ttyout), buf, len); local
318 size_t len; local
[all...]
/freebsd-13-stable/crypto/openssh/
H A Dsshbuf-getput-basic.c33 sshbuf_get(struct sshbuf *buf, void *v, size_t len) argument
38 if ((r = sshbuf_consume(buf, len)) < 0)
40 if (v != NULL && len != 0)
41 memcpy(v, p, len);
101 size_t len; local
108 if ((r = sshbuf_get_string_direct(buf, &val, &len)) < 0)
111 if ((*valp = malloc(len + 1)) == NULL) {
115 if (len != 0)
116 memcpy(*valp, val, len);
117 (*valp)[len]
127 size_t len; local
154 u_int32_t len; local
184 size_t len; local
219 u_int32_t len; local
237 sshbuf_put(struct sshbuf *buf, const void *v, size_t len) argument
271 int r, len; local
349 sshbuf_put_string(struct sshbuf *buf, const void *v, size_t len) argument
382 size_t len; local
403 sshbuf_put_bignum2_bytes(struct sshbuf *buf, const void *v, size_t len) argument
436 size_t len, olen; local
512 u_int64_t len; local
[all...]
/freebsd-13-stable/usr.bin/tail/
H A Dread.c72 int ch, len, tlen; local
94 for (t = p - 1, len = 0; t >= sp; --t, ++len)
95 if (*t == '\n' && len) {
96 WR(t + 1, len);
97 len = 0;
100 tlen = len;
101 for (t = ep - 1, len = 0; t >= p; --t, ++len)
103 if (len) {
144 u_int len; member in struct:__anon16412
[all...]
/freebsd-13-stable/tests/sys/vm/
H A Dmlock_test.c44 test_wired_copy_on_write(void *addr, size_t len) argument
53 if (mlock(addr, len) != 0)
59 if (munlock(addr, len) != 0)
88 int len; local
90 len = getpagesize();
91 addr = mmap(NULL, len, PROT_READ, MAP_ANON, -1, 0);
94 test_wired_copy_on_write(addr, len);
104 int len; local
106 len = getpagesize();
107 addr = (void *)((uintptr_t)test_wired_copy_on_write & ~(len
120 int fd, i, len; local
149 int fd, len; local
[all...]
/freebsd-13-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-13-stable/contrib/wpa/src/eap_common/
H A Deap_peap_common.c25 size_t len[5]; local
28 len[0] = 0;
30 len[1] = label_len;
32 len[2] = seed_len;
47 len[3] = 1;
49 len[4] = 2;
63 len[3] = 1;
65 len[4] = 1;
72 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash) < 0)
81 len[
[all...]
/freebsd-13-stable/lib/libc/iconv/
H A Dcitrus_bcs.c109 _citrus_bcs_skip_ws_len(const char * __restrict p, size_t * __restrict len) argument
112 while (*p && *len > 0 && _bcs_isspace(*p)) {
114 (*len)--;
124 _citrus_bcs_skip_nonws_len(const char * __restrict p, size_t * __restrict len) argument
127 while (*p && *len > 0 && !_bcs_isspace(*p)) {
129 (*len)--;
139 _citrus_bcs_trunc_rws_len(const char * __restrict p, size_t * __restrict len) argument
142 while (*len > 0 && _bcs_isspace(p[*len - 1]))
143 (*len)
[all...]
/freebsd-13-stable/lib/libc/string/
H A Dstrxfrm.c46 strxfrm_l(char * __restrict dest, const char * __restrict src, size_t len, locale_t loc);
48 strxfrm(char * __restrict dest, const char * __restrict src, size_t len) argument
50 return strxfrm_l(dest, src, len, __get_locale());
54 strxfrm_l(char * __restrict dest, const char * __restrict src, size_t len, locale_t locale) argument
65 if (len > 0)
86 if ((xlen = _collate_sxfrm(table, wcs, dest, len)) == (size_t)-1)
91 if (len > xlen) {
93 } else if (len) {
94 dest[len-1] = 0;
102 strlcpy(dest, src, len);
[all...]
/freebsd-13-stable/contrib/bearssl/src/ec/
H A Dec_keygen.c35 size_t len; local
43 order = impl->order(curve, &len);
44 while (len > 0 && *order == 0) {
46 len --;
48 if (kbuf == NULL || len == 0) {
49 return len;
66 (*rng_ctx)->generate(rng_ctx, buf, len);
69 u = len;
83 sk->xlen = len;
85 return len;
[all...]
/freebsd-13-stable/sys/dev/hid/
H A Dhidraw.h91 #define HIDIOCGRAWNAME(len) _IOC(IOC_OUT, 'U', 33, len)
92 #define HIDIOCGRAWPHYS(len) _IOC(IOC_OUT, 'U', 34, len)
93 #define HIDIOCSFEATURE(len) _IOC(IOC_IN, 'U', 35, len)
94 #define HIDIOCGFEATURE(len) _IOC(IOC_INOUT, 'U', 36, len)
95 #define HIDIOCGRAWUNIQ(len) _IOC(IOC_OUT, 'U', 37, len)
[all...]
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/
H A Duser_property_001_pos.ksh64 typeset -i len
65 ((len = RANDOM % 32))
66 names+=("$(valid_user_property $len)")
67 ((len = RANDOM % 512))
68 values+=("$(user_property_value $len)")
/freebsd-13-stable/contrib/nvi/ex/
H A Dex_abbrev.c36 size_t len; local
62 if (!inword(cmdp->argv[0]->bp[cmdp->argv[0]->len - 1])) {
73 if (cmdp->argv[0]->len > 2)
75 len = cmdp->argv[0]->len - 2; len; --len, ++p)
82 if (seq_set(sp, NULL, 0, cmdp->argv[0]->bp, cmdp->argv[0]->len,
83 cmdp->argv[1]->bp, cmdp->argv[1]->len, SEQ_ABBREV, SEQ_USERDEF))
103 seq_delete(sp, ap->bp, ap->len, SEQ_ABBRE
[all...]

Completed in 208 milliseconds

1234567891011>>