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