GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-20906a4402
io.h
Go to the documentation of this file.
1
/*!
2
* \file msvc/io.h
3
*
4
* \brief Header file for msvc/open.c and msvc/creat.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_IO_H
16
#define GRASS_MSVC_IO_H
17
18
#include <../ucrt/io.h>
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
24
/* these wrapper functions convert UN*X permission mode for MSVC */
25
int
__open
(
const
char
*,
int
, ...);
26
int
__creat
(
const
char
*,
int
);
27
28
#ifdef __cplusplus
29
}
30
#endif
31
32
#define open __open
33
#define creat __creat
34
35
#define O_TMPFILE O_TEMPORARY
36
37
#endif
__creat
int __creat(const char *, int)
Definition:
creat.c:18
__open
int __open(const char *, int,...)
Definition:
msvc/open.c:21
msvc
io.h
Generated on Sun Feb 23 2025 07:22:47 for GRASS GIS 8 Programmer's Manual by
1.9.1