1877 |
{ |
{ |
1878 |
#if defined(_CARBON_) || defined(__APPLE__) || LINUX |
#if defined(_CARBON_) || defined(__APPLE__) || LINUX |
1879 |
const uint bufferSize = 524288; // 512 kB |
const uint bufferSize = 524288; // 512 kB |
1880 |
int fOut = open(path, O_WRONLY | O_NONBLOCK | O_CREAT | O_TRUNC); |
int fOut = open(path, O_WRONLY | O_NONBLOCK | O_CREAT | O_TRUNC, |
1881 |
|
S_IRUSR | S_IWUSR | S_IRGRP); |
1882 |
if (mFile <= 0) { |
if (mFile <= 0) { |
1883 |
printf("Can't open output file %s\n", path); |
printf("Can't open output file %s\n", path); |
1884 |
return false; |
return false; |