From 85b030a13a3c802c2d8e9d064e7c8665c2a0c54a Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 4 Oct 2025 13:20:39 +0200 Subject: Added more open flags --- FICS/ficsmain.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'FICS/ficsmain.c') diff --git a/FICS/ficsmain.c b/FICS/ficsmain.c index 664874f..7c477cb 100644 --- a/FICS/ficsmain.c +++ b/FICS/ficsmain.c @@ -59,9 +59,11 @@ #include #endif -PUBLIC const int g_open_flags[2] = { - (O_WRONLY|O_CREAT|O_APPEND), - (O_WRONLY|O_CREAT|O_TRUNC), +PUBLIC const int g_open_flags[4] = { + [OPFL_APPEND] = (O_WRONLY|O_CREAT|O_APPEND), + [OPFL_WRITE] = (O_WRONLY|O_CREAT|O_TRUNC), + [OPFL_APLUS] = (O_RDWR|O_CREAT|O_APPEND), + [OPFL_WPLUS] = (O_RDWR|O_CREAT|O_TRUNC), }; PUBLIC const mode_t g_open_modes = (S_IWUSR | S_IRUSR); -- cgit v1.2.3