summaryrefslogtreecommitdiff
path: root/PACE/pace/sys/stat.h
blob: a7cad82550336f8d54b47c34782761144a60b7a9 (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
54
55
56
57
58
59
60
61
62
63
/* $Id$

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

#ifndef PACE_SYS_STAT_H
#define PACE_SYS_STAT_H

#include "pace/config/defines.h"
#include "pace/sys/types.h"


#if (PACE_HAS_POSIX)
# include "pace/posix/stat.h"
#elif (PACE_VXWORKS)
# include "pace/vxworks/stat.h"
#elif (PACE_WIN32)
# include "pace/win32/stat.h"
#endif

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

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

  PACE_INLINE int pace_fchmod (int fildes, pace_mode_t mode);

  PACE_INLINE int pace_fstat (int fildes, pace_stat_s * buf);

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

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

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

  PACE_INLINE pace_mode_t pace_umask (pace_mode_t cmask);

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

#if defined (PACE_HAS_INLINE)
#  if (PACE_HAS_POSIX)
#    include "pace/posix/stat.inl"
#  elif (PACE_VXWORKS)
#    include "pace/vxworks/stat.inl"
#  elif (PACE_WIN32)
#    include "pace/win32/stat.inl"
#  endif
#endif /* PACE_HAS_INLINE */

#endif /* PACE_SYS_STAT_H */