FreeBASIC  0.91.0
fb_unix.h
Go to the documentation of this file.
1 #include <unistd.h>
2 #include <termios.h>
3 
4 #define FBCALL
5 
6 /* newline for console/file I/O */
7 #define FB_NEWLINE "\n"
8 #define FB_NEWLINE_WSTR _LC("\n")
9 
10 /* newline for printer I/O */
11 #define FB_BINARY_NEWLINE "\r\n"
12 #define FB_BINARY_NEWLINE_WSTR _LC("\r\n")
13 
14 #define FB_LL_FMTMOD "ll"
15 
16 #define FB_CONSOLE_MAXPAGES 1
17 
18 /* Relying on -D_FILE_OFFSET_BITS=64 to transparently remap to off64_t */
19 #if !defined _FILE_OFFSET_BITS || _FILE_OFFSET_BITS != 64
20 #error Expected _FILE_OFFSET_BITS=64
21 #endif
22 typedef off_t fb_off_t;
23 
24 FBCALL void fb_BgLock( void );
25 FBCALL void fb_BgUnlock( void );
26 #define BG_LOCK() fb_BgLock()
27 #define BG_UNLOCK() fb_BgUnlock()