aboutsummaryrefslogtreecommitdiff
path: root/src/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp10
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
137void Bu::File::truncate( long nSize ) 138void Bu::File::truncate( long nSize )
138{ 139{
139 ftruncate( fileno( fh ), nSize ); 140 ftruncate( fileno( fh ), nSize );
140} 141}
141 142
142void Bu::File::flush() 143void Bu::File::chmod( mode_t t )
143{ 144{
144 fflush( fh ); 145 fchmod( fileno( fh ), t );
145} 146}
147#endif
146 148
147void Bu::File::chmod( mode_t t ) 149void Bu::File::flush()
148{ 150{
149 fchmod( fileno( fh ), t ); 151 fflush( fh );
150} 152}
151 153
152bool Bu::File::isOpen() 154bool Bu::File::isOpen()