HomeSort by: relevance | last modified time | path
    Searched refs:sb (Results 1 - 25 of 399) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/lib/libc/compat/sys/
compat_statvfs.c 68 struct statvfs sb; variable in typeref:struct:statvfs
69 int error = __statvfs190(path, &sb, 0);
71 statvfs_to_statvfs90(&sb, buf);
78 struct statvfs sb; local in function:__compat_statvfs1
79 int error = __statvfs190(path, &sb, flags);
81 statvfs_to_statvfs90(&sb, buf);
88 struct statvfs sb; local in function:__compat_fstatvfs
89 int error = __fstatvfs190(fd, &sb, 0);
91 statvfs_to_statvfs90(&sb, buf);
98 struct statvfs sb; local in function:__compat_fstatvfs1
109 struct statvfs *sb = calloc(count, sizeof(*sb)); local in function:__compat_getvfsstat
    [all...]
compat_fhstatvfs.c 54 struct statvfs sb; variable in typeref:struct:statvfs
55 int error = __fhstatvfs190(fhp, FHANDLE30_SIZE, &sb, 0);
57 statvfs_to_statvfs90(&sb, buf);
compat_fhstatvfs1.c 55 struct statvfs sb; variable in typeref:struct:statvfs
56 int error = __fhstatvfs190(fhp, FHANDLE30_SIZE, &sb, flags);
58 statvfs_to_statvfs90(&sb, buf);
  /src/sys/dev/dtv/
dtv_scatter.c 52 dtv_scatter_buf_init(struct dtv_scatter_buf *sb)
54 sb->sb_pool = pool_cache_init(PAGE_SIZE, 0, 0, 0,
57 sb->sb_size = 0;
58 sb->sb_npages = 0;
59 sb->sb_page_ary = NULL;
63 dtv_scatter_buf_destroy(struct dtv_scatter_buf *sb)
66 dtv_scatter_buf_set_size(sb, 0);
67 pool_cache_destroy(sb->sb_pool);
68 sb->sb_pool = 0;
69 sb->sb_npages = 0
    [all...]
  /src/sys/lib/libsa/
stat.c 37 stat(const char *str, struct stat *sb)
44 rv = fstat(fd, sb);
fstat.c 37 fstat(int fd, struct stat *sb)
56 errno = FS_STAT(f->f_ops)(f, sb); /* XXX no point setting errno */
  /src/lib/libutil/
secure_path.c 52 struct stat sb; local in function:secure_path
60 if (lstat(path, &sb) < 0)
62 else if (!S_ISREG(sb.st_mode))
64 else if (sb.st_uid != 0)
66 else if ((sb.st_mode & (S_IWGRP | S_IWOTH)) != 0)
  /src/usr.bin/find/
ls.c 66 struct stat *sb) /* stat buffer */
70 (void)printf("%7lu %6lld ", (u_long)sb->st_ino,
71 (long long)sb->st_blocks);
72 (void)strmode(sb->st_mode, modep);
73 (void)printf("%s %3lu %-*s %-*s ", modep, (unsigned long)sb->st_nlink,
74 LOGIN_NAME_MAX, user_from_uid(sb->st_uid, 0), LOGIN_NAME_MAX,
75 group_from_gid(sb->st_gid, 0));
77 if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode))
79 (unsigned long long)major(sb->st_rdev)
    [all...]
  /src/sys/fs/v7fs/
v7fs_superblock_util.c 66 struct v7fs_superblock *sb = &fs->superblock; local in function:v7fs_superblock_status
69 stat->total_blocks = sb->volume_size - sb->datablock_start_sector;
70 stat->total_inode = V7FS_MAX_INODE(sb);
71 stat->free_inode = sb->total_freeinode;
72 stat->free_blocks = sb->total_freeblock;
73 stat->total_files = stat->total_inode - sb->total_freeinode - 1;
82 const struct v7fs_superblock *sb = &fs->superblock; local in function:v7fs_superblock_dump
84 #define print(x) printf("%s: %d\n", #x, sb->x)
95 time_t t = sb->update_time
    [all...]
  /src/lib/libc/stdio/
remove.c 55 struct stat sb; local in function:remove
59 if (lstat(file, &sb) < 0)
66 if (S_ISDIR(sb.st_mode))
  /src/sys/arch/zaurus/stand/zboot/
pathfs.c 86 pathfs_stat(struct open_file *fd, struct stat *sb)
95 sb->st_ino = lsb.lst_ino;
96 sb->st_mode = lsb.lst_mode;
97 sb->st_nlink = lsb.lst_nlink;
98 sb->st_uid = lsb.lst_uid;
99 sb->st_gid = lsb.lst_gid;
100 sb->st_size = lsb.lst_size;
101 sb->st_blksize = lsb.lst_blksize;
102 sb->st_blocks = lsb.lst_blocks;
103 sb->st_atime = lsb.lst_atime
    [all...]
  /src/sys/kern/
uipc_socket2.c 531 sbwait(struct sockbuf *sb)
537 so = sb->sb_so;
541 sb->sb_flags |= SB_NOTIFY;
543 if ((sb->sb_flags & SB_NOINTR) != 0)
544 error = cv_timedwait(&sb->sb_cv, lock, sb->sb_timeo);
546 error = cv_timedwait_sig(&sb->sb_cv, lock, sb->sb_timeo);
558 sowakeup(struct socket *so, struct sockbuf *sb, int code)
563 KASSERT(sb->sb_so == so)
    [all...]
  /src/sys/dev/pci/
emuxki_boards.c 162 const struct emuxki_board *sb; local in function:emuxki_board_lookup
166 sb = &emuxki_boards[i];
169 if (vendor == sb->sb_vendor && product == sb->sb_product &&
170 subsystem == sb->sb_subsystem && revision == sb->sb_revision)
171 return sb;
174 if (vendor == sb->sb_vendor && product == sb->sb_product &&
175 subsystem == sb->sb_subsystem && sb->sb_revision == 0
    [all...]
  /src/sys/compat/netbsd32/
netbsd32_compat_90.c 86 struct statvfs *sb; local in function:compat_90_netbsd32_statvfs1
89 sb = STATVFSBUF_GET();
90 error = do_sys_pstatvfs(l, SCARG_P32(uap, path), SCARG(uap, flags), sb);
92 error = netbsd32_copyout_statvfs90(sb, SCARG_P32(uap, buf),
94 STATVFSBUF_PUT(sb);
107 struct statvfs *sb; local in function:compat_90_netbsd32_fstatvfs1
110 sb = STATVFSBUF_GET();
111 error = do_sys_fstatvfs(l, SCARG(uap, fd), SCARG(uap, flags), sb);
113 error = netbsd32_copyout_statvfs90(sb, SCARG_P32(uap, buf), 0);
114 STATVFSBUF_PUT(sb);
129 struct statvfs *sb; local in function:compat_90_netbsd32_fhstatvfs1
    [all...]
  /src/bin/pax/
cpio.c 105 if ((strcmp(arcn->name, TRAILER) == 0) && (arcn->sb.st_size == 0))
123 switch(arcn->sb.st_mode & C_IFMT) {
149 arcn->sb.st_mode = (arcn->sb.st_mode & 0xfff) | C_ISREG;
151 arcn->skip = arcn->sb.st_size;
177 last.sb.st_nlink = 1;
225 if ((arcn->sb.st_size == 0) ||
226 (arcn->sb.st_size >= (off_t)sizeof(arcn->ln_name))) {
228 (OFFT_T) arcn->sb.st_size);
235 if (rd_wrbuf(arcn->ln_name, (int)arcn->sb.st_size) !
    [all...]
file_subs.c 169 if (nodirs || chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid) < 0) {
242 res = set_ids(tmp_name, arcn->sb.st_uid, arcn->sb.st_gid);
252 arcn->sb.st_mode &= ~SETBITS(0);
254 set_pmode(tmp_name, arcn->sb.st_mode);
257 apply_umask((arcn->sb.st_mode & FILEBITS(0))));
259 set_ftime(tmp_name, arcn->sb.st_mtime,
260 arcn->sb.st_atime, 0, 0);
278 set_chflags(arcn->name, arcn->sb.st_flags)
297 struct stat sb; local in function:lnk_creat
358 struct stat sb; local in function:chk_same
395 struct stat sb; local in function:mk_link
472 struct stat sb; local in function:node_creat
667 struct stat sb; local in function:unlnk_exist
725 struct stat sb; local in function:chk_path
824 struct stat sb; local in function:set_ftime
1150 struct stat sb; local in function:set_crc
    [all...]
  /src/sbin/fsck_v7fs/
inode.c 55 struct v7fs_superblock *sb = &fs->superblock; local in function:freeinode_check
56 v7fs_ino_t *f = sb->freeinode;
57 int16_t n = sb->nfreeinode;
67 sb->nfreeinode = 0;
68 sb->modified = 1;
84 memset(sb->freeinode, 0, sizeof(*sb->freeinode));
85 sb->nfreeinode = 0;
86 sb->modified = 1;
137 struct v7fs_superblock *sb = &fs->superblock local in function:ilist_check
    [all...]
freeblock.c 119 struct v7fs_superblock *sb = &fs->superblock; local in function:freeblock_vs_freeblock_check
120 int n = sb->total_freeblock;
135 struct v7fs_superblock *sb = &fs->superblock; local in function:freeblock_dup_remove
141 n = sb->total_freeblock;
145 for (i = sb->nfreeblock - 1; (i > 0) && (n >= 0); i--, n--, total++) {
146 if (sb->freeblock[i] == dupblk) { /* Duplicate found. */
147 memmove(sb->freeblock + i, sb->freeblock + i + 1,
148 sb->nfreeblock - 1 - i);
149 sb->nfreeblock--
210 struct v7fs_superblock *sb = &fs->superblock; local in function:v7fs_freeblock_foreach
264 struct v7fs_superblock *sb = &fs->superblock; local in function:freeblock_check
    [all...]
  /src/sys/arch/alpha/stand/common/
bootxx.c 87 struct stat sb; local in function:main
102 if (fd == -1 || (fstat(fd, &sb) == -1)) {
107 if (sb.st_size > SECONDARY_MAX_LOAD) {
112 if (read(fd, (void*)SECONDARY_LOAD_ADDRESS, sb.st_size) != sb.st_size) {
  /src/sys/arch/evbmips/stand/sbmips/common/
bootxx.c 83 struct stat sb; local in function:main
99 if (fd == -1 || (fstat(fd, &sb) == -1)) {
104 if (sb.st_size > SECONDARY_MAX_LOAD) {
109 if (read(fd, (void*)SECONDARY_LOAD_ADDRESS, sb.st_size) != sb.st_size) {
  /src/sys/arch/sbmips/stand/common/
bootxx.c 83 struct stat sb; local in function:main
99 if (fd == -1 || (fstat(fd, &sb) == -1)) {
104 if (sb.st_size > SECONDARY_MAX_LOAD) {
109 if (read(fd, (void*)SECONDARY_LOAD_ADDRESS, sb.st_size) != sb.st_size) {
  /src/sys/external/bsd/drm2/dist/drm/amd/display/modules/info_packet/
amdgpu_info_packet.c 189 info_packet->sb[i] = 0;
237 info_packet->sb[0] = 0x02; // Stacked Frame, Left view is on top and right view on bottom.
241 info_packet->sb[0] = 0x01; // Frame/Field Sequential, L + R view indication based on MISC1 bit 2:1
245 info_packet->sb[0] = 0x04; // Side-by-side
248 info_packet->sb[0] = 0x00; // No Stereo Video, Shall be cleared to 0x0.
384 info_packet->sb[16] = (pixelEncoding << 4) | colorimetryFormat;
392 info_packet->sb[17] = 0;
395 info_packet->sb[17] = 1;
398 info_packet->sb[17] = 2;
401 info_packet->sb[17] = 3
    [all...]
  /src/usr.sbin/bta2dpd/bta2dpd/
sbc_encode.c 162 int block, sb; local in function:calc_scalefactors_joint
166 for (sb = 0; sb < global_bands - 1; sb++) {
168 sb_j[block][0] = (sb_sample[block][0][sb]) +
169 (sb_sample[block][1][sb]);
170 sb_j[block][1] = (sb_sample[block][0][sb]) -
171 (sb_sample[block][1][sb]);
199 if ((scalefactor[0][sb] + scalefactor[1][sb]) > x + y)
220 int ch, sb, block; local in function:calc_scalefactors
248 int ch, sb,start_chan = 0; local in function:calc_bitneed
495 int i, k, block, chan, sb; local in function:sbc_encode
593 int chan, block, sb, position, i, k; local in function:sbc_decode
772 int block, chan, sb, j, i; local in function:make_frame
1062 int sb, chan, block, blocks, i, j; local in function:parseFrame
    [all...]
  /src/sys/dev/microcode/tools/
bin2blob.c 79 struct stat sb; local in function:main
84 if (fstat(STDIN_FILENO, &sb) < 0)
87 src = malloc(sb.st_size);
88 dlen = sb.st_size * 1002 / 1000 + 12 + 3 + 4*2;
93 if (read(STDIN_FILENO, src, sb.st_size) != sb.st_size)
96 slen = sb.st_size;
  /src/usr.bin/biff/
biff.c 61 struct stat sb; local in function:main
78 if (stat(name, &sb))
82 (void)printf("is %s\n", sb.st_mode&0100 ? "y" : "n");
83 exit(sb.st_mode & 0100 ? 0 : 1);
88 if (chmod(name, sb.st_mode & ~0100) < 0)
92 if (chmod(name, sb.st_mode | 0100) < 0)
98 exit(sb.st_mode & 0100 ? 0 : 1);

Completed in 20 milliseconds

1 2 3 4 5 6 7 8 91011>>