DCL
3.7.4
Loading...
Searching...
No Matches
_fcntl.cpp
Go to the documentation of this file.
1
2
#include <
dcl/Config.h
>
3
4
#ifndef __WINNT__
5
6
#include <errno.h>
7
#if defined(_AIX) || defined(__sun__)
8
#include <alloca.h>
9
#endif
10
#include <stdlib.h>
// alloca
11
#include <stdarg.h>
// va_list
12
#include <sys/types.h>
13
#include <
dcl/_fcntl.h
>
14
#include <
dcl/Object.h
>
// __T(str)
15
#include <
dcl/String.h
>
16
17
#include "
__strumbs.h
"
18
19
#if __DCL_HAVE_THIS_FILE__
20
#undef __THIS_FILE__
21
static
const
char_t
__UNUSED__
__THIS_FILE__
[] =
__T
(
"dcl/_fcntl.cpp"
);
22
#endif
23
24
__DCL_BEGIN_NAMESPACE
25
26
#ifdef __APPLE__
27
#pragma clang diagnostic push
28
#pragma clang diagnostic ignored "-Wvarargs"
29
#endif
30
31
int
__open
(
const
String& _path,
int
_oflags, ...)
32
{
33
STRTOMBS_ER
(_path, path);
34
va_list arglist;
35
va_start(arglist, _oflags);
36
mode_t mode = va_arg(arglist, mode_t);
37
va_end(arglist);
38
return
open(path, _oflags, mode);
39
}
40
41
#ifdef __APPLE__
42
#pragma clang diagnostic pop
43
#endif
44
45
int
__creat
(
const
String& _path, mode_t _mode)
46
{
47
STRTOMBS_ER
(_path, path);
48
return
creat(path, _mode);
49
}
50
51
__DCL_END_NAMESPACE
52
53
#endif
// __WINNT__
__strumbs.h
STRTOMBS_ER
#define STRTOMBS_ER(str, mbs)
Definition
__strumbs.h:33
__open
__DCL_BEGIN_NAMESPACE int __open(const String &_path, int _oflags,...)
Definition
_fcntl.cpp:31
__creat
int __creat(const String &_path, mode_t _mode)
Definition
_fcntl.cpp:45
_fcntl.h
__THIS_FILE__
#define __THIS_FILE__
Definition
_trace.h:14
Config.h
__UNUSED__
#define __UNUSED__
Definition
Config.h:341
char_t
wchar_t char_t
Definition
Config.h:247
Object.h
__T
#define __T(str)
Definition
Object.h:60
String.h
src
DCLCore
_fcntl.cpp
Generated by
1.14.0