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

/macosx-10.5.8/xnu-1228.15.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
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dbpf_filter.c203 * buflen is the amount of data present
206 bpf_filter(const struct bpf_insn *pc, u_char *p, u_int wirelen, u_int buflen) argument
237 if (k > buflen || sizeof(int32_t) > buflen - k) {
241 if (buflen != 0)
261 if (k > buflen || sizeof(int16_t) > buflen - k) {
265 if (buflen != 0)
278 if (k >= buflen) {
282 if (buflen !
[all...]
H A Dndrv.c600 sprint_d(u_int n, char *buf, int buflen) argument
605 do { buflen--;
609 } while (n != 0 && buflen > 0);
610 strncpy(buf, cp, IFNAMSIZ-buflen);
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dutfconv.h84 * and produces the UTF-8 output into a buffer of buflen bytes pointed
110 size_t * utf8len, size_t buflen, u_int16_t altslash, int flags);
117 * and produces the Unicode output into a buffer of buflen bytes pointed
145 size_t *ucslen, size_t buflen, u_int16_t altslash, int flags);
152 * and produces normalized UTF-8 output into a buffer of buflen bytes
174 size_t *outlen, size_t buflen, int flags);
H A Dvnode_internal.h340 int build_path(vnode_t first_vp, char *buff, int buflen, int *outlen, int flags, vfs_context_t ctx);
H A Dsocketvar.h436 extern int sockargs(struct mbuf **mp, user_addr_t data, int buflen, int type);
H A Dsysproto.h779 char buflen_l_[PADL_(int)]; int buflen; char buflen_r_[PADR_(int)]; member in struct:ATPgetreq_args
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Ddebug.h83 int packA(char *inbuf, uint32_t length, uint32_t buflen);
H A Ddebug.c326 int packA(char *inbuf, uint32_t length, uint32_t buflen) argument
331 length = MIN(((length & ~7) +8), buflen);
/macosx-10.5.8/xnu-1228.15.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
H A Dmac_framework.h194 char *bufp, int buflen);
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_fslog.c294 * buflen - size of buffer that contains the string
296 static int escape_str(char *str, int len, int buflen) argument
312 if ((buflen - len) < count) {
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);
706 * and produces normalized UTF-8 output into a buffer of buflen bytes
727 size_t *outlen, size_t buflen, int flags)
749 outbufend = outbufstart + buflen;
809 &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
726 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.c185 build_path(vnode_t first_vp, char *buff, int buflen, int *outlen, int flags, vfs_context_t ctx) argument
206 end = &buff[buflen-1];
397 memmove(buff, end, &buff[buflen] - end);
399 *outlen = &buff[buflen] - end; /* length includes the trailing zero byte */
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/i386/
H A Ddis_tables.c3085 * Print a numeric immediate into end of buf, maximum length buflen.
3103 size_t buflen, int disp, int try_neg)
3114 dis->d86_sprintf_func(buf + curlen, buflen - curlen,
3119 dis->d86_sprintf_func(buf + curlen, buflen - curlen,
3122 dis->d86_sprintf_func(buf + curlen, buflen - curlen,
3145 size_t buflen)
3158 dis->d86_sprintf_func(buf, buflen, "%-6s ", dis->d86_mnem);
3170 (void) strlcat(buf, ",", buflen);
3172 (void) strlcat(buf, op->d86_prefix, buflen);
3204 (void) strlcat(buf, op->d86_opnd, buflen);
3102 print_imm(dis86_t *dis, uint64_t usv, uint64_t mask, char *buf, size_t buflen, int disp, int try_neg) argument
3144 dtrace_disx86_str(dis86_t *dis, uint_t mode, uint64_t pc, char *buf, size_t buflen) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_sysctl.c1139 int buflen; member in struct:sysdoproc_args
1158 if (args->buflen >= args->sizeof_kproc) {
1180 args->buflen -= args->sizeof_kproc;
1191 int buflen = where != USER_ADDR_NULL ? *sizep : 0; local
1247 args.buflen = buflen;
1647 int buflen = where != USER_ADDR_NULL ? *sizep : 0; local
1667 buflen -= sizeof(int); /* reserve first word to return argc */
1669 /* we only care about buflen when where (oldp from sysctl) is not NULL. */
1673 if (where != USER_ADDR_NULL && (buflen <
[all...]
H A Duipc_syscalls.c1803 sockargs(struct mbuf **mp, user_addr_t data, int buflen, int type) argument
1809 if ((u_int)buflen > MLEN) {
1810 if (type == MT_SONAME && (u_int)buflen <= 112)
1811 buflen = MLEN; /* unix domain compat. hack */
1812 else if ((u_int)buflen > MCLBYTES)
1818 if ((u_int)buflen > MLEN) {
1825 m->m_len = buflen;
1826 error = copyin(data, mtod(m, caddr_t), (u_int)buflen);
1833 sa->sa_len = buflen;
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/
H A Dsys_dep.c221 _ATPgetreq(uap->fd, uap->buf, uap->buflen,
H A Datp_write.c1740 _ATPgetreq(fd, buf, buflen, err, proc)
1743 int buflen;
1765 if (buflen < DDP_X_HDR_SIZE + ATP_HDR_SIZE) {
1793 if ((len = gbuf_len(m)) > buflen)
1794 len = buflen;
1797 if ((buflen -= len) == 0)
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dnfs_gss.c2563 nfs_gss_mach_alloc_buffer(u_char *buf, uint32_t buflen, vm_map_copy_t *addr) argument
2570 if (buf == NULL || buflen == 0)
2573 tbuflen = round_page(buflen);
2584 bcopy(buf, (void *) kmem_buf, buflen);
2594 (vm_map_size_t) buflen, TRUE, addr);
2600 if (buflen != tbuflen)
2601 kmem_free(ipc_kernel_map, kmem_buf + buflen, tbuflen - buflen);
H A Dnfs_vnops.c1592 uint32_t buflen; local
1638 buflen = bp->nb_bufsize;
1639 error = nmp->nm_funcs->nf_readlink_rpc(np, bp->nb_data, &buflen, ctx);
1645 bp->nb_validend = buflen;
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Din_arp.c344 sdl_addr_to_hex(const struct sockaddr_dl *sdl, char * orig_buf, int buflen) argument
349 int maxbytes = buflen / 3;

Completed in 244 milliseconds