len                64 bsp/boot/common/load.c 	long len;
len                90 bsp/boot/common/load.c 	len = atol((char *)&((struct ar_hdr *)hdr)->ar_size);
len                91 bsp/boot/common/load.c 	len += len % 2;	/* even alignment */
len                92 bsp/boot/common/load.c 	if (len == 0)
len                94 bsp/boot/common/load.c 	hdr = (char *)((paddr_t)hdr + sizeof(struct ar_hdr) + len);
len               105 bsp/boot/common/load.c 		len = atol((char *)&((struct ar_hdr *)hdr)->ar_size);
len               106 bsp/boot/common/load.c 		len += len % 2;	/* even alignment */
len               107 bsp/boot/common/load.c 		if (len == 0)
len               109 bsp/boot/common/load.c 		hdr = (char *)((paddr_t)hdr + sizeof(struct ar_hdr) + len);
len               443 bsp/drv/dev/base/kd.c 	static u_long len = 16;
len               457 bsp/drv/dev/base/kd.c 		len = 16;
len               472 bsp/drv/dev/base/kd.c 		len = strtoul(p, NULL, 16);
len               473 bsp/drv/dev/base/kd.c 		if (len == ULONG_MAX)
len               486 bsp/drv/dev/base/kd.c 	if ((kp = kmem_map((void *)addr, (size_t)len)) == NULL)
len               489 bsp/drv/dev/base/kd.c 	for (cnt = 0; cnt < len;) {
len               452 bsp/drv/dev/cpufreq/est.c 	size_t len;
len               481 bsp/drv/dev/cpufreq/est.c 		len = strnlen(cpu->brand_prefix, 48);
len               482 bsp/drv/dev/cpufreq/est.c 		if (strncmp(cpu->brand_prefix, brand_str, len) != 0)
len               484 bsp/drv/dev/cpufreq/est.c 		tag = brand_str + len;
len               487 bsp/drv/dev/cpufreq/est.c 			len = strnlen(fql->brand_tag, 48);
len               488 bsp/drv/dev/cpufreq/est.c 			if (!strncmp(fql->brand_tag, tag, len) &&
len               489 bsp/drv/dev/cpufreq/est.c 			    !strncmp(cpu->brand_suffix, tag + len, 48)) {
len                74 bsp/hal/ppc/arch/cpu.c copyin(const void *uaddr, void *kaddr, size_t len)
len                77 bsp/hal/ppc/arch/cpu.c 	if (user_area(uaddr) && user_area(uaddr + len)) {
len                78 bsp/hal/ppc/arch/cpu.c 		memcpy(kaddr, uaddr, len);
len                85 bsp/hal/ppc/arch/cpu.c copyout(const void *kaddr, void *uaddr, size_t len)
len                88 bsp/hal/ppc/arch/cpu.c 	if (user_area(uaddr) && user_area(uaddr + len)) {
len                89 bsp/hal/ppc/arch/cpu.c 		memcpy(uaddr, kaddr, len);
len                96 bsp/hal/ppc/arch/cpu.c copyinstr(const void *uaddr, void *kaddr, size_t len)
len                99 bsp/hal/ppc/arch/cpu.c 	if (user_area(uaddr) && user_area(uaddr + len)) {
len               100 bsp/hal/ppc/arch/cpu.c 		strlcpy(kaddr, uaddr, len);
len                59 include/sys/ioctl.h #define	_IOC(inout,group,num,len) \
len                60 include/sys/ioctl.h 	(u_long)(inout | ((len & IOCPARM_MASK) << 16) | ((group) << 8) | (num))
len               191 sys/ipc/msg.c  	size_t len;
len               262 sys/ipc/msg.c  	len = MIN(size, t->msgsize);
len               263 sys/ipc/msg.c  	if (len > 0) {
len               264 sys/ipc/msg.c  		if (copyout(t->msgaddr, msg, len)) {
len               291 sys/ipc/msg.c  	size_t len;
len               315 sys/ipc/msg.c  	len = MIN(size, t->msgsize);
len               316 sys/ipc/msg.c  	if (len > 0) {
len               317 sys/ipc/msg.c  		if (copyin(msg, t->msgaddr, len)) {
len               123 sys/kern/debug.c 	u_long cnt, len, i;
len               129 sys/kern/debug.c 	len = log_len;
len               130 sys/kern/debug.c 	if (len >= LOGBUFSZ) {
len               134 sys/kern/debug.c 		while (len > 0 && log_buf[LOGINDEX(i)] != '\n') {
len               136 sys/kern/debug.c 			len--;
len               140 sys/kern/debug.c 		if (cnt < len)
len               133 sys/kern/device.c 	size_t len;
len               139 sys/kern/device.c 	len = strnlen(name, MAXDEVNAME);
len               140 sys/kern/device.c 	if (len == 0 || len >= MAXDEVNAME)
len               160 sys/kern/device.c 	strlcpy(dev->name, name, len + 1);
len               183 usr/bin/ls/ls.c 	int len;
len               235 usr/bin/ls/ls.c 		len = strlen(name);
len               236 usr/bin/ls/ls.c 		cols += len;
len               241 usr/bin/ls/ls.c 			if (len > 8) {
len               245 usr/bin/ls/ls.c 				for (; len <= 9; len++) {
len                87 usr/bin/more/more.c 	int c, len, lines = 0;
len                91 usr/bin/more/more.c 			len = printf("\n--More-- ");
len                97 usr/bin/more/more.c 			while (--len >= 0)
len               100 usr/bin/more/more.c 			len = 0;
len                54 usr/bin/printenv/printenv.c 	size_t len;
len                71 usr/bin/printenv/printenv.c 	len = strlen(*argv);
len                73 usr/bin/printenv/printenv.c 		if (!memcmp(*ep, *argv, len)) {
len                74 usr/bin/printenv/printenv.c 			cp = *ep + len;
len               409 usr/bin/sh/sh.c readline(int fd, char *line, int len)
len               412 usr/bin/sh/sh.c 	int nleft = len;
len                26 usr/lib/libc/gen/basename.c         size_t len;
len                53 usr/lib/libc/gen/basename.c         len = endp - startp + 1;
len                54 usr/lib/libc/gen/basename.c         if (len >= sizeof(bname)) {
len                58 usr/lib/libc/gen/basename.c         memcpy(bname, startp, len);
len                59 usr/lib/libc/gen/basename.c         bname[len] = '\0';
len                37 usr/lib/libc/gen/confstr.c confstr(name, buf, len)
len                40 usr/lib/libc/gen/confstr.c 	size_t len;
len                44 usr/lib/libc/gen/confstr.c 		if (len != 0 && buf != NULL) {
len                26 usr/lib/libc/gen/dirname.c         size_t len;
len                57 usr/lib/libc/gen/dirname.c         len = endp - path + 1;
len                58 usr/lib/libc/gen/dirname.c         if (len >= sizeof(dname)) {
len                62 usr/lib/libc/gen/dirname.c         memcpy(dname, path, len);
len                63 usr/lib/libc/gen/dirname.c         dname[len] = '\0';
len                76 usr/lib/libc/gen/fts.c 	int len;
len               110 usr/lib/libc/gen/fts.c 		if ((len = strlen(*argv)) == 0) {
len               115 usr/lib/libc/gen/fts.c 		p = fts_alloc(sp, *argv, len);
len               177 usr/lib/libc/gen/fts.c 	int len;
len               187 usr/lib/libc/gen/fts.c 	len = p->fts_pathlen = p->fts_namelen;
len               188 usr/lib/libc/gen/fts.c 	memmove(sp->fts_path, p->fts_name, len + 1);
len               190 usr/lib/libc/gen/fts.c 		len = strlen(++cp);
len               191 usr/lib/libc/gen/fts.c 		memmove(p->fts_name, cp, len + 1);
len               192 usr/lib/libc/gen/fts.c 		p->fts_namelen = len;
len               544 usr/lib/libc/gen/fts.c 	int cderrno, descend, len, level, maxlen, nlinks, saved_errno;
len               629 usr/lib/libc/gen/fts.c 	len = NAPPEND(cur);
len               631 usr/lib/libc/gen/fts.c 		cp = sp->fts_path + len;
len               667 usr/lib/libc/gen/fts.c 		p->fts_pathlen = len + dp->d_namlen + 1;
len               880 usr/lib/libc/gen/fts.c 	size_t len;
len               890 usr/lib/libc/gen/fts.c 	len = sizeof(FTSENT) + namelen;
len               892 usr/lib/libc/gen/fts.c 		len += sizeof(struct stat) + ALIGNBYTES;
len               893 usr/lib/libc/gen/fts.c 	if ((p = malloc(len)) == NULL)
len               965 usr/lib/libc/gen/fts.c 	size_t len, max;
len               968 usr/lib/libc/gen/fts.c 		if ((len = strlen(*argv)) > max)
len               969 usr/lib/libc/gen/fts.c 			max = len;
len                49 usr/lib/libc/stdio/fvwrite.c 	size_t len;
len                56 usr/lib/libc/stdio/fvwrite.c 	if ((len = uio->uio_resid) == 0)
len                67 usr/lib/libc/stdio/fvwrite.c 	len = iov->iov_len;
len                70 usr/lib/libc/stdio/fvwrite.c 	while (len == 0) { \
len                73 usr/lib/libc/stdio/fvwrite.c 		len = iov->iov_len; \
len                82 usr/lib/libc/stdio/fvwrite.c 			w = __swrite(fp, p, MIN(len, BUFSIZ));
len                86 usr/lib/libc/stdio/fvwrite.c 			len -= w;
len               104 usr/lib/libc/stdio/fvwrite.c 				if (len < w)
len               105 usr/lib/libc/stdio/fvwrite.c 					w = len;
len               109 usr/lib/libc/stdio/fvwrite.c 				w = len;	/* but pretend copied all */
len               110 usr/lib/libc/stdio/fvwrite.c 			} else if (fp->_p > fp->_bf._base && len > w) {
len               117 usr/lib/libc/stdio/fvwrite.c 			} else if (len >= (w = fp->_bf._size)) {
len               124 usr/lib/libc/stdio/fvwrite.c 				w = len;
len               130 usr/lib/libc/stdio/fvwrite.c 			len -= w;
len               145 usr/lib/libc/stdio/fvwrite.c 				nl = memchr((void *)p, '\n', len);
len               146 usr/lib/libc/stdio/fvwrite.c 				nldist = nl ? nl + 1 - p : len + 1;
len               149 usr/lib/libc/stdio/fvwrite.c 			s = MIN(len, nldist);
len               174 usr/lib/libc/stdio/fvwrite.c 			len -= w;
len                47 usr/lib/libc/stdio/fwrite.c 	size_t len = count * size;
len                50 usr/lib/libc/stdio/fwrite.c 	while (n < len) {
len               223 usr/lib/libc/stdio/vfprintf.c #define	PRINT(ptr, len) { \
len               225 usr/lib/libc/stdio/vfprintf.c 	iovp->iov_len = (len); \
len               226 usr/lib/libc/stdio/vfprintf.c 	uio.uio_resid += (len); \
len                65 usr/lib/libc/stdlib/getenv.c 	size_t len;
len                73 usr/lib/libc/stdlib/getenv.c 	len = np - name;
len                75 usr/lib/libc/stdlib/getenv.c 		if (strncmp(c, name, len) == 0 && c[len] == '=') {
len                77 usr/lib/libc/stdlib/getenv.c 			return (c + len + 1);
len                40 usr/lib/libc/string/strdup.c 	size_t len;
len                43 usr/lib/libc/string/strdup.c 	len = strlen(str) + 1;
len                44 usr/lib/libc/string/strdup.c 	if (!(copy = malloc((u_int)len)))
len                46 usr/lib/libc/string/strdup.c 	bcopy(str, copy, len);
len                44 usr/lib/libc/string/strstr.c 	size_t len;
len                47 usr/lib/libc/string/strstr.c 		len = strlen(find);
len                53 usr/lib/libc/string/strstr.c 		} while (strncmp(s, find, len) != 0);
len                36 usr/lib/libc/string/swab.c swab(const void *from, void *to, size_t len)
len                42 usr/lib/libc/string/swab.c 	len = (len / 2) + 1;
len                46 usr/lib/libc/string/swab.c 	while (len-- != 0) {
len                37 usr/lib/libc/termios/tcsendbreak.c tcsendbreak(fd, len)
len                38 usr/lib/libc/termios/tcsendbreak.c 	int fd, len;
len                61 usr/lib/libsa/_stdio.c __console_write(char *buf, size_t len)
len                67 usr/lib/libsa/_stdio.c 	device_write(__console_dev, buf, &len, 0);
len                74 usr/lib/libsa/_stdio.c 	size_t len = 1;
len                79 usr/lib/libsa/_stdio.c 	device_read(__console_dev, &ch, &len, 0);
len                35 usr/lib/libsa/printf.c extern void __console_write(char *buf, size_t len);
len                44 usr/lib/libsa/printf.c 	int len = LINE_MAX;
len                48 usr/lib/libsa/printf.c 	len = vsprintf(buf, fmt, args);
len                49 usr/lib/libsa/printf.c 	__console_write((char *)buf, (size_t)len);
len                51 usr/lib/libsa/printf.c 	return len;
len                33 usr/lib/libsa/putchar.c extern void __console_write(char *buf, size_t len);
len                34 usr/lib/libsa/puts.c extern void __console_write(char *buf, size_t len);
len                38 usr/lib/posix/file/read.c read(int fd, void *buf, size_t len)
len                45 usr/lib/posix/file/read.c 	m.size = len;
len                37 usr/lib/posix/file/write.c write(int fd, void *buf, size_t len)
len                44 usr/lib/posix/file/write.c 	m.size = len;
len               236 usr/server/exec/exec_execve.c 	size_t len = 0;
len               239 usr/server/exec/exec_execve.c 	len = strlen(path);
len               240 usr/server/exec/exec_execve.c 	if (len >= PATH_MAX)
len               242 usr/server/exec/exec_execve.c 	if (strlen(cwd) + len >= PATH_MAX)
len               246 usr/server/exec/exec_execve.c 	end = src + len;
len               249 usr/server/exec/exec_execve.c 		len++;
len               252 usr/server/exec/exec_execve.c 		len = strlen(cwd);
len               253 usr/server/exec/exec_execve.c 		tgt += len;
len               254 usr/server/exec/exec_execve.c 		if (len > 1 && path[0] != '.') {
len               257 usr/server/exec/exec_execve.c 			len++;
len               266 usr/server/exec/exec_execve.c 			if (len >= 2) {
len               267 usr/server/exec/exec_execve.c 				len -= 2;
len               271 usr/server/exec/exec_execve.c 					len--;
len               273 usr/server/exec/exec_execve.c 				if (len == 0) {
len               275 usr/server/exec/exec_execve.c 					len++;
len               283 usr/server/exec/exec_execve.c 				len++;
len               288 usr/server/exec/exec_execve.c 		if (len > 0 && *(tgt - 1) != '/') {
len               290 usr/server/exec/exec_execve.c 			len++;
len               322 usr/server/exec/exec_execve.c 	int len;
len               359 usr/server/exec/exec_execve.c 		len = strlen(xarg2);
len               360 usr/server/exec/exec_execve.c 		sp -= (len + 1);
len               361 usr/server/exec/exec_execve.c 		strlcpy((char *)sp, xarg2, len + 1);
len               366 usr/server/exec/exec_execve.c 		len = strlen(xarg1);
len               367 usr/server/exec/exec_execve.c 		sp -= (len + 1);
len               368 usr/server/exec/exec_execve.c 		strlcpy((char *)sp, xarg1, len + 1);
len               159 usr/server/fs/devfs/devfs_vnops.c 	size_t len;
len               161 usr/server/fs/devfs/devfs_vnops.c 	len = size;
len               162 usr/server/fs/devfs/devfs_vnops.c 	error = device_read((device_t)vp->v_data, buf, &len, fp->f_offset);
len               164 usr/server/fs/devfs/devfs_vnops.c 		*result = len;
len               172 usr/server/fs/devfs/devfs_vnops.c 	size_t len;
len               174 usr/server/fs/devfs/devfs_vnops.c 	len = size;
len               175 usr/server/fs/devfs/devfs_vnops.c 	error = device_write((device_t)vp->v_data, buf, &len, fp->f_offset);
len               177 usr/server/fs/devfs/devfs_vnops.c 		*result = len;
len               178 usr/server/fs/devfs/devfs_vnops.c 	DPRINTF(("devfs_write: error=%d len=%d\n", error, len));
len               115 usr/server/fs/fatfs/fatfs_subr.c 	int len = 0;
len               132 usr/server/fs/fatfs/fatfs_subr.c 		if (++len > 8)
len               141 usr/server/fs/fatfs/fatfs_subr.c 	len = 0;
len               147 usr/server/fs/fatfs/fatfs_subr.c 		if (++len > 3)
len               355 usr/server/fs/fifofs/fifo_vnops.c 	size_t len;
len               371 usr/server/fs/fifofs/fifo_vnops.c 	len = strlen(name) + 1;
len               372 usr/server/fs/fifofs/fifo_vnops.c 	np->fn_name = malloc(len);
len               379 usr/server/fs/fifofs/fifo_vnops.c 	strlcpy(np->fn_name, name, len);
len               183 usr/server/fs/ramfs/ramfs_vnops.c 	size_t len;
len               186 usr/server/fs/ramfs/ramfs_vnops.c 	len = strlen(name);
len               187 usr/server/fs/ramfs/ramfs_vnops.c 	if (len <= np->rn_namelen) {
len               192 usr/server/fs/ramfs/ramfs_vnops.c 		tmp = malloc(len + 1);
len               195 usr/server/fs/ramfs/ramfs_vnops.c 		strlcpy(tmp, name, len + 1);
len               199 usr/server/fs/ramfs/ramfs_vnops.c 	np->rn_namelen = len;
len               207 usr/server/fs/ramfs/ramfs_vnops.c 	size_t len;
len               215 usr/server/fs/ramfs/ramfs_vnops.c 	len = strlen(name);
len               219 usr/server/fs/ramfs/ramfs_vnops.c 		if (np->rn_namelen == len &&
len               220 usr/server/fs/ramfs/ramfs_vnops.c 		    memcmp(name, np->rn_name, len) == 0) {
len               287 usr/server/fs/vfs/vfs_mount.c 	size_t len = 0;
len               292 usr/server/fs/vfs/vfs_mount.c 		len++;
len               297 usr/server/fs/vfs/vfs_mount.c 	if (len == 1 && *(path - 1) == '/')
len               301 usr/server/fs/vfs/vfs_mount.c 		return len;
len               316 usr/server/fs/vfs/vfs_mount.c 	size_t len, max_len = 0;
len               327 usr/server/fs/vfs/vfs_mount.c 		len = count_match(path, tmp->m_path);
len               328 usr/server/fs/vfs/vfs_mount.c 		if (len > max_len) {
len               329 usr/server/fs/vfs/vfs_mount.c 			max_len = len;
len               114 usr/server/fs/vfs/vfs_security.c 	size_t	len;			/* length of directory name */
len               174 usr/server/fs/vfs/vfs_security.c 		if (!strncmp(path, map->path, map->len)) {
len               222 usr/server/fs/vfs/vfs_security.c 		if (!strncmp(path, map->path, map->len)) {
len               572 usr/server/fs/vfs/vfs_syscalls.c 	size_t len;
len               587 usr/server/fs/vfs/vfs_syscalls.c 	len = strlen(dest);
len               588 usr/server/fs/vfs/vfs_syscalls.c 	if (!strncmp(src, dest, len)) {
len               227 usr/server/fs/vfs/vfs_task.c 	size_t len = 0;
len               231 usr/server/fs/vfs/vfs_task.c 	len = strlen(path);
len               232 usr/server/fs/vfs/vfs_task.c 	if (len >= PATH_MAX)
len               234 usr/server/fs/vfs/vfs_task.c 	if (strlen(cwd) + len >= PATH_MAX)
len               238 usr/server/fs/vfs/vfs_task.c 	end = src + len;
len               241 usr/server/fs/vfs/vfs_task.c 		len++;
len               244 usr/server/fs/vfs/vfs_task.c 		len = strlen(cwd);
len               245 usr/server/fs/vfs/vfs_task.c 		tgt += len;
len               246 usr/server/fs/vfs/vfs_task.c 		if (len > 1 && path[0] != '.') {
len               249 usr/server/fs/vfs/vfs_task.c 			len++;
len               258 usr/server/fs/vfs/vfs_task.c 			if (len >= 2) {
len               259 usr/server/fs/vfs/vfs_task.c 				len -= 2;
len               263 usr/server/fs/vfs/vfs_task.c 					len--;
len               265 usr/server/fs/vfs/vfs_task.c 				if (len == 0) {
len               267 usr/server/fs/vfs/vfs_task.c 					len++;
len               275 usr/server/fs/vfs/vfs_task.c 				len++;
len               280 usr/server/fs/vfs/vfs_task.c 		if (len > 0 && *(tgt - 1) != '/') {
len               282 usr/server/fs/vfs/vfs_task.c 			len++;
len               165 usr/server/fs/vfs/vfs_vnode.c 	size_t len;
len               173 usr/server/fs/vfs/vfs_vnode.c 	len = strlen(path) + 1;
len               174 usr/server/fs/vfs/vfs_vnode.c 	if (!(vp->v_path = malloc(len))) {
len               181 usr/server/fs/vfs/vfs_vnode.c 	strlcpy(vp->v_path, path, len);
len                43 usr/test/console/console.c 	size_t len;
len                53 usr/test/console/console.c 	len = 5;
len                54 usr/test/console/console.c 	device_write(console_dev, buf, &len, 0);
len                59 usr/test/console/console.c 	len = 1;
len                61 usr/test/console/console.c 		device_write(console_dev, buf, &len, 0);
len                68 usr/test/console/console.c 	len = 100;
len                69 usr/test/console/console.c 	error = device_write(console_dev, 0, &len, 0);
len                47 usr/test/fifo/fifo.c 	int pid, fd1, fd2, len;
len                72 usr/test/fifo/fifo.c 			len = read(fd1, buf1, sizeof(buf1) - 1);
len                73 usr/test/fifo/fifo.c 			if (len == 0)
len                75 usr/test/fifo/fifo.c 			buf1[len] = '\0';
len                76 usr/test/fifo/fifo.c 			printf("child: length=%d data=%s\n", len, buf1);
len                42 usr/test/kbd/kbd.c 	size_t len;
len                51 usr/test/kbd/kbd.c 		len = 1;
len                52 usr/test/kbd/kbd.c 		device_read(tty_dev, buf, &len, 0);
len                91 usr/test/kmon/kmon.c 	int c, len = 0;
len                96 usr/test/kmon/kmon.c 		if (c == '\n' || len > LINE_MAX) {
len               102 usr/test/kmon/kmon.c 		len++;
len                43 usr/test/time/time.c 	size_t len;
len                50 usr/test/time/time.c 	len = sizeof(sec);
len                51 usr/test/time/time.c 	error = device_read(rtc_dev, &sec, &len, 0);
len                55 usr/test/zero/zero.c 	size_t len;
len                69 usr/test/zero/zero.c 	len = 50;
len                70 usr/test/zero/zero.c 	error = device_read(zero_dev, buf, &len, 0);