FreeBASIC  0.91.0
file_hlock.c
Go to the documentation of this file.
1 /* low-level lock and unlock functions */
2 
3 #include "../fb.h"
4 #include <io.h>
5 
6 int fb_hFileLock( FILE *f, fb_off_t inipos, fb_off_t size )
7 {
8  return fb_ErrorSetNum( _dos_lock( fileno(f), inipos, size ) == 0 ?
10 }
11 
12 int fb_hFileUnlock( FILE *f, fb_off_t inipos, fb_off_t size )
13 {
14  return fb_ErrorSetNum( _dos_unlock( fileno(f), inipos, size) == 0 ?
16 }