Searched refs:sb (Results 76 - 100 of 667) sorted by relevance

1234567891011>>

/freebsd-10.0-release/sys/geom/journal/
H A Dg_journal_ufs.c71 int error, i, sb; local
75 for (i = 0; (sb = superblocks[i]) != -1; i++) {
76 if (sb % cp->provider->sectorsize != 0)
78 fs = g_read_data(cp, sb, SBLOCKSIZE, NULL);
89 error = g_write_data(cp, sb, fs, SBLOCKSIZE);
/freebsd-10.0-release/bin/mv/
H A Dmv.c86 struct stat sb; local
123 if (stat(argv[argc - 1], &sb) || !S_ISDIR(sb.st_mode)) {
136 if (lstat(argv[1], &sb) == 0 && S_ISLNK(sb.st_mode))
176 struct stat sb; local
188 if (lstat(from, &sb) == -1) {
202 } else if (access(to, W_OK) && !stat(to, &sb) && isatty(STDIN_FILENO)) {
203 strmode(sb.st_mode, modep);
206 user_from_uid((unsigned long)sb
367 struct stat sb; local
[all...]
/freebsd-10.0-release/usr.bin/gcore/
H A Delfcore.c136 struct sbuf *sb; local
165 sb = sbuf_new_auto();
168 sbuf_start_section(sb, NULL);
170 sbuf_start_section(sb, &old_len);
171 sbuf_putc(sb, 0);
172 sbuf_end_section(sb, old_len, hdrsize, 0);
174 elf_putnotes(pid, sb, &notesz);
176 sbuf_end_section(sb, -1, PAGE_SIZE, 0);
177 if (sbuf_finish(sb) != 0)
179 hdr = sbuf_data(sb);
286 elf_putnotes(pid_t pid, struct sbuf *sb, size_t *sizep) argument
336 elf_putnote(int type, notefunc_t notefunc, void *arg, struct sbuf *sb) argument
[all...]
/freebsd-10.0-release/sys/netinet/
H A Daccf_http.c53 static int sbfull(struct sockbuf *sb);
88 sbfull(struct sockbuf *sb) argument
93 sb->sb_cc, sb->sb_hiwat, sb->sb_cc >= sb->sb_hiwat,
94 sb->sb_mbcnt, sb->sb_mbmax, sb->sb_mbcnt >= sb
[all...]
/freebsd-10.0-release/contrib/ncurses/ncurses/tinfo/
H A Daccess.c136 struct stat sb; local
138 if (stat(path, &sb) == 0
139 && (sb.st_mode & S_IFMT) == S_IFDIR) {
149 struct stat sb; local
151 if (stat(path, &sb) == 0
152 && (sb.st_mode & S_IFMT) == S_IFREG) {
/freebsd-10.0-release/crypto/heimdal/appl/ftp/ftp/
H A Dmain.c414 char *sb = stringbase; local
418 if (*sb == '!' || *sb == '$') { /* recognize ! as a token for shell */
423 return ((*sb == '!') ? "!" : "$");
435 switch (*sb) {
442 sb++; goto S0;
451 altarg = sb;
460 switch (*sb) {
468 sb++; goto S2; /* slurp next character */
471 sb
[all...]
/freebsd-10.0-release/sys/dev/virtio/
H A Dvirtio.c113 struct sbuf sb; local
124 sbuf_new(&sb, buf, 512, SBUF_FIXEDLEN);
125 sbuf_printf(&sb, "%s features: %#jx", msg, (uintmax_t) features);
136 sbuf_cat(&sb, " <");
138 sbuf_cat(&sb, ",");
142 sbuf_printf(&sb, "%#jx", (uintmax_t) val);
144 sbuf_cat(&sb, name);
148 sbuf_cat(&sb, ">");
151 sbuf_finish(&sb);
152 if (sbuf_overflowed(&sb)
[all...]
/freebsd-10.0-release/usr.bin/xlint/lint1/
H A Dscan.l315 sbuf_t *sb;
317 if ((sb = sbfrlst) != NULL) {
318 sbfrlst = sb->sb_nxt;
320 if ((sb = malloc(sizeof (sbuf_t))) == NULL)
323 (void)memset(sb, 0, sizeof (*sb));
324 return (sb);
331 freesb(sbuf_t *sb)
334 sb->sb_nxt = sbfrlst;
335 sbfrlst = sb;
[all...]
/freebsd-10.0-release/tools/regression/priv/
H A Dpriv_vfs_fhstat.c69 struct stat sb; local
72 error = fhstat(&fh, &sb);
H A Dpriv_vfs_clearsugid.c74 struct stat sb; local
76 if (stat(fpath, &sb) < 0) {
81 if (!(sb.st_mode & S_ISUID))
85 if (sb.st_mode & S_ISUID)
H A Dpriv_io.c60 struct stat sb; local
62 if (stat(DEV_IO, &sb) < 0) {
66 saved_perms = sb.st_mode & ALLPERMS;
/freebsd-10.0-release/tools/regression/sockets/fstat/
H A Dfstat.c45 struct stat sb; local
52 if (fstat(sock, &sb) < 0)
/freebsd-10.0-release/bin/pax/
H A Dbuf_subs.c608 off_t size = arcn->sb.st_size;
609 struct stat sb; local
635 else if (fstat(ifd, &sb) < 0)
637 else if (arcn->sb.st_mtime != sb.st_mtime)
668 off_t size = arcn->sb.st_size;
674 struct stat sb; local
681 if (fstat(ofd, &sb) == 0) {
682 if (sb.st_blksize > 0)
683 sz = (int)sb
763 struct stat sb; local
[all...]
/freebsd-10.0-release/contrib/gcc/
H A Drtl-factoring.c875 seq_block sb; local
896 sb = (seq_block) xmalloc (sizeof (struct seq_block_def));
897 sb->length = (*mseq)->abstracted_length;
898 sb->label = NULL_RTX;
899 sb->matching_seqs = 0;
900 sb->next_seq_block = seq_blocks;
901 seq_blocks = sb;
905 for (sb = seq_blocks; sb; sb
968 seq_block sb; local
994 seq_block sb; local
1043 seq_block sb; local
1105 seq_block sb = seq_blocks; local
[all...]
/freebsd-10.0-release/tools/regression/posixshm/
H A Dposixshm.c373 struct stat sb; local
387 if (fstat(fd, &sb) < 0) {
392 if (sb.st_size != 1024) {
393 fail_err("size %d != 1024", (int)sb.st_size);
405 if (fstat(fd, &sb) < 0) {
410 if (sb.st_size != 0) {
411 fail_err("size after O_TRUNC %d != 0", (int)sb.st_size);
449 struct stat sb; local
464 if (fstat(fd, &sb) < 0) {
469 if (sb
[all...]
/freebsd-10.0-release/usr.bin/compress/
H A Dcompress.c198 struct stat isb, sb; local
203 exists = !stat(out, &sb);
204 if (!force && exists && S_ISREG(sb.st_mode) && !permission(out))
206 isreg = oreg = !exists || S_ISREG(sb.st_mode);
243 if (stat(out, &sb)) {
248 if (!force && sb.st_size >= isb.st_size) {
265 if (isb.st_size > sb.st_size)
267 ((float)sb.st_size / isb.st_size) * 100.0);
270 ((float)isb.st_size / sb.st_size) * 100.0);
288 struct stat sb; local
[all...]
/freebsd-10.0-release/lib/libelf/
H A Delf_begin.c47 struct stat sb; local
55 if (fstat(fd, &sb) < 0) {
61 if ((m = mmap(NULL, (size_t) sb.st_size, PROT_READ, MAP_PRIVATE, fd,
67 if ((e = elf_memory(m, (size_t) sb.st_size)) == NULL) {
68 (void) munmap(m, (size_t) sb.st_size);
/freebsd-10.0-release/lib/libfetch/
H A Dfile.c102 struct stat sb; local
106 if (stat(fn, &sb) == -1) {
110 us->size = sb.st_size;
111 us->atime = sb.st_atime;
112 us->mtime = sb.st_mtime;
/freebsd-10.0-release/sys/boot/userboot/userboot/
H A Dhost.c95 host_stat(struct open_file *f, struct stat *sb) argument
103 sb->st_mode = mode;
104 sb->st_uid = uid;
105 sb->st_gid = gid;
106 sb->st_size = size;
/freebsd-10.0-release/tools/regression/fifo/fifo_misc/
H A Dfifo_misc.c233 struct stat sb; local
252 if (stat("testfifo", &sb) != 0) {
258 if ((sb.st_mode & 0777) != 0666) {
264 if (fstat(writer_fd, &sb) != 0) {
270 if ((sb.st_mode & 0777) != 0666) {
291 if (stat("testfifo", &sb) != 0) {
297 if (sb.st_uid != u || sb.st_gid != g) {
303 if (fstat(writer_fd, &sb) != 0) {
309 if (sb
[all...]
/freebsd-10.0-release/usr.bin/mkulzma/
H A Dmkulzma.c58 struct stat sb; local
146 if (fstat(fdr, &sb) != 0) {
150 if (S_ISCHR(sb.st_mode)) {
157 sb.st_size = ms;
158 } else if (!S_ISREG(sb.st_mode)) {
164 hdr.nblocks = sb.st_size / hdr.blksz;
165 if ((sb.st_size % hdr.blksz) != 0) {
195 "%u, index length %zu bytes\n", sb.st_size,
266 (long long)(sb.st_size - offset),
267 100.0 * (long long)(sb
[all...]
/freebsd-10.0-release/usr.bin/mkuzip/
H A Dmkuzip.c50 struct stat sb; local
131 if (fstat(fdr, &sb) != 0) {
135 if (S_ISCHR(sb.st_mode)) {
142 sb.st_size = ms;
143 } else if (!S_ISREG(sb.st_mode)) {
148 hdr.nblocks = sb.st_size / hdr.blksz;
149 if ((sb.st_size % hdr.blksz) != 0) {
177 "%u, index length %zu bytes\n", sb.st_size,
212 "bytes, %.2f%% decrease.\n", offset, (long long)(sb.st_size - offset),
213 100.0 * (long long)(sb
[all...]
/freebsd-10.0-release/usr.bin/touch/
H A Dtouch.c69 struct stat sb; local
166 if (stat_f(*argv, &sb) != 0) {
176 if (fd == -1 || fstat(fd, &sb) || close(fd)) {
190 TIMESPEC_TO_TIMEVAL(&tv[0], &sb.st_atim);
192 TIMESPEC_TO_TIMEVAL(&tv[1], &sb.st_mtim);
200 TIMESPEC_TO_TIMEVAL(&tv[0], &sb.st_atim);
204 TIMESPEC_TO_TIMEVAL(&tv[1], &sb.st_mtim);
408 struct stat sb; local
410 if (stat(fname, &sb))
412 TIMESPEC_TO_TIMEVAL(tvp, &sb
[all...]
/freebsd-10.0-release/usr.bin/tail/
H A Dtail.c69 struct stat sb; local
201 fstat(fileno(fp), &sb)) {
211 reverse(fp, fn, style, off, &sb);
213 forward(fp, fn, style, off, &sb);
218 if (fstat(fileno(stdin), &sb)) {
234 reverse(stdin, fn, style, off, &sb);
236 forward(stdin, fn, style, off, &sb);
/freebsd-10.0-release/usr.sbin/mfiutil/
H A Dmfi_flash.c93 struct stat sb; local
112 if (fstat(flash, &sb) < 0) {
117 if (sb.st_size % 1024 != 0 || sb.st_size > 0x7fffffff) {
131 mbox_store_word(mbox, sb.st_size);
147 while (sb.st_size > 0) {
167 sb.st_size -= nread;

Completed in 442 milliseconds

1234567891011>>