/netbsd-src/external/mit/libuv/dist/test/ |
H A D | test-pipe-set-fchmod.c | 31 struct stat stat_buf; in TEST_IMPL() local 51 stat(TEST_PIPENAME, &stat_buf); in TEST_IMPL() 52 ASSERT(stat_buf.st_mode & S_IRUSR); in TEST_IMPL() 53 ASSERT(stat_buf.st_mode & S_IRGRP); in TEST_IMPL() 54 ASSERT(stat_buf.st_mode & S_IROTH); in TEST_IMPL() 60 stat(TEST_PIPENAME, &stat_buf); in TEST_IMPL() 61 ASSERT(stat_buf.st_mode & S_IWUSR); in TEST_IMPL() 62 ASSERT(stat_buf.st_mode & S_IWGRP); in TEST_IMPL() 63 ASSERT(stat_buf.st_mode & S_IWOTH); in TEST_IMPL() 69 stat(TEST_PIPENAME, &stat_buf); in TEST_IMPL() [all …]
|
/netbsd-src/external/gpl2/diffutils/dist/src/ |
H A D | cmp.c | 68 static struct stat stat_buf[2]; variable 288 if (file_desc[f1] < 0 || fstat (file_desc[f1], stat_buf + f1) != 0) in main() 302 if (0 < same_file (&stat_buf[0], &stat_buf[1]) in main() 303 && same_file_attributes (&stat_buf[0], &stat_buf[1]) in main() 325 && S_ISREG (stat_buf[0].st_mode) in main() 326 && S_ISREG (stat_buf[1].st_mode)) in main() 328 off_t s0 = stat_buf[0].st_size - file_position (0); in main() 329 off_t s1 = stat_buf[1].st_size - file_position (1); in main() 340 buf_size = buffer_lcm (STAT_BLOCKSIZE (stat_buf[0]), in main() 341 STAT_BLOCKSIZE (stat_buf[1]), in main() [all …]
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcsd/ |
H A D | tcsd_conf.c | 742 struct stat stat_buf; in conf_file_init() local 761 if (stat(tcsd_config_file, &stat_buf) == -1) { in conf_file_init() 801 if (pw->pw_uid != stat_buf.st_uid || grp->gr_gid != stat_buf.st_gid) { in conf_file_init() 808 if (((stat_buf.st_mode & 0777) ^ mode) != 0) { in conf_file_init() 843 struct stat stat_buf; in ps_dirs_init() local 847 if (stat(tcsd_options.system_ps_dir, &stat_buf) == -1) { in ps_dirs_init() 866 if (stat(tcsd_options.system_ps_dir, &stat_buf) == -1) { in ps_dirs_init() 872 if (!S_ISDIR(stat_buf.st_mode)) { in ps_dirs_init() 875 } else if (((stat_buf.st_mode & 0777) ^ mode) != 0) { in ps_dirs_init() 878 (unsigned int) stat_buf.st_mode, (unsigned int) mode); in ps_dirs_init()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/ |
H A D | tcs_aik.c | 89 struct stat stat_buf; in get_credential() local 115 if ((rc = fstat(fd, &stat_buf)) == -1) { in get_credential() 121 file_size = (size_t)stat_buf.st_size; in get_credential()
|
/netbsd-src/external/gpl3/gcc.old/dist/libgfortran/intrinsics/ |
H A D | chmod.c | 75 struct stat stat_buf; in chmod_internal() local 89 if (stat (file, &stat_buf)) in chmod_internal() 92 file_mode = stat_buf.st_mode & ~S_IFMT; in chmod_internal() 94 is_dir = stat_buf.st_mode & S_IFDIR; in chmod_internal()
|
/netbsd-src/external/gpl3/gcc/dist/libgfortran/intrinsics/ |
H A D | chmod.c | 78 struct stat stat_buf; in chmod_internal() local 92 if (stat (file, &stat_buf)) in chmod_internal() 95 file_mode = stat_buf.st_mode & ~S_IFMT; in chmod_internal() 97 is_dir = stat_buf.st_mode & S_IFDIR; in chmod_internal()
|
/netbsd-src/external/bsd/openldap/dist/servers/slapd/ |
H A D | slapadd.c | 367 struct stat stat_buf; in slapadd() local 421 && !fstat ( fileno ( ldiffp->fp ), &stat_buf ) in slapadd() 422 && S_ISREG(stat_buf.st_mode) ) { in slapadd() 427 stat_buf.st_size); in slapadd()
|
H A D | slapmodify.c | 73 struct stat stat_buf; in slapmodify() local 129 && !fstat ( fileno ( ldiffp->fp ), &stat_buf ) in slapmodify() 130 && S_ISREG(stat_buf.st_mode) ) { in slapmodify() 135 stat_buf.st_size); in slapmodify()
|
/netbsd-src/external/gpl2/mkhybrid/dist/ |
H A D | mac_label.c | 38 struct stat stat_buf; in gen_mac_label() local 45 if (stat(mac_boot->name, &stat_buf) < 0) { in gen_mac_label() 100 mac_boot->size = stat_buf.st_size - SECTOR_SIZE - 2*HFS_BLOCKSZ; in gen_mac_label()
|
/netbsd-src/external/bsd/top/dist/machine/ |
H A D | m_svr4.c | 479 struct stat stat_buf; in check_nlist() local 493 if ( !((stat("/stats/sysinfo", &stat_buf) == 0) && in check_nlist() 494 (stat_buf.st_mode & S_IFREG)) ) in check_nlist()
|
/netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
H A D | plugin.c | 255 struct stat stat_buf; in bfd_plugin_open_input() local 257 if (fstat (fd, &stat_buf)) in bfd_plugin_open_input() 264 file->filesize = stat_buf.st_size; in bfd_plugin_open_input()
|
H A D | pdp11.c | 677 struct stat stat_buf; in NAME() local 688 && (fstat(fileno((FILE *) (abfd->iostream)), &stat_buf) == 0) in NAME() 689 && ((stat_buf.st_mode & 0111) != 0)) in NAME()
|
H A D | aoutx.h | 644 struct stat stat_buf; in NAME() local 655 && (fstat (fileno ((FILE *) (abfd->iostream)), &stat_buf) == 0) in NAME() 656 && ((stat_buf.st_mode & 0111) != 0)) in NAME()
|
/netbsd-src/external/gpl3/binutils/dist/bfd/ |
H A D | plugin.c | 267 struct stat stat_buf; in bfd_plugin_open_input() local 269 if (fstat (fd, &stat_buf)) in bfd_plugin_open_input() 276 file->filesize = stat_buf.st_size; in bfd_plugin_open_input()
|
H A D | pdp11.c | 676 struct stat stat_buf; in NAME() local 687 && (fstat(fileno((FILE *) (abfd->iostream)), &stat_buf) == 0) in NAME() 688 && ((stat_buf.st_mode & 0111) != 0)) in NAME()
|
H A D | aoutx.h | 644 struct stat stat_buf; in NAME() local 655 && (fstat (fileno ((FILE *) (abfd->iostream)), &stat_buf) == 0) in NAME() 656 && ((stat_buf.st_mode & 0111) != 0)) in NAME()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/ps/ |
H A D | tspps.c | 72 struct stat stat_buf; in get_user_ps_path() local 137 if ((rc = stat(buf, &stat_buf)) == -1) { in get_user_ps_path() 496 struct stat stat_buf; in psfile_write_key() local 503 if ((rc = fstat(fd, &stat_buf)) == -1) { in psfile_write_key() 508 file_offset = stat_buf.st_size; in psfile_write_key()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/ps/ |
H A D | tcsps.c | 683 struct stat stat_buf; in psfile_remove_key() local 686 if ((rc = fstat(fd, &stat_buf)) != 0) { in psfile_remove_key()
|
/netbsd-src/external/gpl3/binutils/dist/gprofng/src/ |
H A D | ClassFile.cc | 1009 dbe_stat_t stat_buf; in openFile() local 1010 if ((fstat64 (fd, &stat_buf) == -1) || (stat_buf.st_size == 0)) in openFile() 1016 cf_bufsz = stat_buf.st_size; in openFile()
|
/netbsd-src/external/gpl3/binutils.old/dist/gprofng/src/ |
H A D | ClassFile.cc | 1009 struct stat64 stat_buf; in openFile() local 1010 if ((fstat64 (fd, &stat_buf) == -1) || (stat_buf.st_size == 0)) in openFile() 1016 cf_bufsz = stat_buf.st_size; in openFile()
|
/netbsd-src/external/gpl3/gcc.old/dist/gcc/jit/ |
H A D | jit-playback.c | 2088 struct stat stat_buf; in copy_file() local 2103 if (fstat (fileno (f_in), &stat_buf) == -1) in copy_file() 2167 if (fchmod (fileno (f_out), stat_buf.st_mode) == -1) in copy_file()
|
/netbsd-src/external/gpl3/gcc/dist/gcc/jit/ |
H A D | jit-playback.cc | 2568 struct stat stat_buf; in copy_file() local 2583 if (fstat (fileno (f_in), &stat_buf) == -1) in copy_file() 2649 if (fchmod (fileno (f_out), stat_buf.st_mode) == -1) in copy_file()
|
/netbsd-src/external/gpl2/diffutils/dist/ |
H A D | ChangeLog | 649 (stat_buf): New static var; was formerly a local var in 'main'. 2066 (main): Likewise, for stat_buf[12]. Index these variables with `i'.
|