Home
last modified time | relevance | path

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

/openbsd-src/gnu/usr.bin/gcc/gcc/java/
H A Djcf-io.c240 struct stat stat_buf; variable
241 if (fstat (fd, &stat_buf) != 0
242 || ! S_ISREG (stat_buf.st_mode))
250 jcf->buffer = ALLOC (stat_buf.st_size);
251 jcf->buffer_end = jcf->buffer + stat_buf.st_size;
256 if (read (fd, jcf->buffer, stat_buf.st_size) != stat_buf.st_size)
H A Dclass.c797 struct stat stat_buf; local
810 if (fstat (fd, &stat_buf) != 0
811 || ! S_ISREG (stat_buf.st_mode))
816 buffer = xmalloc (strlen (name) + stat_buf.st_size);
818 read (fd, buffer + strlen (name), stat_buf.st_size);
821 strlen (name) + stat_buf.st_size);
831 build_int_2 (stat_buf.st_size, 0));
832 data = build_string (strlen(name) + stat_buf.st_size, buffer);
/openbsd-src/gnu/usr.sbin/mkhybrid/src/
H A Dmac_label.c40 struct stat stat_buf; in gen_mac_label() local
47 if (stat(mac_boot->name, &stat_buf) < 0) { in gen_mac_label()
102 mac_boot->size = stat_buf.st_size - SECTOR_SIZE - 2*HFS_BLOCKSZ; in gen_mac_label()
/openbsd-src/gnu/gcc/gcc/
H A Dprotoize.c1269 struct stat stat_buf; in find_file() local
1276 stat_buf.st_mtime = (time_t) 0; in find_file()
1279 if (stat (filename, &stat_buf) == -1) in find_file()
1285 stat_buf.st_mtime = (time_t) -1; in find_file()
1292 file_p->mtime = stat_buf.st_mtime; in find_file()
2019 struct stat stat_buf; in process_aux_info_file() local
2023 if (stat (aux_info_filename, &stat_buf) == -1) in process_aux_info_file()
2036 if ((aux_info_size = stat_buf.st_size) == 0) in process_aux_info_file()
2043 aux_info_mtime = stat_buf.st_mtime; in process_aux_info_file()
2051 if (stat (base_source_filename, &stat_buf) == -1) in process_aux_info_file()
[all …]
H A Dmips-tfile.c4314 struct stat stat_buf; in copy_object() local
4319 if (fstat (fileno (obj_in_stream), &stat_buf) != 0 in copy_object()
4436 if (max_file_offset != (unsigned long) stat_buf.st_size) in copy_object()
4439 (long) stat_buf.st_size); in copy_object()
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dprotoize.c1361 struct stat stat_buf; local
1368 stat_buf.st_mtime = (time_t) 0;
1371 if (stat (filename, &stat_buf) == -1)
1377 stat_buf.st_mtime = (time_t) -1;
1384 file_p->mtime = stat_buf.st_mtime;
2124 struct stat stat_buf; local
2128 if (stat (aux_info_filename, &stat_buf) == -1)
2141 if ((aux_info_size = stat_buf.st_size) == 0)
2148 aux_info_mtime = stat_buf.st_mtime;
2156 if (stat (base_source_filename, &stat_buf) == -1)
[all …]
H A Dmips-tfile.c4450 struct stat stat_buf; in copy_object() local
4455 if (fstat (fileno (obj_in_stream), &stat_buf) != 0 in copy_object()
4572 if (max_file_offset != stat_buf.st_size) in copy_object()
4575 (long) stat_buf.st_size); in copy_object()
/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A Driscix.c576 struct stat stat_buf; in riscix_some_aout_object_p() local
580 && (fstat(fileno((FILE *) (abfd->iostream)), &stat_buf) == 0) in riscix_some_aout_object_p()
581 && ((stat_buf.st_mode & 0111) != 0)) in riscix_some_aout_object_p()
H A Dpdp11.c624 struct stat stat_buf; in NAME() local
635 && (fstat(fileno((FILE *) (abfd->iostream)), &stat_buf) == 0) in NAME()
636 && ((stat_buf.st_mode & 0111) != 0)) in NAME()
H A Daoutx.h613 struct stat stat_buf; in NAME() local
624 && (fstat (fileno ((FILE *) (abfd->iostream)), &stat_buf) == 0) in NAME()
625 && ((stat_buf.st_mode & 0111) != 0)) in NAME()
/openbsd-src/gnu/usr.bin/binutils/bfd/
H A Driscix.c605 struct stat stat_buf; local
608 && (fstat(fileno((FILE *) (abfd->iostream)), &stat_buf) == 0)
609 && ((stat_buf.st_mode & 0111) != 0))
H A Dpdp11.c834 struct stat stat_buf; variable
845 && (fstat(fileno((FILE *) (abfd->iostream)), &stat_buf) == 0)
846 && ((stat_buf.st_mode & 0111) != 0))
H A Daoutx.h640 struct stat stat_buf; variable
651 && (fstat (fileno ((FILE *) (abfd->iostream)), &stat_buf) == 0)
652 && ((stat_buf.st_mode & 0111) != 0))
/openbsd-src/usr.bin/sort/
H A Dfile.c535 struct stat stat_buf; in file_reader_init() local
544 if (fstat(fd, &stat_buf) < 0) in file_reader_init()
546 sz = stat_buf.st_size; in file_reader_init()