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

1 2 3 4 5 6 7 8 91011>>

  /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/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/distrib/utils/libhack/
opendir.c 62 struct stat sb; variable in typeref:struct:stat
66 if (fstat(fd, &sb) || !S_ISDIR(sb.st_mode)) {
  /src/lib/libc/compat/sys/
compat___fhstatvfs140.c 54 struct statvfs sb; variable in typeref:struct:statvfs
55 int error = __fhstatvfs190(fhp, len, &sb, flags);
57 statvfs_to_statvfs90(&sb, buf);
compat___fhstatvfs40.c 53 struct statvfs sb; variable in typeref:struct:statvfs
54 int error = __fhstatvfs190(fhp, len, &sb, 0);
56 statvfs_to_statvfs90(&sb, buf);
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);
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...]
  /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/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/usr.bin/crunch/crunchide/
exec_coff.c 61 struct stat sb; local in function:check_coff
67 if (fstat(fd, &sb) == -1)
69 if (sb.st_size > SIZE_T_MAX)
exec_ecoff.c 59 struct stat sb; local in function:check_ecoff
65 if (fstat(fd, &sb) == -1)
67 if (sb.st_size < (off_t)sizeof eh)
  /src/usr.bin/mesg/
mesg.c 64 struct stat sb; local in function:main
83 if (stat(tty, &sb) == -1)
87 if (sb.st_mode & S_IWGRP) {
97 if (chmod(tty, sb.st_mode | S_IWGRP) == -1)
101 if (chmod(tty, sb.st_mode & ~S_IWGRP) == -1)
  /src/usr.bin/patch/
mkpath.c 55 struct stat sb; local in function:mkpath
68 if (stat(path, &sb)) {
74 } else if (!S_ISDIR(sb.st_mode)) {
  /src/tests/lib/libposix/
t_rename.c 55 struct stat sb; local in function:ATF_TC_BODY
64 REQUIRE_LIBC(stat("t1", &sb), -1);
70 ATF_REQUIRE_MSG(stat("t1", &sb) != 0, "BSD rename should remove file t1");
74 REQUIRE_LIBC(stat("t1", &sb), -1);
  /src/tests/net/net/
t_raw.c 27 struct stat sb; local in function:ATF_TC_BODY
33 RL(rump_sys_fstat(s, &sb));
  /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);
  /src/usr.sbin/fstyp/
ufs.c 56 int sb, superblock; local in function:fstyp_ufs
66 for (sb = 0; (superblock = superblocks[sb]) != -1; sb++) {
  /src/lib/libc/gen/
ttyname.c 62 struct stat sb; local in function:__weak_alias
80 if (fstat(fd, &sb))
87 return devname_r(sb.st_rdev, sb.st_mode & S_IFMT, buf, len);
  /src/share/man/tools/
noso.c 11 struct stat sb; local in function:main
17 if (lstat(argv[i], &sb) < 0)
19 if (!S_ISREG(sb.st_mode))
  /src/sys/fs/v7fs/
v7fs_dirent.c 65 struct v7fs_superblock *sb = &fs->superblock; local in function:v7fs_dirent_endian_convert
72 if (v7fs_inode_number_sanity(sb, ino)) {
  /src/tests/fs/union/
t_pr.c 242 struct stat sb; local in function:ATF_TC_BODY
267 RL(rump_sys_lstat("/lower/foo/.", &sb));
  /src/lib/libc/db/recno/
rec_open.c 66 struct stat sb; local in function:__rec_open
151 if (fstat(rfd, &sb))
162 if (sb.st_size == 0)
173 t->bt_msize = sb.st_size;
179 t->bt_emap = t->bt_smap + sb.st_size;

Completed in 20 milliseconds

1 2 3 4 5 6 7 8 91011>>