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__
18const char_t __THIS_FILE__[] = __T("dcl/_fcntl.cpp");
19#endif
20
21__DCL_BEGIN_NAMESPACE
22
23int __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
33int __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
#define STRTOMBS_ER(str, mbs)
Definition __strumbs.h:33
__DCL_BEGIN_NAMESPACE int __open(const String &_path, int _oflags,...)
Definition _fcntl.cpp:23
int __creat(const String &_path, mode_t _mode)
Definition _fcntl.cpp:33
#define __THIS_FILE__
Definition _trace.h:14
wchar_t char_t
Definition Config.h:275
#define __T(str)
Definition Object.h:44