GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-20906a4402
creat.c
Go to the documentation of this file.
1
/*!
2
* \file msvc/creat.c
3
*
4
* \brief A wrapper function for MSVC _creat() that converts permission mode.
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
#include <fcntl.h>
16
#include <sys/stat.h>
17
18
int
__creat
(
const
char
*pathname,
int
mode)
19
{
20
return
_creat(pathname,
21
(mode & 0400 ? _S_IREAD : 0) | (mode & 0200 ? _S_IWRITE : 0));
22
}
__creat
int __creat(const char *pathname, int mode)
Definition:
creat.c:18
msvc
creat.c
Generated on Sun Feb 23 2025 07:22:44 for GRASS GIS 8 Programmer's Manual by
1.9.1