}
#if HAVE_LONGLONG
- printf("wrote %lld bytes read %lld bytes %g bytes/sec\n",
+ printf("wrote %lld bytes read %lld bytes %.2f bytes/sec\n",
(long long)out,(long long)in,(in+out)/(0.5 + (t-starttime)));
- printf("total size is %lld speedup is %g\n",
+ printf("total size is %lld speedup is %.2f\n",
(long long)tsize,(1.0*tsize)/(in+out));
#else
- printf("wrote %ld bytes read %ld bytes %g bytes/sec\n",
+ printf("wrote %ld bytes read %ld bytes %.2f bytes/sec\n",
(long)out,(long)in,(in+out)/(0.5 + (t-starttime)));
- printf("total size is %ld speedup is %g\n",
+ printf("total size is %ld speedup is %.2f\n",
(long)tsize,(1.0*tsize)/(in+out));
#endif
}
static char *get_local_name(struct file_list *flist,char *name)
{
- struct stat st;
+ STRUCT_STAT st;
- if (stat(name,&st) == 0) {
+ if (do_stat(name,&st) == 0) {
if (S_ISDIR(st.st_mode)) {
if (chdir(name) != 0) {
fprintf(FERROR,"chdir %s : %s (1)\n",name,strerror(errno));
if (!name)
return NULL;
- if (mkdir(name,0777 & ~orig_umask) != 0) {
+ if (do_mkdir(name,0777 & ~orig_umask) != 0) {
fprintf(FERROR,"mkdir %s : %s (1)\n",name,strerror(errno));
exit_cleanup(1);
} else {