Searched refs:sb (Results 1 - 25 of 876) sorted by relevance

1234567891011>>

/freebsd-current/sys/cam/ctl/
H A Dctl_nvme_all.h12 void ctl_nvme_command_string(struct ctl_nvmeio *ctnio, struct sbuf *sb);
13 void ctl_nvme_status_string(struct ctl_nvmeio *ctnio, struct sbuf *sb);
H A Dctl_scsi_all.c100 struct scsi_inquiry_data *inq_data, struct sbuf *sb)
104 sbuf_printf(sb, "%s. CDB: %s",
125 struct scsi_inquiry_data *inq_data, struct sbuf *sb,
130 if ((ctsio == NULL) || (sb == NULL))
136 sbuf_cat(sb, path_str);
138 ctl_scsi_command_string(ctsio, inq_data, sb);
140 sbuf_putc(sb, '\n');
143 scsi_sense_only_sbuf(&ctsio->sense_data, ctsio->sense_len, sb,
154 struct sbuf sb; local
156 sbuf_new(&sb, st
99 ctl_scsi_command_string(struct ctl_scsiio *ctsio, struct scsi_inquiry_data *inq_data, struct sbuf *sb) argument
124 ctl_scsi_sense_sbuf(struct ctl_scsiio *ctsio, struct scsi_inquiry_data *inq_data, struct sbuf *sb, scsi_sense_string_flags flags) argument
170 struct sbuf sb; local
187 struct sbuf sb; local
[all...]
/freebsd-current/lib/libsbuf/tests/
H A Dsbuf_stdio_test.c45 sbuf_vprintf_helper(struct sbuf *sb, const char * restrict format, ...) argument
52 rc = sbuf_vprintf(sb, format, ap);
62 struct sbuf *sb; local
66 sb = sbuf_new(NULL, buf, sizeof(buf), SBUF_FIXEDLEN);
67 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s",
72 sbuf_set_drain(sb, sbuf_printf_drain, NULL);
74 ATF_REQUIRE_EQ_MSG(0, sbuf_cat(sb, test_string),
77 ATF_CHECK_EQ(0, sbuf_finish(sb));
82 sbuf_delete(sb);
88 struct sbuf *sb; local
116 struct sbuf *sb; local
149 struct sbuf *sb; local
175 struct sbuf *sb; local
[all...]
H A Dsbuf_string_test.c58 struct sbuf *sb; local
69 sb = sbuf_new_auto();
70 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s",
73 ATF_CHECK_MSG(sbuf_bcat(sb, test_buffer, sizeof(test_buffer)) == 0,
76 test_sbuf_len = sbuf_len(sb);
81 ATF_CHECK_MSG(sbuf_bcat(sb, test_buffer, sizeof(test_buffer)) == 0,
84 test_sbuf_len = sbuf_len(sb);
89 ATF_REQUIRE_MSG(sbuf_finish(sb) == 0, "sbuf_finish failed: %s",
92 check_buffers_equal(sbuf_data(sb), test_buffer_tmp,
95 sbuf_delete(sb);
103 struct sbuf *sb; local
137 struct sbuf *sb; local
177 struct sbuf *sb; local
211 struct sbuf *sb; local
243 struct sbuf *sb; local
[all...]
H A Dsbuf_core_test.c47 struct sbuf *sb; local
51 sb = sbuf_new_auto();
52 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s",
55 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed");
63 ATF_REQUIRE_EQ_MSG(0, sbuf_finish(sb), "sbuf_finish failed: %s",
66 sbuf_putbuf(sb);
71 sbuf_clear(sb);
73 ATF_REQUIRE_MSG(sbuf_finish(sb) == 0, "sbuf_finish failed: %s",
76 buf_len = sbuf_len(sb);
78 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), "",
87 struct sbuf *sb; local
117 struct sbuf *sb; local
134 struct sbuf *sb; local
166 struct sbuf sb; local
193 struct sbuf *sb; local
[all...]
/freebsd-current/sys/geom/
H A Dgeom_dump.c50 g_confdot_consumer(struct sbuf *sb, struct g_consumer *cp) argument
53 sbuf_printf(sb, "z%p [label=\"r%dw%de%d\"];\n",
56 sbuf_printf(sb, "z%p -> z%p;\n", cp, cp->provider);
60 g_confdot_provider(struct sbuf *sb, struct g_provider *pp) argument
63 sbuf_printf(sb, "z%p [shape=hexagon,label=\"%s\\nr%dw%de%d\\nerr#%d\\n"
69 g_confdot_geom(struct sbuf *sb, struct g_geom *gp) argument
74 sbuf_printf(sb, "z%p [shape=box,label=\"%s\\n%s\\nr#%d\"];\n",
77 g_confdot_consumer(sb, cp);
78 sbuf_printf(sb, "z%p -> z%p;\n", gp, cp);
82 g_confdot_provider(sb, p
88 g_confdot_class(struct sbuf *sb, struct g_class *mp) argument
100 struct sbuf *sb; local
113 g_conftxt_geom(struct sbuf *sb, struct g_geom *gp, int level) argument
132 g_conftxt_class(struct sbuf *sb, struct g_class *mp) argument
144 struct sbuf *sb; local
157 g_conf_cat_escaped(struct sbuf *sb, const char *buf) argument
173 g_conf_printf_escaped(struct sbuf *sb, const char *fmt, ...) argument
189 g_conf_consumer(struct sbuf *sb, struct g_consumer *cp) argument
209 g_conf_provider(struct sbuf *sb, struct g_provider *pp) argument
243 g_conf_geom(struct sbuf *sb, struct g_geom *gp) argument
282 g_conf_class(struct sbuf *sb, struct g_class *mp, struct g_geom **gps) argument
301 g_conf_specific(struct sbuf *sb, struct g_geom **gps) argument
[all...]
/freebsd-current/tools/tools/find-sb/
H A DMakefile2 PROG= find-sb
/freebsd-current/sys/netinet/
H A Daccf_tls.c40 static int sbfull(struct sockbuf *sb);
47 sbfull(struct sockbuf *sb) argument
50 return (sbused(sb) >= sb->sb_hiwat || sb->sb_mbcnt >= sb->sb_mbmax);
73 struct sockbuf *sb = &so->so_rcv; local
77 if ((sb->sb_state & SBS_CANTRCVMORE) || sbfull(sb))
90 avail = sbavail(sb);
[all...]
/freebsd-current/sbin/growfs/
H A Ddebug.c97 dbg_dump_hex(struct fs *sb, const char *comment, unsigned char *mem) argument
107 for (i = 0; i < sb->fs_bsize; i += 24) {
125 dbg_dump_fs(struct fs *sb, const char *comment) argument
133 fprintf(dbg_log, "# %d@%lx: %s\n", indent, (unsigned long)sb, comment);
137 sb->fs_sblkno);
139 sb->fs_cblkno);
141 sb->fs_iblkno);
143 sb->fs_dblkno);
146 sb->fs_old_cgoffset);
148 sb
461 dbg_dump_inmap(struct fs *sb, const char *comment, struct cg *cgr) argument
504 dbg_dump_frmap(struct fs *sb, const char *comment, struct cg *cgr) argument
550 dbg_dump_clmap(struct fs *sb, const char *comment, struct cg *cgr) argument
595 dbg_dump_clsum(struct fs *sb, const char *comment, struct cg *cgr) argument
630 dbg_dump_sptbl(struct fs *sb, const char *comment, struct cg *cgr) argument
665 dbg_dump_ufs1_ino(struct fs *sb, const char *comment, struct ufs1_dinode *ino) argument
732 dbg_dump_ufs2_ino(struct fs *sb, const char *comment, struct ufs2_dinode *ino) argument
804 dbg_dump_iblk(struct fs *sb, const char *comment, char *block, size_t length) argument
[all...]
/freebsd-current/lib/libutil/
H A D_secure_path.c46 struct stat sb; local
49 if (lstat(path, &sb) < 0) {
55 else if (!S_ISREG(sb.st_mode))
57 else if (sb.st_mode & S_IWOTH)
59 else if ((int)uid != -1 && sb.st_uid != uid && sb.st_uid != 0) {
64 } else if ((int)gid != -1 && sb.st_gid != gid && (sb.st_mode & S_IWGRP))
/freebsd-current/sys/sys/
H A Dsockbuf.h202 void sbappend(struct sockbuf *sb, struct mbuf *m, int flags);
203 void sbappend_locked(struct sockbuf *sb, struct mbuf *m, int flags);
204 void sbappendstream(struct sockbuf *sb, struct mbuf *m, int flags);
205 void sbappendstream_locked(struct sockbuf *sb, struct mbuf *m, int flags);
206 int sbappendaddr(struct sockbuf *sb, const struct sockaddr *asa,
208 int sbappendaddr_locked(struct sockbuf *sb, const struct sockaddr *asa,
210 int sbappendaddr_nospacecheck_locked(struct sockbuf *sb,
212 void sbappendcontrol(struct sockbuf *sb, struct mbuf *m0,
214 void sbappendcontrol_locked(struct sockbuf *sb, struct mbuf *m0,
216 void sbappendrecord(struct sockbuf *sb, struc
255 sbavail(struct sockbuf *sb) argument
269 sbused(struct sockbuf *sb) argument
284 sbspace(struct sockbuf *sb) argument
[all...]
/freebsd-current/stand/libsa/
H A Dstat.c35 stat(const char *str, struct stat *sb) argument
42 rv = fstat(fd, sb);
/freebsd-current/sys/kern/
H A Duipc_sockbuf.c74 static void sbcompress_ktls_rx(struct sockbuf *sb, struct mbuf *m,
77 static struct mbuf *sbcut_internal(struct sockbuf *sb, int len);
78 static void sbflush_internal(struct sockbuf *sb);
107 sbready_compress(struct sockbuf *sb, struct mbuf *m0, struct mbuf *end) argument
112 SOCKBUF_LOCK_ASSERT(sb);
114 if ((sb->sb_flags & SB_NOCOALESCE) != 0)
157 sb->sb_mbcnt -= ext_size;
168 KASSERT(sb->sb_lastrecord != n,
175 if (sb->sb_mbtail == n)
176 sb
195 sbready(struct sockbuf *sb, struct mbuf *m0, int count) argument
260 sballoc(struct sockbuf *sb, struct mbuf *m) argument
288 sbfree(struct sockbuf *sb, struct mbuf *m) argument
337 sballoc_ktls_rx(struct sockbuf *sb, struct mbuf *m) argument
352 sbfree_ktls_rx(struct sockbuf *sb, struct mbuf *m) argument
452 struct sockbuf *sb; local
478 struct sockbuf *sb; local
515 sb_notify(const struct sockbuf *sb) argument
624 struct sockbuf *sb = sobuf(so, which); local
661 struct sockbuf *sb; local
756 struct sockbuf *sb = sobuf(so, which); local
786 struct sockbuf *sb = sobuf(so, which); local
819 sblastrecordchk(struct sockbuf *sb, const char *file, int line) argument
839 sblastmbufchk(struct sockbuf *sb, const char *file, int line) argument
900 sbappend_locked(struct sockbuf *sb, struct mbuf *m, int flags) argument
952 sbappend(struct sockbuf *sb, struct mbuf *m, int flags) argument
967 sbappend_ktls_rx(struct sockbuf *sb, struct mbuf *m) argument
1017 sbappendstream_locked(struct sockbuf *sb, struct mbuf *m, int flags) argument
1061 sbappendstream(struct sockbuf *sb, struct mbuf *m, int flags) argument
1071 sbcheck(struct sockbuf *sb, const char *file, int line) argument
1165 sbappendrecord_locked(struct sockbuf *sb, struct mbuf *m0) argument
1199 sbappendrecord(struct sockbuf *sb, struct mbuf *m0) argument
1209 sbappendaddr_locked_internal(struct sockbuf *sb, const struct sockaddr *asa, struct mbuf *m0, struct mbuf *control, struct mbuf *ctrl_last) argument
1268 sbappendaddr_locked(struct sockbuf *sb, const struct sockaddr *asa, struct mbuf *m0, struct mbuf *control) argument
1294 sbappendaddr_nospacecheck_locked(struct sockbuf *sb, const struct sockaddr *asa, struct mbuf *m0, struct mbuf *control) argument
1312 sbappendaddr(struct sockbuf *sb, const struct sockaddr *asa, struct mbuf *m0, struct mbuf *control) argument
1324 sbappendcontrol_locked(struct sockbuf *sb, struct mbuf *m0, struct mbuf *control, int flags) argument
1351 sbappendcontrol(struct sockbuf *sb, struct mbuf *m0, struct mbuf *control, int flags) argument
1381 sbcompress(struct sockbuf *sb, struct mbuf *m, struct mbuf *n) argument
1449 sbcompress_ktls_rx(struct sockbuf *sb, struct mbuf *m, struct mbuf *n) argument
1505 sbflush_internal(struct sockbuf *sb) argument
1523 sbflush_locked(struct sockbuf *sb) argument
1531 sbflush(struct sockbuf *sb) argument
1543 sbcut_internal(struct sockbuf *sb, int len) argument
1659 sbdrop_locked(struct sockbuf *sb, int len) argument
1671 sbcut_locked(struct sockbuf *sb, int len) argument
1679 sbdrop(struct sockbuf *sb, int len) argument
1691 sbsndptr_noadv(struct sockbuf *sb, uint32_t off, uint32_t *moff) argument
1712 sbsndptr_adv(struct sockbuf *sb, struct mbuf *mb, uint32_t len) argument
1744 sbsndmbuf(struct sockbuf *sb, u_int off, u_int *moff) argument
1775 sbdroprecord_locked(struct sockbuf *sb) argument
1797 sbdroprecord(struct sockbuf *sb) argument
1856 sbtoxsockbuf(struct sockbuf *sb, struct xsockbuf *xsb) argument
[all...]
/freebsd-current/lib/libc/stdio/
H A Dremove.c43 struct stat sb; local
45 if (lstat(file, &sb) < 0)
47 if (S_ISDIR(sb.st_mode))
/freebsd-current/contrib/elftoolchain/libpe/
H A Dlibpe_buffer.c40 PE_SecBuf *sb; local
42 if ((sb = malloc(sizeof(PE_SecBuf))) == NULL) {
47 sb->sb_ps = ps;
48 sb->sb_flags = 0;
49 sb->sb_pb.pb_align = 1;
50 sb->sb_pb.pb_off = 0;
51 sb->sb_pb.pb_size = sz;
53 if ((sb->sb_pb.pb_buf = malloc(sz)) == NULL) {
54 free(sb);
58 sb
68 libpe_release_buffer(PE_SecBuf *sb) argument
109 PE_SecBuf *sb; local
144 PE_SecBuf *sb; local
[all...]
H A Dpe_buffer.c37 PE_SecBuf *sb; local
60 sb = (PE_SecBuf *) pb;
62 if (sb == NULL)
63 sb = STAILQ_FIRST(&ps->ps_b);
65 sb = STAILQ_NEXT(sb, sb_next);
67 return ((PE_Buffer *) sb);
74 PE_SecBuf *sb; local
93 if ((sb = libpe_alloc_buffer(ps, 0)) == NULL)
96 sb
[all...]
/freebsd-current/contrib/elftoolchain/libelftc/
H A Delftc_set_timestamps.c59 elftc_set_timestamps(const char *fn, struct stat *sb) argument
68 tv[0].tv_sec = sb->ATIME.tv_sec;
69 tv[0].tv_usec = sb->ATIME.tv_nsec / 1000;
70 tv[1].tv_sec = sb->MTIME.tv_sec;
71 tv[1].tv_usec = sb->MTIME.tv_nsec / 1000;
81 utb.actime = sb->st_atime;
82 utb.modtime = sb->st_mtime;
/freebsd-current/sys/cam/scsi/
H A Dsmp_all.c189 * sb: sbuf(9) buffer
197 smp_command_decode(uint8_t *smp_request, int request_len, struct sbuf *sb, argument
215 sbuf_cat(sb, "...");
219 sbuf_printf(sb, "\n%s", line_prefix);
222 sbuf_printf(sb, "%02x ", smp_request[i]);
228 smp_command_sbuf(struct ccb_smpio *smpio, struct sbuf *sb, argument
231 sbuf_printf(sb, "%s. ", smp_command_desc(smpio->smp_request[1]));
239 smp_command_decode(smpio->smp_request, smpio->smp_request_len, sb,
249 smp_error_sbuf(struct ccb_smpio *smpio, struct sbuf *sb) argument
253 struct sbuf *sb)
278 smp_report_general_sbuf(struct smp_report_general_response *response, int response_len, struct sbuf *sb) argument
417 smp_report_manuf_info_sbuf(struct smp_report_manuf_info_response *response, int response_len, struct sbuf *sb) argument
[all...]
/freebsd-current/usr.bin/find/
H A Dls.c55 printlong(char *name, char *accpath, struct stat *sb) argument
59 (void)printf("%6ju %8"PRId64" ", (uintmax_t)sb->st_ino, sb->st_blocks);
60 (void)strmode(sb->st_mode, modep);
61 (void)printf("%s %3ju %-*s %-*s ", modep, (uintmax_t)sb->st_nlink,
63 user_from_uid(sb->st_uid, 0), MAXLOGNAME - 1,
64 group_from_gid(sb->st_gid, 0));
66 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode))
67 (void)printf("%#8jx ", (uintmax_t)sb
[all...]
/freebsd-current/contrib/lib9p/
H A Dutils.c263 const struct descbits *db, struct sbuf *sb)
270 sbuf_printf(sb, "%s0x%" PRIx64, str, value);
277 sbuf_printf(sb, "%s%s", sep, db->db_name);
293 sbuf_printf(sb, "%s?0x%" PRIx64, sep, value);
298 sbuf_cat(sb, bracketbuf);
307 l9p_describe_fid(const char *str, uint32_t fid, struct sbuf *sb) argument
310 sbuf_printf(sb, "%s%" PRIu32, str, fid);
317 l9p_describe_ugid(const char *str, uint32_t ugid, struct sbuf *sb) argument
320 sbuf_printf(sb, "%s%" PRIu32, str, ugid);
329 l9p_describe_mode(const char *str, uint32_t mode, struct sbuf *sb) argument
262 l9p_describe_bits(const char *str, uint64_t value, const char *oc, const struct descbits *db, struct sbuf *sb) argument
351 l9p_describe_lflags(const char *str, uint32_t flags, struct sbuf *sb) argument
389 l9p_describe_name(const char *str, char *name, struct sbuf *sb) argument
411 l9p_describe_perm(const char *str, uint32_t mode, struct sbuf *sb) argument
427 l9p_describe_ext_perm(const char *str, uint32_t mode, struct sbuf *sb) argument
458 l9p_describe_lperm(const char *str, uint32_t mode, struct sbuf *sb) argument
483 l9p_describe_qid(const char *str, struct l9p_qid *qid, struct sbuf *sb) argument
517 l9p_describe_size(const char *str, uint64_t size, struct sbuf *sb) argument
527 l9p_describe_l9stat(const char *str, struct l9p_stat *st, enum l9p_version version, struct sbuf *sb) argument
566 l9p_describe_statfs(const char *str, struct l9p_statfs *st, struct sbuf *sb) argument
585 l9p_describe_time(struct sbuf *sb, const char *s, uint64_t sec, uint64_t nsec) argument
600 l9p_describe_readdir(struct sbuf *sb, struct l9p_f_io *io) argument
645 l9p_describe_getattr_mask(uint64_t request_mask, struct sbuf *sb) argument
694 l9p_describe_unlinkat_flags(const char *str, uint32_t flags, struct sbuf *sb) argument
829 l9p_describe_fcall(union l9p_fcall *fcall, enum l9p_version version, struct sbuf *sb) argument
[all...]
/freebsd-current/contrib/openpam/lib/libpam/
H A Dopenpam_check_owner_perms.c59 struct stat sb; local
64 if (fstat(fd, &sb) != 0) {
70 if (!S_ISREG(sb.st_mode)) {
76 if ((sb.st_uid != root && sb.st_uid != arbitrator) ||
77 (sb.st_mode & (S_IWGRP|S_IWOTH)) != 0) {
103 struct stat sb; local
113 if (stat(pathbuf, &sb) != 0) {
121 if (tip && !S_ISREG(sb.st_mode)) {
127 if ((sb
[all...]
/freebsd-current/sys/dev/qat/qat_hw/qat_c4xxx/
H A Dadf_c4xxx_pke_replay_stats.c18 struct sbuf sb; local
24 sbuf_new_for_sysctl(&sb, NULL, 256, req);
26 sbuf_printf(&sb, "\n");
27 sbuf_printf(&sb, LINE);
34 &sb,
39 sbuf_finish(&sb);
40 SYSCTL_OUT(req, sbuf_data(&sb), sbuf_len(&sb));
41 sbuf_delete(&sb);
H A Dadf_c4xxx_misc_error_stats.c24 struct sbuf sb; local
26 sbuf_new_for_sysctl(&sb, NULL, 256, req);
27 sbuf_printf(&sb, "\n");
28 sbuf_printf(&sb, LINE);
29 sbuf_printf(&sb,
35 sbuf_finish(&sb);
36 SYSCTL_OUT(req, sbuf_data(&sb), sbuf_len(&sb));
37 sbuf_delete(&sb);
/freebsd-current/usr.bin/biff/
H A Dbiff.c44 struct stat sb; local
63 if (stat(name, &sb))
68 sb.st_mode & S_IXUSR ? "y" :
69 sb.st_mode & S_IXGRP ? "b" : "n");
70 return (sb.st_mode & (S_IXUSR | S_IXGRP) ? 0 : 1);
76 if (chmod(name, sb.st_mode & ~(S_IXUSR | S_IXGRP)) < 0)
80 if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXUSR)
85 if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXGRP)
92 return (sb.st_mode & (S_IXUSR | S_IXGRP) ? 0 : 1);
/freebsd-current/bin/pax/
H A Dfile_subs.c86 file_mode = arcn->sb.st_mode & FILEBITS;
109 if (nodirs || chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid) < 0) {
142 res = set_ids(arcn->name, arcn->sb.st_uid, arcn->sb.st_gid);
150 arcn->sb.st_mode &= ~(SETBITS);
152 set_pmode(arcn->name, arcn->sb.st_mode);
154 set_ftime(arcn->name, arcn->sb.st_mtime, arcn->sb.st_atime, 0);
168 struct stat sb; local
226 struct stat sb; local
264 struct stat sb; local
341 struct stat sb; local
492 struct stat sb; local
544 struct stat sb; local
628 struct stat sb; local
892 struct stat sb; local
[all...]

Completed in 159 milliseconds

1234567891011>>