/freebsd-10.0-release/sys/dev/cxgbe/ |
H A D | t4_main.c | 4685 struct sbuf sb; local 4687 sbuf_new(&sb, NULL, 32, SBUF_AUTOEXTEND); 4689 sbuf_printf(&sb, "%d ", *i); 4690 sbuf_trim(&sb); 4691 sbuf_finish(&sb); 4692 rc = sysctl_handle_string(oidp, sbuf_data(&sb), sbuf_len(&sb), req); 4693 sbuf_delete(&sb); 4701 struct sbuf *sb; local 4707 sb 4925 struct sbuf *sb; local 4969 struct sbuf *sb; local 5026 struct sbuf *sb; local 5088 struct sbuf *sb; local 5132 struct sbuf *sb; local 5173 struct sbuf *sb; local 5232 struct sbuf *sb; local 5263 struct sbuf *sb; local 5329 struct sbuf *sb; local 5412 struct sbuf *sb; local 5450 struct sbuf *sb; local 5500 struct sbuf *sb; local 5549 struct sbuf *sb; local 5589 mem_region_show(struct sbuf *sb, const char *name, unsigned int from, unsigned int to) argument 5606 struct sbuf *sb; local 5835 struct sbuf *sb; local 5925 struct sbuf *sb; local 5954 struct sbuf *sb; local 5989 struct sbuf *sb; local 6015 struct sbuf *sb; local 6049 struct sbuf *sb; local 6109 struct sbuf *sb; local 6165 field_desc_show(struct sbuf *sb, uint64_t v, const struct field_desc *f) argument 6320 tp_la_show(struct sbuf *sb, uint64_t *p, int idx) argument 6327 tp_la_show2(struct sbuf *sb, uint64_t *p, int idx) argument 6338 tp_la_show3(struct sbuf *sb, uint64_t *p, int idx) argument 6352 struct sbuf *sb; local 6398 struct sbuf *sb; local 6428 struct sbuf *sb; local 6463 struct sbuf *sb; local [all...] |
/freebsd-10.0-release/sys/dev/cxgbe/tom/ |
H A D | t4_cpl_io.c | 334 struct sockbuf *sb = &so->so_rcv; local 340 SOCKBUF_LOCK(sb); 341 KASSERT(toep->sb_cc >= sb->sb_cc, 342 ("%s: sb %p has more data (%d) than last time (%d).", 343 __func__, sb, sb->sb_cc, toep->sb_cc)); 344 toep->rx_credits += toep->sb_cc - sb->sb_cc; 345 toep->sb_cc = sb->sb_cc; 347 SOCKBUF_UNLOCK(sb); 353 SOCKBUF_LOCK(sb); 540 struct sockbuf *sb = &so->so_snd; local 813 struct sockbuf *sb; local 1140 struct sockbuf *sb; local 1413 struct sockbuf *sb = &so->so_snd; local [all...] |
/freebsd-10.0-release/sys/ofed/drivers/infiniband/ulp/sdp/ |
H A D | sdp_main.c | 852 sdp_append(struct sdp_sock *ssk, struct sockbuf *sb, struct mbuf *mb, int cnt) argument 857 SOCKBUF_LOCK_ASSERT(sb); 858 SBLASTRECORDCHK(sb); 861 n = sb->sb_lastrecord; 866 sb->sb_lastrecord = sb->sb_mb = sb->sb_sndptr = mb; 868 sb->sb_mbtail = mb; 869 sballoc(sb, mb); 878 n = sb 1222 struct sockbuf *sb; local [all...] |
/freebsd-10.0-release/sys/kern/ |
H A D | imgact_elf.c | 1414 struct sbuf *sb; local 1429 sb = sbuf_new(NULL, NULL, CORE_BUF_SIZE, SBUF_FIXEDLEN); 1430 sbuf_set_drain(sb, sbuf_drain_core_output, ¶ms); 1431 sbuf_start_section(sb, NULL); 1432 sbuf_bcat(sb, hdr, hdrsize); 1434 __elfN(putnote)(ninfo, sb); 1436 sbuf_end_section(sb, -1, PAGE_SIZE, 0); 1437 error = sbuf_finish(sb); 1438 sbuf_delete(sb); 1586 __elfN(putnote)(struct note_info *ninfo, struct sbuf *sb) argument 1640 note_prpsinfo(void *arg, struct sbuf *sb, size_t *sizep) argument 1666 note_prstatus(void *arg, struct sbuf *sb, size_t *sizep) argument 1694 note_fpregset(void *arg, struct sbuf *sb, size_t *sizep) argument 1715 note_thrmisc(void *arg, struct sbuf *sb, size_t *sizep) argument 1735 note_threadmd(void *arg, struct sbuf *sb, size_t *sizep) argument 1759 note_procstat_proc(void *arg, struct sbuf *sb, size_t *sizep) argument 1784 note_procstat_files(void *arg, struct sbuf *sb, size_t *sizep) argument 1814 note_procstat_vmmap(void *arg, struct sbuf *sb, size_t *sizep) argument 1840 note_procstat_groups(void *arg, struct sbuf *sb, size_t *sizep) argument 1859 note_procstat_umask(void *arg, struct sbuf *sb, size_t *sizep) argument 1877 note_procstat_rlimit(void *arg, struct sbuf *sb, size_t *sizep) argument 1900 note_procstat_osrel(void *arg, struct sbuf *sb, size_t *sizep) argument 1918 note_procstat_psstrings(void *arg, struct sbuf *sb, size_t *sizep) argument 1942 note_procstat_auxv(void *arg, struct sbuf *sb, size_t *sizep) argument [all...] |
H A D | kern_rctl.c | 174 static void rctl_rule_to_sbuf(struct sbuf *sb, const struct rctl_rule *rule); 331 struct sbuf sb; local 382 sbuf_new(&sb, buf, RCTL_LOG_BUFSIZE, SBUF_FIXEDLEN); 383 rctl_rule_to_sbuf(&sb, rule); 384 sbuf_finish(&sb); 386 "(%s), uid %d, jail %s\n", sbuf_data(&sb), 389 sbuf_delete(&sb); 405 sbuf_new(&sb, buf, RCTL_LOG_BUFSIZE, SBUF_FIXEDLEN); 406 sbuf_printf(&sb, "rule="); 407 rctl_rule_to_sbuf(&sb, rul 1171 rctl_rule_to_sbuf(struct sbuf *sb, const struct rctl_rule *rule) argument 1278 struct sbuf *sb; local 1373 struct sbuf *sb = (struct sbuf *)arg3; local 1391 struct sbuf *sb; local 1466 struct sbuf *sb; local [all...] |
H A D | sys_procdesc.c | 473 procdesc_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument 484 bzero(sb, sizeof(*sb)); 493 TIMEVAL_TO_TIMESPEC(&pstart, &sb->st_birthtim); 494 sb->st_atim = sb->st_birthtim; 495 sb->st_ctim = sb->st_birthtim; 496 sb->st_mtim = sb [all...] |
H A D | vfs_mountroot.c | 512 struct stat sb; local 531 error = kern_stat(td, path, UIO_SYSSPACE, &sb); 555 mdio->md_mediasize = sb.st_size; 760 vfs_mountroot_parse(struct sbuf *sb, struct mount *mpdevfs) argument 769 conf = sbuf_data(sb); 824 vfs_mountroot_conf0(struct sbuf *sb) argument 829 sbuf_printf(sb, ".onfail panic\n"); 830 sbuf_printf(sb, ".timeout %d\n", root_mount_timeout); 832 sbuf_printf(sb, ".ask\n"); 835 sbuf_printf(sb, " 871 vfs_mountroot_readconf(struct thread *td, struct sbuf *sb) argument 938 struct sbuf *sb; local [all...] |
/freebsd-10.0-release/contrib/nvi/common/ |
H A D | exf.c | 132 struct stat sb; local 172 if (file_spath(sp, frp, &sb, &exists)) 183 struct stat sb; local 192 if ((fd = mkstemp(tname)) == -1 || fstat(fd, &sb)) { 213 ep->mtim = sb.st_mtimespec; 221 psize = ((sb.st_size / 15) + 1023) / 1024; 229 ep->mdev = sb.st_dev; 230 ep->minode = sb.st_ino; 232 ep->mtim = sb.st_mtimespec; 234 if (!S_ISREG(sb 751 struct stat sb; local 854 struct stat sb; local 1024 struct stat sb; local [all...] |
/freebsd-10.0-release/bin/pax/ |
H A D | ftree.c | 455 arcn->sb = ftent->fts_statb; 457 arcn->sb = *(ftent->fts_statp); 470 switch(S_IFMT & arcn->sb.st_mode) { 475 add_atdir(ftent->fts_path, arcn->sb.st_dev, 476 arcn->sb.st_ino, arcn->sb.st_mtime, 477 arcn->sb.st_atime); 493 arcn->skip = arcn->sb.st_size;
|
/freebsd-10.0-release/contrib/amd/amd/ |
H A D | info_exec.c | 351 struct stat sb; local 358 if (stat(map, &sb)) { 362 if (!S_ISREG(sb.st_mode)) { 366 if (sb.st_uid != 0) { 367 plog(XLOG_ERROR, "map \"%s\" owned by uid %u (must be 0)", map, (u_int) sb.st_uid); 370 if (!(sb.st_mode & S_IXUSR)) { 374 if (sb.st_mode & (S_ISUID|S_ISGID)) { 378 if (sb.st_mode & S_IWOTH) {
|
/freebsd-10.0-release/contrib/libreadline/examples/ |
H A D | rl.c | 86 struct stat sb; local 135 if (fstat (fd, &sb) < 0)
|
/freebsd-10.0-release/contrib/openbsm/compat/ |
H A D | pidfile.h | 57 struct stat sb; local 64 if (fstat(pfh->pf_fd, &sb) == -1) 66 if (sb.st_dev != pfh->pf_dev || sb.st_ino != pfh->pf_ino) 101 struct stat sb; local 170 if (fstat(fd, &sb) == -1) { 180 pfh->pf_dev = sb.st_dev; 181 pfh->pf_ino = sb.st_ino;
|
/freebsd-10.0-release/lib/libutil/ |
H A D | pidfile.c | 56 struct stat sb; local 63 if (fstat(pfh->pf_fd, &sb) == -1) 65 if (sb.st_dev != pfh->pf_dev || sb.st_ino != pfh->pf_ino) 100 struct stat sb; local 157 if (fstat(fd, &sb) == -1) { 167 pfh->pf_dev = sb.st_dev; 168 pfh->pf_ino = sb.st_ino;
|
/freebsd-10.0-release/sys/fs/ext2fs/ |
H A D | ext2fs.h | 220 #define EXT2_SB(sb) (sb) 225 #define EXT2_HAS_COMPAT_FEATURE(sb,mask) \ 226 ( EXT2_SB(sb)->e2fs->e2fs_features_compat & htole32(mask) ) 227 #define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask) \ 228 ( EXT2_SB(sb)->e2fs->e2fs_features_rocompat & htole32(mask) ) 229 #define EXT2_HAS_INCOMPAT_FEATURE(sb,mask) \ 230 ( EXT2_SB(sb)->e2fs->e2fs_features_incompat & htole32(mask) )
|
/freebsd-10.0-release/sys/fs/procfs/ |
H A D | procfs_ctl.c | 329 sbuf_trim(sb); 330 sbuf_finish(sb); 331 nm = findname(ctlnames, sbuf_data(sb), sbuf_len(sb)); 333 printf("procfs: got a %s command\n", sbuf_data(sb)); 336 nm = findname(signames, sbuf_data(sb), sbuf_len(sb)); 338 printf("procfs: got a sig%s\n", sbuf_data(sb));
|
/freebsd-10.0-release/contrib/file/ |
H A D | magic.c | 332 const struct stat *sb) 348 utsbuf[0].tv_sec = sb->st_atime; 349 utsbuf[1].tv_sec = sb->st_mtime; 356 utbuf.actime = sb->st_atime; 357 utbuf.modtime = sb->st_mtime; 387 struct stat sb; local 402 switch (file_fsmagic(ms, inname, &sb)) { 413 if (fstat(fd, &sb) == 0 && S_ISFIFO(sb.st_mode)) 418 if (stat(inname, &sb) 331 close_and_restore(const struct magic_set *ms, const char *name, int fd, const struct stat *sb) argument [all...] |
/freebsd-10.0-release/crypto/openssl/ssl/ |
H A D | bio_ssl.c | 143 BIO_SSL *sb; local 149 sb=(BIO_SSL *)b->ptr; 150 ssl=sb->ssl; 174 if (sb->renegotiate_count > 0) 176 sb->byte_count+=ret; 177 if (sb->byte_count > sb->renegotiate_count) 179 sb->byte_count=0; 180 sb->num_renegotiates++; 185 if ((sb [all...] |
/freebsd-10.0-release/contrib/telnet/telnetd/ |
H A D | telnetd.c | 522 static unsigned char sb[] = local 525 output_datalen(sb, sizeof sb); 526 DIAG(TD_OPTIONS, printsub('>', sb + 2, sizeof sb - 2);); 529 static unsigned char sb[] = local 532 output_datalen(sb, sizeof sb); 533 DIAG(TD_OPTIONS, printsub('>', sb + 2, sizeof sb 536 static unsigned char sb[] = local 543 static unsigned char sb[] = local [all...] |
/freebsd-10.0-release/contrib/tnftp/src/ |
H A D | main.c | 827 char *sb = stringbase; local 831 if (*sb == '!' || *sb == '$') { /* recognize ! as a token for shell */ 836 return ((*sb == '!') ? bangstr : dollarstr); 848 switch (*sb) { 855 INC_CHKCURSOR(sb); 865 altarg = sb; 874 switch (*sb) { 882 INC_CHKCURSOR(sb); 886 INC_CHKCURSOR(sb); [all...] |
/freebsd-10.0-release/lib/libc/stdlib/ |
H A D | realpath.c | 53 struct stat sb; local 144 if (lstat(resolved, &sb) != 0) { 149 if (!S_ISDIR(sb.st_mode)) { 183 if (lstat(resolved, &sb) != 0) { 188 if (S_ISLNK(sb.st_mode)) {
|
/freebsd-10.0-release/sys/geom/ |
H A D | geom_ccd.c | 707 struct sbuf *sb; local 806 sb = sbuf_new_auto(); 807 sbuf_printf(sb, "ccd%d: %d components ", sc->sc_unit, *nprovider); 809 sbuf_printf(sb, "%s%s", 813 sbuf_printf(sb, "), %jd blocks ", (off_t)pp->mediasize / DEV_BSIZE); 815 sbuf_printf(sb, "interleaved at %d blocks\n", 818 sbuf_printf(sb, "concatenated\n"); 819 sbuf_finish(sb); 820 gctl_set_param_err(req, "output", sbuf_data(sb), sbuf_len(sb) 849 struct sbuf *sb; local [all...] |
/freebsd-10.0-release/sys/geom/label/ |
H A D | g_label_gpt.c | 56 sbuf_nprintf_utf16(struct sbuf *sb, uint16_t *str, size_t len) argument 86 sbuf_printf(sb, "%c", ch); 88 sbuf_printf(sb, "%c%c", 0xc0 | (ch >> 6), 91 sbuf_printf(sb, "%c%c%c", 0xe0 | (ch >> 12), 94 sbuf_printf(sb, "%c%c%c%c", 0xf0 | (ch >> 18),
|
/freebsd-10.0-release/tools/tools/zfsboottest/ |
H A D | zfsboottest.c | 92 struct stat sb; local 175 if (zfs_dnode_stat(spa, &dn, &sb)) { 184 n = sb.st_size - off; 195 } while (off < sb.st_size); 196 if (off < sb.st_size)
|
/freebsd-10.0-release/contrib/subversion/subversion/libsvn_subr/ |
H A D | spillbuf.c | 575 struct spillbuf_baton *sb = baton; local 577 SVN_ERR(svn_spillbuf__reader_read(len, sb->reader, buffer, *len, 578 sb->scratch_pool)); 580 svn_pool_clear(sb->scratch_pool); 588 struct spillbuf_baton *sb = baton; local 590 SVN_ERR(svn_spillbuf__reader_write(sb->reader, data, *len, 591 sb->scratch_pool)); 593 svn_pool_clear(sb->scratch_pool); 604 struct spillbuf_baton *sb = apr_palloc(result_pool, sizeof(*sb)); local [all...] |
/freebsd-10.0-release/contrib/subversion/subversion/svn/ |
H A D | log-cmd.c | 525 /* Collate whole log message into sb before printing. */ local 526 svn_stringbuf_t *sb = svn_stringbuf_create_empty(pool); 542 svn_xml_make_close_tag(&sb, pool, "logentry"); 543 SVN_ERR(svn_cl__error_checked_fputs(sb->data, stdout)); 569 svn_xml_make_open_tag(&sb, pool, svn_xml_normal, "logentry", 573 svn_cl__xml_tagged_cdata(&sb, pool, "author", author); 582 svn_cl__xml_tagged_cdata(&sb, pool, "date", date); 590 svn_xml_make_open_tag(&sb, pool, svn_xml_normal, "paths", 613 svn_xml_make_open_tag(&sb, pool, svn_xml_protect_pcdata, "path", 628 svn_xml_make_open_tag(&sb, poo [all...] |