GRASS 8 Programmer's Manual 8.6.0dev(2026)-56a9afeb9f
Loading...
Searching...
No Matches
fcntl.h
Go to the documentation of this file.
1/*!
2 * \file msvc/fcntl.h
3 *
4 * \brief Header file for msvc/fcntl.c
5 *
6 * (C) 2025 by the GRASS Development Team
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 *
10 * \author Huidae Cho
11 *
12 * \date 2025
13 */
14
15#ifndef GRASS_MSVC_FCNTL_H
16#define GRASS_MSVC_FCNTL_H
17
18#include <../ucrt/fcntl.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/* these wrapper functions convert UN*X permission mode for MSVC */
25int __open(const char *, int, ...);
26int __creat(const char *, int);
27
28#ifdef __cplusplus
29}
30#endif
31
32#include <io.h>
33#define open __open
34#define creat __creat
35
36#define O_TMPFILE O_TEMPORARY
37#define O_ACCMODE (_O_RDONLY | _O_WRONLY | _O_RDWR)
38
39#endif
int __creat(const char *, int)
Definition fcntl.c:40
int __open(const char *, int,...)
Definition fcntl.c:22