ascii-chat
0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
file.h
Go to the documentation of this file.
1
#pragma once
2
23
#include <sys/types.h>
24
25
// ============================================================================
26
// File Operations
27
// ============================================================================
28
29
// Safe file operations (declared in internal.h)
30
31
// File mode helpers
32
#ifdef _WIN32
33
#include <fcntl.h>
34
#define PLATFORM_O_RDONLY _O_RDONLY
35
#define PLATFORM_O_WRONLY _O_WRONLY
36
#define PLATFORM_O_RDWR _O_RDWR
37
#define PLATFORM_O_CREAT _O_CREAT
38
#define PLATFORM_O_EXCL _O_EXCL
39
#define PLATFORM_O_TRUNC _O_TRUNC
40
#define PLATFORM_O_APPEND _O_APPEND
41
#define PLATFORM_O_BINARY _O_BINARY
42
#else
43
#include <fcntl.h>
44
#define PLATFORM_O_RDONLY O_RDONLY
45
#define PLATFORM_O_WRONLY O_WRONLY
46
#define PLATFORM_O_RDWR O_RDWR
47
#define PLATFORM_O_CREAT O_CREAT
48
#define PLATFORM_O_EXCL O_EXCL
49
#define PLATFORM_O_TRUNC O_TRUNC
50
#define PLATFORM_O_APPEND O_APPEND
51
#define PLATFORM_O_BINARY 0
// Not needed on POSIX
52
#endif
53
lib
platform
file.h
Generated by
1.9.8