DCL 3.7.4
Loading...
Searching...
No Matches
_stat.cpp File Reference
#include <dcl/Config.h>
#include <errno.h>
#include <stdlib.h>
#include <dcl/_stat.h>
#include <dcl/Object.h>
#include <dcl/String.h>
#include "__strumbs.h"

Go to the source code of this file.

Functions

__DCL_BEGIN_NAMESPACE int __stat (const String &_path, struct stat *_buf)
int __lstat (const String &_path, struct stat *_buf)
int __chmod (const String &_path, mode_t _mode)
int __lchmod (const String &_path, mode_t _mode)
int __mkdir (const String &_path, mode_t _mode)
int __mkfifo (const String &_path, mode_t _mode)

Function Documentation

◆ __chmod()

int __chmod ( const String & _path,
mode_t _mode )

Definition at line 36 of file _stat.cpp.

37{
38 STRTOMBS_ER(_path, path);
39 return chmod(path, _mode);
40}
#define STRTOMBS_ER(str, mbs)
Definition __strumbs.h:33

◆ __lchmod()

int __lchmod ( const String & _path,
mode_t _mode )

Definition at line 42 of file _stat.cpp.

43{
44 STRTOMBS_ER(_path, path);
45 return lchmod(path, _mode);
46}

◆ __lstat()

int __lstat ( const String & _path,
struct stat * _buf )

Definition at line 30 of file _stat.cpp.

31{
32 STRTOMBS_ER(_path, path);
33 return lstat(path, _buf);
34}

◆ __mkdir()

int __mkdir ( const String & _path,
mode_t _mode )

Definition at line 48 of file _stat.cpp.

49{
50 STRTOMBS_ER(_path, path);
51 return mkdir(path, _mode);
52}

◆ __mkfifo()

int __mkfifo ( const String & _path,
mode_t _mode )

Definition at line 54 of file _stat.cpp.

55{
56 STRTOMBS_ER(_path, path);
57 return mkfifo(path, _mode);
58}

◆ __stat()

__DCL_BEGIN_NAMESPACE int __stat ( const String & _path,
struct stat * _buf )
Returns
== NULL or -1, see errno

Definition at line 24 of file _stat.cpp.

25{
26 STRTOMBS_ER(_path, path);
27 return stat(path, _buf);
28}