/freebsd-10.0-release/contrib/binutils/gas/ |
H A D | sb.h | 0 /* 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 D | macro.h | 41 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-10.0-release/sys/contrib/ia64/libuwx/src/ |
H A D | uwx_scoreboard.c | 61 void uwx_prealloc_scoreboard(struct uwx_env *env, struct uwx_scoreboard *sb) argument 63 sb->id = env->nscoreboards++; 64 sb->nextused = env->used_scoreboards; 65 sb->prealloc = 1; 66 env->used_scoreboards = sb; 67 TRACE_B_PREALLOC(sb->id) 72 struct uwx_scoreboard *sb; local 76 sb = env->free_scoreboards; 77 env->free_scoreboards = sb->nextfree; 78 TRACE_B_REUSE(sb 111 struct uwx_scoreboard *sb; local 123 struct uwx_scoreboard *sb; local 135 struct uwx_scoreboard *sb; local 146 uwx_pop_scoreboards( struct uwx_env *env, struct uwx_scoreboard *sb, int ecount) argument 167 uwx_label_scoreboard( struct uwx_env *env, struct uwx_scoreboard *sb, int label) argument 218 uwx_copy_scoreboard( struct uwx_env *env, struct uwx_scoreboard *sb, int label) argument 298 struct uwx_scoreboard *sb; local [all...] |
/freebsd-10.0-release/sys/sys/ |
H A D | sockbuf.h | 122 void sbappend(struct sockbuf *sb, struct mbuf *m); 123 void sbappend_locked(struct sockbuf *sb, struct mbuf *m); 124 void sbappendstream(struct sockbuf *sb, struct mbuf *m); 125 void sbappendstream_locked(struct sockbuf *sb, struct mbuf *m); 126 int sbappendaddr(struct sockbuf *sb, const struct sockaddr *asa, 128 int sbappendaddr_locked(struct sockbuf *sb, const struct sockaddr *asa, 130 int sbappendcontrol(struct sockbuf *sb, struct mbuf *m0, 132 int sbappendcontrol_locked(struct sockbuf *sb, struct mbuf *m0, 134 void sbappendrecord(struct sockbuf *sb, struct mbuf *m0); 135 void sbappendrecord_locked(struct sockbuf *sb, struc [all...] |
/freebsd-10.0-release/sys/dev/sound/isa/ |
H A D | sb8.c | 38 #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 D | sb16.c | 38 #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 187 sb_cmd(struct sb_info *sb, u_char val) argument 209 sb_cmd2(struct sb_info *sb, u_char cmd, int val) argument 234 sb_setmixer(struct sb_info *sb, u_int port, u_int value) argument 245 sb_getmixer(struct sb_info *sb, u_int port) argument 259 sb_get_byte(struct sb_info *sb) argument 273 sb_reset_dsp(struct sb_info *sb) argument 317 struct sb_info *sb = mix_getdevinfo(m); local 351 struct sb_info *sb = mix_getdevinfo(m); local 376 struct sb_info *sb = mix_getdevinfo(m); local 434 sb16_release_resources(struct sb_info *sb, device_t dev) argument 466 sb16_alloc_resources(struct sb_info *sb, device_t dev) argument 509 struct sb_info *sb = (struct sb_info *)arg; local 570 sb_setup(struct sb_info *sb) argument 680 struct sb_info *sb = devinfo; local 698 struct sb_info *sb = ch->parent; local 729 struct sb_info *sb = ch->parent; local 756 struct sb_info *sb = ch->parent; local 768 struct sb_info *sb = ch->parent; local 816 struct sb_info *sb; local 886 struct sb_info *sb; local [all...] |
/freebsd-10.0-release/sys/kern/ |
H A D | uipc_sockbuf.c | 68 static struct mbuf *sbcut_internal(struct sockbuf *sb, int len); 69 static void sbflush_internal(struct sockbuf *sb); 124 sbwait(struct sockbuf *sb) argument 127 SOCKBUF_LOCK_ASSERT(sb); 129 sb->sb_flags |= SB_WAIT; 130 return (msleep_sbt(&sb->sb_cc, &sb->sb_mtx, 131 (sb->sb_flags & SB_NOINTR) ? PSOCK : PSOCK | PCATCH, "sbwait", 132 sb->sb_timeo, 0, 0)); 136 sblock(struct sockbuf *sb, in argument 157 sbunlock(struct sockbuf *sb) argument 176 sowakeup(struct socket *so, struct sockbuf *sb) argument 289 sbreserve_locked(struct sockbuf *sb, u_long cc, struct socket *so, struct thread *td) argument 321 sbreserve(struct sockbuf *sb, u_long cc, struct socket *so, struct thread *td) argument 336 sbrelease_internal(struct sockbuf *sb, struct socket *so) argument 346 sbrelease_locked(struct sockbuf *sb, struct socket *so) argument 355 sbrelease(struct sockbuf *sb, struct socket *so) argument 364 sbdestroy(struct sockbuf *sb, struct socket *so) argument 394 sblastrecordchk(struct sockbuf *sb, const char *file, int line) argument 414 sblastmbufchk(struct sockbuf *sb, const char *file, int line) argument 457 sbappend_locked(struct sockbuf *sb, struct mbuf *m) argument 508 sbappend(struct sockbuf *sb, struct mbuf *m) argument 522 sbappendstream_locked(struct sockbuf *sb, struct mbuf *m) argument 546 sbappendstream(struct sockbuf *sb, struct mbuf *m) argument 556 sbcheck(struct sockbuf *sb) argument 585 sbappendrecord_locked(struct sockbuf *sb, struct mbuf *m0) argument 615 sbappendrecord(struct sockbuf *sb, struct mbuf *m0) argument 630 sbappendaddr_locked(struct sockbuf *sb, const struct sockaddr *asa, struct mbuf *m0, struct mbuf *control) argument 680 sbappendaddr(struct sockbuf *sb, const struct sockaddr *asa, struct mbuf *m0, struct mbuf *control) argument 692 sbappendcontrol_locked(struct sockbuf *sb, struct mbuf *m0, struct mbuf *control) argument 724 sbappendcontrol(struct sockbuf *sb, struct mbuf *m0, struct mbuf *control) argument 755 sbcompress(struct sockbuf *sb, struct mbuf *m, struct mbuf *n) argument 811 sbflush_internal(struct sockbuf *sb) argument 829 sbflush_locked(struct sockbuf *sb) argument 837 sbflush(struct sockbuf *sb) argument 849 sbcut_internal(struct sockbuf *sb, int len) argument 912 sbdrop_locked(struct sockbuf *sb, int len) argument 924 sbcut_locked(struct sockbuf *sb, int len) argument 932 sbdrop(struct sockbuf *sb, int len) argument 948 sbsndptr(struct sockbuf *sb, u_int off, u_int len, u_int *moff) argument 995 sbdroprecord_locked(struct sockbuf *sb) argument 1017 sbdroprecord(struct sockbuf *sb) argument 1069 sbtoxsockbuf(struct sockbuf *sb, struct xsockbuf *xsb) argument [all...] |
/freebsd-10.0-release/sys/geom/ |
H A D | geom_dump.c | 51 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", 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 158 g_conf_print_escaped(struct sbuf *sb, const char *fmt, const char *str) argument 180 g_conf_consumer(struct sbuf *sb, struct g_consumer *cp) argument 200 g_conf_provider(struct sbuf *sb, struct g_provider *pp) argument 225 g_conf_geom(struct sbuf *sb, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp) argument 256 g_conf_class(struct sbuf *sb, struct g_class *mp, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp) argument 271 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-10.0-release/sbin/growfs/ |
H A D | debug.c | 100 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 552 dbg_dump_clmap(struct fs *sb, const char *comment, struct cg *cgr) argument 597 dbg_dump_clsum(struct fs *sb, const char *comment, struct cg *cgr) argument 632 dbg_dump_sptbl(struct fs *sb, const char *comment, struct cg *cgr) argument 667 dbg_dump_ufs1_ino(struct fs *sb, const char *comment, struct ufs1_dinode *ino) argument 734 dbg_dump_ufs2_ino(struct fs *sb, const char *comment, struct ufs2_dinode *ino) argument 806 dbg_dump_iblk(struct fs *sb, const char *comment, char *block, size_t length) argument [all...] |
/freebsd-10.0-release/lib/libutil/ |
H A D | _secure_path.c | 49 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-10.0-release/sys/cddl/compat/opensolaris/sys/ |
H A D | stat.h | 43 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-10.0-release/tools/tools/find-sb/ |
H A D | Makefile | 3 PROG= find-sb
|
/freebsd-10.0-release/lib/libc/stdio/ |
H A D | remove.c | 47 struct stat sb; local 49 if (lstat(file, &sb) < 0) 51 if (S_ISDIR(sb.st_mode))
|
/freebsd-10.0-release/lib/libstand/ |
H A D | fstat.c | 40 fstat(fd, sb) 42 struct stat *sb; 57 errno = (f->f_ops->fo_stat)(f, sb);
|
H A D | stat.c | 40 stat(str, sb) 42 struct stat *sb; 49 rv = fstat(fd, sb);
|
/freebsd-10.0-release/contrib/subversion/subversion/svn/ |
H A D | status-cmd.c | 88 print_conflict_stats(struct status_baton *sb, apr_pool_t *pool) 90 if (sb->text_conflicts > 0 || sb->prop_conflicts > 0 || 91 sb->tree_conflicts > 0) 94 if (sb->text_conflicts > 0) 96 (pool, _(" Text conflicts: %u\n"), sb->text_conflicts)); 98 if (sb->prop_conflicts > 0) 100 (pool, _(" Property conflicts: %u\n"), sb->prop_conflicts)); 102 if (sb->tree_conflicts > 0) 104 (pool, _(" Tree conflicts: %u\n"), sb 86 print_conflict_stats(struct status_baton *sb, apr_pool_t *pool) argument 112 svn_stringbuf_t *sb = svn_stringbuf_create_empty(pool); local 128 svn_stringbuf_t *sb = svn_stringbuf_create_empty(pool); local 152 struct status_baton *sb = baton; local 179 struct status_baton *sb = baton; local 273 struct status_baton sb; local [all...] |
/freebsd-10.0-release/sys/cam/scsi/ |
H A D | smp_all.c | 191 * sb: sbuf(9) buffer 199 smp_command_decode(uint8_t *smp_request, int request_len, struct sbuf *sb, argument 217 sbuf_printf(sb, "..."); 221 sbuf_printf(sb, "\n%s", line_prefix); 224 sbuf_printf(sb, "%02x ", smp_request[i]); 230 smp_command_sbuf(struct ccb_smpio *smpio, struct sbuf *sb, argument 233 sbuf_printf(sb, "%s. ", smp_command_desc(smpio->smp_request[1])); 241 smp_command_decode(smpio->smp_request, smpio->smp_request_len, sb, 251 smp_error_sbuf(struct ccb_smpio *smpio, struct sbuf *sb) argument 255 struct sbuf *sb) 280 smp_report_general_sbuf(struct smp_report_general_response *response, int response_len, struct sbuf *sb) argument 419 smp_report_manuf_info_sbuf(struct smp_report_manuf_info_response *response, int response_len, struct sbuf *sb) argument [all...] |
/freebsd-10.0-release/usr.bin/find/ |
H A D | ls.c | 62 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 %3u %-*s %-*s ", modep, sb->st_nlink, MAXLOGNAME - 1, 69 user_from_uid(sb->st_uid, 0), MAXLOGNAME - 1, 70 group_from_gid(sb->st_gid, 0)); 72 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) 73 (void)printf("%#8jx ", (uintmax_t)sb [all...] |
/freebsd-10.0-release/contrib/openpam/lib/libpam/ |
H A D | openpam_check_owner_perms.c | 61 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...] |
/freebsd-10.0-release/usr.bin/biff/ |
H A D | biff.c | 57 struct stat sb; local 76 if (stat(name, &sb)) 81 sb.st_mode & S_IXUSR ? "y" : 82 sb.st_mode & S_IXGRP ? "b" : "n"); 83 return (sb.st_mode & (S_IXUSR | S_IXGRP) ? 0 : 1); 89 if (chmod(name, sb.st_mode & ~(S_IXUSR | S_IXGRP)) < 0) 93 if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXUSR) 98 if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXGRP) 105 return (sb.st_mode & (S_IXUSR | S_IXGRP) ? 0 : 1);
|
/freebsd-10.0-release/sys/cam/ctl/ |
H A D | ctl_scsi_all.c | 101 struct scsi_inquiry_data *inq_data, struct sbuf *sb) 105 sbuf_printf(sb, "%s. CDB: %s", 148 struct scsi_inquiry_data *inq_data, struct sbuf *sb, 153 if ((ctsio == NULL) || (sb == NULL)) 160 sbuf_cat(sb, path_str); 162 ctl_scsi_command_string(ctsio, inq_data, sb); 164 sbuf_printf(sb, "\n"); 167 scsi_sense_only_sbuf(&ctsio->sense_data, ctsio->sense_len, sb, 178 struct sbuf sb; local 180 sbuf_new(&sb, st 100 ctl_scsi_command_string(struct ctl_scsiio *ctsio, struct scsi_inquiry_data *inq_data, struct sbuf *sb) argument 147 ctl_scsi_sense_sbuf(struct ctl_scsiio *ctsio, struct scsi_inquiry_data *inq_data, struct sbuf *sb, scsi_sense_string_flags flags) argument 194 struct sbuf sb; local 211 struct sbuf sb; local [all...] |
/freebsd-10.0-release/bin/pax/ |
H A D | file_subs.c | 93 file_mode = arcn->sb.st_mode & FILEBITS; 116 if (nodirs || chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid) < 0) { 149 res = set_ids(arcn->name, arcn->sb.st_uid, arcn->sb.st_gid); 157 arcn->sb.st_mode &= ~(SETBITS); 159 set_pmode(arcn->name, arcn->sb.st_mode); 161 set_ftime(arcn->name, arcn->sb.st_mtime, arcn->sb.st_atime, 0); 175 struct stat sb; local 233 struct stat sb; local 271 struct stat sb; local 348 struct stat sb; local 499 struct stat sb; local 551 struct stat sb; local 635 struct stat sb; local 899 struct stat sb; local [all...] |
H A D | cpio.c | 97 if ((strcmp(arcn->name, TRAILER) == 0) && (arcn->sb.st_size == 0)) 115 switch(arcn->sb.st_mode & C_IFMT) { 141 arcn->sb.st_mode = (arcn->sb.st_mode & 0xfff) | C_ISREG; 143 arcn->skip = arcn->sb.st_size; 169 last.sb.st_nlink = 1; 217 if ((arcn->sb.st_size == 0) || 218 ((size_t)arcn->sb.st_size >= sizeof(arcn->ln_name))) { 221 arcn->sb.st_size); 224 (uintmax_t)arcn->sb [all...] |
/freebsd-10.0-release/sys/geom/vinum/ |
H A D | geom_vinum_list.c | 54 struct sbuf *sb; local 73 sb = sbuf_new(NULL, NULL, GV_CFG_LEN, SBUF_FIXEDLEN); 94 gv_lvi(v, sb, *flags); 98 gv_lpi(p, sb, *flags); 102 gv_lsi(s, sb, *flags); 106 gv_ldi(d, sb, *flags); 115 gv_ld(gp, req, sb); 116 sbuf_printf(sb, "\n"); 117 gv_lv(gp, req, sb); 118 sbuf_printf(sb, "\ 218 gv_lv(struct g_geom *gp, struct gctl_req *req, struct sbuf *sb) argument 241 gv_lvi(struct gv_volume *v, struct sbuf *sb, int flags) argument 274 gv_lp(struct g_geom *gp, struct gctl_req *req, struct sbuf *sb) argument 297 gv_lpi(struct gv_plex *p, struct sbuf *sb, int flags) argument 364 gv_ls(struct g_geom *gp, struct gctl_req *req, struct sbuf *sb) argument 387 gv_lsi(struct gv_sd *s, struct sbuf *sb, int flags) argument 439 gv_ld(struct g_geom *gp, struct gctl_req *req, struct sbuf *sb) argument 462 gv_ldi(struct gv_drive *d, struct sbuf *sb, int flags) argument [all...] |
/freebsd-10.0-release/sys/fs/procfs/ |
H A D | procfs_note.c | 49 sbuf_trim(sb); 50 sbuf_finish(sb);
|