summaryrefslogtreecommitdiff
path: root/PACE/pace/sys/stat.h
blob: cac798c1a2f54f0fbc2f0ed5b44aa8c1576b2024 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* $Id$

 * ============================================================================
 *
 * = LIBRARY
 *    pace
 *
 * = FILENAME
 *    stat.h
 *
 * = AUTHOR
 *    Luther Baker
 *
 * ============================================================================ */


#ifndef PACE_SYS_STAT_H
#define PACE_SYS_STAT_H


#include "pace/defines.h"
#include "pace/sys/types.h"
#include <sys/stat.h>


# if defined (PACE_HAS_CPLUSPLUS)
extern "C" {
# endif /* PACE_HAS_CPLUSPLUS */

  PACE_INLINE int pace_chmod (const char * path, mode_t mode);

  PACE_INLINE int pace_fchmod (int fildes, mode_t mode);

  PACE_INLINE int pace_fstat (int fildes, struct stat * buf);

  PACE_INLINE int pace_mkdir (const char * path, mode_t mode);

  PACE_INLINE int pace_mkfifo (const char * path, mode_t mode);

  PACE_INLINE int pace_stat (const char * path, struct stat * buf);

  PACE_INLINE mode_t pace_umask (mode_t cmask);

# if defined (PACE_HAS_CPLUSPLUS)
}
# endif /* PACE_HAS_CPLUSPLUS */

# if defined (PACE_HAS_INLINE)
# include "stat.inl"
# endif /* PACE_HAS_INLINE */


#endif /* PACE_SYS_STAT_H */