sb 144 arch/i386/i386/bios.c struct smbios_struct_bios *sb; sb 269 arch/i386/i386/bios.c sb = bios.tblhdr; sb 272 arch/i386/i386/bios.c if ((smbios_get_string(&bios, sb->vendor, sb 275 arch/i386/i386/bios.c if ((smbios_get_string(&bios, sb->version, sb 278 arch/i386/i386/bios.c if ((smbios_get_string(&bios, sb->release, sb 117 arch/i386/stand/installboot/installboot.c struct stat sb; sb 179 arch/i386/stand/installboot/installboot.c if (fstat(devfd, &sb) < 0) sb 182 arch/i386/stand/installboot/installboot.c if (!S_ISCHR(sb.st_mode)) sb 329 arch/i386/stand/installboot/installboot.c struct stat statbuf, sb; sb 380 arch/i386/stand/installboot/installboot.c if (fstat(devfd, &sb) != 0) sb 386 arch/i386/stand/installboot/installboot.c mib[2] = sb.st_rdev; sb 92 compat/common/vfs_syscalls_35.c struct stat sb; sb 101 compat/common/vfs_syscalls_35.c error = vn_stat(nd.ni_vp, &sb, p); sb 107 compat/common/vfs_syscalls_35.c sb.st_gen = 0; sb 108 compat/common/vfs_syscalls_35.c cvtstat(&sb, &osb); sb 124 compat/common/vfs_syscalls_35.c struct stat sb; sb 133 compat/common/vfs_syscalls_35.c error = vn_stat(nd.ni_vp, &sb, p); sb 139 compat/common/vfs_syscalls_35.c sb.st_gen = 0; sb 140 compat/common/vfs_syscalls_35.c cvtstat(&sb, &osb); sb 174 compat/common/vfs_syscalls_35.c error = copyout(&oub, SCARG(uap, sb), sizeof(oub)); sb 212 compat/common/vfs_syscalls_35.c error = copyout(&oub, SCARG(uap, sb), sizeof(oub)); sb 111 compat/common/vfs_syscalls_43.c struct stat sb; sb 120 compat/common/vfs_syscalls_43.c error = vn_stat(nd.ni_vp, &sb, p); sb 126 compat/common/vfs_syscalls_43.c sb.st_gen = 0; sb 127 compat/common/vfs_syscalls_43.c cvtstat(&sb, &osb); sb 147 compat/common/vfs_syscalls_43.c struct stat sb; sb 156 compat/common/vfs_syscalls_43.c error = vn_stat(nd.ni_vp, &sb, p); sb 162 compat/common/vfs_syscalls_43.c sb.st_gen = 0; sb 163 compat/common/vfs_syscalls_43.c cvtstat(&sb, &osb); sb 200 compat/common/vfs_syscalls_43.c error = copyout(&oub, SCARG(uap, sb), sizeof(oub)); sb 137 compat/hpux/hppa/hpux_syscallargs.h syscallarg(struct hpux_stat *) sb; sb 142 compat/hpux/hppa/hpux_syscallargs.h syscallarg(struct hpux_stat *) sb; sb 215 compat/hpux/hppa/hpux_syscallargs.h syscallarg(struct hpux_stat *) sb; sb 406 compat/hpux/hpux_file.c SCARG(&fsa, sb) = st; sb 416 compat/hpux/hpux_file.c return (copyout(&tmphst, SCARG(uap, sb), sizeof(struct hpux_stat))); sb 486 compat/hpux/hpux_file.c return (copyout(&tmphst, SCARG(uap, sb), sizeof(struct hpux_stat))); sb 514 compat/hpux/hpux_file.c SCARG(&fsa, sb) = st; sb 524 compat/hpux/hpux_file.c return (copyout(&tmphst, SCARG(uap, sb), sizeof(struct hpux_ostat))); sb 562 compat/hpux/hpux_file.c return (copyout(&tmphst, SCARG(uap, sb), sizeof(struct hpux_ostat))); sb 569 compat/hpux/hpux_file.c bsd_to_hpux_ostat(sb, hsb) sb 570 compat/hpux/hpux_file.c struct stat *sb; sb 575 compat/hpux/hpux_file.c hsb->hst_dev = (u_short)sb->st_dev; sb 576 compat/hpux/hpux_file.c hsb->hst_ino = (u_short)sb->st_ino; sb 577 compat/hpux/hpux_file.c hsb->hst_mode = (u_short)sb->st_mode; sb 578 compat/hpux/hpux_file.c hsb->hst_nlink = (u_short)sb->st_nlink; sb 579 compat/hpux/hpux_file.c hsb->hst_uid = (u_short)sb->st_uid; sb 580 compat/hpux/hpux_file.c hsb->hst_gid = (u_short)sb->st_gid; sb 581 compat/hpux/hpux_file.c hsb->hst_rdev = (u_short)sb->st_rdev; sb 582 compat/hpux/hpux_file.c if (sb->st_size < (off_t)(((off_t)1) << 32)) sb 583 compat/hpux/hpux_file.c hsb->hst_size = (int)sb->st_size; sb 586 compat/hpux/hpux_file.c hsb->hst_atime = (int)sb->st_atime; sb 587 compat/hpux/hpux_file.c hsb->hst_mtime = (int)sb->st_mtime; sb 588 compat/hpux/hpux_file.c hsb->hst_ctime = (int)sb->st_ctime; sb 596 compat/hpux/hpux_file.c bsd_to_hpux_stat(sb, hsb) sb 597 compat/hpux/hpux_file.c struct stat *sb; sb 602 compat/hpux/hpux_file.c hsb->hst_dev = (long)sb->st_dev; sb 603 compat/hpux/hpux_file.c hsb->hst_ino = (u_long)sb->st_ino; sb 604 compat/hpux/hpux_file.c hsb->hst_mode = (u_short)sb->st_mode; sb 605 compat/hpux/hpux_file.c hsb->hst_nlink = (u_short)sb->st_nlink; sb 606 compat/hpux/hpux_file.c hsb->hst_uid = (u_long)sb->st_uid; sb 607 compat/hpux/hpux_file.c hsb->hst_gid = (u_long)sb->st_gid; sb 608 compat/hpux/hpux_file.c hsb->hst_rdev = (long)bsdtohpuxdev(sb->st_rdev); sb 612 compat/hpux/hpux_file.c hsb->hst_old_uid = (u_short)sb->st_uid; sb 613 compat/hpux/hpux_file.c hsb->hst_old_gid = (u_short)sb->st_gid; sb 615 compat/hpux/hpux_file.c if (sb->st_size < (off_t)(((off_t)1) << 32)) sb 616 compat/hpux/hpux_file.c hsb->hst_size = (long)sb->st_size; sb 619 compat/hpux/hpux_file.c hsb->hst_atime = (long)sb->st_atime; sb 620 compat/hpux/hpux_file.c hsb->hst_mtime = (long)sb->st_mtime; sb 621 compat/hpux/hpux_file.c hsb->hst_ctime = (long)sb->st_ctime; sb 622 compat/hpux/hpux_file.c hsb->hst_blksize = (long)sb->st_blksize; sb 623 compat/hpux/hpux_file.c hsb->hst_blocks = (long)sb->st_blocks; sb 516 compat/hpux/hpux_tty.c struct sgttyb sb; sb 527 compat/hpux/hpux_tty.c sb.sg_ispeed = hsb.sg_ispeed; sb 528 compat/hpux/hpux_tty.c sb.sg_ospeed = hsb.sg_ospeed; sb 529 compat/hpux/hpux_tty.c sb.sg_erase = hsb.sg_erase; sb 530 compat/hpux/hpux_tty.c sb.sg_kill = hsb.sg_kill; sb 531 compat/hpux/hpux_tty.c sb.sg_flags = hsb.sg_flags & ~(V7_HUPCL|V7_XTABS|V7_NOAL); sb 533 compat/hpux/hpux_tty.c sb.sg_flags |= XTABS; sb 542 compat/hpux/hpux_tty.c error = (*fp->f_ops->fo_ioctl)(fp, com, (caddr_t)&sb, p); sb 544 compat/hpux/hpux_tty.c hsb.sg_ispeed = sb.sg_ispeed; sb 545 compat/hpux/hpux_tty.c hsb.sg_ospeed = sb.sg_ospeed; sb 546 compat/hpux/hpux_tty.c hsb.sg_erase = sb.sg_erase; sb 547 compat/hpux/hpux_tty.c hsb.sg_kill = sb.sg_kill; sb 548 compat/hpux/hpux_tty.c hsb.sg_flags = sb.sg_flags & ~(V7_HUPCL|V7_XTABS|V7_NOAL); sb 549 compat/hpux/hpux_tty.c if (sb.sg_flags & XTABS) sb 89 compat/hpux/m68k/hpux_syscallargs.h syscallarg(struct hpux_ostat *) sb; sb 109 compat/hpux/m68k/hpux_syscallargs.h syscallarg(struct hpux_ostat *) sb; sb 147 compat/hpux/m68k/hpux_syscallargs.h syscallarg(struct hpux_stat *) sb; sb 152 compat/hpux/m68k/hpux_syscallargs.h syscallarg(struct hpux_stat *) sb; sb 230 compat/hpux/m68k/hpux_syscallargs.h syscallarg(struct hpux_stat *) sb; sb 394 compat/ibcs2/ibcs2_fcntl.c SCARG(&ofst, sb) = stackgap_alloc(&sg, sb 398 compat/ibcs2/ibcs2_fcntl.c if ((error = copyin(SCARG(&ofst, sb), &ost, sb 240 compat/ibcs2/ibcs2_stat.c SCARG(&cup, sb) = stackgap_alloc(&sg, sizeof(st)); sb 243 compat/ibcs2/ibcs2_stat.c if ((error = copyin(SCARG(&cup, sb), &st, sizeof(st))) != 0) sb 495 compat/linux/linux_file.c SCARG(&fsa, sb) = st; sb 134 compat/linux/linux_file64.c SCARG(&fsa, sb) = st; sb 254 compat/osf1/osf1_descrip.c error = copyout((caddr_t)&oub, (caddr_t)SCARG(uap, sb), sb 144 compat/osf1/osf1_file.c struct stat sb; sb 157 compat/osf1/osf1_file.c error = vn_stat(nd.ni_vp, &sb, p); sb 161 compat/osf1/osf1_file.c osf1_cvt_stat_from_native(&sb, &osb); sb 263 compat/osf1/osf1_file.c struct stat sb; sb 276 compat/osf1/osf1_file.c error = vn_stat(nd.ni_vp, &sb, p); sb 280 compat/osf1/osf1_file.c osf1_cvt_stat_from_native(&sb, &osb); sb 159 compat/osf1/osf1_syscallargs.h syscallarg(void *) sb; sb 253 compat/svr4/svr4_stat.c SCARG(&cup, sb) = (struct svr4_xstat *) SCARG(uap, sb); sb 264 compat/svr4/svr4_stat.c SCARG(&cup, sb) = stackgap_alloc(&sg, sizeof(struct stat)); sb 269 compat/svr4/svr4_stat.c if ((error = copyin(SCARG(&cup, sb), &st, sizeof st)) != 0) sb 274 compat/svr4/svr4_stat.c if ((error = copyout(&svr4_st, SCARG(uap, sb), sizeof svr4_st)) != 0) sb 367 compat/svr4/svr4_stat.c SCARG(&cup, sb) = stackgap_alloc(&sg, sizeof(struct stat)); sb 372 compat/svr4/svr4_stat.c if ((error = copyin(SCARG(&cup, sb), &st, sizeof st)) != 0) sb 377 compat/svr4/svr4_stat.c if ((error = copyout(&svr4_st, SCARG(uap, sb), sizeof svr4_st)) != 0) sb 412 compat/svr4/svr4_stat.c if ((error = copyout(&svr4_st, SCARG(uap, sb), sizeof svr4_st)) != 0) sb 447 compat/svr4/svr4_stat.c if ((error = copyout(&svr4_st, SCARG(uap, sb), sizeof svr4_st)) != 0) sb 469 compat/svr4/svr4_stat.c SCARG(&cup, sb) = stackgap_alloc(&sg, sizeof(struct stat)); sb 474 compat/svr4/svr4_stat.c if ((error = copyin(SCARG(&cup, sb), &st, sizeof st)) != 0) sb 479 compat/svr4/svr4_stat.c if ((error = copyout(&svr4_st, SCARG(uap, sb), sizeof svr4_st)) != 0) sb 71 compat/svr4/svr4_syscallargs.h syscallarg(struct svr4_stat *) sb; sb 281 compat/svr4/svr4_syscallargs.h syscallarg(struct svr4_xstat *) sb; sb 403 compat/svr4/svr4_syscallargs.h syscallarg(struct svr4_stat64 *) sb; sb 408 compat/svr4/svr4_syscallargs.h syscallarg(struct svr4_stat64 *) sb; sb 413 compat/svr4/svr4_syscallargs.h syscallarg(struct svr4_stat64 *) sb; sb 610 crypto/cryptodev.c cryptof_stat(struct file *fp, struct stat *sb, struct proc *p) sb 169 dev/rasops/rasops_bitops.h int tmp, lmask, rmask, height, lnum, rnum, sb, db, cnt, full; sb 215 dev/rasops/rasops_bitops.h sb = src & 31; sb 218 dev/rasops/rasops_bitops.h GETBITS(srp, sb, num, tmp); sb 239 dev/rasops/rasops_bitops.h sb = src & 31; sb 275 dev/rasops/rasops_bitops.h if (src > sb) sb 278 dev/rasops/rasops_bitops.h GETBITS(sp, sb, lnum, tmp); sb 289 dev/rasops/rasops_bitops.h sb = src & 31; sb 296 dev/rasops/rasops_bitops.h GETBITS(sp, sb, lnum, tmp); sb 300 dev/rasops/rasops_bitops.h if ((sb += lnum) > 31) { sb 302 dev/rasops/rasops_bitops.h sb -= 32; sb 308 dev/rasops/rasops_bitops.h GETBITS(sp, sb, 32, tmp); sb 313 dev/rasops/rasops_bitops.h GETBITS(sp, sb, rnum, tmp); sb 447 dev/systrace.c systracef_stat(fp, sb, p) sb 449 dev/systrace.c struct stat *sb; sb 299 kern/kern_acct.c struct statfs sb; sb 309 kern/kern_acct.c (void)VFS_STATFS(savacctp->v_mount, &sb, (struct proc *)0); sb 310 kern/kern_acct.c if (sb.f_bavail > acctresume * sb.f_blocks / 100) { sb 321 kern/kern_acct.c (void)VFS_STATFS(acctp->v_mount, &sb, (struct proc *)0); sb 322 kern/kern_acct.c if (sb.f_bavail <= acctsuspend * sb.f_blocks / 100) { sb 618 kern/kern_descrip.c error = copyout((caddr_t)&ub, (caddr_t)SCARG(uap, sb), sb 948 kern/uipc_socket.c struct sockbuf *sb = &so->so_rcv; sb 953 kern/uipc_socket.c sb->sb_flags |= SB_NOINTR; sb 954 kern/uipc_socket.c (void) sblock(sb, M_WAITOK); sb 957 kern/uipc_socket.c sbunlock(sb); sb 958 kern/uipc_socket.c asb = *sb; sb 959 kern/uipc_socket.c bzero(sb, sizeof (*sb)); sb 962 kern/uipc_socket.c sb->sb_sel.si_note = asb.sb_sel.si_note; sb 963 kern/uipc_socket.c sb->sb_flags = SB_KNOTE; sb 1199 kern/uipc_socket.c struct sockbuf *sb; sb 1208 kern/uipc_socket.c sb = &so->so_rcv; sb 1212 kern/uipc_socket.c sb = &so->so_snd; sb 1219 kern/uipc_socket.c SLIST_INSERT_HEAD(&sb->sb_sel.si_note, kn, kn_selnext); sb 1220 kern/uipc_socket.c sb->sb_flags |= SB_KNOTE; sb 279 kern/uipc_socket2.c sbwait(struct sockbuf *sb) sb 282 kern/uipc_socket2.c sb->sb_flags |= SB_WAIT; sb 283 kern/uipc_socket2.c return (tsleep(&sb->sb_cc, sb 284 kern/uipc_socket2.c (sb->sb_flags & SB_NOINTR) ? PSOCK : PSOCK | PCATCH, netio, sb 285 kern/uipc_socket2.c sb->sb_timeo)); sb 293 kern/uipc_socket2.c sb_lock(struct sockbuf *sb) sb 297 kern/uipc_socket2.c while (sb->sb_flags & SB_LOCK) { sb 298 kern/uipc_socket2.c sb->sb_flags |= SB_WANT; sb 299 kern/uipc_socket2.c error = tsleep(&sb->sb_flags, sb 300 kern/uipc_socket2.c (sb->sb_flags & SB_NOINTR) ? sb 305 kern/uipc_socket2.c sb->sb_flags |= SB_LOCK; sb 315 kern/uipc_socket2.c sowakeup(struct socket *so, struct sockbuf *sb) sb 317 kern/uipc_socket2.c selwakeup(&sb->sb_sel); sb 318 kern/uipc_socket2.c sb->sb_flags &= ~SB_SEL; sb 319 kern/uipc_socket2.c if (sb->sb_flags & SB_WAIT) { sb 320 kern/uipc_socket2.c sb->sb_flags &= ~SB_WAIT; sb 321 kern/uipc_socket2.c wakeup(&sb->sb_cc); sb 325 kern/uipc_socket2.c KNOTE(&sb->sb_sel.si_note, 0); sb 387 kern/uipc_socket2.c sbreserve(struct sockbuf *sb, u_long cc) sb 392 kern/uipc_socket2.c sb->sb_hiwat = cc; sb 393 kern/uipc_socket2.c sb->sb_mbmax = min(cc * 2, sb_max + (sb_max / MCLBYTES) * MSIZE); sb 394 kern/uipc_socket2.c if (sb->sb_lowat > sb->sb_hiwat) sb 395 kern/uipc_socket2.c sb->sb_lowat = sb->sb_hiwat; sb 416 kern/uipc_socket2.c sbrelease(struct sockbuf *sb) sb 419 kern/uipc_socket2.c sbflush(sb); sb 420 kern/uipc_socket2.c sb->sb_hiwat = sb->sb_mbmax = 0; sb 450 kern/uipc_socket2.c sblastrecordchk(struct sockbuf *sb, const char *where) sb 452 kern/uipc_socket2.c struct mbuf *m = sb->sb_mb; sb 457 kern/uipc_socket2.c if (m != sb->sb_lastrecord) { sb 459 kern/uipc_socket2.c sb->sb_mb, sb->sb_lastrecord, m); sb 461 kern/uipc_socket2.c for (m = sb->sb_mb; m != NULL; m = m->m_nextpkt) sb 468 kern/uipc_socket2.c sblastmbufchk(struct sockbuf *sb, const char *where) sb 470 kern/uipc_socket2.c struct mbuf *m = sb->sb_mb; sb 479 kern/uipc_socket2.c if (m != sb->sb_mbtail) { sb 481 kern/uipc_socket2.c sb->sb_mb, sb->sb_mbtail, m); sb 483 kern/uipc_socket2.c for (m = sb->sb_mb; m != NULL; m = m->m_nextpkt) { sb 494 kern/uipc_socket2.c #define SBLINKRECORD(sb, m0) \ sb 496 kern/uipc_socket2.c if ((sb)->sb_lastrecord != NULL) \ sb 497 kern/uipc_socket2.c (sb)->sb_lastrecord->m_nextpkt = (m0); \ sb 499 kern/uipc_socket2.c (sb)->sb_mb = (m0); \ sb 500 kern/uipc_socket2.c (sb)->sb_lastrecord = (m0); \ sb 510 kern/uipc_socket2.c sbappend(struct sockbuf *sb, struct mbuf *m) sb 517 kern/uipc_socket2.c SBLASTRECORDCHK(sb, "sbappend 1"); sb 519 kern/uipc_socket2.c if ((n = sb->sb_lastrecord) != NULL) { sb 527 kern/uipc_socket2.c sbappendrecord(sb, m); /* XXXXXX!!!! */ sb 536 kern/uipc_socket2.c sb->sb_lastrecord = m; sb 538 kern/uipc_socket2.c sbcompress(sb, m, n); sb 539 kern/uipc_socket2.c SBLASTRECORDCHK(sb, "sbappend 2"); sb 548 kern/uipc_socket2.c sbappendstream(struct sockbuf *sb, struct mbuf *m) sb 552 kern/uipc_socket2.c KASSERT(sb->sb_mb == sb->sb_lastrecord); sb 554 kern/uipc_socket2.c SBLASTMBUFCHK(sb, __func__); sb 556 kern/uipc_socket2.c sbcompress(sb, m, sb->sb_mbtail); sb 558 kern/uipc_socket2.c sb->sb_lastrecord = sb->sb_mb; sb 559 kern/uipc_socket2.c SBLASTRECORDCHK(sb, __func__); sb 564 kern/uipc_socket2.c sbcheck(struct sockbuf *sb) sb 569 kern/uipc_socket2.c for (m = sb->sb_mb; m; m = m->m_next) { sb 577 kern/uipc_socket2.c if (len != sb->sb_cc || mbcnt != sb->sb_mbcnt) { sb 578 kern/uipc_socket2.c printf("cc %lu != %lu || mbcnt %lu != %lu\n", len, sb->sb_cc, sb 579 kern/uipc_socket2.c mbcnt, sb->sb_mbcnt); sb 590 kern/uipc_socket2.c sbappendrecord(struct sockbuf *sb, struct mbuf *m0) sb 601 kern/uipc_socket2.c sballoc(sb, m0); sb 602 kern/uipc_socket2.c SBLASTRECORDCHK(sb, "sbappendrecord 1"); sb 603 kern/uipc_socket2.c SBLINKRECORD(sb, m0); sb 610 kern/uipc_socket2.c sbcompress(sb, m, m0); sb 611 kern/uipc_socket2.c SBLASTRECORDCHK(sb, "sbappendrecord 2"); sb 620 kern/uipc_socket2.c sbinsertoob(struct sockbuf *sb, struct mbuf *m0) sb 627 kern/uipc_socket2.c SBLASTRECORDCHK(sb, "sbinsertoob 1"); sb 629 kern/uipc_socket2.c for (mp = &sb->sb_mb; (m = *mp) != NULL; mp = &((*mp)->m_nextpkt)) { sb 646 kern/uipc_socket2.c sballoc(sb, m0); sb 650 kern/uipc_socket2.c sb->sb_lastrecord = m0; sb 659 kern/uipc_socket2.c sbcompress(sb, m, m0); sb 660 kern/uipc_socket2.c SBLASTRECORDCHK(sb, "sbinsertoob 2"); sb 670 kern/uipc_socket2.c sbappendaddr(struct sockbuf *sb, struct sockaddr *asa, struct mbuf *m0, sb 685 kern/uipc_socket2.c if (space > sbspace(sb)) sb 700 kern/uipc_socket2.c SBLASTRECORDCHK(sb, "sbappendaddr 1"); sb 703 kern/uipc_socket2.c sballoc(sb, n); sb 704 kern/uipc_socket2.c sballoc(sb, n); sb 706 kern/uipc_socket2.c SBLINKRECORD(sb, m); sb 708 kern/uipc_socket2.c sb->sb_mbtail = nlast; sb 709 kern/uipc_socket2.c SBLASTMBUFCHK(sb, "sbappendaddr"); sb 711 kern/uipc_socket2.c SBLASTRECORDCHK(sb, "sbappendaddr 2"); sb 717 kern/uipc_socket2.c sbappendcontrol(struct sockbuf *sb, struct mbuf *m0, struct mbuf *control) sb 732 kern/uipc_socket2.c if (space > sbspace(sb)) sb 736 kern/uipc_socket2.c SBLASTRECORDCHK(sb, "sbappendcontrol 1"); sb 739 kern/uipc_socket2.c sballoc(sb, m); sb 740 kern/uipc_socket2.c sballoc(sb, m); sb 742 kern/uipc_socket2.c SBLINKRECORD(sb, control); sb 744 kern/uipc_socket2.c sb->sb_mbtail = mlast; sb 745 kern/uipc_socket2.c SBLASTMBUFCHK(sb, "sbappendcontrol"); sb 747 kern/uipc_socket2.c SBLASTRECORDCHK(sb, "sbappendcontrol 2"); sb 758 kern/uipc_socket2.c sbcompress(struct sockbuf *sb, struct mbuf *m, struct mbuf *n) sb 769 kern/uipc_socket2.c if (sb->sb_lastrecord == m) sb 770 kern/uipc_socket2.c sb->sb_lastrecord = m->m_next; sb 782 kern/uipc_socket2.c sb->sb_cc += m->m_len; sb 784 kern/uipc_socket2.c sb->sb_datacc += m->m_len; sb 791 kern/uipc_socket2.c sb->sb_mb = m; sb 792 kern/uipc_socket2.c sb->sb_mbtail = m; sb 793 kern/uipc_socket2.c sballoc(sb, m); sb 805 kern/uipc_socket2.c SBLASTMBUFCHK(sb, __func__); sb 813 kern/uipc_socket2.c sbflush(struct sockbuf *sb) sb 816 kern/uipc_socket2.c KASSERT((sb->sb_flags & SB_LOCK) == 0); sb 818 kern/uipc_socket2.c while (sb->sb_mbcnt) sb 819 kern/uipc_socket2.c sbdrop(sb, (int)sb->sb_cc); sb 821 kern/uipc_socket2.c KASSERT(sb->sb_cc == 0); sb 822 kern/uipc_socket2.c KASSERT(sb->sb_datacc == 0); sb 823 kern/uipc_socket2.c KASSERT(sb->sb_mb == NULL); sb 824 kern/uipc_socket2.c KASSERT(sb->sb_mbtail == NULL); sb 825 kern/uipc_socket2.c KASSERT(sb->sb_lastrecord == NULL); sb 832 kern/uipc_socket2.c sbdrop(struct sockbuf *sb, int len) sb 837 kern/uipc_socket2.c next = (m = sb->sb_mb) ? m->m_nextpkt : 0; sb 849 kern/uipc_socket2.c sb->sb_cc -= len; sb 851 kern/uipc_socket2.c sb->sb_datacc -= len; sb 855 kern/uipc_socket2.c sbfree(sb, m); sb 860 kern/uipc_socket2.c sbfree(sb, m); sb 865 kern/uipc_socket2.c sb->sb_mb = m; sb 868 kern/uipc_socket2.c sb->sb_mb = next; sb 874 kern/uipc_socket2.c m = sb->sb_mb; sb 876 kern/uipc_socket2.c sb->sb_mbtail = NULL; sb 877 kern/uipc_socket2.c sb->sb_lastrecord = NULL; sb 879 kern/uipc_socket2.c sb->sb_lastrecord = m; sb 887 kern/uipc_socket2.c sbdroprecord(struct sockbuf *sb) sb 891 kern/uipc_socket2.c m = sb->sb_mb; sb 893 kern/uipc_socket2.c sb->sb_mb = m->m_nextpkt; sb 895 kern/uipc_socket2.c sbfree(sb, m); sb 899 kern/uipc_socket2.c SB_EMPTY_FIXUP(sb); sb 1093 kern/vfs_syscalls.c struct stat sb; sb 1112 kern/vfs_syscalls.c error = vn_stat(vp, &sb, p); sb 1116 kern/vfs_syscalls.c error = copyout(&sb, SCARG(uap, sb), sizeof(sb)); sb 1509 kern/vfs_syscalls.c struct stat sb; sb 1517 kern/vfs_syscalls.c error = vn_stat(nd.ni_vp, &sb, p); sb 1523 kern/vfs_syscalls.c sb.st_gen = 0; sb 1524 kern/vfs_syscalls.c error = copyout(&sb, SCARG(uap, ub), sizeof(sb)); sb 1539 kern/vfs_syscalls.c struct stat sb; sb 1547 kern/vfs_syscalls.c error = vn_stat(nd.ni_vp, &sb, p); sb 1553 kern/vfs_syscalls.c sb.st_gen = 0; sb 1554 kern/vfs_syscalls.c error = copyout(&sb, SCARG(uap, ub), sizeof(sb)); sb 335 kern/vfs_vnops.c vn_statfile(struct file *fp, struct stat *sb, struct proc *p) sb 338 kern/vfs_vnops.c return vn_stat(vp, sb, p); sb 345 kern/vfs_vnops.c vn_stat(struct vnode *vp, struct stat *sb, struct proc *p) sb 357 kern/vfs_vnops.c sb->st_dev = va.va_fsid; sb 358 kern/vfs_vnops.c sb->st_ino = va.va_fileid; sb 385 kern/vfs_vnops.c sb->st_mode = mode; sb 386 kern/vfs_vnops.c sb->st_nlink = va.va_nlink; sb 387 kern/vfs_vnops.c sb->st_uid = va.va_uid; sb 388 kern/vfs_vnops.c sb->st_gid = va.va_gid; sb 389 kern/vfs_vnops.c sb->st_rdev = va.va_rdev; sb 390 kern/vfs_vnops.c sb->st_size = va.va_size; sb 391 kern/vfs_vnops.c sb->st_atimespec = va.va_atime; sb 392 kern/vfs_vnops.c sb->st_mtimespec = va.va_mtime; sb 393 kern/vfs_vnops.c sb->st_ctimespec = va.va_ctime; sb 394 kern/vfs_vnops.c sb->st_blksize = va.va_blocksize; sb 395 kern/vfs_vnops.c sb->st_flags = va.va_flags; sb 396 kern/vfs_vnops.c sb->st_gen = va.va_gen; sb 397 kern/vfs_vnops.c sb->st_blocks = va.va_bytes / S_BLKSIZE; sb 370 lib/libsa/cd9660.c cd9660_stat(struct open_file *f, struct stat *sb) sb 375 lib/libsa/cd9660.c sb->st_mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH; sb 376 lib/libsa/cd9660.c sb->st_uid = sb->st_gid = 0; sb 377 lib/libsa/cd9660.c sb->st_size = fp->size; sb 42 lib/libsa/cd9660.h int cd9660_stat(struct open_file *f, struct stat *sb); sb 51 lib/libsa/exec.c struct stat sb; sb 65 lib/libsa/exec.c (void) fstat(io, &sb); sb 66 lib/libsa/exec.c if (sb.st_mode & 2) sb 38 lib/libsa/fstat.c fstat(int fd, struct stat *sb) sb 53 lib/libsa/fstat.c errno = (f->f_ops->stat)(f, sb); sb 591 lib/libsa/nfs.c nfs_stat(struct open_file *f, struct stat *sb) sb 600 lib/libsa/nfs.c sb->st_mode = mode; sb 601 lib/libsa/nfs.c sb->st_nlink = ntohl(fp->fa.fa_nlink); sb 602 lib/libsa/nfs.c sb->st_uid = ntohl(fp->fa.fa_uid); sb 603 lib/libsa/nfs.c sb->st_gid = ntohl(fp->fa.fa_gid); sb 604 lib/libsa/nfs.c sb->st_size = ntohl(fp->fa.fa_size); sb 40 lib/libsa/nfs.h int nfs_stat(struct open_file *f, struct stat *sb); sb 101 lib/libsa/nullfs.c null_stat(struct open_file *f, struct stat *sb) sb 43 lib/libsa/readdir.c struct stat sb; sb 46 lib/libsa/readdir.c if (stat(name, &sb) < 0) sb 49 lib/libsa/readdir.c if (!S_ISDIR(sb.st_mode)) { sb 70 lib/libsa/stand.h int (*stat)(struct open_file *f, struct stat *sb); sb 164 lib/libsa/stand.h int stat(const char *path, struct stat *sb); sb 165 lib/libsa/stand.h int fstat(int fd, struct stat *sb); sb 180 lib/libsa/stand.h int null_stat(struct open_file *f, struct stat *sb); sb 38 lib/libsa/stat.c stat(const char *str, struct stat *sb) sb 48 lib/libsa/stat.c rv = fstat(fd, sb); sb 384 lib/libsa/tftp.c tftp_stat(struct open_file *f, struct stat *sb) sb 389 lib/libsa/tftp.c sb->st_mode = 0444; sb 390 lib/libsa/tftp.c sb->st_nlink = 1; sb 391 lib/libsa/tftp.c sb->st_uid = 0; sb 392 lib/libsa/tftp.c sb->st_gid = 0; sb 393 lib/libsa/tftp.c sb->st_size = -1; sb 624 lib/libsa/ufs.c ufs_stat(struct open_file *f, struct stat *sb) sb 629 lib/libsa/ufs.c sb->st_mode = fp->f_di.di_mode; sb 630 lib/libsa/ufs.c sb->st_uid = fp->f_di.di_uid; sb 631 lib/libsa/ufs.c sb->st_gid = fp->f_di.di_gid; sb 632 lib/libsa/ufs.c sb->st_size = fp->f_di.di_size; sb 42 lib/libsa/ufs.h int ufs_stat(struct open_file *f, struct stat *sb); sb 509 miscfs/fifofs/fifo_vnops.c struct sockbuf *sb; sb 514 miscfs/fifofs/fifo_vnops.c sb = &so->so_rcv; sb 518 miscfs/fifofs/fifo_vnops.c sb = &so->so_snd; sb 526 miscfs/fifofs/fifo_vnops.c SLIST_INSERT_HEAD(&sb->sb_sel.si_note, ap->a_kn, kn_selnext); sb 527 miscfs/fifofs/fifo_vnops.c sb->sb_flags |= SB_KNOTE; sb 144 scsi/scsiconf.c struct scsibus_softc *sb = (struct scsibus_softc *)self; sb 152 scsi/scsiconf.c sc_link_proto->scsibus = sb->sc_dev.dv_unit; sb 153 scsi/scsiconf.c sb->adapter_link = sc_link_proto; sb 154 scsi/scsiconf.c if (sb->adapter_link->adapter_buswidth == 0) sb 155 scsi/scsiconf.c sb->adapter_link->adapter_buswidth = 8; sb 156 scsi/scsiconf.c sb->sc_buswidth = sb->adapter_link->adapter_buswidth; sb 157 scsi/scsiconf.c if (sb->adapter_link->luns == 0) sb 158 scsi/scsiconf.c sb->adapter_link->luns = 8; sb 160 scsi/scsiconf.c printf(": %d targets\n", sb->sc_buswidth); sb 165 scsi/scsiconf.c nbytes = sb->sc_buswidth * sizeof(struct scsi_link **); sb 166 scsi/scsiconf.c sb->sc_link = malloc(nbytes, M_DEVBUF, M_NOWAIT); sb 167 scsi/scsiconf.c if (sb->sc_link == NULL) sb 169 scsi/scsiconf.c nbytes = sb->adapter_link->luns * sizeof(struct scsi_link *); sb 170 scsi/scsiconf.c for (i = 0; i < sb->sc_buswidth; i++) { sb 171 scsi/scsiconf.c sb->sc_link[i] = malloc(nbytes, M_DEVBUF, M_NOWAIT); sb 172 scsi/scsiconf.c if (sb->sc_link[i] == NULL) sb 174 scsi/scsiconf.c bzero(sb->sc_link[i], nbytes); sb 178 scsi/scsiconf.c if (bio_register(&sb->sc_dev, scsibus_bioctl) != 0) sb 179 scsi/scsiconf.c printf("%s: unable to register bio\n", sb->sc_dev.dv_xname); sb 182 scsi/scsiconf.c scsi_probe_bus(sb); sb 194 scsi/scsiconf.c struct scsibus_softc *sb = (struct scsibus_softc *)dev; sb 198 scsi/scsiconf.c bio_unregister(&sb->sc_dev); sb 204 scsi/scsiconf.c for (i = 0; i < sb->sc_buswidth; i++) { sb 205 scsi/scsiconf.c if (sb->sc_link[i] != NULL) { sb 206 scsi/scsiconf.c for (j = 0; j < sb->adapter_link->luns; j++) { sb 207 scsi/scsiconf.c if (sb->sc_link[i][j] != NULL) sb 208 scsi/scsiconf.c free(sb->sc_link[i][j], M_DEVBUF); sb 210 scsi/scsiconf.c free(sb->sc_link[i], M_DEVBUF); sb 214 scsi/scsiconf.c free(sb->sc_link, M_DEVBUF); sb 104 stand/boot/cmd.c struct stat sb; sb 124 stand/boot/cmd.c (void) fstat(fd, &sb); sb 125 stand/boot/cmd.c if (sb.st_uid || (sb.st_mode & 2)) { sb 428 stand/boot/cmd.c struct stat sb; sb 432 stand/boot/cmd.c if (stat(qualify((cmd.argv[1]? cmd.argv[1]: "/.")), &sb) < 0) { sb 437 stand/boot/cmd.c if ((sb.st_mode & S_IFMT) != S_IFDIR) sb 438 stand/boot/cmd.c ls(cmd.path, &sb); sb 453 stand/boot/cmd.c if (stat(cmd.path, &sb) < 0) sb 457 stand/boot/cmd.c ls(p, &sb); sb 470 stand/boot/cmd.c ls(char *name, struct stat *sb) sb 472 stand/boot/cmd.c putchar("-fc-d-b---l-s-w-"[(sb->st_mode & S_IFMT) >> 12]); sb 473 stand/boot/cmd.c lsrwx(sb->st_mode >> 6, (sb->st_mode & S_ISUID? "sS" : "x-")); sb 474 stand/boot/cmd.c lsrwx(sb->st_mode >> 3, (sb->st_mode & S_ISGID? "sS" : "x-")); sb 475 stand/boot/cmd.c lsrwx(sb->st_mode , (sb->st_mode & S_ISTXT? "tT" : "x-")); sb 477 stand/boot/cmd.c printf (" %u,%u\t%lu\t%s\n", sb->st_uid, sb->st_gid, sb 478 stand/boot/cmd.c (u_long)sb->st_size, name); sb 113 sys/socketvar.h #define SB_EMPTY_FIXUP(sb) \ sb 115 sys/socketvar.h if ((sb)->sb_mb == NULL) { \ sb 116 sys/socketvar.h (sb)->sb_mbtail = NULL; \ sb 117 sys/socketvar.h (sb)->sb_lastrecord = NULL; \ sb 147 sys/socketvar.h #define sb_notify(sb) (((sb)->sb_flags & (SB_WAIT|SB_SEL|SB_ASYNC| \ sb 156 sys/socketvar.h #define sbspace(sb) \ sb 157 sys/socketvar.h lmin((sb)->sb_hiwat - (sb)->sb_cc, (sb)->sb_mbmax - (sb)->sb_mbcnt) sb 181 sys/socketvar.h #define sballoc(sb, m) { \ sb 182 sys/socketvar.h (sb)->sb_cc += (m)->m_len; \ sb 184 sys/socketvar.h (sb)->sb_datacc += (m)->m_len; \ sb 185 sys/socketvar.h (sb)->sb_mbcnt += MSIZE; \ sb 187 sys/socketvar.h (sb)->sb_mbcnt += (m)->m_ext.ext_size; \ sb 191 sys/socketvar.h #define sbfree(sb, m) { \ sb 192 sys/socketvar.h (sb)->sb_cc -= (m)->m_len; \ sb 194 sys/socketvar.h (sb)->sb_datacc -= (m)->m_len; \ sb 195 sys/socketvar.h (sb)->sb_mbcnt -= MSIZE; \ sb 197 sys/socketvar.h (sb)->sb_mbcnt -= (m)->m_ext.ext_size; \ sb 205 sys/socketvar.h #define sblock(sb, wf) ((sb)->sb_flags & SB_LOCK ? \ sb 206 sys/socketvar.h (((wf) == M_WAITOK) ? sb_lock(sb) : EWOULDBLOCK) : \ sb 207 sys/socketvar.h ((sb)->sb_flags |= SB_LOCK, 0)) sb 210 sys/socketvar.h #define sbunlock(sb) { \ sb 211 sys/socketvar.h (sb)->sb_flags &= ~SB_LOCK; \ sb 212 sys/socketvar.h if ((sb)->sb_flags & SB_WANT) { \ sb 213 sys/socketvar.h (sb)->sb_flags &= ~SB_WANT; \ sb 214 sys/socketvar.h wakeup((caddr_t)&(sb)->sb_flags); \ sb 256 sys/socketvar.h void sbappend(struct sockbuf *sb, struct mbuf *m); sb 257 sys/socketvar.h void sbappendstream(struct sockbuf *sb, struct mbuf *m); sb 258 sys/socketvar.h int sbappendaddr(struct sockbuf *sb, struct sockaddr *asa, sb 260 sys/socketvar.h int sbappendcontrol(struct sockbuf *sb, struct mbuf *m0, sb 262 sys/socketvar.h void sbappendrecord(struct sockbuf *sb, struct mbuf *m0); sb 263 sys/socketvar.h void sbcheck(struct sockbuf *sb); sb 264 sys/socketvar.h void sbcompress(struct sockbuf *sb, struct mbuf *m, struct mbuf *n); sb 267 sys/socketvar.h void sbdrop(struct sockbuf *sb, int len); sb 268 sys/socketvar.h void sbdroprecord(struct sockbuf *sb); sb 269 sys/socketvar.h void sbflush(struct sockbuf *sb); sb 270 sys/socketvar.h void sbinsertoob(struct sockbuf *sb, struct mbuf *m0); sb 271 sys/socketvar.h void sbrelease(struct sockbuf *sb); sb 273 sys/socketvar.h int sbreserve(struct sockbuf *sb, u_long cc); sb 274 sys/socketvar.h int sbwait(struct sockbuf *sb); sb 275 sys/socketvar.h int sb_lock(struct sockbuf *sb); sb 308 sys/socketvar.h void sowakeup(struct socket *so, struct sockbuf *sb); sb 317 sys/socketvar.h #define SBLASTRECORDCHK(sb, where) sblastrecordchk((sb), (where)) sb 320 sys/socketvar.h #define SBLASTMBUFCHK(sb, where) sblastmbufchk((sb), (where)) sb 322 sys/socketvar.h #define SBLASTRECORDCHK(sb, where) /* nothing */ sb 323 sys/socketvar.h #define SBLASTMBUFCHK(sb, where) /* nothing */ sb 294 sys/syscallargs.h syscallarg(struct stat43 *) sb; sb 812 sys/syscallargs.h syscallarg(struct stat35 *) sb; sb 1083 sys/syscallargs.h syscallarg(struct stat35 *) sb; sb 1188 sys/syscallargs.h syscallarg(struct stat *) sb; sb 1198 sys/syscallargs.h syscallarg(struct stat *) sb;