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

1234567891011>>

/freebsd-11-stable/contrib/binutils/gas/
H A Dsb.h0 /* sb.h - header file for string buffer manipulation routines
42 complicated, hence the sb.
44 An sb is allocated by the caller, and is initialized to point to an
51 typedef struct sb struct
58 sb; typedef in typeref:struct:sb
70 extern void sb_new (sb *);
71 extern void sb_kill (sb *);
72 extern void sb_add_sb (sb *, sb *);
73 extern void sb_scrub_and_add_sb (sb *, s
[all...]
H A Dmacro.h41 sb name; /* Name of the formal. */
42 sb def; /* The default value. */
43 sb actual; /* The actual argument (changed on each expansion). */
62 sb sub; /* Substitution text. */
83 extern int buffer_and_nest (const char *, const char *, sb *, int (*) (sb *));
85 (int, int, int, int (*) (const char *, int, sb *, int *));
89 (int, sb *, sb *, int (*) (sb *), cha
[all...]
/freebsd-11-stable/sys/kern/
H A Duipc_sockbuf.c69 static struct mbuf *sbcut_internal(struct sockbuf *sb, int len);
70 static void sbflush_internal(struct sockbuf *sb);
93 sbready(struct sockbuf *sb, struct mbuf *m, int count) argument
97 SOCKBUF_LOCK_ASSERT(sb);
98 KASSERT(sb->sb_fnrdy != NULL, ("%s: sb %p NULL fnrdy", __func__, sb));
100 blocker = (sb->sb_fnrdy == m) ? M_BLOCKED : 0;
107 sb->sb_acc += m->m_len;
118 sb
130 sballoc(struct sockbuf *sb, struct mbuf *m) argument
161 sbfree(struct sockbuf *sb, struct mbuf *m) argument
259 sbwait(struct sockbuf *sb) argument
271 sblock(struct sockbuf *sb, int flags) argument
292 sbunlock(struct sockbuf *sb) argument
311 sowakeup(struct socket *so, struct sockbuf *sb) argument
424 sbreserve_locked(struct sockbuf *sb, u_long cc, struct socket *so, struct thread *td) argument
454 sbreserve(struct sockbuf *sb, u_long cc, struct socket *so, struct thread *td) argument
469 sbrelease_internal(struct sockbuf *sb, struct socket *so) argument
479 sbrelease_locked(struct sockbuf *sb, struct socket *so) argument
488 sbrelease(struct sockbuf *sb, struct socket *so) argument
497 sbdestroy(struct sockbuf *sb, struct socket *so) argument
527 sblastrecordchk(struct sockbuf *sb, const char *file, int line) argument
547 sblastmbufchk(struct sockbuf *sb, const char *file, int line) argument
590 sbappend_locked(struct sockbuf *sb, struct mbuf *m, int flags) argument
641 sbappend(struct sockbuf *sb, struct mbuf *m, int flags) argument
655 sbappendstream_locked(struct sockbuf *sb, struct mbuf *m, int flags) argument
679 sbappendstream(struct sockbuf *sb, struct mbuf *m, int flags) argument
689 sbcheck(struct sockbuf *sb, const char *file, int line) argument
743 sbappendrecord_locked(struct sockbuf *sb, struct mbuf *m0) argument
774 sbappendrecord(struct sockbuf *sb, struct mbuf *m0) argument
784 sbappendaddr_locked_internal(struct sockbuf *sb, const struct sockaddr *asa, struct mbuf *m0, struct mbuf *control, struct mbuf *ctrl_last) argument
836 sbappendaddr_locked(struct sockbuf *sb, const struct sockaddr *asa, struct mbuf *m0, struct mbuf *control) argument
862 sbappendaddr_nospacecheck_locked(struct sockbuf *sb, const struct sockaddr *asa, struct mbuf *m0, struct mbuf *control) argument
880 sbappendaddr(struct sockbuf *sb, const struct sockaddr *asa, struct mbuf *m0, struct mbuf *control) argument
892 sbappendcontrol_locked(struct sockbuf *sb, struct mbuf *m0, struct mbuf *control) argument
915 sbappendcontrol(struct sockbuf *sb, struct mbuf *m0, struct mbuf *control) argument
944 sbcompress(struct sockbuf *sb, struct mbuf *m, struct mbuf *n) argument
1004 sbflush_internal(struct sockbuf *sb) argument
1022 sbflush_locked(struct sockbuf *sb) argument
1030 sbflush(struct sockbuf *sb) argument
1042 sbcut_internal(struct sockbuf *sb, int len) argument
1124 sbdrop_locked(struct sockbuf *sb, int len) argument
1136 sbcut_locked(struct sockbuf *sb, int len) argument
1144 sbdrop(struct sockbuf *sb, int len) argument
1160 sbsndptr(struct sockbuf *sb, u_int off, u_int len, u_int *moff) argument
1207 sbsndmbuf(struct sockbuf *sb, u_int off, u_int *moff) argument
1238 sbdroprecord_locked(struct sockbuf *sb) argument
1260 sbdroprecord(struct sockbuf *sb) argument
1312 sbtoxsockbuf(struct sockbuf *sb, struct xsockbuf *xsb) argument
[all...]
/freebsd-11-stable/lib/libsbuf/tests/
H A Dsbuf_core_test.c50 struct sbuf *sb; local
54 sb = sbuf_new_auto();
55 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s",
58 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed");
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), "",
79 "sbuf (\"%s\") was not empty", sbuf_data(sb));
87 struct sbuf *sb; local
106 struct sbuf *sb; local
137 struct sbuf *sb; local
[all...]
H A Dsbuf_stdio_test.c48 sbuf_vprintf_helper(struct sbuf *sb, const char * restrict format, ...) argument
55 rc = sbuf_vprintf(sb, format, ap);
65 struct sbuf *sb; local
72 sb = sbuf_new_auto();
73 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s",
76 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed");
77 ATF_REQUIRE_MSG(sbuf_putc(sb, MESSAGE_SEPARATOR) == 0,
80 ATF_REQUIRE_MSG(sbuf_printf(sb, MESSAGE_FORMAT, test_string) == 0,
83 ATF_REQUIRE_MSG(sbuf_finish(sb) == 0, "sbuf_finish failed: %s",
86 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string_tm
98 struct sbuf *sb; local
123 struct sbuf *sb; local
[all...]
H A Dsbuf_string_test.c61 struct sbuf *sb; local
72 sb = sbuf_new_auto();
73 ATF_REQUIRE_MSG(sb != NULL, "sbuf_new_auto failed: %s",
76 ATF_CHECK_MSG(sbuf_bcat(sb, test_buffer, sizeof(test_buffer)) == 0,
79 test_sbuf_len = sbuf_len(sb);
84 ATF_CHECK_MSG(sbuf_bcat(sb, test_buffer, sizeof(test_buffer)) == 0,
87 test_sbuf_len = sbuf_len(sb);
92 ATF_REQUIRE_MSG(sbuf_finish(sb) == 0, "sbuf_finish failed: %s",
95 check_buffers_equal(sbuf_data(sb), test_buffer_tmp,
98 sbuf_delete(sb);
106 struct sbuf *sb; local
140 struct sbuf *sb; local
180 struct sbuf *sb; local
214 struct sbuf *sb; local
246 struct sbuf *sb; local
[all...]
/freebsd-11-stable/sys/dev/sound/isa/
H A Dsb8.c38 #include <dev/sound/isa/sb.h>
90 static int sb_rd(struct sb_info *sb, int reg);
91 static void sb_wr(struct sb_info *sb, int reg, u_int8_t val);
92 static int sb_dspready(struct sb_info *sb);
93 static int sb_cmd(struct sb_info *sb, u_char val);
94 static int sb_cmd1(struct sb_info *sb, u_char cmd, int val);
95 static int sb_cmd2(struct sb_info *sb, u_char cmd, int val);
96 static u_int sb_get_byte(struct sb_info *sb);
97 static void sb_setmixer(struct sb_info *sb, u_int port, u_int value);
98 static int sb_getmixer(struct sb_info *sb, u_in
116 sb_lock(struct sb_info *sb) argument
122 sb_unlock(struct sb_info *sb) argument
140 sb_rd(struct sb_info *sb, int reg) argument
146 sb_wr(struct sb_info *sb, int reg, u_int8_t val) argument
152 sb_dspready(struct sb_info *sb) argument
158 sb_dspwr(struct sb_info *sb, u_char val) argument
174 sb_cmd(struct sb_info *sb, u_char val) argument
183 sb_cmd1(struct sb_info *sb, u_char cmd, int val) argument
194 sb_cmd2(struct sb_info *sb, u_char cmd, int val) argument
212 sb_setmixer(struct sb_info *sb, u_int port, u_int value) argument
221 sb_getmixer(struct sb_info *sb, u_int port) argument
234 sb_get_byte(struct sb_info *sb) argument
248 sb_reset_dsp(struct sb_info *sb) argument
262 sb_release_resources(struct sb_info *sb, device_t dev) argument
287 sb_alloc_resources(struct sb_info *sb, device_t dev) argument
317 struct sb_info *sb = mix_getdevinfo(m); local
332 struct sb_info *sb = mix_getdevinfo(m); local
382 struct sb_info *sb = mix_getdevinfo(m); local
411 struct sb_info *sb = mix_getdevinfo(m); local
425 struct sb_info *sb = mix_getdevinfo(m); local
479 struct sb_info *sb = (struct sb_info *)arg; local
501 struct sb_info *sb = ch->parent; local
542 struct sb_info *sb = ch->parent; local
571 struct sb_info *sb = ch->parent; local
599 struct sb_info *sb = devinfo; local
717 struct sb_info *sb; local
774 struct sb_info *sb; local
[all...]
H A Dsb16.c38 #include <dev/sound/isa/sb.h>
100 static void sb_lock(struct sb_info *sb);
101 static void sb_unlock(struct sb_info *sb);
102 static int sb_rd(struct sb_info *sb, int reg);
103 static void sb_wr(struct sb_info *sb, int reg, u_int8_t val);
104 static int sb_cmd(struct sb_info *sb, u_char val);
105 /* static int sb_cmd1(struct sb_info *sb, u_char cmd, int val); */
106 static int sb_cmd2(struct sb_info *sb, u_char cmd, int val);
107 static u_int sb_get_byte(struct sb_info *sb);
108 static void sb_setmixer(struct sb_info *sb, u_in
125 sb_lock(struct sb_info *sb) argument
131 sb_lockassert(struct sb_info *sb) argument
137 sb_unlock(struct sb_info *sb) argument
155 sb_rd(struct sb_info *sb, int reg) argument
161 sb_wr(struct sb_info *sb, int reg, u_int8_t val) argument
167 sb_dspwr(struct sb_info *sb, u_char val) argument
185 sb_cmd(struct sb_info *sb, u_char val) argument
207 sb_cmd2(struct sb_info *sb, u_char cmd, int val) argument
232 sb_setmixer(struct sb_info *sb, u_int port, u_int value) argument
243 sb_getmixer(struct sb_info *sb, u_int port) argument
257 sb_get_byte(struct sb_info *sb) argument
271 sb_reset_dsp(struct sb_info *sb) argument
315 struct sb_info *sb = mix_getdevinfo(m); local
349 struct sb_info *sb = mix_getdevinfo(m); local
374 struct sb_info *sb = mix_getdevinfo(m); local
432 sb16_release_resources(struct sb_info *sb, device_t dev) argument
464 sb16_alloc_resources(struct sb_info *sb, device_t dev) argument
507 struct sb_info *sb = (struct sb_info *)arg; local
568 sb_setup(struct sb_info *sb) argument
678 struct sb_info *sb = devinfo; local
696 struct sb_info *sb = ch->parent; local
727 struct sb_info *sb = ch->parent; local
754 struct sb_info *sb = ch->parent; local
766 struct sb_info *sb = ch->parent; local
814 struct sb_info *sb; local
884 struct sb_info *sb; local
[all...]
/freebsd-11-stable/sys/geom/
H A Dgeom_dump.c51 g_confdot_consumer(struct sbuf *sb, struct g_consumer *cp) argument
54 sbuf_printf(sb, "z%p [label=\"r%dw%de%d\"];\n",
57 sbuf_printf(sb, "z%p -> z%p;\n", cp, cp->provider);
61 g_confdot_provider(struct sbuf *sb, struct g_provider *pp) argument
64 sbuf_printf(sb, "z%p [shape=hexagon,label=\"%s\\nr%dw%de%d\\nerr#%d\\n"
70 g_confdot_geom(struct sbuf *sb, struct g_geom *gp) argument
75 sbuf_printf(sb, "z%p [shape=box,label=\"%s\\n%s\\nr#%d\"];\n",
78 g_confdot_consumer(sb, cp);
79 sbuf_printf(sb, "z%p -> z%p;\n", gp, cp);
83 g_confdot_provider(sb, p
89 g_confdot_class(struct sbuf *sb, struct g_class *mp) argument
101 struct sbuf *sb; local
114 g_conftxt_geom(struct sbuf *sb, struct g_geom *gp, int level) argument
133 g_conftxt_class(struct sbuf *sb, struct g_class *mp) argument
145 struct sbuf *sb; local
159 g_conf_printf_escaped(struct sbuf *sb, const char *fmt, ...) argument
184 g_conf_consumer(struct sbuf *sb, struct g_consumer *cp) argument
204 g_conf_provider(struct sbuf *sb, struct g_provider *pp) argument
233 g_conf_geom(struct sbuf *sb, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp) argument
266 g_conf_class(struct sbuf *sb, struct g_class *mp, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp) argument
283 g_conf_specific(struct sbuf *sb, struct g_class *mp, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp) argument
[all...]
/freebsd-11-stable/sys/sys/
H A Dsockbuf.h139 void sbappend(struct sockbuf *sb, struct mbuf *m, int flags);
140 void sbappend_locked(struct sockbuf *sb, struct mbuf *m, int flags);
141 void sbappendstream(struct sockbuf *sb, struct mbuf *m, int flags);
142 void sbappendstream_locked(struct sockbuf *sb, struct mbuf *m, int flags);
143 int sbappendaddr(struct sockbuf *sb, const struct sockaddr *asa,
145 int sbappendaddr_locked(struct sockbuf *sb, const struct sockaddr *asa,
147 int sbappendaddr_nospacecheck_locked(struct sockbuf *sb,
149 void sbappendcontrol(struct sockbuf *sb, struct mbuf *m0,
151 void sbappendcontrol_locked(struct sockbuf *sb, struct mbuf *m0,
153 void sbappendrecord(struct sockbuf *sb, struc
191 sbavail(struct sockbuf *sb) argument
205 sbused(struct sockbuf *sb) argument
220 sbspace(struct sockbuf *sb) argument
[all...]
/freebsd-11-stable/contrib/subversion/subversion/svn/
H A Dstatus-cmd.c91 print_conflict_stats(struct status_baton *sb, apr_pool_t *pool)
93 if (sb->text_conflicts > 0 || sb->prop_conflicts > 0 ||
94 sb->tree_conflicts > 0)
97 if (sb->text_conflicts > 0)
99 (pool, _(" Text conflicts: %u\n"), sb->text_conflicts));
101 if (sb->prop_conflicts > 0)
103 (pool, _(" Property conflicts: %u\n"), sb->prop_conflicts));
105 if (sb->tree_conflicts > 0)
107 (pool, _(" Tree conflicts: %u\n"), sb
89 print_conflict_stats(struct status_baton *sb, apr_pool_t *pool) argument
115 svn_stringbuf_t *sb = svn_stringbuf_create_empty(pool); local
131 svn_stringbuf_t *sb = svn_stringbuf_create_empty(pool); local
155 struct status_baton *sb = baton; local
183 struct status_baton *sb = baton; local
279 struct status_baton sb; local
[all...]
/freebsd-11-stable/sbin/growfs/
H A Ddebug.c100 dbg_dump_hex(struct fs *sb, const char *comment, unsigned char *mem) argument
110 for (i = 0; i < sb->fs_bsize; i += 24) {
128 dbg_dump_fs(struct fs *sb, const char *comment) argument
136 fprintf(dbg_log, "# %d@%lx: %s\n", indent, (unsigned long)sb, comment);
140 sb->fs_sblkno);
142 sb->fs_cblkno);
144 sb->fs_iblkno);
146 sb->fs_dblkno);
149 sb->fs_old_cgoffset);
151 sb
464 dbg_dump_inmap(struct fs *sb, const char *comment, struct cg *cgr) argument
507 dbg_dump_frmap(struct fs *sb, const char *comment, struct cg *cgr) argument
553 dbg_dump_clmap(struct fs *sb, const char *comment, struct cg *cgr) argument
598 dbg_dump_clsum(struct fs *sb, const char *comment, struct cg *cgr) argument
633 dbg_dump_sptbl(struct fs *sb, const char *comment, struct cg *cgr) argument
668 dbg_dump_ufs1_ino(struct fs *sb, const char *comment, struct ufs1_dinode *ino) argument
735 dbg_dump_ufs2_ino(struct fs *sb, const char *comment, struct ufs2_dinode *ino) argument
807 dbg_dump_iblk(struct fs *sb, const char *comment, char *block, size_t length) argument
[all...]
/freebsd-11-stable/lib/libutil/
H A D_secure_path.c49 struct stat sb; local
52 if (lstat(path, &sb) < 0) {
58 else if (!S_ISREG(sb.st_mode))
60 else if (sb.st_mode & S_IWOTH)
62 else if ((int)uid != -1 && sb.st_uid != uid && sb.st_uid != 0) {
67 } else if ((int)gid != -1 && sb.st_gid != gid && (sb.st_mode & S_IWGRP))
/freebsd-11-stable/sys/cddl/compat/opensolaris/sys/
H A Dstat.h43 fstat64(int fd, struct stat *sb) argument
47 ret = fstat(fd, sb);
49 if (S_ISCHR(sb->st_mode))
50 (void)ioctl(fd, DIOCGMEDIASIZE, &sb->st_size);
/freebsd-11-stable/tools/tools/find-sb/
H A DMakefile3 PROG= find-sb
/freebsd-11-stable/lib/libc/stdio/
H A Dremove.c47 struct stat sb; local
49 if (lstat(file, &sb) < 0)
51 if (S_ISDIR(sb.st_mode))
/freebsd-11-stable/stand/libsa/
H A Dfstat.c40 fstat(fd, sb)
42 struct stat *sb;
57 errno = (f->f_ops->fo_stat)(f, sb);
H A Dstat.c40 stat(str, sb)
42 struct stat *sb;
49 rv = fstat(fd, sb);
/freebsd-11-stable/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-11-stable/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-11-stable/sys/cam/scsi/
H A Dsmp_all.c190 * sb: sbuf(9) buffer
198 smp_command_decode(uint8_t *smp_request, int request_len, struct sbuf *sb, argument
216 sbuf_printf(sb, "...");
220 sbuf_printf(sb, "\n%s", line_prefix);
223 sbuf_printf(sb, "%02x ", smp_request[i]);
229 smp_command_sbuf(struct ccb_smpio *smpio, struct sbuf *sb, argument
232 sbuf_printf(sb, "%s. ", smp_command_desc(smpio->smp_request[1]));
240 smp_command_decode(smpio->smp_request, smpio->smp_request_len, sb,
250 smp_error_sbuf(struct ccb_smpio *smpio, struct sbuf *sb) argument
254 struct sbuf *sb)
279 smp_report_general_sbuf(struct smp_report_general_response *response, int response_len, struct sbuf *sb) argument
418 smp_report_manuf_info_sbuf(struct smp_report_manuf_info_response *response, int response_len, struct sbuf *sb) argument
[all...]
/freebsd-11-stable/usr.bin/find/
H A Dls.c62 printlong(char *name, char *accpath, struct stat *sb) argument
66 (void)printf("%6ju %8"PRId64" ", (uintmax_t)sb->st_ino, sb->st_blocks);
67 (void)strmode(sb->st_mode, modep);
68 (void)printf("%s %3ju %-*s %-*s ", modep, (uintmax_t)sb->st_nlink,
70 user_from_uid(sb->st_uid, 0), MAXLOGNAME - 1,
71 group_from_gid(sb->st_gid, 0));
73 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode))
74 (void)printf("%#8jx ", (uintmax_t)sb
[all...]
/freebsd-11-stable/crypto/openssh/regress/
H A Dsetuid-allowed.c40 struct statvfs sb; local
47 if (statvfs(path, &sb) != 0) {
54 return (sb.f_flag & ST_NOSUID) ? 1 : 0;
/freebsd-11-stable/contrib/openpam/lib/libpam/
H A Dopenpam_check_owner_perms.c61 struct stat sb; local
66 if (fstat(fd, &sb) != 0) {
72 if (!S_ISREG(sb.st_mode)) {
78 if ((sb.st_uid != root && sb.st_uid != arbitrator) ||
79 (sb.st_mode & (S_IWGRP|S_IWOTH)) != 0) {
105 struct stat sb; local
115 if (stat(pathbuf, &sb) != 0) {
123 if (tip && !S_ISREG(sb.st_mode)) {
129 if ((sb
[all...]

Completed in 205 milliseconds

1234567891011>>