GRASS GIS 8 Programmer's Manual  8.5.0dev(2025)-90d0dbac99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fcntl.c File Reference

Wrapper functions for MSVC _open() and _creat() that convert permission mode. More...

#include <stdarg.h>
#include <fcntl.h>
#include <sys/stat.h>
Include dependency graph for fcntl.c:

Go to the source code of this file.

Macros

#define O_TMPFILE   O_TEMPORARY
 

Functions

int __open (const char *pathname, int flags,...)
 
int __creat (const char *pathname, int mode)
 

Detailed Description

Wrapper functions for MSVC _open() and _creat() that convert permission mode.

(C) 2025 by the GRASS Development Team

SPDX-License-Identifier: GPL-2.0-or-later

Author
Huidae Cho
Date
2025

Definition in file fcntl.c.

Macro Definition Documentation

◆ O_TMPFILE

#define O_TMPFILE   O_TEMPORARY

Definition at line 20 of file fcntl.c.

Function Documentation

◆ __creat()

int __creat ( const char *  pathname,
int  mode 
)

Definition at line 40 of file fcntl.c.

◆ __open()

int __open ( const char *  pathname,
int  flags,
  ... 
)

Definition at line 22 of file fcntl.c.

References O_TMPFILE.