DCL
4.0
Loading...
Searching...
No Matches
_fcntl.cpp
Go to the documentation of this file.
1
2
#include <
dcl/Config.h
>
3
4
#if !__DCL_WINDOWS
5
6
#include <errno.h>
7
#include <stdlib.h>
// alloca
8
#include <stdarg.h>
// va_list
9
#include <sys/types.h>
10
#include <
dcl/_fcntl.h
>
11
#include <
dcl/Object.h
>
// __T(str)
12
#include <
dcl/String.h
>
13
14
#include "
__strumbs.h
"
15
16
#if __DCL_DEBUG
17
#undef __THIS_FILE__
18
const
char_t
__THIS_FILE__
[] =
__T
(
"dcl/_fcntl.cpp"
);
19
#endif
20
21
__DCL_BEGIN_NAMESPACE
22
23
int
__open
(
const
String& _path,
int
_oflags, ...)
24
{
25
STRTOMBS_ER
(_path, path);
26
va_list arglist;
27
va_start(arglist, _oflags);
28
mode_t mode = va_arg(arglist, mode_t);
29
va_end(arglist);
30
return
open(path, _oflags, mode);
31
}
32
33
int
__creat
(
const
String& _path, mode_t _mode)
34
{
35
STRTOMBS_ER
(_path, path);
36
return
creat(path, _mode);
37
}
38
39
__DCL_END_NAMESPACE
40
41
#endif
// !__DCL_WINDOWS
__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:23
__creat
int __creat(const String &_path, mode_t _mode)
Definition
_fcntl.cpp:33
_fcntl.h
__THIS_FILE__
#define __THIS_FILE__
Definition
_trace.h:14
Config.h
char_t
wchar_t char_t
Definition
Config.h:275
Object.h
__T
#define __T(str)
Definition
Object.h:44
String.h
src
DCLCore
_fcntl.cpp
Generated by
1.14.0