Home
last modified time | relevance | path

Searched refs:stat_buf (Results 1 – 23 of 23) sorted by relevance

/netbsd-src/external/mit/libuv/dist/test/
H A Dtest-pipe-set-fchmod.c31 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 Dcmp.c68 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 Dtcsd_conf.c742 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 Dtcs_aik.c89 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 Dchmod.c75 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 Dchmod.c78 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 Dslapadd.c367 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 Dslapmodify.c73 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 Dmac_label.c38 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 Dm_svr4.c479 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 Dplugin.c255 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 Dpdp11.c677 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 Daoutx.h644 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 Dplugin.c267 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 Dpdp11.c676 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 Daoutx.h644 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 Dtspps.c72 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 Dtcsps.c683 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 DClassFile.cc1009 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 DClassFile.cc1009 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 Djit-playback.c2088 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 Djit-playback.cc2568 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 DChangeLog649 (stat_buf): New static var; was formerly a local var in 'main'.
2066 (main): Likewise, for stat_buf[12]. Index these variables with `i'.