fd 50 arch/i386/i386/conf.c bdev_decl(fd);
fd 66 arch/i386/i386/conf.c bdev_disk_init(NFD,fd), /* 2: floppy diskette */
fd 125 arch/i386/i386/conf.c cdev_decl(fd);
fd 214 arch/i386/i386/conf.c cdev_disk_init(NFD,fd), /* 9: floppy disk */
fd 432 arch/i386/i386/linux_machdep.c int fd;
fd 436 arch/i386/i386/linux_machdep.c fd = SCARG(uap, fd);
fd 437 arch/i386/i386/linux_machdep.c SCARG(&bia, fd) = SCARG(uap, fd);
fd 442 arch/i386/i386/linux_machdep.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 40 arch/i386/include/conf.h bdev_decl(fd);
fd 41 arch/i386/include/conf.h cdev_decl(fd);
fd 59 arch/i386/stand/boot/crt0.c #define ummap(a,l,p,f,fd,o) (caddr_t)syscall((quad_t)SYS_mmap,a,l,p,f,fd,0,o)
fd 241 arch/i386/stand/installboot/installboot.c int fd;
fd 248 arch/i386/stand/installboot/installboot.c if ((fd = open(fname, O_RDONLY)) < 0)
fd 251 arch/i386/stand/installboot/installboot.c if (read(fd, &eh, sizeof(eh)) != sizeof(eh))
fd 276 arch/i386/stand/installboot/installboot.c lseek(fd, eh.e_phoff, SEEK_SET);
fd 278 arch/i386/stand/installboot/installboot.c if (read(fd, ph, phsize) != phsize)
fd 293 arch/i386/stand/installboot/installboot.c lseek(fd, ph->p_offset, SEEK_SET);
fd 294 arch/i386/stand/installboot/installboot.c if (read(fd, bp, tdsize) != tdsize) {
fd 305 arch/i386/stand/installboot/installboot.c close(fd);
fd 310 arch/i386/stand/installboot/installboot.c devread(int fd, void *buf, daddr_t blk, size_t size, char *msg)
fd 312 arch/i386/stand/installboot/installboot.c if (lseek(fd, dbtob((off_t)blk), SEEK_SET) != dbtob((off_t)blk))
fd 315 arch/i386/stand/installboot/installboot.c if (read(fd, buf, size) != size)
fd 328 arch/i386/stand/installboot/installboot.c int fd;
fd 352 arch/i386/stand/installboot/installboot.c if ((fd = open(boot, O_RDONLY)) < 0)
fd 355 arch/i386/stand/installboot/installboot.c if (fstatfs(fd, &statfsbuf) != 0)
fd 363 arch/i386/stand/installboot/installboot.c if (read(fd, &eh, sizeof(eh)) != sizeof(eh))
fd 374 arch/i386/stand/installboot/installboot.c if (fsync(fd) != 0)
fd 377 arch/i386/stand/installboot/installboot.c if (fstat(fd, &statbuf) != 0)
fd 394 arch/i386/stand/installboot/installboot.c close(fd);
fd 166 arch/i386/stand/libsa/dev_i386.c ttyname(int fd)
fd 197 arch/i386/stand/pxeboot/devopen.c ttyname(int fd)
fd 80 arch/i386/stand/pxeboot/open.c int fd, i, error;
fd 84 arch/i386/stand/pxeboot/open.c for (fd = 0, f = files; fd < SOPEN_MAX; fd++, f++)
fd 106 arch/i386/stand/pxeboot/open.c return fd;
fd 113 arch/i386/stand/pxeboot/open.c return fd;
fd 122 arch/i386/stand/pxeboot/open.c return (fd);
fd 69 compat/bsdos/bsdos_ioctl.c SCARG(oap, fd) = SCARG(bap, fd);
fd 27 compat/bsdos/bsdos_syscallargs.h syscallarg(int) fd;
fd 144 compat/common/vfs_syscalls_25.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 156 compat/common/vfs_syscalls_35.c int fd = SCARG(uap, fd);
fd 163 compat/common/vfs_syscalls_35.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 182 compat/common/vfs_syscalls_43.c int fd = SCARG(uap, fd);
fd 189 compat/common/vfs_syscalls_43.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 225 compat/common/vfs_syscalls_43.c SCARG(&nuap, fd) = SCARG(uap, fd);
fd 279 compat/common/vfs_syscalls_43.c SCARG(&nuap, fd) = SCARG(uap, fd);
fd 351 compat/common/vfs_syscalls_43.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 130 compat/common/vm_43.c SCARG(&nargs, fd) = SCARG(uap, fd);
fd 622 compat/freebsd/freebsd_file.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 801 compat/freebsd/freebsd_file.c int fd, cmd, error;
fd 805 compat/freebsd/freebsd_file.c fd = SCARG(uap, fd);
fd 813 compat/freebsd/freebsd_file.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 69 compat/freebsd/freebsd_ioctl.c SCARG(rap, fd) = SCARG(uap, fd);
fd 147 compat/freebsd/freebsd_misc.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 113 compat/freebsd/freebsd_syscallargs.h syscallarg(int) fd;
fd 150 compat/freebsd/freebsd_syscallargs.h syscallarg(int) fd;
fd 189 compat/freebsd/freebsd_syscallargs.h syscallarg(int) fd;
fd 224 compat/freebsd/freebsd_syscallargs.h syscallarg(int) fd;
fd 242 compat/freebsd/freebsd_syscallargs.h syscallarg(int) fd;
fd 27 compat/hpux/hppa/hpux_syscallargs.h syscallarg(int) fd;
fd 33 compat/hpux/hppa/hpux_syscallargs.h syscallarg(int) fd;
fd 108 compat/hpux/hppa/hpux_syscallargs.h syscallarg(int) fd;
fd 113 compat/hpux/hppa/hpux_syscallargs.h syscallarg(int) fd;
fd 150 compat/hpux/hppa/hpux_syscallargs.h syscallarg(int) fd;
fd 179 compat/hpux/hppa/hpux_syscallargs.h syscallarg(int) fd;
fd 194 compat/hpux/hppa/hpux_syscallargs.h syscallarg(int) fd;
fd 214 compat/hpux/hppa/hpux_syscallargs.h syscallarg(int) fd;
fd 237 compat/hpux/hppa/hpux_syscallargs.h syscallarg(int) fd;
fd 243 compat/hpux/hppa/hpux_syscallargs.h syscallarg(int) fd;
fd 287 compat/hpux/hppa/hpux_syscallargs.h syscallarg(int) fd;
fd 293 compat/hpux/hpux_compat.c char *fp = &p->p_fd->fd_ofileflags[SCARG(uap, fd)];
fd 317 compat/hpux/hpux_compat.c char *fp = &p->p_fd->fd_ofileflags[SCARG(uap, fd)];
fd 341 compat/hpux/hpux_compat.c char *fp = &p->p_fd->fd_ofileflags[SCARG(uap, fd)];
fd 365 compat/hpux/hpux_compat.c char *fp = &p->p_fd->fd_ofileflags[SCARG(uap, fd)];
fd 762 compat/hpux/hpux_compat.c SCARG(&nargs, fd) = (SCARG(&nargs, flags) & MAP_ANON) ? -1 : SCARG(uap, fd);
fd 827 compat/hpux/hpux_compat.c return (getsettty(p, SCARG(uap, fd), com, SCARG(uap, data)));
fd 829 compat/hpux/hpux_compat.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 868 compat/hpux/hpux_compat.c char *ofp = &fdp->fd_ofileflags[SCARG(uap, fd)];
fd 926 compat/hpux/hpux_compat.c error = hpux_termio(SCARG(uap, fd), com, dt, p);
fd 219 compat/hpux/hpux_file.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 223 compat/hpux/hpux_file.c pop = &p->p_fd->fd_ofileflags[SCARG(uap, fd)];
fd 352 compat/hpux/hpux_file.c SCARG(&fa, fd) = SCARG(uap, fd);
fd 405 compat/hpux/hpux_file.c SCARG(&fsa, fd) = SCARG(uap, fd);
fd 513 compat/hpux/hpux_file.c SCARG(&fsa, fd) = SCARG(uap, fd);
fd 69 compat/hpux/hpux_tty.c hpux_termio(fd, com, data, p)
fd 70 compat/hpux/hpux_tty.c int fd, com;
fd 82 compat/hpux/hpux_tty.c if ((fp = fd_getfile(p->p_fd, fd)) == NULL)
fd 357 compat/hpux/hpux_tty.c args.fdes = fd;
fd 486 compat/hpux/hpux_tty.c return (getsettty(p, SCARG(uap, fd), HPUXTIOCGETP, SCARG(uap, arg)));
fd 500 compat/hpux/hpux_tty.c return (getsettty(p, SCARG(uap, fd), HPUXTIOCSETP, SCARG(uap, arg)));
fd 27 compat/hpux/m68k/hpux_syscallargs.h syscallarg(int) fd;
fd 33 compat/hpux/m68k/hpux_syscallargs.h syscallarg(int) fd;
fd 108 compat/hpux/m68k/hpux_syscallargs.h syscallarg(int) fd;
fd 118 compat/hpux/m68k/hpux_syscallargs.h syscallarg(int) fd;
fd 123 compat/hpux/m68k/hpux_syscallargs.h syscallarg(int) fd;
fd 165 compat/hpux/m68k/hpux_syscallargs.h syscallarg(int) fd;
fd 194 compat/hpux/m68k/hpux_syscallargs.h syscallarg(int) fd;
fd 209 compat/hpux/m68k/hpux_syscallargs.h syscallarg(int) fd;
fd 229 compat/hpux/m68k/hpux_syscallargs.h syscallarg(int) fd;
fd 256 compat/hpux/m68k/hpux_syscallargs.h syscallarg(int) fd;
fd 262 compat/hpux/m68k/hpux_syscallargs.h syscallarg(int) fd;
fd 311 compat/hpux/m68k/hpux_syscallargs.h syscallarg(int) fd;
fd 297 compat/ibcs2/ibcs2_fcntl.c SCARG(&fa, fd) = SCARG(uap, fd);
fd 302 compat/ibcs2/ibcs2_fcntl.c SCARG(&fa, fd) = SCARG(uap, fd);
fd 307 compat/ibcs2/ibcs2_fcntl.c SCARG(&fa, fd) = SCARG(uap, fd);
fd 312 compat/ibcs2/ibcs2_fcntl.c SCARG(&fa, fd) = SCARG(uap, fd);
fd 321 compat/ibcs2/ibcs2_fcntl.c SCARG(&fa, fd) = SCARG(uap, fd);
fd 335 compat/ibcs2/ibcs2_fcntl.c SCARG(&fa, fd) = SCARG(uap, fd);
fd 355 compat/ibcs2/ibcs2_fcntl.c SCARG(&fa, fd) = SCARG(uap, fd);
fd 370 compat/ibcs2/ibcs2_fcntl.c SCARG(&fa, fd) = SCARG(uap, fd);
fd 393 compat/ibcs2/ibcs2_fcntl.c SCARG(&ofst, fd) = SCARG(uap, fd);
fd 402 compat/ibcs2/ibcs2_fcntl.c SCARG(&ols, fd) = SCARG(uap, fd);
fd 426 compat/ibcs2/ibcs2_fcntl.c SCARG(&nuap, fd) = SCARG(uap, fd);
fd 348 compat/ibcs2/ibcs2_ioctl.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 407 compat/ibcs2/ibcs2_ioctl.c p->p_pid, SCARG(uap, fd)));
fd 430 compat/ibcs2/ibcs2_misc.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 461 compat/ibcs2/ibcs2_misc.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0) {
fd 1143 compat/ibcs2/ibcs2_misc.c SCARG(&sa, fd) = SCARG(uap, fd);
fd 1164 compat/ibcs2/ibcs2_misc.c SCARG(&sa, fd) = SCARG(uap, fd);
fd 51 compat/ibcs2/ibcs2_socksys.c int fd;
fd 153 compat/ibcs2/ibcs2_stat.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 239 compat/ibcs2/ibcs2_stat.c SCARG(&cup, fd) = SCARG(uap, fd);
fd 27 compat/ibcs2/ibcs2_syscallargs.h syscallarg(int) fd;
fd 114 compat/ibcs2/ibcs2_syscallargs.h syscallarg(int) fd;
fd 145 compat/ibcs2/ibcs2_syscallargs.h syscallarg(int) fd;
fd 205 compat/ibcs2/ibcs2_syscallargs.h syscallarg(int) fd;
fd 229 compat/ibcs2/ibcs2_syscallargs.h syscallarg(int) fd;
fd 249 compat/ibcs2/ibcs2_syscallargs.h syscallarg(int) fd;
fd 261 compat/ibcs2/ibcs2_syscallargs.h syscallarg(int) fd;
fd 268 compat/ibcs2/ibcs2_syscallargs.h syscallarg(int) fd;
fd 291 compat/ibcs2/ibcs2_syscallargs.h syscallarg(int) fd;
fd 295 compat/ibcs2/ibcs2_syscallargs.h syscallarg(int) fd;
fd 352 compat/ibcs2/ibcs2_syscallargs.h syscallarg(int) fd;
fd 72 compat/linux/linux_blkio.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 111 compat/linux/linux_cdrom.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 291 compat/linux/linux_cdrom.c SCARG(&ia, fd) = SCARG(uap, fd);
fd 78 compat/linux/linux_fdio.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 229 compat/linux/linux_file.c SCARG(&bla, fd) = SCARG(uap, fd);
fd 312 compat/linux/linux_file.c int fd, cmd, error, val;
fd 325 compat/linux/linux_file.c fd = SCARG(uap, fd);
fd 340 compat/linux/linux_file.c SCARG(&fca, fd) = fd;
fd 349 compat/linux/linux_file.c SCARG(&fca, fd) = fd;
fd 359 compat/linux/linux_file.c SCARG(&fca, fd) = fd;
fd 382 compat/linux/linux_file.c SCARG(&fca, fd) = fd;
fd 396 compat/linux/linux_file.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 434 compat/linux/linux_file.c SCARG(&fca, fd) = fd;
fd 494 compat/linux/linux_file.c SCARG(&fsa, fd) = SCARG(uap, fd);
fd 711 compat/linux/linux_file.c SCARG(&bfa, fd) = SCARG(uap, fd);
fd 878 compat/linux/linux_file.c SCARG(&pra, fd) = SCARG(uap, fd);
fd 903 compat/linux/linux_file.c SCARG(&pra, fd) = SCARG(uap, fd);
fd 133 compat/linux/linux_file64.c SCARG(&fsa, fd) = SCARG(uap, fd);
fd 250 compat/linux/linux_file64.c SCARG(&fta, fd) = SCARG(uap, fd);
fd 313 compat/linux/linux_file64.c int fd, cmd, error;
fd 319 compat/linux/linux_file64.c fd = SCARG(uap, fd);
fd 330 compat/linux/linux_file64.c SCARG(&fca, fd) = fd;
fd 352 compat/linux/linux_file64.c SCARG(&fca, fd) = fd;
fd 80 compat/linux/linux_hdio.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 468 compat/linux/linux_misc.c SCARG(&bsa, fd) = SCARG(uap, fd);
fd 606 compat/linux/linux_misc.c SCARG(&nlmap,fd) = lmap.lm_fd;
fd 665 compat/linux/linux_misc.c SCARG(cma, fd) = flags & MAP_ANON ? -1 : SCARG(uap, fd);
fd 1056 compat/linux/linux_misc.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 303 compat/linux/linux_socket.c SCARG(&fca, fd) = lca.s;
fd 388 compat/linux/linux_socket.c SCARG(&fca, fd) = *retval;
fd 392 compat/linux/linux_socket.c *retval = SCARG(&fca, fd);
fd 544 compat/linux/linux_socket.c linux_check_hdrincl(p, fd, retval, sgp)
fd 546 compat/linux/linux_socket.c int fd;
fd 568 compat/linux/linux_socket.c SCARG(&gsa, s) = fd;
fd 1324 compat/linux/linux_socket.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 1445 compat/linux/linux_socket.c SCARG(&ia, fd) = SCARG(uap, fd);
fd 153 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 159 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 228 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 243 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 254 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 280 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 345 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 353 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 371 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 466 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 473 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 500 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 510 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 525 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 534 compat/linux/linux_syscallargs.h syscallarg(int) fd;
fd 540 compat/linux/linux_syscallargs.h syscallarg(u_int) fd;
fd 464 compat/linux/linux_termios.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 701 compat/linux/linux_termios.c SCARG(&wa, fd) = SCARG(uap, fd);
fd 718 compat/linux/linux_termios.c SCARG(&ia, fd) = SCARG(uap, fd);
fd 103 compat/osf1/osf1_descrip.c SCARG(&a, fd) = SCARG(uap, fd);
fd 219 compat/osf1/osf1_descrip.c SCARG(&a, fd) = SCARG(uap, fd);
fd 246 compat/osf1/osf1_descrip.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 269 compat/osf1/osf1_descrip.c SCARG(&a, fd) = SCARG(uap, fd);
fd 285 compat/osf1/osf1_descrip.c SCARG(&a, fd) = SCARG(uap, fd);
fd 111 compat/osf1/osf1_generic.c SCARG(&a, fd) = SCARG(uap, fd);
fd 201 compat/osf1/osf1_generic.c SCARG(&a, fd) = SCARG(uap, fd);
fd 139 compat/osf1/osf1_ioctl.c SCARG(&a, fd) = SCARG(uap, fd);
fd 124 compat/osf1/osf1_mmap.c SCARG(&a, fd) = SCARG(uap, fd);
fd 120 compat/osf1/osf1_mount.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)))
fd 46 compat/osf1/osf1_syscallargs.h syscallarg(int) fd;
fd 105 compat/osf1/osf1_syscallargs.h syscallarg(int) fd;
fd 135 compat/osf1/osf1_syscallargs.h syscallarg(int) fd;
fd 158 compat/osf1/osf1_syscallargs.h syscallarg(int) fd;
fd 163 compat/osf1/osf1_syscallargs.h syscallarg(int) fd;
fd 193 compat/osf1/osf1_syscallargs.h syscallarg(int) fd;
fd 199 compat/osf1/osf1_syscallargs.h syscallarg(int) fd;
fd 215 compat/osf1/osf1_syscallargs.h syscallarg(int) fd;
fd 267 compat/osf1/osf1_syscallargs.h syscallarg(int) fd;
fd 315 compat/osf1/osf1_syscallargs.h syscallarg(int) fd;
fd 91 compat/ossaudio/ossaudio.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 671 compat/ossaudio/ossaudio.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 859 compat/ossaudio/ossaudio.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 38 compat/ossaudio/ossaudiovar.h syscallarg(int) fd;
fd 407 compat/sunos/sunos_ioctl.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 995 compat/sunos/sunos_ioctl.c SCARG(&fa, fd) = SCARG(uap, fd);
fd 430 compat/sunos/sunos_misc.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 486 compat/sunos/sunos_misc.c SCARG(&ouap, fd) = SCARG(uap, fd);
fd 593 compat/sunos/sunos_misc.c if ((error = getvnode(fdp, SCARG(uap, fd), &fp)) != 0)
fd 726 compat/sunos/sunos_misc.c SCARG(&outuap, fd) = SCARG(uap, fd);
fd 859 compat/sunos/sunos_misc.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 94 compat/sunos/sunos_syscallargs.h syscallarg(int) fd;
fd 115 compat/sunos/sunos_syscallargs.h syscallarg(int) fd;
fd 125 compat/sunos/sunos_syscallargs.h syscallarg(int) fd;
fd 159 compat/sunos/sunos_syscallargs.h syscallarg(int) fd;
fd 168 compat/sunos/sunos_syscallargs.h syscallarg(int) fd;
fd 205 compat/sunos/sunos_syscallargs.h syscallarg(int) fd;
fd 211 compat/sunos/sunos_syscallargs.h syscallarg(int) fd;
fd 251 compat/svr4/svr4_fcntl.c fd_truncate(p, fd, flp, retval)
fd 253 compat/svr4/svr4_fcntl.c int fd;
fd 268 compat/svr4/svr4_fcntl.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 306 compat/svr4/svr4_fcntl.c SCARG(&ft, fd) = fd;
fd 403 compat/svr4/svr4_fcntl.c SCARG(&ap, fd) = SCARG(uap, fd);
fd 444 compat/svr4/svr4_fcntl.c SCARG(&pra, fd) = SCARG(uap, fd);
fd 461 compat/svr4/svr4_fcntl.c SCARG(&pra, fd) = SCARG(uap, fd);
fd 478 compat/svr4/svr4_fcntl.c SCARG(&pwa, fd) = SCARG(uap, fd);
fd 495 compat/svr4/svr4_fcntl.c SCARG(&pwa, fd) = SCARG(uap, fd);
fd 513 compat/svr4/svr4_fcntl.c SCARG(&fa, fd) = SCARG(uap, fd);
fd 569 compat/svr4/svr4_fcntl.c SCARG(&fa, fd) = SCARG(uap, fd);
fd 624 compat/svr4/svr4_fcntl.c SCARG(&du, from) = SCARG(uap, fd);
fd 642 compat/svr4/svr4_fcntl.c return fd_truncate(p, SCARG(uap, fd), &fl,
fd 56 compat/svr4/svr4_filio.c svr4_fil_ioctl(fp, p, retval, fd, cmd, data)
fd 60 compat/svr4/svr4_filio.c int fd;
fd 74 compat/svr4/svr4_filio.c fdp->fd_ofileflags[fd] |= UF_EXCLOSE;
fd 78 compat/svr4/svr4_filio.c fdp->fd_ofileflags[fd] &= ~UF_EXCLOSE;
fd 107 compat/svr4/svr4_ioctl.c uprintf("svr4_ioctl(%d, _IO%s(%c, %d, %d), %p);\n", SCARG(uap, fd),
fd 113 compat/svr4/svr4_ioctl.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 155 compat/svr4/svr4_ioctl.c error = (*fun)(fp, p, retval, SCARG(uap, fd), cmd, SCARG(uap, data));
fd 48 compat/svr4/svr4_jioctl.c svr4_jerq_ioctl(fp, p, retval, fd, cmd, data)
fd 52 compat/svr4/svr4_jioctl.c int fd;
fd 302 compat/svr4/svr4_misc.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 330 compat/svr4/svr4_misc.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 369 compat/svr4/svr4_misc.c SCARG(&mm, fd) = SCARG(uap, fd);
fd 403 compat/svr4/svr4_misc.c SCARG(&mm, fd) = SCARG(uap, fd);
fd 429 compat/svr4/svr4_misc.c if ((error = getvnode(fdp, SCARG(uap, fd), &fp)) != 0)
fd 1232 compat/svr4/svr4_misc.c SCARG(&fs_args, fd) = SCARG(uap, fd);
fd 1261 compat/svr4/svr4_misc.c SCARG(&fs_args, fd) = SCARG(uap, fd);
fd 109 compat/svr4/svr4_net.c int fd;
fd 170 compat/svr4/svr4_net.c if ((error = falloc(p, &fp, &fd)) != 0)
fd 175 compat/svr4/svr4_net.c fdremove(p->p_fd, fd);
fd 189 compat/svr4/svr4_net.c p->p_dupfd = fd;
fd 79 compat/svr4/svr4_sockio.c svr4_sock_ioctl(fp, p, retval, fd, cmd, data)
fd 83 compat/svr4/svr4_sockio.c int fd;
fd 252 compat/svr4/svr4_stat.c SCARG(&cup, fd) = SCARG(uap, fd);
fd 263 compat/svr4/svr4_stat.c SCARG(&cup, fd) = SCARG(uap, fd);
fd 366 compat/svr4/svr4_stat.c SCARG(&cup, fd) = SCARG(uap, fd);
fd 468 compat/svr4/svr4_stat.c SCARG(&cup, fd) = SCARG(uap, fd);
fd 219 compat/svr4/svr4_stream.c show_msg(str, fd, ctl, dat, flags)
fd 221 compat/svr4/svr4_stream.c int fd;
fd 229 compat/svr4/svr4_stream.c uprintf("%s(%d", str, fd);
fd 419 compat/svr4/svr4_stream.c si_ogetudata(fp, fd, ioc, p)
fd 421 compat/svr4/svr4_stream.c int fd;
fd 475 compat/svr4/svr4_stream.c si_sockparams(fp, fd, ioc, p)
fd 477 compat/svr4/svr4_stream.c int fd;
fd 489 compat/svr4/svr4_stream.c si_listen(fp, fd, ioc, p)
fd 491 compat/svr4/svr4_stream.c int fd;
fd 518 compat/svr4/svr4_stream.c SCARG(&la, s) = fd;
fd 519 compat/svr4/svr4_stream.c DPRINTF(("SI_LISTEN: fileno %d backlog = %d\n", fd, 5));
fd 557 compat/svr4/svr4_stream.c si_getudata(fp, fd, ioc, p)
fd 559 compat/svr4/svr4_stream.c int fd;
fd 613 compat/svr4/svr4_stream.c si_shutdown(fp, fd, ioc, p)
fd 615 compat/svr4/svr4_stream.c int fd;
fd 632 compat/svr4/svr4_stream.c SCARG(&ap, s) = fd;
fd 638 compat/svr4/svr4_stream.c sockmod(fp, fd, ioc, p)
fd 640 compat/svr4/svr4_stream.c int fd;
fd 647 compat/svr4/svr4_stream.c return si_ogetudata(fp, fd, ioc, p);
fd 651 compat/svr4/svr4_stream.c return si_shutdown(fp, fd, ioc, p);
fd 655 compat/svr4/svr4_stream.c return si_listen(fp, fd, ioc, p);
fd 679 compat/svr4/svr4_stream.c return si_sockparams(fp, fd, ioc, p);
fd 683 compat/svr4/svr4_stream.c return si_getudata(fp, fd, ioc, p);
fd 694 compat/svr4/svr4_stream.c ti_getinfo(fp, fd, ioc, p)
fd 696 compat/svr4/svr4_stream.c int fd;
fd 735 compat/svr4/svr4_stream.c ti_bind(fp, fd, ioc, p)
fd 737 compat/svr4/svr4_stream.c int fd;
fd 815 compat/svr4/svr4_stream.c SCARG(&ba, s) = fd;
fd 816 compat/svr4/svr4_stream.c DPRINTF(("TI_BIND: fileno %d\n", fd));
fd 842 compat/svr4/svr4_stream.c timod(fp, fd, ioc, p)
fd 844 compat/svr4/svr4_stream.c int fd;
fd 851 compat/svr4/svr4_stream.c return ti_getinfo(fp, fd, ioc, p);
fd 859 compat/svr4/svr4_stream.c return ti_bind(fp, fd, ioc, p);
fd 873 compat/svr4/svr4_stream.c svr4_stream_ti_ioctl(fp, p, retval, fd, cmd, dat)
fd 877 compat/svr4/svr4_stream.c int fd;
fd 928 compat/svr4/svr4_stream.c SCARG(&ap, fdes) = fd;
fd 942 compat/svr4/svr4_stream.c SCARG(&ap, fdes) = fd;
fd 1014 compat/svr4/svr4_stream.c i_nread(fp, p, retval, fd, cmd, dat)
fd 1018 compat/svr4/svr4_stream.c int fd;
fd 1045 compat/svr4/svr4_stream.c i_fdinsert(fp, p, retval, fd, cmd, dat)
fd 1049 compat/svr4/svr4_stream.c int fd;
fd 1083 compat/svr4/svr4_stream.c SCARG(&d2p, to) = fdi.fd;
fd 1087 compat/svr4/svr4_stream.c st->s_afd, fdi.fd, error));
fd 1091 compat/svr4/svr4_stream.c SCARG(&clp, fd) = st->s_afd;
fd 1107 compat/svr4/svr4_stream.c _i_bind_rsvd(fp, p, retval, fd, cmd, dat)
fd 1111 compat/svr4/svr4_stream.c int fd;
fd 1131 compat/svr4/svr4_stream.c _i_rele_rsvd(fp, p, retval, fd, cmd, dat)
fd 1135 compat/svr4/svr4_stream.c int fd;
fd 1151 compat/svr4/svr4_stream.c i_str(fp, p, retval, fd, cmd, dat)
fd 1155 compat/svr4/svr4_stream.c int fd;
fd 1172 compat/svr4/svr4_stream.c if ((error = sockmod(fp, fd, &ioc, p)) != 0)
fd 1177 compat/svr4/svr4_stream.c if ((error = timod(fp, fd, &ioc, p)) != 0)
fd 1196 compat/svr4/svr4_stream.c svr4_stream_ioctl(fp, p, retval, fd, cmd, dat)
fd 1200 compat/svr4/svr4_stream.c int fd;
fd 1212 compat/svr4/svr4_stream.c return i_nread(fp, p, retval, fd, cmd, dat);
fd 1240 compat/svr4/svr4_stream.c return i_str(fp, p, retval, fd, cmd, dat);
fd 1257 compat/svr4/svr4_stream.c SCARG(&fa, fd) = fd;
fd 1315 compat/svr4/svr4_stream.c return i_fdinsert(fp, p, retval, fd, cmd, dat);
fd 1391 compat/svr4/svr4_stream.c return _i_bind_rsvd(fp, p, retval, fd, cmd, dat);
fd 1395 compat/svr4/svr4_stream.c return _i_rele_rsvd(fp, p, retval, fd, cmd, dat);
fd 1428 compat/svr4/svr4_stream.c show_msg(">putmsg", SCARG(uap, fd), SCARG(uap, ctl),
fd 1432 compat/svr4/svr4_stream.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 1521 compat/svr4/svr4_stream.c SCARG(&co, s) = SCARG(uap, fd);
fd 1541 compat/svr4/svr4_stream.c error = sendit(p, SCARG(uap, fd), &msg,
fd 1588 compat/svr4/svr4_stream.c show_msg(">getmsg", SCARG(uap, fd), SCARG(uap, ctl),
fd 1592 compat/svr4/svr4_stream.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 1678 compat/svr4/svr4_stream.c SCARG(&ga, fdes) = SCARG(uap, fd);
fd 1738 compat/svr4/svr4_stream.c SCARG(&aa, s) = SCARG(uap, fd);
fd 1822 compat/svr4/svr4_stream.c error = recvit(p, SCARG(uap, fd), &msg, (caddr_t) flen, retval);
fd 1884 compat/svr4/svr4_stream.c show_msg("<getmsg", SCARG(uap, fd), SCARG(uap, ctl),
fd 132 compat/svr4/svr4_stropts.h int fd;
fd 70 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 137 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 156 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 167 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 173 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 180 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 228 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 257 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 262 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 280 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 330 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 343 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 350 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 357 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 380 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 387 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 397 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 412 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 417 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 422 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 429 compat/svr4/svr4_syscallargs.h syscallarg(int) fd;
fd 519 compat/svr4/svr4_termios.c svr4_term_ioctl(fp, p, retval, fd, cmd, data)
fd 523 compat/svr4/svr4_termios.c int fd;
fd 640 compat/svr4/svr4_termios.c return (svr4_stream_ti_ioctl(fp, p, retval, fd, cmd, data));
fd 186 compat/svr4/svr4_ttold.c svr4_ttold_ioctl(fp, p, retval, fd, cmd, data)
fd 190 compat/svr4/svr4_ttold.c int fd;
fd 452 compat/ultrix/ultrix_ioctl.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 333 compat/ultrix/ultrix_misc.c SCARG(&ouap, fd) = SCARG(uap, fd);
fd 450 compat/ultrix/ultrix_misc.c SCARG(&outuap, fd) = SCARG(uap, fd);
fd 186 compat/ultrix/ultrix_pathname.c if ((fd = fd_getfile(fdp, *retval)) == NULL)
fd 281 compat/ultrix/ultrix_pathname.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 72 compat/ultrix/ultrix_syscallargs.h syscallarg(int) fd;
fd 88 compat/ultrix/ultrix_syscallargs.h syscallarg(int) fd;
fd 124 compat/ultrix/ultrix_syscallargs.h syscallarg(int) fd;
fd 133 compat/ultrix/ultrix_syscallargs.h syscallarg(int) fd;
fd 671 crypto/cryptodev.c int fd, error;
fd 680 crypto/cryptodev.c error = falloc(p, &f, &fd);
fd 689 crypto/cryptodev.c *(u_int32_t *)data = fd;
fd 153 crypto/des.h int des_enc_read(int fd,char *buf,int len,des_key_schedule sched,
fd 155 crypto/des.h int des_enc_write(int fd,char *buf,int len,des_key_schedule sched,
fd 1567 dev/audio.c int error = 0, s, offs, fd;
fd 1707 dev/audio.c fd = *(int *)addr;
fd 1710 dev/audio.c error = hw->setfd(sc->hw_hdl, fd);
fd 1714 dev/audio.c sc->sc_full_duplex = fd;
fd 1716 dev/audio.c if (fd)
fd 152 dev/isa/fd.c void fdfinish(struct fd_softc *fd, struct buf *bp);
fd 226 dev/isa/fd.c struct fd_softc *fd = (void *)self;
fd 268 dev/isa/fd.c fd->sc_cylin = -1;
fd 269 dev/isa/fd.c fd->sc_drive = drive;
fd 270 dev/isa/fd.c fd->sc_deftype = type;
fd 272 dev/isa/fd.c fdc->sc_link.fdlink.sc_fd[drive] = fd;
fd 277 dev/isa/fd.c fd->sc_dk.dk_name = fd->sc_dev.dv_xname;
fd 278 dev/isa/fd.c fd->sc_dk.dk_driver = &fddkdriver;
fd 279 dev/isa/fd.c disk_attach(&fd->sc_dk);
fd 282 dev/isa/fd.c fd->sc_sdhook = shutdownhook_establish(fd_motor_off, fd);
fd 285 dev/isa/fd.c timeout_set(&fd->fd_motor_on_to, fd_motor_on, fd);
fd 286 dev/isa/fd.c timeout_set(&fd->fd_motor_off_to, fd_motor_off, fd);
fd 287 dev/isa/fd.c timeout_set(&fd->fdtimeout_to, fdtimeout, fd);
fd 331 dev/isa/fd.c fd_dev_to_type(fd, dev)
fd 332 dev/isa/fd.c struct fd_softc *fd;
fd 339 dev/isa/fd.c return type ? &fd_types[type - 1] : fd->sc_deftype;
fd 346 dev/isa/fd.c struct fd_softc *fd = fd_cd.cd_devs[FDUNIT(bp->b_dev)];
fd 349 dev/isa/fd.c int fd_bsize = FD_BSIZE(fd);
fd 367 dev/isa/fd.c if (bp->b_blkno + sz > fd->sc_type->size * bf) {
fd 368 dev/isa/fd.c sz = fd->sc_type->size * bf - bp->b_blkno;
fd 381 dev/isa/fd.c bp->b_cylinder = bp->b_blkno / (fd_bsize / DEV_BSIZE) / fd->sc_type->seccyl;
fd 385 dev/isa/fd.c bp->b_blkno, bp->b_bcount, fd->sc_blkno, bp->b_cylinder, sz);
fd 390 dev/isa/fd.c disksort(&fd->sc_q, bp);
fd 391 dev/isa/fd.c timeout_del(&fd->fd_motor_off_to); /* a good idea */
fd 392 dev/isa/fd.c if (!fd->sc_q.b_active)
fd 393 dev/isa/fd.c fdstart(fd);
fd 396 dev/isa/fd.c struct fdc_softc *fdc = (void *)fd->sc_dev.dv_parent;
fd 417 dev/isa/fd.c fdstart(fd)
fd 418 dev/isa/fd.c struct fd_softc *fd;
fd 420 dev/isa/fd.c struct fdc_softc *fdc = (void *)fd->sc_dev.dv_parent;
fd 424 dev/isa/fd.c fd->sc_q.b_active = 1;
fd 425 dev/isa/fd.c TAILQ_INSERT_TAIL(&fdc->sc_link.fdlink.sc_drives, fd, sc_drivechain);
fd 433 dev/isa/fd.c fdfinish(fd, bp)
fd 434 dev/isa/fd.c struct fd_softc *fd;
fd 437 dev/isa/fd.c struct fdc_softc *fdc = (void *)fd->sc_dev.dv_parent;
fd 447 dev/isa/fd.c if (TAILQ_NEXT(fd, sc_drivechain) != NULL && ++fd->sc_ops >= 8) {
fd 448 dev/isa/fd.c fd->sc_ops = 0;
fd 449 dev/isa/fd.c TAILQ_REMOVE(&fdc->sc_link.fdlink.sc_drives, fd, sc_drivechain);
fd 451 dev/isa/fd.c TAILQ_INSERT_TAIL(&fdc->sc_link.fdlink.sc_drives, fd,
fd 454 dev/isa/fd.c fd->sc_q.b_active = 0;
fd 456 dev/isa/fd.c bp->b_resid = fd->sc_bcount;
fd 457 dev/isa/fd.c fd->sc_skip = 0;
fd 458 dev/isa/fd.c fd->sc_q.b_actf = bp->b_actf;
fd 462 dev/isa/fd.c timeout_add(&fd->fd_motor_off_to, 5 * hz);
fd 491 dev/isa/fd.c struct fd_softc *fd;
fd 495 dev/isa/fd.c if ((fd = TAILQ_FIRST(&fdc->sc_link.fdlink.sc_drives)) != NULL)
fd 496 dev/isa/fd.c status = fd->sc_drive;
fd 502 dev/isa/fd.c if ((fd = fdc->sc_link.fdlink.sc_fd[n])
fd 503 dev/isa/fd.c && (fd->sc_flags & FD_MOTOR))
fd 512 dev/isa/fd.c struct fd_softc *fd = arg;
fd 516 dev/isa/fd.c fd->sc_flags &= ~(FD_MOTOR | FD_MOTOR_WAIT);
fd 517 dev/isa/fd.c fd_set_motor((struct fdc_softc *)fd->sc_dev.dv_parent, 0);
fd 525 dev/isa/fd.c struct fd_softc *fd = arg;
fd 526 dev/isa/fd.c struct fdc_softc *fdc = (void *)fd->sc_dev.dv_parent;
fd 530 dev/isa/fd.c fd->sc_flags &= ~FD_MOTOR_WAIT;
fd 531 dev/isa/fd.c if ((TAILQ_FIRST(&fdc->sc_link.fdlink.sc_drives) == fd)
fd 545 dev/isa/fd.c struct fd_softc *fd;
fd 551 dev/isa/fd.c fd = fd_cd.cd_devs[unit];
fd 552 dev/isa/fd.c if (fd == 0)
fd 554 dev/isa/fd.c type = fd_dev_to_type(fd, dev);
fd 558 dev/isa/fd.c if ((fd->sc_flags & FD_OPEN) != 0 &&
fd 559 dev/isa/fd.c fd->sc_type != type)
fd 562 dev/isa/fd.c fd->sc_type = type;
fd 563 dev/isa/fd.c fd->sc_cylin = -1;
fd 564 dev/isa/fd.c fd->sc_flags |= FD_OPEN;
fd 576 dev/isa/fd.c struct fd_softc *fd = fd_cd.cd_devs[FDUNIT(dev)];
fd 578 dev/isa/fd.c fd->sc_flags &= ~FD_OPEN;
fd 579 dev/isa/fd.c fd->sc_opts &= ~FDOPT_NORETRY;
fd 613 dev/isa/fd.c struct fd_softc *fd;
fd 625 dev/isa/fd.c fd = TAILQ_FIRST(&fdc->sc_link.fdlink.sc_drives);
fd 626 dev/isa/fd.c if (fd == NULL) {
fd 630 dev/isa/fd.c fd_bsize = FD_BSIZE(fd);
fd 632 dev/isa/fd.c bp = fd->sc_q.b_actf;
fd 634 dev/isa/fd.c fd->sc_ops = 0;
fd 635 dev/isa/fd.c TAILQ_REMOVE(&fdc->sc_link.fdlink.sc_drives, fd, sc_drivechain);
fd 636 dev/isa/fd.c fd->sc_q.b_active = 0;
fd 646 dev/isa/fd.c fd->sc_skip = 0;
fd 647 dev/isa/fd.c fd->sc_bcount = bp->b_bcount;
fd 648 dev/isa/fd.c fd->sc_blkno = bp->b_blkno / (fd_bsize / DEV_BSIZE);
fd 649 dev/isa/fd.c timeout_del(&fd->fd_motor_off_to);
fd 650 dev/isa/fd.c if ((fd->sc_flags & FD_MOTOR_WAIT) != 0) {
fd 654 dev/isa/fd.c if ((fd->sc_flags & FD_MOTOR) == 0) {
fd 657 dev/isa/fd.c fdc->sc_link.fdlink.sc_fd[fd->sc_drive ^ 1];
fd 662 dev/isa/fd.c fd->sc_flags |= FD_MOTOR | FD_MOTOR_WAIT;
fd 666 dev/isa/fd.c timeout_add(&fd->fd_motor_on_to, hz / 4);
fd 675 dev/isa/fd.c if (fd->sc_cylin == bp->b_cylinder)
fd 679 dev/isa/fd.c out_fdc(iot, ioh, fd->sc_type->steprate);
fd 683 dev/isa/fd.c out_fdc(iot, ioh, fd->sc_drive); /* drive number */
fd 684 dev/isa/fd.c out_fdc(iot, ioh, bp->b_cylinder * fd->sc_type->step);
fd 686 dev/isa/fd.c fd->sc_cylin = -1;
fd 689 dev/isa/fd.c fd->sc_dk.dk_seek++;
fd 690 dev/isa/fd.c disk_busy(&fd->sc_dk);
fd 692 dev/isa/fd.c timeout_add(&fd->fdtimeout_to, 4 * hz);
fd 697 dev/isa/fd.c type = fd->sc_type;
fd 699 dev/isa/fd.c fd->sc_skip = (char *)&(finfo->fd_formb_cylno(0)) -
fd 701 dev/isa/fd.c sec = fd->sc_blkno % type->seccyl;
fd 703 dev/isa/fd.c nblks = min(nblks, fd->sc_bcount / fd_bsize);
fd 705 dev/isa/fd.c fd->sc_nblks = nblks;
fd 706 dev/isa/fd.c fd->sc_nbytes = finfo ? bp->b_bcount : nblks * fd_bsize;
fd 711 dev/isa/fd.c block = (fd->sc_cylin * type->heads + head) * type->sectrac + sec;
fd 712 dev/isa/fd.c if (block != fd->sc_blkno) {
fd 713 dev/isa/fd.c printf("fdintr: block %d != blkno %d\n", block, fd->sc_blkno);
fd 720 dev/isa/fd.c isadma_start(bp->b_data + fd->sc_skip, fd->sc_nbytes,
fd 725 dev/isa/fd.c read ? "read" : "write", fd->sc_drive, fd->sc_cylin, head,
fd 732 dev/isa/fd.c fdretry(fd);
fd 735 dev/isa/fd.c out_fdc(iot, ioh, (head << 2) | fd->sc_drive);
fd 745 dev/isa/fd.c out_fdc(iot, ioh, (head << 2) | fd->sc_drive);
fd 746 dev/isa/fd.c out_fdc(iot, ioh, fd->sc_cylin); /* track */
fd 756 dev/isa/fd.c disk_busy(&fd->sc_dk);
fd 759 dev/isa/fd.c timeout_add(&fd->fdtimeout_to, 2 * hz);
fd 763 dev/isa/fd.c timeout_del(&fd->fdtimeout_to);
fd 770 dev/isa/fd.c disk_unbusy(&fd->sc_dk, 0, 0); /* no data on seek */
fd 775 dev/isa/fd.c cyl != bp->b_cylinder * fd->sc_type->step) {
fd 777 dev/isa/fd.c fdcstatus(&fd->sc_dev, 2, "seek failed");
fd 779 dev/isa/fd.c fdretry(fd);
fd 782 dev/isa/fd.c fd->sc_cylin = bp->b_cylinder;
fd 790 dev/isa/fd.c fdretry(fd);
fd 794 dev/isa/fd.c timeout_del(&fd->fdtimeout_to);
fd 796 dev/isa/fd.c disk_unbusy(&fd->sc_dk, (bp->b_bcount - bp->b_resid),
fd 802 dev/isa/fd.c fdcstatus(&fd->sc_dev, 7, bp->b_flags & B_READ ?
fd 805 dev/isa/fd.c fd->sc_blkno, fd->sc_nblks);
fd 807 dev/isa/fd.c fdretry(fd);
fd 814 dev/isa/fd.c fd->sc_skip / fd_bsize, (struct disklabel *)NULL);
fd 818 dev/isa/fd.c fd->sc_blkno += fd->sc_nblks;
fd 819 dev/isa/fd.c fd->sc_skip += fd->sc_nbytes;
fd 820 dev/isa/fd.c fd->sc_bcount -= fd->sc_nbytes;
fd 821 dev/isa/fd.c if (!finfo && fd->sc_bcount > 0) {
fd 822 dev/isa/fd.c bp->b_cylinder = fd->sc_blkno / fd->sc_type->seccyl;
fd 825 dev/isa/fd.c fdfinish(fd, bp);
fd 834 dev/isa/fd.c timeout_add(&fd->fdtimeout_to, hz / 2);
fd 838 dev/isa/fd.c timeout_del(&fd->fdtimeout_to);
fd 848 dev/isa/fd.c out_fdc(iot, ioh, fd->sc_drive);
fd 850 dev/isa/fd.c timeout_add(&fd->fdtimeout_to, 5 * hz);
fd 854 dev/isa/fd.c timeout_del(&fd->fdtimeout_to);
fd 864 dev/isa/fd.c fdcstatus(&fd->sc_dev, 2, "recalibrate failed");
fd 866 dev/isa/fd.c fdretry(fd);
fd 869 dev/isa/fd.c fd->sc_cylin = 0;
fd 873 dev/isa/fd.c if (fd->sc_flags & FD_MOTOR_WAIT)
fd 878 dev/isa/fd.c fdcstatus(&fd->sc_dev, 0, "stray interrupt");
fd 892 dev/isa/fd.c struct fd_softc *fd = arg;
fd 893 dev/isa/fd.c struct fdc_softc *fdc = (void *)fd->sc_dev.dv_parent;
fd 900 dev/isa/fd.c fdcstatus(&fd->sc_dev, 0, "timeout");
fd 902 dev/isa/fd.c if (fd->sc_q.b_actf)
fd 912 dev/isa/fd.c fdretry(fd)
fd 913 dev/isa/fd.c struct fd_softc *fd;
fd 915 dev/isa/fd.c struct fdc_softc *fdc = (void *)fd->sc_dev.dv_parent;
fd 916 dev/isa/fd.c struct buf *bp = fd->sc_q.b_actf;
fd 918 dev/isa/fd.c if (fd->sc_opts & FDOPT_NORETRY)
fd 939 dev/isa/fd.c fd->sc_skip / FD_BSIZE(fd), (struct disklabel *)NULL);
fd 948 dev/isa/fd.c fdfinish(fd, bp);
fd 961 dev/isa/fd.c struct fd_softc *fd = fd_cd.cd_devs[FDUNIT(dev)];
fd 974 dev/isa/fd.c lp->d_secsize = FD_BSIZE(fd);
fd 975 dev/isa/fd.c lp->d_secpercyl = fd->sc_type->seccyl;
fd 976 dev/isa/fd.c lp->d_ntracks = fd->sc_type->heads;
fd 977 dev/isa/fd.c lp->d_nsectors = fd->sc_type->sectrac;
fd 978 dev/isa/fd.c lp->d_ncylinders = fd->sc_type->tracks;
fd 983 dev/isa/fd.c DL_SETDSIZE(lp, fd->sc_type->size);
fd 1028 dev/isa/fd.c *(struct fd_type *)addr = *fd->sc_type;
fd 1032 dev/isa/fd.c *(int *)addr = fd->sc_opts;
fd 1036 dev/isa/fd.c fd->sc_opts = *(int *)addr;
fd 1055 dev/isa/fd.c struct fd_softc *fd = fd_cd.cd_devs[FDUNIT(dev)];
fd 1056 dev/isa/fd.c struct fd_type *type = fd->sc_type;
fd 1058 dev/isa/fd.c int fd_bsize = FD_BSIZE(fd);
fd 65 dev/isa/fdreg.h #define FD_BSIZE(fd) (128 << fd->sc_type->secsize)
fd 37 dev/microcode/atmel/build.c int fd;
fd 40 dev/microcode/atmel/build.c fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd 41 dev/microcode/atmel/build.c if (fd == -1)
fd 44 dev/microcode/atmel/build.c rlen = write(fd, buf, buflen);
fd 49 dev/microcode/atmel/build.c close(fd);
fd 79 dev/microcode/bnx/build.c int fd, i, total;
fd 153 dev/microcode/bnx/build.c fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd 154 dev/microcode/bnx/build.c if (fd == -1)
fd 157 dev/microcode/bnx/build.c rlen = write(fd, bf, sizeof *bf);
fd 168 dev/microcode/bnx/build.c rlen = write(fd, chunks[i].start, *chunks[i].len);
fd 185 dev/microcode/bnx/build.c close(fd);
fd 31 dev/microcode/cirruslogic/build.c int fd;
fd 34 dev/microcode/cirruslogic/build.c fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd 35 dev/microcode/cirruslogic/build.c if (fd == -1)
fd 38 dev/microcode/cirruslogic/build.c rlen = write(fd, &BA1Struct, sizeof BA1Struct);
fd 43 dev/microcode/cirruslogic/build.c close(fd);
fd 44 dev/microcode/fxp/build.c int fd, i;
fd 49 dev/microcode/fxp/build.c fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd 50 dev/microcode/fxp/build.c if (fd == -1)
fd 54 dev/microcode/fxp/build.c rlen = write(fd, &dword, sizeof(dword));
fd 60 dev/microcode/fxp/build.c close(fd);
fd 34 dev/microcode/kue/build.c int len, fd;
fd 59 dev/microcode/kue/build.c fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd 60 dev/microcode/kue/build.c if (fd == -1)
fd 63 dev/microcode/kue/build.c rlen = write(fd, kf, len);
fd 69 dev/microcode/kue/build.c close(fd);
fd 36 dev/microcode/myx/build.c int fd, rlen;
fd 41 dev/microcode/myx/build.c fd = open(file, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd 42 dev/microcode/myx/build.c if (fd == -1)
fd 47 dev/microcode/myx/build.c rlen = write(fd, &data, sizeof(u_int32_t));
fd 60 dev/microcode/myx/build.c close(fd);
fd 35 dev/microcode/neomagic/build.c int fd;
fd 37 dev/microcode/neomagic/build.c fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd 38 dev/microcode/neomagic/build.c if (fd == -1)
fd 46 dev/microcode/neomagic/build.c rlen = write(fd, &nf, sizeof nf);
fd 52 dev/microcode/neomagic/build.c close(fd);
fd 33 dev/microcode/ral/build.c int fd;
fd 37 dev/microcode/ral/build.c fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
fd 38 dev/microcode/ral/build.c if (fd == -1)
fd 41 dev/microcode/ral/build.c rlen = write(fd, ucode, size);
fd 47 dev/microcode/ral/build.c close(fd);
fd 33 dev/microcode/rum/build.c int fd;
fd 37 dev/microcode/rum/build.c fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
fd 38 dev/microcode/rum/build.c if (fd == -1)
fd 41 dev/microcode/rum/build.c rlen = write(fd, ucode, size);
fd 47 dev/microcode/rum/build.c close(fd);
fd 34 dev/microcode/tht/build.c int fd;
fd 37 dev/microcode/tht/build.c fd = open(THT_FW_NAME, O_WRONLY | O_CREAT | O_TRUNC, 0644);
fd 38 dev/microcode/tht/build.c if (fd == -1)
fd 44 dev/microcode/tht/build.c len = write(fd, tht_fw, sizeof(tht_fw));
fd 50 dev/microcode/tht/build.c close(fd);
fd 40 dev/microcode/tigon/build.c int len, fd, i;
fd 79 dev/microcode/tigon/build.c fd = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd 80 dev/microcode/tigon/build.c if (fd == -1)
fd 83 dev/microcode/tigon/build.c rlen = write(fd, tf, len);
fd 89 dev/microcode/tigon/build.c close(fd);
fd 28 dev/microcode/typhoon/build.c fullwrite(int fd, const void *buf, size_t nbytes)
fd 32 dev/microcode/typhoon/build.c r = write(fd, buf, nbytes);
fd 42 dev/microcode/typhoon/build.c int fd;
fd 46 dev/microcode/typhoon/build.c fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd 47 dev/microcode/typhoon/build.c if (fd == -1)
fd 50 dev/microcode/typhoon/build.c rlen = write(fd, tc990image, sizeof tc990image);
fd 55 dev/microcode/typhoon/build.c close(fd);
fd 32 dev/microcode/uyap/build.c int fd;
fd 35 dev/microcode/uyap/build.c fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd 36 dev/microcode/uyap/build.c if (fd == -1)
fd 57 dev/microcode/uyap/build.c rlen = writev(fd, iov, 3);
fd 43 dev/microcode/yds/build.c int len, fd;
fd 75 dev/microcode/yds/build.c fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd 76 dev/microcode/yds/build.c if (fd == -1)
fd 79 dev/microcode/yds/build.c rlen = write(fd, yf, len);
fd 85 dev/microcode/yds/build.c close(fd);
fd 33 dev/microcode/zydas/build.c int fd;
fd 37 dev/microcode/zydas/build.c fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644);
fd 38 dev/microcode/zydas/build.c if (fd == -1)
fd 41 dev/microcode/zydas/build.c rlen = write(fd, ucode, size);
fd 47 dev/microcode/zydas/build.c close(fd);
fd 561 dev/systrace.c int fd, error;
fd 579 dev/systrace.c error = falloc(p, &f, &fd);
fd 588 dev/systrace.c *(int *)data = fd;
fd 1178 dev/usb/ugen.c struct usb_full_desc *fd = (struct usb_full_desc *)addr;
fd 1181 dev/usb/ugen.c cdesc = ugen_get_cdesc(sc, fd->ufd_config_index, &len);
fd 1182 dev/usb/ugen.c if (len > fd->ufd_size)
fd 1183 dev/usb/ugen.c len = fd->ufd_size;
fd 1184 dev/usb/ugen.c iov.iov_base = (caddr_t)fd->ufd_data;
fd 124 kern/kern_descrip.c find_last_set(struct filedesc *fd, int last)
fd 127 kern/kern_descrip.c struct file **ofiles = fd->fd_ofiles;
fd 128 kern/kern_descrip.c u_int *bitmap = fd->fd_lomap;
fd 147 kern/kern_descrip.c fd_used(struct filedesc *fdp, int fd)
fd 149 kern/kern_descrip.c u_int off = fd >> NDENTRYSHIFT;
fd 151 kern/kern_descrip.c fdp->fd_lomap[off] |= 1 << (fd & NDENTRYMASK);
fd 155 kern/kern_descrip.c if (fd > fdp->fd_lastfile)
fd 156 kern/kern_descrip.c fdp->fd_lastfile = fd;
fd 160 kern/kern_descrip.c fd_unused(struct filedesc *fdp, int fd)
fd 162 kern/kern_descrip.c u_int off = fd >> NDENTRYSHIFT;
fd 164 kern/kern_descrip.c if (fd < fdp->fd_freefile)
fd 165 kern/kern_descrip.c fdp->fd_freefile = fd;
fd 169 kern/kern_descrip.c fdp->fd_lomap[off] &= ~(1 << (fd & NDENTRYMASK));
fd 172 kern/kern_descrip.c if (fd > fdp->fd_lastfile)
fd 175 kern/kern_descrip.c if (fd == fdp->fd_lastfile)
fd 176 kern/kern_descrip.c fdp->fd_lastfile = find_last_set(fdp, fd);
fd 180 kern/kern_descrip.c fd_getfile(struct filedesc *fdp, int fd)
fd 184 kern/kern_descrip.c if ((u_int)fd >= fdp->fd_nfiles || (fp = fdp->fd_ofiles[fd]) == NULL)
fd 208 kern/kern_descrip.c int old = SCARG(uap, fd);
fd 300 kern/kern_descrip.c int fd = SCARG(uap, fd);
fd 309 kern/kern_descrip.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 332 kern/kern_descrip.c error = finishdup(p, fp, fd, i, retval);
fd 340 kern/kern_descrip.c *retval = fdp->fd_ofileflags[fd] & UF_EXCLOSE ? 1 : 0;
fd 345 kern/kern_descrip.c fdp->fd_ofileflags[fd] |= UF_EXCLOSE;
fd 347 kern/kern_descrip.c fdp->fd_ofileflags[fd] &= ~UF_EXCLOSE;
fd 538 kern/kern_descrip.c fdremove(struct filedesc *fdp, int fd)
fd 540 kern/kern_descrip.c fdp->fd_ofiles[fd] = NULL;
fd 541 kern/kern_descrip.c fd_unused(fdp, fd);
fd 545 kern/kern_descrip.c fdrelease(struct proc *p, int fd)
fd 554 kern/kern_descrip.c fpp = &fdp->fd_ofiles[fd];
fd 560 kern/kern_descrip.c fdp->fd_ofileflags[fd] = 0;
fd 561 kern/kern_descrip.c fd_unused(fdp, fd);
fd 562 kern/kern_descrip.c if (fd < fdp->fd_knlistsize)
fd 563 kern/kern_descrip.c knote_fdclose(p, fd);
fd 577 kern/kern_descrip.c int fd = SCARG(uap, fd), error;
fd 580 kern/kern_descrip.c if (fd_getfile(fdp, fd) == NULL)
fd 583 kern/kern_descrip.c error = fdrelease(p, fd);
fd 600 kern/kern_descrip.c int fd = SCARG(uap, fd);
fd 606 kern/kern_descrip.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 635 kern/kern_descrip.c int fd = SCARG(uap, fd);
fd 641 kern/kern_descrip.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 1108 kern/kern_descrip.c int fd = SCARG(uap, fd);
fd 1116 kern/kern_descrip.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 1258 kern/kern_descrip.c int fd;
fd 1260 kern/kern_descrip.c for (fd = 0; fd <= fdp->fd_lastfile; fd++)
fd 1261 kern/kern_descrip.c if (fdp->fd_ofileflags[fd] & UF_EXCLOSE)
fd 1262 kern/kern_descrip.c (void) fdrelease(p, fd);
fd 1272 kern/kern_descrip.c startfd = SCARG(uap, fd);
fd 385 kern/kern_event.c int fd, error;
fd 387 kern/kern_event.c error = falloc(p, &fp, &fd);
fd 397 kern/kern_event.c *retval = fd;
fd 423 kern/kern_event.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL ||
fd 903 kern/kern_event.c knote_fdclose(struct proc *p, int fd)
fd 906 kern/kern_event.c struct klist *list = &fdp->fd_knlist[fd];
fd 179 kern/kern_ktrace.c ktrgenio(struct proc *p, int fd, enum uio_rw rw, struct iovec *iov, int len,
fd 197 kern/kern_ktrace.c ktp->ktr_fd = fd;
fd 81 kern/sys_generic.c int fd = SCARG(uap, fd);
fd 85 kern/sys_generic.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 93 kern/sys_generic.c return (dofileread(p, fd, fp, SCARG(uap, buf), SCARG(uap, nbyte),
fd 98 kern/sys_generic.c dofileread(struct proc *p, int fd, struct file *fp, void *buf, size_t nbyte,
fd 146 kern/sys_generic.c ktrgenio(p, fd, UIO_READ, &ktriov, cnt, error);
fd 165 kern/sys_generic.c int fd = SCARG(uap, fd);
fd 169 kern/sys_generic.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 177 kern/sys_generic.c return (dofilereadv(p, fd, fp, SCARG(uap, iovp), SCARG(uap, iovcnt),
fd 182 kern/sys_generic.c dofilereadv(struct proc *p, int fd, struct file *fp, const struct iovec *iovp,
fd 255 kern/sys_generic.c ktrgenio(p, fd, UIO_READ, ktriov, cnt,
fd 280 kern/sys_generic.c int fd = SCARG(uap, fd);
fd 284 kern/sys_generic.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 292 kern/sys_generic.c return (dofilewrite(p, fd, fp, SCARG(uap, buf), SCARG(uap, nbyte),
fd 297 kern/sys_generic.c dofilewrite(struct proc *p, int fd, struct file *fp, const void *buf,
fd 348 kern/sys_generic.c ktrgenio(p, fd, UIO_WRITE, &ktriov, cnt, error);
fd 367 kern/sys_generic.c int fd = SCARG(uap, fd);
fd 371 kern/sys_generic.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 379 kern/sys_generic.c return (dofilewritev(p, fd, fp, SCARG(uap, iovp), SCARG(uap, iovcnt),
fd 384 kern/sys_generic.c dofilewritev(struct proc *p, int fd, struct file *fp, const struct iovec *iovp,
fd 460 kern/sys_generic.c ktrgenio(p, fd, UIO_WRITE, ktriov, cnt, error);
fd 496 kern/sys_generic.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 504 kern/sys_generic.c fdp->fd_ofileflags[SCARG(uap, fd)] &= ~UF_EXCLOSE;
fd 507 kern/sys_generic.c fdp->fd_ofileflags[SCARG(uap, fd)] |= UF_EXCLOSE;
fd 741 kern/sys_generic.c int msk, i, j, fd;
fd 753 kern/sys_generic.c while ((j = ffs(bits)) && (fd = i + --j) < nfd) {
fd 755 kern/sys_generic.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 759 kern/sys_generic.c FD_SET(fd, pobits);
fd 838 kern/sys_generic.c if (pl->fd < 0) {
fd 842 kern/sys_generic.c if ((fp = fd_getfile(fdp, pl->fd)) == NULL) {
fd 109 kern/sys_pipe.c int fd, error;
fd 122 kern/sys_pipe.c error = falloc(p, &rf, &fd);
fd 129 kern/sys_pipe.c retval[0] = fd;
fd 131 kern/sys_pipe.c error = falloc(p, &wf, &fd);
fd 138 kern/sys_pipe.c retval[1] = fd;
fd 73 kern/uipc_syscalls.c int fd, error;
fd 77 kern/uipc_syscalls.c if ((error = falloc(p, &fp, &fd)) != 0)
fd 85 kern/uipc_syscalls.c fdremove(fdp, fd);
fd 90 kern/uipc_syscalls.c *retval = fd;
fd 321 kern/uipc_syscalls.c int fd, error, sv[2];
fd 333 kern/uipc_syscalls.c if ((error = falloc(p, &fp1, &fd)) != 0)
fd 335 kern/uipc_syscalls.c sv[0] = fd;
fd 340 kern/uipc_syscalls.c if ((error = falloc(p, &fp2, &fd)) != 0)
fd 346 kern/uipc_syscalls.c sv[1] = fd;
fd 735 kern/uipc_usrreq.c int nfds, *ip, fd, neededspace;
fd 769 kern/uipc_usrreq.c bcopy(ip, &fd, sizeof fd);
fd 771 kern/uipc_usrreq.c if ((fp = fd_getfile(fdp, fd)) == NULL) {
fd 603 kern/vfs_syscalls.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 705 kern/vfs_syscalls.c if ((error = getvnode(fdp, SCARG(uap, fd), &fp)) != 0)
fd 1401 kern/vfs_syscalls.c if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
fd 1682 kern/vfs_syscalls.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 1764 kern/vfs_syscalls.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 1894 kern/vfs_syscalls.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 2007 kern/vfs_syscalls.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 2077 kern/vfs_syscalls.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 2113 kern/vfs_syscalls.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 2324 kern/vfs_syscalls.c if ((error = getvnode(p->p_fd, SCARG(uap, fd), &fp)) != 0)
fd 2413 kern/vfs_syscalls.c getvnode(struct filedesc *fdp, int fd, struct file **fpp)
fd 2418 kern/vfs_syscalls.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 2451 kern/vfs_syscalls.c int fd = SCARG(uap, fd);
fd 2453 kern/vfs_syscalls.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 2468 kern/vfs_syscalls.c return (dofileread(p, fd, fp, SCARG(uap, buf), SCARG(uap, nbyte),
fd 2489 kern/vfs_syscalls.c int fd = SCARG(uap, fd);
fd 2491 kern/vfs_syscalls.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 2506 kern/vfs_syscalls.c return (dofilereadv(p, fd, fp, SCARG(uap, iovp), SCARG(uap, iovcnt),
fd 2527 kern/vfs_syscalls.c int fd = SCARG(uap, fd);
fd 2529 kern/vfs_syscalls.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 2544 kern/vfs_syscalls.c return (dofilewrite(p, fd, fp, SCARG(uap, buf), SCARG(uap, nbyte),
fd 2565 kern/vfs_syscalls.c int fd = SCARG(uap, fd);
fd 2567 kern/vfs_syscalls.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 2582 kern/vfs_syscalls.c return (dofilewritev(p, fd, fp, SCARG(uap, iovp), SCARG(uap, iovcnt),
fd 69 lib/libsa/close.c close(int fd)
fd 71 lib/libsa/close.c oclose(int fd)
fd 74 lib/libsa/close.c struct open_file *f = &files[fd];
fd 77 lib/libsa/close.c if ((unsigned)fd >= SOPEN_MAX || f->f_flags == 0) {
fd 70 lib/libsa/cread.c int fd;
fd 106 lib/libsa/cread.c s->stream.avail_in = oread(s->fd, s->inbuf, Z_BUFSIZE);
fd 201 lib/libsa/cread.c int fd;
fd 204 lib/libsa/cread.c if (((fd = oopen(fname, mode)) == -1) ||
fd 206 lib/libsa/cread.c return(fd);
fd 208 lib/libsa/cread.c ss[fd] = s = alloc(sizeof(struct sd));
fd 226 lib/libsa/cread.c s->fd = fd;
fd 228 lib/libsa/cread.c return(fd);
fd 233 lib/libsa/cread.c oclose(fd);
fd 238 lib/libsa/cread.c close(int fd)
fd 243 lib/libsa/cread.c if ((unsigned)fd >= SOPEN_MAX) {
fd 247 lib/libsa/cread.c f = &files[fd];
fd 250 lib/libsa/cread.c return(oclose(fd));
fd 252 lib/libsa/cread.c s = ss[fd];
fd 259 lib/libsa/cread.c return(oclose(fd));
fd 263 lib/libsa/cread.c read(int fd, void *buf, size_t len)
fd 268 lib/libsa/cread.c s = ss[fd];
fd 296 lib/libsa/cread.c n = oread(fd, s->stream.next_out,
fd 317 lib/libsa/cread.c s->stream.avail_in = oread(fd, s->inbuf, Z_BUFSIZE);
fd 366 lib/libsa/cread.c lseek(int fd, off_t offset, int where)
fd 371 lib/libsa/cread.c if ((unsigned)fd >= SOPEN_MAX) {
fd 375 lib/libsa/cread.c f = &files[fd];
fd 378 lib/libsa/cread.c return(olseek(fd, offset, where));
fd 380 lib/libsa/cread.c s = ss[fd];
fd 383 lib/libsa/cread.c off_t res = olseek(fd, offset, where);
fd 402 lib/libsa/cread.c res = olseek(fd, 0, SEEK_SET);
fd 415 lib/libsa/cread.c s->fd = fd;
fd 430 lib/libsa/cread.c if (read(fd, dummybuf, len) != len) {
fd 38 lib/libsa/fstat.c fstat(int fd, struct stat *sb)
fd 40 lib/libsa/fstat.c struct open_file *f = &files[fd];
fd 42 lib/libsa/fstat.c if ((unsigned)fd >= SOPEN_MAX || f->f_flags == 0) {
fd 43 lib/libsa/getfile.c int fd;
fd 51 lib/libsa/getfile.c } while ((fd = open(buf, mode)) < 0);
fd 53 lib/libsa/getfile.c return (fd);
fd 67 lib/libsa/ioctl.c ioctl(int fd, u_long cmd, char *arg)
fd 69 lib/libsa/ioctl.c struct open_file *f = &files[fd];
fd 71 lib/libsa/ioctl.c if ((unsigned)fd >= SOPEN_MAX || f->f_flags == 0) {
fd 140 lib/libsa/loadfile.c int fd, rval;
fd 143 lib/libsa/loadfile.c if ((fd = open(fname, 0)) < 0) {
fd 149 lib/libsa/loadfile.c if ((nr = read(fd, &hdr, sizeof(hdr))) != sizeof(hdr)) {
fd 156 lib/libsa/loadfile.c rval = coff_exec(fd, &hdr.coff, marks, flags);
fd 162 lib/libsa/loadfile.c rval = elf32_exec(fd, &hdr.elf32, marks, flags);
fd 168 lib/libsa/loadfile.c rval = elf64_exec(fd, &hdr.elf64, marks, flags);
fd 177 lib/libsa/loadfile.c rval = aout_exec(fd, &hdr.aout, marks, flags);
fd 188 lib/libsa/loadfile.c return fd;
fd 191 lib/libsa/loadfile.c (void)close(fd);
fd 197 lib/libsa/loadfile.c coff_exec(int fd, struct ecoff_exechdr *coff, u_long *marks, int flags)
fd 203 lib/libsa/loadfile.c if (lseek(fd, ECOFF_TXTOFF(coff), SEEK_SET) == -1) {
fd 211 lib/libsa/loadfile.c if (READ(fd, coff->a.text_start, coff->a.tsize) !=
fd 217 lib/libsa/loadfile.c if (lseek(fd, coff->a.tsize, SEEK_CUR) == -1) {
fd 236 lib/libsa/loadfile.c if (READ(fd, coff->a.data_start, coff->a.dsize) !=
fd 279 lib/libsa/loadfile.c aout_exec(int fd, struct exec *x, u_long *marks, int flags)
fd 297 lib/libsa/loadfile.c if (lseek(fd, sizeof(*x), SEEK_SET) == -1) {
fd 324 lib/libsa/loadfile.c if (READ(fd, maxp, x->a_text - sub) != x->a_text - sub) {
fd 329 lib/libsa/loadfile.c if (lseek(fd, x->a_text - sub, SEEK_CUR) == -1) {
fd 358 lib/libsa/loadfile.c if (READ(fd, maxp, x->a_data) != x->a_data) {
fd 364 lib/libsa/loadfile.c if (lseek(fd, x->a_data, SEEK_CUR) == -1) {
fd 403 lib/libsa/loadfile.c if (READ(fd, maxp, x->a_syms) != x->a_syms) {
fd 408 lib/libsa/loadfile.c if (lseek(fd, x->a_syms, SEEK_CUR) == -1) {
fd 416 lib/libsa/loadfile.c if (read(fd, &cc, sizeof(cc)) != sizeof(cc)) {
fd 438 lib/libsa/loadfile.c if (READ(fd, maxp, cc) != cc) {
fd 443 lib/libsa/loadfile.c if (lseek(fd, cc, SEEK_CUR) == -1) {
fd 78 lib/libsa/loadfile_elf.c ELFNAME(exec)(int fd, Elf_Ehdr *elf, u_long *marks, int flags)
fd 93 lib/libsa/loadfile_elf.c if (lseek(fd, (off_t)elf->e_phoff, SEEK_SET) == -1) {
fd 98 lib/libsa/loadfile_elf.c if (read(fd, phdr, sz) != sz) {
fd 123 lib/libsa/loadfile_elf.c if (lseek(fd, (off_t)phdr[i].p_offset, SEEK_SET) == -1) {
fd 128 lib/libsa/loadfile_elf.c if (READ(fd, phdr[i].p_vaddr, phdr[i].p_filesz) !=
fd 170 lib/libsa/loadfile_elf.c if (lseek(fd, (off_t)elf->e_shoff, SEEK_SET) == -1) {
fd 177 lib/libsa/loadfile_elf.c if (read(fd, shp, sz) != sz) {
fd 203 lib/libsa/loadfile_elf.c if (lseek(fd, (off_t)shp[i].sh_offset,
fd 209 lib/libsa/loadfile_elf.c if (READ(fd, maxp, shp[i].sh_size) !=
fd 68 lib/libsa/lseek.c lseek(int fd, off_t offset, int where)
fd 70 lib/libsa/lseek.c olseek(int fd, off_t offset, int where)
fd 73 lib/libsa/lseek.c struct open_file *f = &files[fd];
fd 75 lib/libsa/lseek.c if ((unsigned)fd >= SOPEN_MAX || f->f_flags == 0) {
fd 280 lib/libsa/netif.c int fd;
fd 285 lib/libsa/netif.c for (fd = 0, s = sockets; fd < SOPEN_MAX; fd++, s++)
fd 305 lib/libsa/netif.c return(fd);
fd 80 lib/libsa/open.c int fd, i, error;
fd 84 lib/libsa/open.c for (fd = 0, f = files; fd < SOPEN_MAX; fd++, f++)
fd 106 lib/libsa/open.c return (fd);
fd 115 lib/libsa/open.c return (fd);
fd 69 lib/libsa/read.c read(int fd, void *dest, size_t bcount)
fd 71 lib/libsa/read.c oread(int fd, void *dest, size_t bcount)
fd 74 lib/libsa/read.c struct open_file *f = &files[fd];
fd 77 lib/libsa/read.c if ((unsigned)fd >= SOPEN_MAX || !(f->f_flags & F_READ)) {
fd 44 lib/libsa/readdir.c int fd;
fd 56 lib/libsa/readdir.c if ((fd = oopen(name, O_RDONLY)) >= 0)
fd 57 lib/libsa/readdir.c olseek(fd, 0, 0);
fd 59 lib/libsa/readdir.c if ((fd = open(name, O_RDONLY)) >= 0)
fd 60 lib/libsa/readdir.c lseek(fd, 0, SEEK_SET);
fd 63 lib/libsa/readdir.c return fd;
fd 67 lib/libsa/readdir.c readdir(int fd, char *dest)
fd 69 lib/libsa/readdir.c struct open_file *f = &files[fd];
fd 71 lib/libsa/readdir.c if (fd < 0 || fd >= SOPEN_MAX ||
fd 72 lib/libsa/readdir.c !((f = &files[fd])->f_flags & F_READ)) {
fd 88 lib/libsa/readdir.c closedir(int fd)
fd 91 lib/libsa/readdir.c oclose(fd);
fd 93 lib/libsa/readdir.c close(fd);
fd 165 lib/libsa/stand.h int fstat(int fd, struct stat *sb);
fd 40 lib/libsa/stat.c int fd, rv;
fd 43 lib/libsa/stat.c if ((fd = oopen(str, 0)) < 0)
fd 45 lib/libsa/stat.c if ((fd = open(str, 0)) < 0)
fd 48 lib/libsa/stat.c rv = fstat(fd, sb);
fd 50 lib/libsa/stat.c (void)oclose(fd);
fd 52 lib/libsa/stat.c (void)close(fd);
fd 69 lib/libsa/unixdev.c int fd;
fd 87 lib/libsa/unixdev.c f->f_devdata = (void *)(fd = uopen(*file, O_RDWR, 0));
fd 93 lib/libsa/unixdev.c return fd < 0 ? -1 : 0;
fd 109 lib/libsa/unixdev.c ulseek(int fd, off_t off, int wh)
fd 111 lib/libsa/unixdev.c return __syscall((quad_t)SYS_lseek, fd, 0, off, wh);
fd 68 lib/libsa/write.c write(int fd, void *dest, size_t bcount)
fd 70 lib/libsa/write.c struct open_file *f = &files[fd];
fd 73 lib/libsa/write.c if ((unsigned)fd >= SOPEN_MAX || !(f->f_flags & F_WRITE)) {
fd 1086 lib/libz/zlib.h ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode));
fd 135 lib/libz/zutil.h # define fdopen(fd,mode) NULL /* No fdopen() */
fd 155 lib/libz/zutil.h # define fdopen(fd,mode) NULL /* No fdopen() */
fd 160 lib/libz/zutil.h # define fdopen(fd,mode) NULL /* No fdopen() */
fd 166 lib/libz/zutil.h # define fdopen(fd,type) _fdopen(fd,type)
fd 150 miscfs/portal/portal_vnops.c portal_closefd(struct proc *p, int fd)
fd 158 miscfs/portal/portal_vnops.c SCARG(&ua, fd) = fd;
fd 285 miscfs/portal/portal_vnops.c int fd;
fd 455 miscfs/portal/portal_vnops.c fd = *ip++;
fd 472 miscfs/portal/portal_vnops.c if ((fp = fd_getfile(p->p_fd, fd)) == NULL) {
fd 477 miscfs/portal/portal_vnops.c portal_closefd(p, fd);
fd 487 miscfs/portal/portal_vnops.c p->p_dupfd = fd;
fd 57 stand/boot/boot.c int fd;
fd 90 stand/boot/boot.c if ((fd = loadfile(cmd.path, marks, LOAD_ALL)) != -1) {
fd 91 stand/boot/boot.c close(fd);
fd 106 stand/boot/cmd.c int fd, rc = 0;
fd 115 stand/boot/cmd.c if ((fd = open(qualify(cmd.conf), 0)) < 0) {
fd 124 stand/boot/cmd.c (void) fstat(fd, &sb);
fd 127 stand/boot/cmd.c close(fd);
fd 138 stand/boot/cmd.c rc = read(fd, p, 1);
fd 168 stand/boot/cmd.c close(fd);
fd 430 stand/boot/cmd.c int fd;
fd 440 stand/boot/cmd.c if ((fd = opendir(cmd.path)) < 0) {
fd 452 stand/boot/cmd.c while(readdir(fd, p) >= 0) {
fd 459 stand/boot/cmd.c closedir (fd);
fd 168 sys/event.h extern void knote_fdclose(struct proc *p, int fd);
fd 126 sys/filedesc.h struct file *fd_getfile(struct filedesc *, int fd);
fd 32 sys/poll.h int fd;
fd 31 sys/syscallargs.h syscallarg(int) fd;
fd 37 sys/syscallargs.h syscallarg(int) fd;
fd 49 sys/syscallargs.h syscallarg(int) fd;
fd 78 sys/syscallargs.h syscallarg(int) fd;
fd 109 sys/syscallargs.h syscallarg(int) fd;
fd 187 sys/syscallargs.h syscallarg(int) fd;
fd 207 sys/syscallargs.h syscallarg(int) fd;
fd 254 sys/syscallargs.h syscallarg(int) fd;
fd 293 sys/syscallargs.h syscallarg(int) fd;
fd 322 sys/syscallargs.h syscallarg(int) fd;
fd 399 sys/syscallargs.h syscallarg(int) fd;
fd 413 sys/syscallargs.h syscallarg(int) fd;
fd 536 sys/syscallargs.h syscallarg(int) fd;
fd 542 sys/syscallargs.h syscallarg(int) fd;
fd 553 sys/syscallargs.h syscallarg(int) fd;
fd 559 sys/syscallargs.h syscallarg(int) fd;
fd 593 sys/syscallargs.h syscallarg(int) fd;
fd 598 sys/syscallargs.h syscallarg(int) fd;
fd 691 sys/syscallargs.h syscallarg(int) fd;
fd 703 sys/syscallargs.h syscallarg(int) fd;
fd 756 sys/syscallargs.h syscallarg(int) fd;
fd 764 sys/syscallargs.h syscallarg(int) fd;
fd 811 sys/syscallargs.h syscallarg(int) fd;
fd 826 sys/syscallargs.h syscallarg(int) fd;
fd 847 sys/syscallargs.h syscallarg(int) fd;
fd 858 sys/syscallargs.h syscallarg(int) fd;
fd 864 sys/syscallargs.h syscallarg(int) fd;
fd 877 sys/syscallargs.h syscallarg(int) fd;
fd 902 sys/syscallargs.h syscallarg(int) fd;
fd 1068 sys/syscallargs.h syscallarg(int) fd;
fd 1092 sys/syscallargs.h syscallarg(int) fd;
fd 1100 sys/syscallargs.h syscallarg(int) fd;
fd 1108 sys/syscallargs.h syscallarg(int) fd;
fd 1155 sys/syscallargs.h syscallarg(int) fd;
fd 1161 sys/syscallargs.h syscallarg(int) fd;
fd 1187 sys/syscallargs.h syscallarg(int) fd;
fd 172 uvm/uvm_mmap.c int fd;
fd 177 uvm/uvm_mmap.c fd = SCARG(uap, fd);
fd 185 uvm/uvm_mmap.c if (fd >= 0) {
fd 186 uvm/uvm_mmap.c if ((error = getvnode(p->p_fd, fd, &fp)) != 0)
fd 398 uvm/uvm_mmap.c int flags, fd;
fd 414 uvm/uvm_mmap.c fd = SCARG(uap, fd);
fd 472 uvm/uvm_mmap.c if ((fp = fd_getfile(fdp, fd)) == NULL)
fd 581 uvm/uvm_mmap.c if (fd != -1) {
fd 361 xfs/xfs_dev-common.c xfs_message_send(int fd, struct xfs_message_header * message, u_int size)
fd 363 xfs/xfs_dev-common.c struct xfs_channel *chan = &xfs_channel[fd];
fd 430 xfs/xfs_dev-common.c xfs_message_rpc(int fd, struct xfs_message_header * message, u_int size,
fd 434 xfs/xfs_dev-common.c struct xfs_channel *chan = &xfs_channel[fd];
fd 596 xfs/xfs_dev-common.c xfs_message_receive(int fd,
fd 606 xfs/xfs_dev-common.c return xfs_message_wakeup(fd,
fd 611 xfs/xfs_dev-common.c return xfs_message_wakeup_data(fd,
fd 616 xfs/xfs_dev-common.c return xfs_message_installroot(fd,
fd 621 xfs/xfs_dev-common.c return xfs_message_installnode(fd,
fd 626 xfs/xfs_dev-common.c return xfs_message_installattr(fd,
fd 631 xfs/xfs_dev-common.c return xfs_message_installdata(fd,
fd 636 xfs/xfs_dev-common.c return xfs_message_invalidnode(fd,
fd 641 xfs/xfs_dev-common.c return xfs_message_updatefid(fd,
fd 646 xfs/xfs_dev-common.c return xfs_message_gc_nodes(fd,
fd 651 xfs/xfs_dev-common.c return xfs_message_version(fd,
fd 663 xfs/xfs_dev-common.c xfs_message_wakeup(int fd,
fd 668 xfs/xfs_dev-common.c struct xfs_channel *chan = &xfs_channel[fd];
fd 690 xfs/xfs_dev-common.c xfs_message_wakeup_data(int fd,
fd 695 xfs/xfs_dev-common.c struct xfs_channel *chan = &xfs_channel[fd];
fd 132 xfs/xfs_dev.h xfs_message_send(int fd, struct xfs_message_header * message, u_int size);
fd 135 xfs/xfs_dev.h xfs_message_rpc(int fd, struct xfs_message_header * message, u_int size,
fd 139 xfs/xfs_dev.h xfs_message_receive(int fd,
fd 145 xfs/xfs_dev.h xfs_message_wakeup(int fd,
fd 151 xfs/xfs_dev.h xfs_message_wakeup_data(int fd,
fd 57 xfs/xfs_fs.h int fd;
fd 47 xfs/xfs_message.c send_inactive_node(int fd, xfs_handle *handle)
fd 54 xfs/xfs_message.c xfs_message_send(fd, &msg.header, sizeof(msg));
fd 59 xfs/xfs_message.c xfs_message_installroot(int fd,
fd 72 xfs/xfs_message.c if (xfs[fd].root != NULL) {
fd 76 xfs/xfs_message.c error = new_xfs_node(&xfs[fd], &message->node, &xfs[fd].root, p);
fd 79 xfs/xfs_message.c NNPFS_MAKE_VROOT(xfs[fd].root->vn);
fd 85 xfs/xfs_message.c xfs_message_installnode(int fd,
fd 100 xfs/xfs_message.c dp = xfs_node_find(&xfs[fd].nodehead, &message->parent_handle);
fd 110 xfs/xfs_message.c error = new_xfs_node(&xfs[fd], &message->node, &n, p);
fd 131 xfs/xfs_message.c xfs_message_installattr(int fd,
fd 145 xfs/xfs_message.c t = xfs_node_find(&xfs[fd].nodehead, &message->node.handle);
fd 166 xfs/xfs_message.c xfs_message_installdata(int fd,
fd 181 xfs/xfs_message.c t = xfs_node_find(&xfs[fd].nodehead, &message->node.handle);
fd 266 xfs/xfs_message.c xfs_message_invalidnode(int fd,
fd 283 xfs/xfs_message.c t = xfs_node_find(&xfs[fd].nodehead, &message->handle);
fd 346 xfs/xfs_message.c send_inactive_node(fd, &message->handle);
fd 354 xfs/xfs_message.c xfs_message_updatefid(int fd,
fd 371 xfs/xfs_message.c error = xfs_update_handle(&xfs[fd].nodehead,
fd 480 xfs/xfs_message.c xfs_message_gc_nodes(int fd,
fd 491 xfs/xfs_message.c node = xfs_node_find (&xfs[fd].nodehead, &message->handle[i]);
fd 496 xfs/xfs_message.c send_inactive_node(fd, &message->handle[i]);
fd 509 xfs/xfs_message.c xfs_message_version(int fd,
fd 523 xfs/xfs_message.c return xfs_message_send(fd,
fd 40 xfs/xfs_msg_locl.h xfs_message_installroot(int fd,
fd 46 xfs/xfs_msg_locl.h xfs_message_installnode(int fd,
fd 52 xfs/xfs_msg_locl.h xfs_message_installattr(int fd,
fd 58 xfs/xfs_msg_locl.h xfs_message_installdata(int fd,
fd 64 xfs/xfs_msg_locl.h xfs_message_invalidnode(int fd,
fd 70 xfs/xfs_msg_locl.h xfs_message_updatefid(int fd,
fd 76 xfs/xfs_msg_locl.h xfs_message_gc_nodes(int fd,
fd 82 xfs/xfs_msg_locl.h xfs_message_version(int fd,
fd 139 xfs/xfs_vfsops-common.c xfs[minor(dev)].fd = minor(dev);
fd 274 xfs/xfs_vfsops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg), proc);
fd 92 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg), p);
fd 124 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg), p);
fd 171 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg), p);
fd 229 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg), p);
fd 489 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg), p);
fd 622 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header,
fd 675 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg), p);
fd 711 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg), p);
fd 753 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg), p);
fd 791 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg), p);
fd 820 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg), p);
fd 905 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg), p);
fd 954 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg->header, sizeof(*msg), proc);
fd 1072 xfs/xfs_vnodeops-common.c xfs_message_send(xfsp->fd, &msg.header, sizeof(msg));
fd 1111 xfs/xfs_vnodeops-common.c error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg), p);