38 |
unsigned long long total_bytes; |
unsigned long long total_bytes; |
39 |
unsigned long long begin_time_us; |
unsigned long long begin_time_us; |
40 |
#endif |
#endif |
41 |
}; |
} FIX_ALIASING; |
42 |
#define G (*(struct globals*)&bb_common_bufsiz1) |
#define G (*(struct globals*)&bb_common_bufsiz1) |
43 |
#define INIT_G() do { \ |
#define INIT_G() do { \ |
44 |
/* we have to zero it out because of NOEXEC */ \ |
/* we have to zero it out because of NOEXEC */ \ |
301 |
if (ftruncate(ofd, seek * obs) < 0) { |
if (ftruncate(ofd, seek * obs) < 0) { |
302 |
struct stat st; |
struct stat st; |
303 |
|
|
304 |
if (fstat(ofd, &st) < 0 || S_ISREG(st.st_mode) || |
if (fstat(ofd, &st) < 0 |
305 |
S_ISDIR(st.st_mode)) |
|| S_ISREG(st.st_mode) |
306 |
|
|| S_ISDIR(st.st_mode) |
307 |
|
) { |
308 |
goto die_outfile; |
goto die_outfile; |
309 |
|
} |
310 |
} |
} |
311 |
} |
} |
312 |
} else { |
} else { |