DCL 4.0
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 33 of file _stat.cpp.

34{
35 STRTOMBS_ER(_path, path);
36 return chmod(path, _mode);
37}
#define STRTOMBS_ER(str, mbs)
Definition __strumbs.h:33

◆ __lchmod()

int __lchmod ( const String & _path,
mode_t _mode )

Definition at line 39 of file _stat.cpp.

40{
41 STRTOMBS_ER(_path, path);
42 return lchmod(path, _mode);
43}

◆ __lstat()

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

Definition at line 27 of file _stat.cpp.

28{
29 STRTOMBS_ER(_path, path);
30 return lstat(path, _buf);
31}

◆ __mkdir()

int __mkdir ( const String & _path,
mode_t _mode )

Definition at line 45 of file _stat.cpp.

46{
47 STRTOMBS_ER(_path, path);
48 return mkdir(path, _mode);
49}

◆ __mkfifo()

int __mkfifo ( const String & _path,
mode_t _mode )

Definition at line 51 of file _stat.cpp.

52{
53 STRTOMBS_ER(_path, path);
54 return mkfifo(path, _mode);
55}

◆ __stat()

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

Definition at line 21 of file _stat.cpp.

22{
23 STRTOMBS_ER(_path, path);
24 return stat(path, _buf);
25}