/netbsd/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
H A D | copy-file.c | 52 struct stat statbuf; in copy_file_preserving() local 59 if (src_fd < 0 || fstat (src_fd, &statbuf) < 0) in copy_file_preserving() 63 mode = statbuf.st_mode & 07777; in copy_file_preserving() 93 ut.actime = statbuf.st_atime; in copy_file_preserving() 94 ut.modtime = statbuf.st_mtime; in copy_file_preserving() 101 ut[0].tv_sec = statbuf.st_atime; ut[0].tv_usec = 0; in copy_file_preserving() 102 ut[1].tv_sec = statbuf.st_mtime; ut[1].tv_usec = 0; in copy_file_preserving() 109 chown (dest_filename, statbuf.st_uid, statbuf.st_gid); in copy_file_preserving()
|
H A D | javacomp.c | 605 struct stat statbuf; in is_envjavac_gcj_14_14_usable() local 628 && stat (compiled_file_name, &statbuf) >= 0) in is_envjavac_gcj_14_14_usable() 663 struct stat statbuf; in is_envjavac_gcj_14_13_usable() local 690 && stat (compiled_file_name, &statbuf) >= 0) in is_envjavac_gcj_14_13_usable() 704 && stat (compiled_file_name, &statbuf) >= 0) in is_envjavac_gcj_14_13_usable() 806 struct stat statbuf; in is_envjavac_nongcj_usable() local 830 && stat (compiled_file_name, &statbuf) >= 0 in is_envjavac_nongcj_usable() 1163 struct stat statbuf; in is_gcj_14_14_usable() local 1220 struct stat statbuf; in is_gcj_14_13_usable() local 1327 struct stat statbuf; in is_javac_usable() local [all …]
|
/netbsd/bin/pax/ |
H A D | ftree.c | 413 struct stat statbuf; in next_file() local 447 Mftent.fts_statp = &statbuf; in next_file() 456 memset(&statbuf, 0, sizeof(statbuf)); in next_file() 457 statbuf.st_dev = MFTENT_DUMMY_DEV; in next_file() 458 statbuf.st_ino = ftnode->lineno; in next_file() 459 statbuf.st_size = 0; in next_file() 471 statbuf.st_mtime = starttime; in next_file() 488 inotype(statbuf.st_mode)); in next_file() 498 statbuf.st_mode &= ~ALLPERMS; in next_file() 502 statbuf.st_gid = ftnode->st_gid; in next_file() [all …]
|
/netbsd/sbin/mount_umap/ |
H A D | mount_umap.c | 103 struct stat statbuf; in mount_umap() local 156 if (fstat(fileno(fp), &statbuf)) in mount_umap() 158 if (statbuf.st_mode & S_IWGRP || statbuf.st_mode & S_IWOTH) { in mount_umap() 159 strmode(statbuf.st_mode, buf); in mount_umap() 163 if (statbuf.st_uid != ROOTUSER) in mount_umap() 204 if (fstat(fileno(gfp), &statbuf)) in mount_umap() 206 if (statbuf.st_mode & S_IWGRP || statbuf.st_mode & S_IWOTH) { in mount_umap() 207 strmode(statbuf.st_mode, buf); in mount_umap() 211 if (statbuf.st_uid != ROOTUSER) in mount_umap()
|
/netbsd/external/gpl3/binutils/dist/binutils/ |
H A D | rename.c | 169 set_times (const char *destination, const struct stat *statbuf) in set_times() argument 174 times[0] = get_stat_atime (statbuf); in set_times() 175 times[1] = get_stat_mtime (statbuf); in set_times() 180 tv[0].tv_sec = statbuf->st_atime; in set_times() 181 tv[0].tv_usec = get_stat_atime_ns (statbuf) / 1000; in set_times() 182 tv[1].tv_sec = statbuf->st_mtime; in set_times() 183 tv[1].tv_usec = get_stat_mtime_ns (statbuf) / 1000; in set_times() 188 tb.actime = statbuf->st_atime; in set_times() 189 tb.modtime = statbuf->st_mtime; in set_times() 194 tb[0] = statbuf->st_atime; in set_times() [all …]
|
/netbsd/external/gpl3/gdb/dist/bfd/ |
H A D | aix5ppc-core.c | 57 struct stat statbuf; in xcoff64_core_p() local 73 if (bfd_stat (abfd, &statbuf) < 0) in xcoff64_core_p() 92 || ((CHECK_FILE_OFFSET (statbuf, core.c_fdsinfox))) in xcoff64_core_p() 93 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader))) in xcoff64_core_p() 94 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader + core.c_lsize))) in xcoff64_core_p() 95 || ((CHECK_FILE_OFFSET (statbuf, core.c_thr))) in xcoff64_core_p() 96 || ((CHECK_FILE_OFFSET (statbuf, core.c_segregion))) in xcoff64_core_p() 97 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack))) in xcoff64_core_p() 98 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack + core.c_size))) in xcoff64_core_p() 99 || ((CHECK_FILE_OFFSET (statbuf, core.c_data))) in xcoff64_core_p() [all …]
|
/netbsd/external/mit/libuv/dist/src/ |
H A D | fs-poll.c | 46 uv_stat_t statbuf; member 186 uv_stat_t* statbuf; in poll_cb() local 201 &ctx->statbuf, in poll_cb() 208 statbuf = &req->statbuf; in poll_cb() 211 if (ctx->busy_polling < 0 || !statbuf_eq(&ctx->statbuf, statbuf)) in poll_cb() 212 ctx->poll_cb(ctx->parent_handle, 0, &ctx->statbuf, statbuf); in poll_cb() 214 ctx->statbuf = *statbuf; in poll_cb()
|
/netbsd/external/gpl3/binutils.old/dist/bfd/ |
H A D | aix5ppc-core.c | 57 struct stat statbuf; in xcoff64_core_p() local 74 if (bfd_stat (abfd, &statbuf) < 0) in xcoff64_core_p() 93 || ((CHECK_FILE_OFFSET (statbuf, core.c_fdsinfox))) in xcoff64_core_p() 94 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader))) in xcoff64_core_p() 95 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader + core.c_lsize))) in xcoff64_core_p() 96 || ((CHECK_FILE_OFFSET (statbuf, core.c_thr))) in xcoff64_core_p() 97 || ((CHECK_FILE_OFFSET (statbuf, core.c_segregion))) in xcoff64_core_p() 98 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack))) in xcoff64_core_p() 99 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack + core.c_size))) in xcoff64_core_p() 100 || ((CHECK_FILE_OFFSET (statbuf, core.c_data))) in xcoff64_core_p() [all …]
|
/netbsd/external/gpl3/binutils/dist/bfd/ |
H A D | aix5ppc-core.c | 57 struct stat statbuf; in xcoff64_core_p() local 73 if (bfd_stat (abfd, &statbuf) < 0) in xcoff64_core_p() 92 || ((CHECK_FILE_OFFSET (statbuf, core.c_fdsinfox))) in xcoff64_core_p() 93 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader))) in xcoff64_core_p() 94 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader + core.c_lsize))) in xcoff64_core_p() 95 || ((CHECK_FILE_OFFSET (statbuf, core.c_thr))) in xcoff64_core_p() 96 || ((CHECK_FILE_OFFSET (statbuf, core.c_segregion))) in xcoff64_core_p() 97 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack))) in xcoff64_core_p() 98 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack + core.c_size))) in xcoff64_core_p() 99 || ((CHECK_FILE_OFFSET (statbuf, core.c_data))) in xcoff64_core_p() [all …]
|
/netbsd/external/gpl3/gdb.old/dist/bfd/ |
H A D | aix5ppc-core.c | 57 struct stat statbuf; in xcoff64_core_p() local 73 if (bfd_stat (abfd, &statbuf) < 0) in xcoff64_core_p() 92 || ((CHECK_FILE_OFFSET (statbuf, core.c_fdsinfox))) in xcoff64_core_p() 93 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader))) in xcoff64_core_p() 94 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader + core.c_lsize))) in xcoff64_core_p() 95 || ((CHECK_FILE_OFFSET (statbuf, core.c_thr))) in xcoff64_core_p() 96 || ((CHECK_FILE_OFFSET (statbuf, core.c_segregion))) in xcoff64_core_p() 97 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack))) in xcoff64_core_p() 98 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack + core.c_size))) in xcoff64_core_p() 99 || ((CHECK_FILE_OFFSET (statbuf, core.c_data))) in xcoff64_core_p() [all …]
|
/netbsd/external/gpl3/gdb/dist/binutils/ |
H A D | rename.c | 91 set_times (const char *destination, const struct stat *statbuf) in set_times() argument 99 tb.actime = statbuf->st_atime; in set_times() 100 tb.modtime = statbuf->st_mtime; in set_times() 106 tb[0] = statbuf->st_atime; in set_times() 107 tb[1] = statbuf->st_mtime; in set_times() 112 tv[0].tv_sec = statbuf->st_atime; in set_times() 114 tv[1].tv_sec = statbuf->st_mtime; in set_times()
|
/netbsd/external/gpl3/binutils.old/dist/binutils/ |
H A D | rename.c | 91 set_times (const char *destination, const struct stat *statbuf) in set_times() argument 99 tb.actime = statbuf->st_atime; in set_times() 100 tb.modtime = statbuf->st_mtime; in set_times() 106 tb[0] = statbuf->st_atime; in set_times() 107 tb[1] = statbuf->st_mtime; in set_times() 112 tv[0].tv_sec = statbuf->st_atime; in set_times() 114 tv[1].tv_sec = statbuf->st_mtime; in set_times()
|
/netbsd/external/gpl3/gdb.old/dist/binutils/ |
H A D | rename.c | 91 set_times (const char *destination, const struct stat *statbuf) in set_times() argument 99 tb.actime = statbuf->st_atime; in set_times() 100 tb.modtime = statbuf->st_mtime; in set_times() 106 tb[0] = statbuf->st_atime; in set_times() 107 tb[1] = statbuf->st_mtime; in set_times() 112 tv[0].tv_sec = statbuf->st_atime; in set_times() 114 tv[1].tv_sec = statbuf->st_mtime; in set_times()
|
/netbsd/external/gpl3/gdb/dist/gnulib/import/ |
H A D | open.c | 157 struct stat statbuf; in open() local 158 if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) in open() 187 struct stat statbuf; in open() local 189 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) in open()
|
/netbsd/external/gpl3/gdb.old/dist/gnulib/import/ |
H A D | open.c | 157 struct stat statbuf; in open() local 158 if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) in open() 187 struct stat statbuf; in open() local 189 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) in open()
|
/netbsd/external/gpl3/gcc.old/dist/libgfortran/io/ |
H A D | unix.c | 410 struct stat statbuf; in raw_size() local 1116 struct stat statbuf; in fd_to_stream() local 1928 struct stat statbuf; in file_size() local 1946 struct stat statbuf; in inquire_sequential() local 1959 S_ISCHR (statbuf.st_mode) || S_ISFIFO (statbuf.st_mode)) in inquire_sequential() 1962 if (S_ISDIR (statbuf.st_mode) || S_ISBLK (statbuf.st_mode)) in inquire_sequential() 1975 struct stat statbuf; in inquire_direct() local 1987 if (S_ISREG (statbuf.st_mode) || S_ISBLK (statbuf.st_mode)) in inquire_direct() 1991 S_ISCHR (statbuf.st_mode) || S_ISFIFO (statbuf.st_mode)) in inquire_direct() 2004 struct stat statbuf; in inquire_formatted() local [all …]
|
/netbsd/external/gpl3/gcc/dist/libgfortran/io/ |
H A D | unix.c | 410 struct stat statbuf; in raw_size() local 1116 struct stat statbuf; in fd_to_stream() local 1928 struct stat statbuf; in file_size() local 1946 struct stat statbuf; in inquire_sequential() local 1959 S_ISCHR (statbuf.st_mode) || S_ISFIFO (statbuf.st_mode)) in inquire_sequential() 1962 if (S_ISDIR (statbuf.st_mode) || S_ISBLK (statbuf.st_mode)) in inquire_sequential() 1975 struct stat statbuf; in inquire_direct() local 1987 if (S_ISREG (statbuf.st_mode) || S_ISBLK (statbuf.st_mode)) in inquire_direct() 1991 S_ISCHR (statbuf.st_mode) || S_ISFIFO (statbuf.st_mode)) in inquire_direct() 2004 struct stat statbuf; in inquire_formatted() local [all …]
|
/netbsd/external/bsd/cron/dist/ |
H A D | database.c | 250 struct stat *statbuf, cron_db *new_db, cron_db *old_db) in process_crontab() argument 279 if (fstat(crontab_fd, statbuf) < OK) { in process_crontab() 283 if (!S_ISREG(statbuf->st_mode)) { in process_crontab() 287 if ((eqmode && (statbuf->st_mode & 07577) != eqmode) || in process_crontab() 288 (badmode && (statbuf->st_mode & badmode) != 0)) { in process_crontab() 292 if (statbuf->st_uid != ROOT_UID && (pw == NULL || in process_crontab() 293 statbuf->st_uid != pw->pw_uid || strcmp(uname, pw->pw_name) != 0)) { in process_crontab() 297 if (statbuf->st_nlink != 1) { in process_crontab() 308 if (u->mtime == statbuf->st_mtime) { in process_crontab() 329 u->mtime = statbuf->st_mtime; in process_crontab()
|
/netbsd/usr.bin/tail/ |
H A D | forward.c | 92 struct stat statbuf; in forward() local 244 stat(fname, &statbuf) != -1) { in forward() 245 if (statbuf.st_ino != sbp->st_ino || in forward() 246 statbuf.st_dev != sbp->st_dev || in forward() 247 statbuf.st_rdev != sbp->st_rdev || in forward() 248 statbuf.st_nlink == 0) { in forward() 254 *sbp = statbuf; in forward()
|
/netbsd/tests/fs/lfs/ |
H A D | t_rfw.c | 239 struct stat statbuf; in write_file() local 243 if (rump_sys_stat(filename, &statbuf) < 0) in write_file() 246 size = statbuf.st_size; in write_file() 265 struct stat statbuf; in check_file() local 268 if (rump_sys_stat(filename, &statbuf) < 0) { in check_file() 272 if (size != statbuf.st_size) { in check_file() 274 filename, size, (int)statbuf.st_size); in check_file()
|
/netbsd/external/gpl2/xcvs/dist/src/ |
H A D | error.c | 116 char statbuf[256]; in error() local 130 buf = statbuf; in error() 135 length = sizeof (statbuf); in error() 137 buf = vasnprintf (statbuf, &length, message, args); in error() 188 if (buf != statbuf) free (buf); in error()
|
/netbsd/external/gpl3/gdb/dist/sim/m32r/ |
H A D | traps-linux.c | 815 struct statfs statbuf; in m32r_trap() local 823 translate_endian((void *) &statbuf, sizeof(statbuf)); in m32r_trap() 824 if ((s.write_mem) (cb, &s, arg2, (char *) &statbuf, sizeof(statbuf)) in m32r_trap() 825 != sizeof(statbuf)) in m32r_trap() 835 struct statfs statbuf; in m32r_trap() local 843 translate_endian((void *) &statbuf, sizeof(statbuf)); in m32r_trap() 844 if ((s.write_mem) (cb, &s, arg2, (char *) &statbuf, sizeof(statbuf)) in m32r_trap() 845 != sizeof(statbuf)) in m32r_trap() 913 struct stat statbuf; in m32r_trap() local 946 struct stat statbuf; in m32r_trap() local [all …]
|
/netbsd/external/gpl3/gdb.old/dist/sim/m32r/ |
H A D | traps-linux.c | 815 struct statfs statbuf; in m32r_trap() local 823 translate_endian((void *) &statbuf, sizeof(statbuf)); in m32r_trap() 824 if ((s.write_mem) (cb, &s, arg2, (char *) &statbuf, sizeof(statbuf)) in m32r_trap() 825 != sizeof(statbuf)) in m32r_trap() 835 struct statfs statbuf; in m32r_trap() local 843 translate_endian((void *) &statbuf, sizeof(statbuf)); in m32r_trap() 844 if ((s.write_mem) (cb, &s, arg2, (char *) &statbuf, sizeof(statbuf)) in m32r_trap() 845 != sizeof(statbuf)) in m32r_trap() 913 struct stat statbuf; in m32r_trap() local 946 struct stat statbuf; in m32r_trap() local [all …]
|
/netbsd/external/gpl3/gcc/dist/libcody/ |
H A D | resolver.cc | 177 struct stat statbuf; in IncludeTranslateRequest() local 182 && fstatat (fd_dir, cmi.c_str (), &statbuf, 0) == 0 in IncludeTranslateRequest() 183 && S_ISREG (statbuf.st_mode)) in IncludeTranslateRequest() 193 if (stat (append.c_str (), &statbuf) == 0 in IncludeTranslateRequest() 194 || S_ISREG (statbuf.st_mode)) in IncludeTranslateRequest()
|
/netbsd/external/bsd/ppp/dist/pppd/ |
H A D | tty.c | 295 struct stat statbuf; in setdevname() local 310 if (stat(cp, &statbuf) < 0) { in setdevname() 316 if (!S_ISCHR(statbuf.st_mode)) { in setdevname() 324 devstat = statbuf; in setdevname() 441 struct stat statbuf; in tty_check_options() local 484 if (fstat(0, &statbuf) >= 0 && S_ISCHR(statbuf.st_mode) in tty_check_options() 485 && statbuf.st_rdev == devstat.st_rdev) { in tty_check_options() 500 && S_ISCHR(statbuf.st_mode) && statbuf.st_rdev == devstat.st_rdev) in tty_check_options() 514 struct stat statbuf; in connect_tty() local 594 if (fstat(ttyfd, &statbuf) < 0 in connect_tty() [all …]
|