buf 46 bsp/boot/common/printf.c char buf[10]; buf 75 bsp/boot/common/printf.c s = buf; buf 92 bsp/boot/common/printf.c while (--s >= buf) buf 90 bsp/drv/dev/base/cons.c cons_read(device_t dev, char *buf, size_t *nbyte, int blkno) buf 95 bsp/drv/dev/base/cons.c return consdev->devops->read(dev, buf, nbyte, blkno); buf 99 bsp/drv/dev/base/cons.c cons_write(device_t dev, char *buf, size_t *nbyte, int blkno) buf 104 bsp/drv/dev/base/cons.c return consdev->devops->write(dev, buf, nbyte, blkno); buf 453 bsp/drv/dev/base/tty.c tty_read(struct tty *tp, char *buf, size_t *nbyte) buf 483 bsp/drv/dev/base/tty.c if (copyout(&c, buf, 1)) buf 487 bsp/drv/dev/base/tty.c buf++; buf 497 bsp/drv/dev/base/tty.c tty_write(struct tty *tp, char *buf, size_t *nbyte) buf 514 bsp/drv/dev/base/tty.c if (copyin(buf, &c, 1)) buf 517 bsp/drv/dev/base/tty.c buf++; buf 117 bsp/drv/dev/base/wscons.c wscons_read(device_t dev, char *buf, size_t *nbyte, int blkno) buf 121 bsp/drv/dev/base/wscons.c return tty_read(tty, buf, nbyte); buf 125 bsp/drv/dev/base/wscons.c wscons_write(device_t dev, char *buf, size_t *nbyte, int blkno) buf 129 bsp/drv/dev/base/wscons.c return tty_write(tty, buf, nbyte); buf 316 bsp/drv/dev/block/fdd.c dma_setup(sc->dma, irp->buf, io_size, read); buf 518 bsp/drv/dev/block/fdd.c fdd_rw(struct fdd_softc *sc, int cmd, char *buf, u_long blksz, int blkno) buf 524 bsp/drv/dev/block/fdd.c cmd, buf, blksz, blkno)); buf 530 bsp/drv/dev/block/fdd.c irp->buf = buf; buf 558 bsp/drv/dev/block/fdd.c fdd_read(device_t dev, char *buf, size_t *nbyte, int blkno) buf 565 bsp/drv/dev/block/fdd.c DPRINTF(("fdd_read: buf=%x nbyte=%d blkno=%x\n", buf, *nbyte, blkno)); buf 572 bsp/drv/dev/block/fdd.c if ((kbuf = kmem_map(buf, *nbyte)) == NULL) buf 614 bsp/drv/dev/block/fdd.c fdd_write(device_t dev, char *buf, size_t *nbyte, int blkno) buf 621 bsp/drv/dev/block/fdd.c DPRINTF(("fdd_write: buf=%x nbyte=%d blkno=%x\n", buf, *nbyte, blkno)); buf 628 bsp/drv/dev/block/fdd.c if ((kbuf = kmem_map(buf, *nbyte)) == NULL) buf 679 bsp/drv/dev/block/fdd.c char *buf; buf 696 bsp/drv/dev/block/fdd.c buf = dma_alloc(TRACK_SIZE + SECTOR_SIZE); buf 697 bsp/drv/dev/block/fdd.c ASSERT(buf != NULL); buf 698 bsp/drv/dev/block/fdd.c sc->rbuf = buf; buf 699 bsp/drv/dev/block/fdd.c sc->wbuf = buf + TRACK_SIZE; buf 78 bsp/drv/dev/block/ramdisk.c ramdisk_read(device_t dev, char *buf, size_t *nbyte, int blkno) buf 86 bsp/drv/dev/block/ramdisk.c buf, *nbyte, blkno)); buf 98 bsp/drv/dev/block/ramdisk.c if ((kbuf = kmem_map(buf, nr_read)) == NULL) { buf 109 bsp/drv/dev/block/ramdisk.c ramdisk_write(device_t dev, char *buf, size_t *nbyte, int blkno) buf 117 bsp/drv/dev/block/ramdisk.c buf, *nbyte, blkno)); buf 127 bsp/drv/dev/block/ramdisk.c if ((kbuf = kmem_map(buf, nr_write)) == NULL) buf 194 bsp/drv/dev/input/psaux.c psaux_read(device_t dev, char *buf, size_t *nbyte, int blkno) buf 63 bsp/drv/dev/misc/null.c null_read(device_t dev, char *buf, size_t *nbyte, int blkno) buf 74 bsp/drv/dev/misc/null.c null_write(device_t dev, char *buf, size_t *nbyte, int blkno) buf 59 bsp/drv/dev/misc/random.c random_read(device_t dev, char *buf, size_t *nbyte, int blkno) buf 63 bsp/drv/dev/misc/zero.c zero_read(device_t dev, char *buf, size_t *nbyte, int blkno) buf 68 bsp/drv/dev/misc/zero.c if ((p = kmem_map(buf, *nbyte)) == NULL) buf 79 bsp/drv/dev/misc/zero.c zero_write(device_t dev, char *buf, size_t *nbyte, int blkno) buf 95 bsp/drv/dev/serial/serial.c serial_read(device_t dev, char *buf, size_t *nbyte, int blkno) buf 99 bsp/drv/dev/serial/serial.c return tty_read(&sc->tty, buf, nbyte); buf 103 bsp/drv/dev/serial/serial.c serial_write(device_t dev, char *buf, size_t *nbyte, int blkno) buf 107 bsp/drv/dev/serial/serial.c return tty_write(&sc->tty, buf, nbyte); buf 59 bsp/drv/include/ddi.h void *buf; /* I/O buffer */ buf 157 bsp/hal/arm/gba/diag.c diag_puts(char *buf) buf 160 bsp/hal/arm/gba/diag.c while (*buf) buf 161 bsp/hal/arm/gba/diag.c screen_putc(*buf++); buf 57 bsp/hal/arm/integrator/diag.c diag_puts(char *buf) buf 60 bsp/hal/arm/integrator/diag.c while (*buf) { buf 61 bsp/hal/arm/integrator/diag.c if (*buf == '\n') buf 63 bsp/hal/arm/integrator/diag.c serial_putc(*buf++); buf 53 include/ipc/exec.h char buf[ARG_MAX]; /* string for arg/env */ buf 114 include/ipc/fs.h char *buf; /* i/o buffer */ buf 155 include/ipc/fs.h char buf[IOCPARM_MAX]; /* parameter buffer */ buf 40 include/sys/buf.h struct buf { buf 59 include/sys/buf.h struct buf *getblk(dev_t, int); buf 60 include/sys/buf.h int bread(dev_t, int, struct buf **); buf 61 include/sys/buf.h int bwrite(struct buf *); buf 62 include/sys/buf.h void bdwrite(struct buf *); buf 64 include/sys/buf.h void brelse(struct buf *); buf 65 include/sys/buf.h void bflush(struct buf *); buf 128 include/sys/prex.h int device_read(device_t dev, void *buf, size_t *nbyte, int blkno); buf 129 include/sys/prex.h int device_write(device_t dev, void *buf, size_t *nbyte, int blkno); buf 153 include/sys/prex.h int sys_info(int type, void *buf); buf 121 sys/kern/debug.c getlog(char *buf) buf 144 sys/kern/debug.c if (copyout(&c, buf, 1)) { buf 149 sys/kern/debug.c buf++; buf 362 sys/kern/device.c device_read(device_t dev, void *buf, size_t *nbyte, int blkno) buf 368 sys/kern/device.c if (!user_area(buf)) buf 381 sys/kern/device.c error = (*ops->read)(dev, buf, &count, blkno); buf 395 sys/kern/device.c device_write(device_t dev, void *buf, size_t *nbyte, int blkno) buf 401 sys/kern/device.c if (!user_area(buf)) buf 414 sys/kern/device.c error = (*ops->write)(dev, buf, &count, blkno); buf 56 sys/kern/system.c sysinfo(int type, void *buf) buf 64 sys/kern/system.c memcpy(buf, &kerninfo, sizeof(kerninfo)); buf 67 sys/kern/system.c page_info(buf); buf 70 sys/kern/system.c timer_info(buf); buf 73 sys/kern/system.c error = thread_info(buf); buf 76 sys/kern/system.c error = device_info(buf); buf 79 sys/kern/system.c error = task_info(buf); buf 82 sys/kern/system.c error = vm_info(buf); buf 85 sys/kern/system.c error = irq_info(buf); buf 99 sys/kern/system.c sys_info(int type, void *buf) buf 104 sys/kern/system.c if (buf == NULL || !user_area(buf)) buf 139 sys/kern/system.c error = copyin(buf, &infobuf, bufsz); buf 143 sys/kern/system.c error = copyout(&infobuf, buf, bufsz); buf 161 sys/kern/system.c char buf[DBGMSGSZ]; buf 163 sys/kern/system.c if (copyinstr(str, buf, DBGMSGSZ)) buf 166 sys/kern/system.c printf("%s", buf); buf 211 sys/kern/system.c char buf[DBGMSGSZ]; buf 214 sys/kern/system.c copyinstr(str, buf, DBGMSGSZ - 20); buf 71 sys/lib/vsprintf.c vsprintf(char *buf, const char *fmt, va_list args) buf 79 sys/lib/vsprintf.c for (p = buf; *fmt; fmt++) { buf 44 usr/bin/date/date.c char buf[201]; buf 51 usr/bin/date/date.c strftime(buf, sizeof(buf), format, localtime(&tval)); buf 52 usr/bin/date/date.c printf("%s\n", buf); buf 44 usr/bin/dmesg/dmesg.c char *buf; buf 53 usr/bin/dmesg/dmesg.c if ((buf = malloc(size)) == NULL) buf 56 usr/bin/dmesg/dmesg.c if (sys_debug(DBGC_GETLOG, buf) != 0) { buf 57 usr/bin/dmesg/dmesg.c free(buf); buf 61 usr/bin/dmesg/dmesg.c if (*buf == '\0') buf 63 usr/bin/dmesg/dmesg.c putc(*buf, stdout); buf 64 usr/bin/dmesg/dmesg.c buf++; buf 66 usr/bin/dmesg/dmesg.c free(buf); buf 259 usr/bin/ls/ls.c char buf[PATH_MAX]; buf 279 usr/bin/ls/ls.c buf[0] = 0; buf 280 usr/bin/ls/ls.c strlcpy(buf, path, sizeof(buf)); buf 281 usr/bin/ls/ls.c buf[sizeof(buf) - 1] = '\0'; buf 287 usr/bin/ls/ls.c strlcat(buf, "/", sizeof(buf)); buf 288 usr/bin/ls/ls.c strlcat(buf, entry->d_name, sizeof(buf)); buf 290 usr/bin/ls/ls.c if (stat(buf, &st) == -1 && errno != EACCES) buf 37 usr/lib/libc/gen/confstr.c confstr(name, buf, len) buf 39 usr/lib/libc/gen/confstr.c char *buf; buf 44 usr/lib/libc/gen/confstr.c if (len != 0 && buf != NULL) { buf 45 usr/lib/libc/gen/confstr.c strncpy(buf, _PATH_DEFPATH, sizeof(_PATH_DEFPATH)); buf 50 usr/lib/libc/gen/execvp.c char buf[PATH_MAX]; buf 64 usr/lib/libc/gen/execvp.c bp = buf; buf 90 usr/lib/libc/gen/execvp.c if (lp + ln + 2 > sizeof(buf)) buf 92 usr/lib/libc/gen/execvp.c memcpy(buf, p, lp); buf 93 usr/lib/libc/gen/execvp.c buf[lp] = '/'; buf 94 usr/lib/libc/gen/execvp.c memcpy(buf + lp + 1, name, ln); buf 95 usr/lib/libc/gen/execvp.c buf[lp + ln + 1] = '\0'; buf 47 usr/lib/libc/gen/getpass.c static char buf[PASSWORD_LEN + 2]; buf 69 usr/lib/libc/gen/getpass.c for (p = buf; (ch = getc(fp)) != EOF && ch != '\n';) { buf 70 usr/lib/libc/gen/getpass.c if (p < buf + PASSWORD_LEN + 1) buf 82 usr/lib/libc/gen/getpass.c return(buf); buf 43 usr/lib/libc/stdio/fgets.c fgets(buf, n, fp) buf 44 usr/lib/libc/stdio/fgets.c char *buf; buf 51 usr/lib/libc/stdio/fgets.c s = buf; buf 57 usr/lib/libc/stdio/fgets.c if (c < 0 && s == buf) buf 60 usr/lib/libc/stdio/fgets.c return (buf); buf 38 usr/lib/libc/stdio/fread.c fread(buf, size, count, fp) buf 39 usr/lib/libc/stdio/fread.c void *buf; buf 58 usr/lib/libc/stdio/fread.c p = buf; buf 41 usr/lib/libc/stdio/fwrite.c fwrite(buf, size, count, fp) buf 42 usr/lib/libc/stdio/fwrite.c const void *buf; buf 46 usr/lib/libc/stdio/fwrite.c unsigned char *p = (unsigned char *)buf; buf 37 usr/lib/libc/stdio/gets.c gets(buf) buf 38 usr/lib/libc/stdio/gets.c char *buf; buf 43 usr/lib/libc/stdio/gets.c for (s = buf; (c = getchar()) != '\n';) buf 45 usr/lib/libc/stdio/gets.c if (s == buf) buf 52 usr/lib/libc/stdio/gets.c return (buf); buf 37 usr/lib/libc/stdio/setbuf.c setbuf(fp, buf) buf 39 usr/lib/libc/stdio/setbuf.c char *buf; buf 41 usr/lib/libc/stdio/setbuf.c (void) setvbuf(fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ); buf 36 usr/lib/libc/stdio/setbuffer.c setbuffer(fp, buf, size) buf 38 usr/lib/libc/stdio/setbuffer.c char *buf; buf 42 usr/lib/libc/stdio/setbuffer.c (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size); buf 42 usr/lib/libc/stdio/setvbuf.c setvbuf(fp, buf, mode, size) buf 44 usr/lib/libc/stdio/setvbuf.c char *buf; buf 72 usr/lib/libc/stdio/setvbuf.c if (buf != NULL && (flags & __SMBF)) buf 87 usr/lib/libc/stdio/setvbuf.c if (buf == NULL) buf 90 usr/lib/libc/stdio/setvbuf.c fp->_bf._base = fp->_p = (unsigned char *)buf; buf 43 usr/lib/libc/stdio/stdio.c __sread(fp, buf, n) buf 45 usr/lib/libc/stdio/stdio.c char *buf; buf 48 usr/lib/libc/stdio/stdio.c return (read(fp->_file, buf, n)); buf 52 usr/lib/libc/stdio/stdio.c __swrite(fp, buf, n) buf 54 usr/lib/libc/stdio/stdio.c char const *buf; buf 59 usr/lib/libc/stdio/stdio.c return (write(fp->_file, buf, n)); buf 48 usr/lib/libc/stdio/tmpfile.c char buf[sizeof(_PATH_TMP) + sizeof(TRAILER)]; buf 50 usr/lib/libc/stdio/tmpfile.c (void)memcpy(buf, _PATH_TMP, sizeof(_PATH_TMP) - 1); buf 51 usr/lib/libc/stdio/tmpfile.c (void)memcpy(buf + sizeof(_PATH_TMP) - 1, TRAILER, sizeof(TRAILER)); buf 56 usr/lib/libc/stdio/tmpfile.c fd = mkstemp(buf); buf 58 usr/lib/libc/stdio/tmpfile.c (void)unlink(buf); buf 43 usr/lib/libc/stdio/tmpnam.c static char buf[L_tmpnam]; buf 46 usr/lib/libc/stdio/tmpnam.c s = buf; buf 79 usr/lib/libc/stdio/vfprintf.c unsigned char buf[BUFSIZ]; buf 86 usr/lib/libc/stdio/vfprintf.c fake._bf._base = fake._p = buf; buf 87 usr/lib/libc/stdio/vfprintf.c fake._bf._size = fake._w = sizeof(buf); buf 206 usr/lib/libc/stdio/vfprintf.c char buf[BUF]; /* space for %c, %[diouxX], %[eEfgG] */ buf 366 usr/lib/libc/stdio/vfprintf.c *(cp = buf) = va_arg(ap, int); buf 466 usr/lib/libc/stdio/vfprintf.c cp = buf + BUF; buf 470 usr/lib/libc/stdio/vfprintf.c size = buf + BUF - cp; buf 476 usr/lib/libc/stdio/vfprintf.c cp = buf; buf 101 usr/lib/libc/stdio/vfscanf.c char buf[BUF]; /* buffer for numeric conversions */ buf 397 usr/lib/libc/stdio/vfscanf.c if (width == 0 || width > sizeof(buf) - 1) buf 398 usr/lib/libc/stdio/vfscanf.c width = sizeof(buf) - 1; buf 401 usr/lib/libc/stdio/vfscanf.c if (--width > sizeof(buf) - 2) buf 402 usr/lib/libc/stdio/vfscanf.c width = sizeof(buf) - 2; buf 406 usr/lib/libc/stdio/vfscanf.c for (p = buf; width; width--) { buf 473 usr/lib/libc/stdio/vfscanf.c if (flags & PFXOK && p == buf + 1) { buf 503 usr/lib/libc/stdio/vfscanf.c if (p > buf) buf 516 usr/lib/libc/stdio/vfscanf.c res = (*ccfn)(buf, (char **)NULL, base); buf 527 usr/lib/libc/stdio/vfscanf.c nread += p - buf; buf 15 usr/lib/libc/time/asctime_r.c asctime_r(timeptr, buf) buf 17 usr/lib/libc/time/asctime_r.c char * buf; buf 36 usr/lib/libc/time/asctime_r.c (void)sprintf(buf, buf 42 usr/lib/libc/time/asctime_r.c return buf; buf 249 usr/lib/libc/time/strftime.c static char buf[15]; buf 257 usr/lib/libc/time/strftime.c for (p = buf + sizeof(buf) - 2; s > 0 && p > buf; s /= 10) buf 266 usr/lib/libc/time/strftime.c static char buf[10]; buf 269 usr/lib/libc/time/strftime.c for (p = buf + sizeof(buf) - 2; n > 0 && p > buf; n /= 10, --digits) buf 271 usr/lib/libc/time/strftime.c while (p > buf && digits-- > 0) buf 61 usr/lib/libsa/_stdio.c __console_write(char *buf, size_t len) buf 67 usr/lib/libsa/_stdio.c device_write(__console_dev, buf, &len, 0); buf 35 usr/lib/libsa/printf.c extern void __console_write(char *buf, size_t len); buf 45 usr/lib/libsa/printf.c char buf[LINE_MAX]; buf 48 usr/lib/libsa/printf.c len = vsprintf(buf, fmt, args); buf 49 usr/lib/libsa/printf.c __console_write((char *)buf, (size_t)len); buf 33 usr/lib/libsa/putchar.c extern void __console_write(char *buf, size_t len); buf 34 usr/lib/libsa/puts.c extern void __console_write(char *buf, size_t len); buf 87 usr/lib/libsa/vsprintf.c vsprintf(char *buf, const char *fmt, va_list args) buf 96 usr/lib/libsa/vsprintf.c for (p = buf; *fmt && (size < LINE_MAX); fmt++, size++) { buf 162 usr/lib/libsa/vsprintf.c return (p - buf); buf 166 usr/lib/libsa/vsprintf.c sprintf(char *buf, const char *fmt, ...) buf 172 usr/lib/libsa/vsprintf.c i = vsprintf(buf, fmt, args); buf 87 usr/lib/posix/exec/execve.c dest = msg.buf; buf 39 usr/lib/posix/file/getcwd.c getcwd(char *buf, size_t size) buf 43 usr/lib/posix/file/getcwd.c if (size == 0 || buf == NULL) { buf 50 usr/lib/posix/file/getcwd.c strlcpy(buf, m.path, PATH_MAX); buf 51 usr/lib/posix/file/getcwd.c return buf; buf 75 usr/lib/posix/file/ioctl.c *((int *)m.buf) = (int)argp; buf 77 usr/lib/posix/file/ioctl.c memcpy(&m.buf, argp, size); buf 91 usr/lib/posix/file/ioctl.c retval = *((int *)m.buf); buf 93 usr/lib/posix/file/ioctl.c memcpy(argp, &m.buf, size); buf 38 usr/lib/posix/file/read.c read(int fd, void *buf, size_t len) buf 44 usr/lib/posix/file/read.c m.buf = buf; buf 37 usr/lib/posix/file/write.c write(int fd, void *buf, size_t len) buf 43 usr/lib/posix/file/write.c m.buf = buf; buf 36 usr/lib/posix/gen/syslog.c extern int vsprintf(char *buf, const char *fmt, va_list args); buf 46 usr/lib/posix/gen/syslog.c char buf[BUF_LEN]; buf 50 usr/lib/posix/gen/syslog.c vsprintf(buf, fmt, args); buf 51 usr/lib/posix/gen/syslog.c sys_log(buf); buf 36 usr/lib/prex/gen/dassert.c char buf[128]; buf 38 usr/lib/prex/gen/dassert.c sprintf(buf, "assertion \"%s\" failed: file \"%s\", line %d\n", buf 40 usr/lib/prex/gen/dassert.c sys_panic(buf); buf 34 usr/lib/prex/gen/dprintf.c extern int vsprintf(char *buf, const char *fmt, va_list args); buf 39 usr/lib/prex/gen/dprintf.c char buf[LINE_MAX]; buf 43 usr/lib/prex/gen/dprintf.c vsprintf(buf, fmt, args); buf 44 usr/lib/prex/gen/dprintf.c sys_log(buf); buf 34 usr/lib/prex/gen/panic.c extern int vsprintf(char *buf, const char *fmt, va_list args); buf 39 usr/lib/prex/gen/panic.c char buf[LINE_MAX]; buf 43 usr/lib/prex/gen/panic.c vsprintf(buf, fmt, args); buf 44 usr/lib/prex/gen/panic.c sys_panic(buf); buf 126 usr/sbin/lock/lock.c char buf[PASSWORD_LEN + 1]; buf 128 usr/sbin/lock/lock.c for (buf[0] = '\0';;) { buf 139 usr/sbin/lock/lock.c strlcpy(buf, p, sizeof(buf)); buf 140 usr/sbin/lock/lock.c if (!strcmp(buf, getpass("Retype new passcode:"))) buf 148 usr/sbin/lock/lock.c fputs(buf, fp); buf 209 usr/server/boot/boot.c dest = msg.buf; buf 198 usr/server/exec/exec_elf.c char *buf; buf 207 usr/server/exec/exec_elf.c if ((buf = malloc(shdr_size)) == NULL) { buf 216 usr/server/exec/exec_elf.c if (read(fd, buf, shdr_size) < 0) { buf 222 usr/server/exec/exec_elf.c shdr = (Elf32_Shdr *)buf; buf 246 usr/server/exec/exec_elf.c shdr = (Elf32_Shdr *)buf; buf 296 usr/server/exec/exec_elf.c shdr = (Elf32_Shdr *)buf; buf 310 usr/server/exec/exec_elf.c shdr = (Elf32_Shdr *)buf; buf 321 usr/server/exec/exec_elf.c free(buf); buf 352 usr/server/exec/exec_execve.c memcpy((char *)sp, (char *)&msg->buf, msg->bufsz); buf 74 usr/server/fs/arfs/arfs_vfsops.c char *buf; buf 79 usr/server/fs/arfs/arfs_vfsops.c if ((buf = malloc(BSIZE)) == NULL) buf 84 usr/server/fs/arfs/arfs_vfsops.c error = device_read((device_t)mp->m_dev, buf, &size, 0); buf 91 usr/server/fs/arfs/arfs_vfsops.c if (strncmp(buf, ARMAG, SARMAG)) { buf 100 usr/server/fs/arfs/arfs_vfsops.c free(buf); buf 120 usr/server/fs/arfs/arfs_vnops.c struct buf *bp; buf 206 usr/server/fs/arfs/arfs_vnops.c arfs_read(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result) buf 212 usr/server/fs/arfs/arfs_vnops.c struct buf *bp; buf 235 usr/server/fs/arfs/arfs_vnops.c file_pos, buf, size)); buf 247 usr/server/fs/arfs/arfs_vnops.c memcpy(buf, bp->b_data + buf_pos, nr_copy); buf 258 usr/server/fs/arfs/arfs_vnops.c buf = (void *)((u_long)buf + nr_copy); buf 156 usr/server/fs/devfs/devfs_vnops.c devfs_read(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result) buf 162 usr/server/fs/devfs/devfs_vnops.c error = device_read((device_t)vp->v_data, buf, &len, fp->f_offset); buf 169 usr/server/fs/devfs/devfs_vnops.c devfs_write(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result) buf 175 usr/server/fs/devfs/devfs_vnops.c error = device_write((device_t)vp->v_data, buf, &len, fp->f_offset); buf 47 usr/server/fs/fatfs/fatfs_fat.c char *buf = fmp->fat_buf; buf 49 usr/server/fs/fatfs/fatfs_fat.c struct buf *bp; buf 69 usr/server/fs/fatfs/fatfs_fat.c memcpy(buf, bp->b_data, SEC_SIZE); buf 78 usr/server/fs/fatfs/fatfs_fat.c memcpy(buf + SEC_SIZE, bp->b_data, SEC_SIZE); buf 90 usr/server/fs/fatfs/fatfs_fat.c char *buf = fmp->fat_buf; buf 92 usr/server/fs/fatfs/fatfs_fat.c struct buf *bp; buf 107 usr/server/fs/fatfs/fatfs_fat.c memcpy(bp->b_data, buf, SEC_SIZE); buf 116 usr/server/fs/fatfs/fatfs_fat.c memcpy(bp->b_data, buf + SEC_SIZE, SEC_SIZE); buf 170 usr/server/fs/fatfs/fatfs_fat.c char *buf = fmp->fat_buf; buf 188 usr/server/fs/fatfs/fatfs_fat.c tmp = *((uint16_t *)(buf + offset)); buf 197 usr/server/fs/fatfs/fatfs_fat.c *((uint16_t *)(buf + offset)) = val; buf 47 usr/server/fs/fatfs/fatfs_node.c struct buf *bp; buf 63 usr/server/fs/fatfs/fatfs_node.c struct buf *bp; buf 165 usr/server/fs/fatfs/fatfs_vnops.c fatfs_read(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result) buf 211 usr/server/fs/fatfs/fatfs_vnops.c memcpy(buf, fmp->io_buf + buf_pos, nr_copy); buf 223 usr/server/fs/fatfs/fatfs_vnops.c buf = (void *)((u_long)buf + nr_copy); buf 236 usr/server/fs/fatfs/fatfs_vnops.c fatfs_write(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result) buf 301 usr/server/fs/fatfs/fatfs_vnops.c memcpy(fmp->io_buf + buf_pos, buf, nr_copy); buf 317 usr/server/fs/fatfs/fatfs_vnops.c buf = (void *)((u_long)buf + nr_copy); buf 219 usr/server/fs/fifofs/fifo_vnops.c fifo_read(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result) buf 222 usr/server/fs/fifofs/fifo_vnops.c char *p = buf; buf 264 usr/server/fs/fifofs/fifo_vnops.c fifo_write(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result) buf 267 usr/server/fs/fifofs/fifo_vnops.c char *p = buf; buf 334 usr/server/fs/ramfs/ramfs_vnops.c ramfs_read(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result) buf 353 usr/server/fs/ramfs/ramfs_vnops.c memcpy(buf, np->rn_buf + off, size); buf 361 usr/server/fs/ramfs/ramfs_vnops.c ramfs_write(vnode_t vp, file_t fp, void *buf, size_t size, size_t *result) buf 404 usr/server/fs/ramfs/ramfs_vnops.c memcpy(np->rn_buf + file_pos, buf, size); buf 217 usr/server/fs/vfs/main.c void *buf; buf 224 usr/server/fs/vfs/main.c if ((error = vm_map(msg->hdr.task, msg->buf, size, &buf)) != 0) buf 227 usr/server/fs/vfs/main.c error = sys_read(fp, buf, size, &bytes); buf 229 usr/server/fs/vfs/main.c vm_free(task_self(), buf); buf 237 usr/server/fs/vfs/main.c void *buf; buf 244 usr/server/fs/vfs/main.c if ((error = vm_map(msg->hdr.task, msg->buf, size, &buf)) != 0) buf 247 usr/server/fs/vfs/main.c error = sys_write(fp, buf, size, &bytes); buf 249 usr/server/fs/vfs/main.c vm_free(task_self(), buf); buf 261 usr/server/fs/vfs/main.c return sys_ioctl(fp, msg->request, msg->buf); buf 96 usr/server/fs/vfs/vfs.h int sys_read(file_t fp, void *buf, size_t size, size_t *result); buf 97 usr/server/fs/vfs/vfs.h int sys_write(file_t fp, void *buf, size_t size, size_t *result); buf 99 usr/server/fs/vfs/vfs.h int sys_ioctl(file_t fp, u_long request, void *buf); buf 75 usr/server/fs/vfs/vfs_bio.c static struct buf buf_table[NBUFS]; buf 85 usr/server/fs/vfs/vfs_bio.c bio_insert_head(struct buf *bp) buf 96 usr/server/fs/vfs/vfs_bio.c bio_insert_tail(struct buf *bp) buf 107 usr/server/fs/vfs/vfs_bio.c bio_remove(struct buf *bp) buf 118 usr/server/fs/vfs/vfs_bio.c static struct buf * buf 121 usr/server/fs/vfs/vfs_bio.c struct buf *bp; buf 125 usr/server/fs/vfs/vfs_bio.c bp = list_entry(list_first(&free_list), struct buf, b_link); buf 133 usr/server/fs/vfs/vfs_bio.c static struct buf * buf 136 usr/server/fs/vfs/vfs_bio.c struct buf *bp; buf 156 usr/server/fs/vfs/vfs_bio.c struct buf * buf 159 usr/server/fs/vfs/vfs_bio.c struct buf *bp; buf 200 usr/server/fs/vfs/vfs_bio.c brelse(struct buf *bp) buf 226 usr/server/fs/vfs/vfs_bio.c bread(dev_t dev, int blkno, struct buf **bpp) buf 228 usr/server/fs/vfs/vfs_bio.c struct buf *bp; buf 259 usr/server/fs/vfs/vfs_bio.c bwrite(struct buf *bp) buf 292 usr/server/fs/vfs/vfs_bio.c bdwrite(struct buf *bp) buf 306 usr/server/fs/vfs/vfs_bio.c bflush(struct buf *bp) buf 322 usr/server/fs/vfs/vfs_bio.c struct buf *bp; buf 346 usr/server/fs/vfs/vfs_bio.c struct buf *bp; buf 371 usr/server/fs/vfs/vfs_bio.c struct buf *bp; buf 152 usr/server/fs/vfs/vfs_lookup.c char buf[PATH_MAX]; buf 163 usr/server/fs/vfs/vfs_lookup.c strlcpy(buf, path, sizeof(buf)); buf 164 usr/server/fs/vfs/vfs_lookup.c file = strrchr(buf, '/'); buf 165 usr/server/fs/vfs/vfs_lookup.c if (!buf[0]) buf 167 usr/server/fs/vfs/vfs_lookup.c if (file == buf) buf 171 usr/server/fs/vfs/vfs_lookup.c dir = buf; buf 175 usr/server/fs/vfs/vfs_syscalls.c sys_read(file_t fp, void *buf, size_t size, size_t *count) buf 181 usr/server/fs/vfs/vfs_syscalls.c (u_int)fp, (u_int)buf, size)); buf 191 usr/server/fs/vfs/vfs_syscalls.c error = VOP_READ(vp, fp, buf, size, count); buf 197 usr/server/fs/vfs/vfs_syscalls.c sys_write(file_t fp, void *buf, size_t size, size_t *count) buf 203 usr/server/fs/vfs/vfs_syscalls.c (u_int)fp, (u_int)buf, size)); buf 213 usr/server/fs/vfs/vfs_syscalls.c error = VOP_WRITE(vp, fp, buf, size, count); buf 267 usr/server/fs/vfs/vfs_syscalls.c sys_ioctl(file_t fp, u_long request, void *buf) buf 279 usr/server/fs/vfs/vfs_syscalls.c error = VOP_IOCTL(vp, fp, request, buf); buf 41 usr/test/console/console.c char buf[] = "ABCDEFGHIJKLMN"; buf 54 usr/test/console/console.c device_write(console_dev, buf, &len, 0); buf 61 usr/test/console/console.c device_write(console_dev, buf, &len, 0); buf 41 usr/test/kbd/kbd.c char buf[] = "?\n"; buf 52 usr/test/kbd/kbd.c device_read(tty_dev, buf, &len, 0); buf 53 usr/test/kbd/kbd.c sys_log(buf); buf 49 usr/test/pipe/pipe.c char buf[256]; buf 58 usr/test/pipe/pipe.c read(fd[0], buf, sizeof(buf)); buf 59 usr/test/pipe/pipe.c printf("str=%s\n", buf); buf 67 usr/test/pipe/pipe.c char buf[256]; buf 82 usr/test/pipe/pipe.c read(fd[0], buf, 256); buf 84 usr/test/pipe/pipe.c printf("str=%s\n", buf); buf 38 usr/test/zero/zero.c static char buf[100]; buf 46 usr/test/zero/zero.c putchar(buf[i]); buf 61 usr/test/zero/zero.c buf[i] = '0' + i / 10; buf 70 usr/test/zero/zero.c error = device_read(zero_dev, buf, &len, 0);