diff options
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/file.cpp b/src/file.cpp index 368b788..1a8bd08 100644 --- a/src/file.cpp +++ b/src/file.cpp | |||
| @@ -134,19 +134,21 @@ void Bu::File::setBlocking( bool bBlocking ) | |||
| 134 | return; | 134 | return; |
| 135 | } | 135 | } |
| 136 | 136 | ||
| 137 | #ifndef WIN32 | ||
| 137 | void Bu::File::truncate( long nSize ) | 138 | void Bu::File::truncate( long nSize ) |
| 138 | { | 139 | { |
| 139 | ftruncate( fileno( fh ), nSize ); | 140 | ftruncate( fileno( fh ), nSize ); |
| 140 | } | 141 | } |
| 141 | 142 | ||
| 142 | void Bu::File::flush() | 143 | void Bu::File::chmod( mode_t t ) |
| 143 | { | 144 | { |
| 144 | fflush( fh ); | 145 | fchmod( fileno( fh ), t ); |
| 145 | } | 146 | } |
| 147 | #endif | ||
| 146 | 148 | ||
| 147 | void Bu::File::chmod( mode_t t ) | 149 | void Bu::File::flush() |
| 148 | { | 150 | { |
| 149 | fchmod( fileno( fh ), t ); | 151 | fflush( fh ); |
| 150 | } | 152 | } |
| 151 | 153 | ||
| 152 | bool Bu::File::isOpen() | 154 | bool Bu::File::isOpen() |
