DCL 4.0
Loading...
Searching...
No Matches
_stat.cpp
Go to the documentation of this file.
1
2#include <dcl/Config.h>
3
4#if !__DCL_WINDOWS
5
6#include <errno.h> // errno
7#include <stdlib.h> // alloca
8#include <dcl/_stat.h>
9#include <dcl/Object.h> // __T(str)
10#include <dcl/String.h>
11
12#include "__strumbs.h"
13
14#if __DCL_DEBUG
15#undef __THIS_FILE__
16const char_t __THIS_FILE__[] = __T("dcl/_stat.cpp");
17#endif
18
19__DCL_BEGIN_NAMESPACE
20
21int __stat(const String& _path, struct stat* _buf)
22{
23 STRTOMBS_ER(_path, path);
24 return stat(path, _buf);
25}
26
27int __lstat(const String& _path, struct stat* _buf)
28{
29 STRTOMBS_ER(_path, path);
30 return lstat(path, _buf);
31}
32
33int __chmod(const String& _path, mode_t _mode)
34{
35 STRTOMBS_ER(_path, path);
36 return chmod(path, _mode);
37}
38
39int __lchmod(const String& _path, mode_t _mode)
40{
41 STRTOMBS_ER(_path, path);
42 return lchmod(path, _mode);
43}
44
45int __mkdir(const String& _path, mode_t _mode)
46{
47 STRTOMBS_ER(_path, path);
48 return mkdir(path, _mode);
49}
50
51int __mkfifo(const String& _path, mode_t _mode)
52{
53 STRTOMBS_ER(_path, path);
54 return mkfifo(path, _mode);
55}
56
57__DCL_END_NAMESPACE
58
59#endif // !__DCL_WINDOWS
#define STRTOMBS_ER(str, mbs)
Definition __strumbs.h:33
int __mkdir(const String &_path, mode_t _mode)
Definition _stat.cpp:45
int __chmod(const String &_path, mode_t _mode)
Definition _stat.cpp:33
int __mkfifo(const String &_path, mode_t _mode)
Definition _stat.cpp:51
__DCL_BEGIN_NAMESPACE int __stat(const String &_path, struct stat *_buf)
Definition _stat.cpp:21
int __lstat(const String &_path, struct stat *_buf)
Definition _stat.cpp:27
int __lchmod(const String &_path, mode_t _mode)
Definition _stat.cpp:39
#define __THIS_FILE__
Definition _trace.h:14
wchar_t char_t
Definition Config.h:275
#define __T(str)
Definition Object.h:44