Searched refs:buflen (Results 1 - 25 of 30) sorted by relevance

12

/xnu-2422.115.4/bsd/sys/
H A Dkasl.h44 int escape_str(char *str, int len, int buflen);
H A Dutfconv.h103 * and produces the UTF-8 output into a buffer of buflen bytes pointed
129 size_t * utf8len, size_t buflen, u_int16_t altslash, int flags);
136 * and produces the Unicode output into a buffer of buflen bytes pointed
164 size_t *ucslen, size_t buflen, u_int16_t altslash, int flags);
171 * and produces normalized UTF-8 output into a buffer of buflen bytes
193 size_t *outlen, size_t buflen, int flags);
H A Dvnode_internal.h367 int build_path(vnode_t first_vp, char *buff, int buflen, int *outlen, int flags, vfs_context_t ctx);
/xnu-2422.115.4/libkern/net/
H A Dinet_ntoa.c49 inet_ntoa_r(struct in_addr ina, char *buf, size_t buflen) argument
53 snprintf(buf, buflen, "%d.%d.%d.%d",
/xnu-2422.115.4/bsd/crypto/rc4/
H A Drc4.h51 const u_char *inbuf, u_char *outbuf, int buflen);
H A Drc4.c84 const u_char *inbuf, u_char *outbuf, int buflen)
89 for (i = 0; i < buflen; i++) {
83 rc4_crypt(struct rc4_state *const state, const u_char *inbuf, u_char *outbuf, int buflen) argument
/xnu-2422.115.4/bsd/net/
H A Dbpf_filter.c208 * buflen is the amount of data present
211 bpf_filter(const struct bpf_insn *pc, u_char *p, u_int wirelen, u_int buflen) argument
244 if (k > buflen || sizeof(int32_t) > buflen - k) {
248 if (buflen != 0)
268 if (k > buflen || sizeof(int16_t) > buflen - k) {
272 if (buflen != 0)
285 if (k >= buflen) {
289 if (buflen !
[all...]
H A Dndrv.c607 sprint_d(u_int n, char *buf, int buflen) argument
612 do { buflen--;
616 } while (n != 0 && buflen > 0);
617 strncpy(buf, cp, IFNAMSIZ-buflen);
H A Dif_bridge.c2489 unsigned int count, buflen, len; \
2497 buflen = sizeof (breq) * count; \
2499 bifc->ifbic_len = buflen; \
2503 outbuf = _MALLOC(buflen, M_TEMP, M_WAITOK | M_ZERO); \
2508 len = min(bifc->ifbic_len, buflen); \
2571 unsigned int count, buflen, len; \
2580 buflen = sizeof (bareq) * count; \
2583 outbuf = _MALLOC(buflen, M_TEMP, M_WAITOK | M_ZERO); \
2588 len = min(bac->ifbac_len, buflen); \
3016 unsigned int count, buflen, le
[all...]
H A Droute.c693 void *buf, uint32_t buflen, kauth_cred_t *credp)
698 VERIFY(buf != NULL && buflen >= sizeof (*ss));
699 bzero(buf, buflen);
771 VERIFY(buflen >= sa->sa_len);
692 rtm_scrub(int type, int idx, struct sockaddr *hint, struct sockaddr *sa, void *buf, uint32_t buflen, kauth_cred_t *credp) argument
/xnu-2422.115.4/bsd/kern/
H A Dkern_asl.c217 * buflen - size of buffer that contains the string
220 escape_str(char *str, int len, int buflen) argument
239 if ((buflen - len) < count) {
H A Duipc_syscalls.c1453 int buflen = m->m_len; local
1455 while (buflen > 0 && len > 0) {
1499 if (cp_size > buflen) {
1500 panic("cp_size > buflen, something wrong with alignment!");
1520 buflen -= cp_size;
2051 sockargs(struct mbuf **mp, user_addr_t data, int buflen, int type) argument
2057 size_t alloc_buflen = (size_t)buflen;
2064 alloc_buflen = ((buflen - sizeof(struct cmsghdr))*2) + sizeof(struct cmsghdr);
2082 /* K64: We still copyin the original buflen because it gets expanded later
2085 m->m_len = buflen;
[all...]
H A Dkern_sysctl.c1282 int buflen; member in struct:sysdoproc_args
1300 if (args->buflen >= args->sizeof_kproc) {
1319 args->buflen -= args->sizeof_kproc;
1336 int buflen = where != USER_ADDR_NULL ? req->oldlen : 0; variable
1396 args.buflen = buflen;
1866 int buflen = where != USER_ADDR_NULL ? *sizep : 0; local
1886 buflen -= sizeof(int); /* reserve first word to return argc */
1888 /* we only care about buflen when where (oldp from sysctl) is not NULL. */
1892 if (where != USER_ADDR_NULL && (buflen <
[all...]
/xnu-2422.115.4/security/
H A Dmac_file.c178 int buflen)
182 MAC_CHECK(file_check_set, cred, fg, buf, buflen);
177 mac_file_check_set(struct ucred *cred, struct fileglob *fg, char *buf, int buflen) argument
/xnu-2422.115.4/bsd/nfs/
H A Dxdr_subs.h157 xb_init_buffer(struct xdrbuf *xbp, char *buf, size_t buflen) argument
161 xbp->xb_u.xb_buffer.xbb_size = buflen;
162 xbp->xb_u.xb_buffer.xbb_len = buflen;
165 xbp->xb_left = buflen;
H A Dnfs_gss.c2987 nfs_gss_mach_alloc_buffer(u_char *buf, uint32_t buflen, vm_map_copy_t *addr) argument
2994 if (buf == NULL || buflen == 0)
2997 tbuflen = vm_map_round_page(buflen,
3016 bcopy(buf, (void *) kmem_buf, buflen);
3018 // bzero(kmem_buf + buflen, tbuflen - buflen);
3032 (vm_map_size_t) buflen, TRUE, addr);
/xnu-2422.115.4/bsd/vfs/
H A Dvfs_utfconv.c255 * ENAMETOOLONG: Name didn't fit; only buflen bytes were encoded
261 size_t * utf8len, size_t buflen, u_int16_t altslash, int flags)
277 bufend = bufstart + buflen;
412 size_t *ucslen, size_t buflen, u_int16_t altslash, int flags)
431 bufend = (u_int16_t *)((u_int8_t *)ucsp + buflen);
712 * and produces normalized UTF-8 output into a buffer of buflen bytes
733 size_t *outlen, size_t buflen, int flags)
755 outbufend = outbufstart + buflen;
815 &uft8_bytes, buflen, 0, UTF_NO_NULL_TERM);
260 utf8_encodestr(const u_int16_t * ucsp, size_t ucslen, u_int8_t * utf8p, size_t * utf8len, size_t buflen, u_int16_t altslash, int flags) argument
411 utf8_decodestr(const u_int8_t* utf8p, size_t utf8len, u_int16_t* ucsp, size_t *ucslen, size_t buflen, u_int16_t altslash, int flags) argument
732 utf8_normalizestr(const u_int8_t* instr, size_t inlen, u_int8_t* outstr, size_t *outlen, size_t buflen, int flags) argument
H A Dvfs_cache.c208 build_path(vnode_t first_vp, char *buff, int buflen, int *outlen, int flags, vfs_context_t ctx) argument
234 end = &buff[buflen-1];
516 memmove(buff, end, &buff[buflen] - end);
521 *outlen = &buff[buflen] - end;
/xnu-2422.115.4/bsd/dev/i386/
H A Ddis_tables.c3487 * Print a numeric immediate into end of buf, maximum length buflen.
3505 size_t buflen, int disp, int try_neg)
3516 dis->d86_sprintf_func(buf + curlen, buflen - curlen,
3521 dis->d86_sprintf_func(buf + curlen, buflen - curlen,
3524 dis->d86_sprintf_func(buf + curlen, buflen - curlen,
3547 size_t buflen)
3560 dis->d86_sprintf_func(buf, buflen, "%-6s ", dis->d86_mnem);
3572 (void) strlcat(buf, ",", buflen);
3574 (void) strlcat(buf, op->d86_prefix, buflen);
3606 (void) strlcat(buf, op->d86_opnd, buflen);
[all...]
/xnu-2422.115.4/bsd/bsm/
H A Daudit_record.h193 int au_close_buffer(int d, short event, u_char *buffer, size_t *buflen);
194 int au_close_token(token_t *tok, u_char *buffer, size_t *buflen);
/xnu-2422.115.4/osfmk/kern/
H A Ddebug.c405 * Assumes "buflen" is a multiple of 8.
408 int packA(char *inbuf, uint32_t length, uint32_t buflen) argument
413 length = MIN(((length + 7) & ~7), buflen);
H A Ddebug.h259 int packA(char *inbuf, uint32_t length, uint32_t buflen);
/xnu-2422.115.4/EXTERNAL_HEADERS/corecrypto/
H A Dccmode_factory.h344 uint32_t buflen; /* length of data in buf */ member in struct:_ccmode_gcm_key
/xnu-2422.115.4/bsd/netinet/
H A Din.h854 size_t buflen); /* in libkern */
H A Din_arp.c877 sdl_addr_to_hex(const struct sockaddr_dl *sdl, char *orig_buf, int buflen) argument
882 int maxbytes = buflen / 3;

Completed in 207 milliseconds

12