aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc/tests/base/sys/stat.h
blob: 9ec4079f6d0733acae37024396022e967d65a102 (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
64
65
66
67
68
69
70
71
72
73
/*  DO NOT EDIT THIS FILE.

    It has been auto-edited by fixincludes from:

	"fixinc/tests/inc/sys/stat.h"

    This had to be done to correct non-standard usages in the
    original, manufacturer supplied header file.  */



#if defined( ALPHA___EXTERN_PREFIX_CHECK )
#   if defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX)
#endif  /* ALPHA___EXTERN_PREFIX_CHECK */


#if defined( M88K_BAD_S_IF_CHECK )
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) /* is regular? */
#endif  /* M88K_BAD_S_IF_CHECK */


#if defined( RS6000_FCHMOD_CHECK )
extern int fchmod(int, mode_t);
#endif  /* RS6000_FCHMOD_CHECK */


#if defined( SCO_STATIC_FUNC_CHECK )
#ifdef __STDC__
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
static int	stat(const char *__f, struct stat *__p) {
	return __stat32(__f, __p);
}
#if __cplusplus
 }
#endif /* __cplusplus */

#  else /* !__STDC__ */
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
static int	stat(__f, __p)
	char *__f;
	struct stat *__p;
{
	return __stat32(__f, __p);
}
#if __cplusplus
 }
#endif /* __cplusplus */
#endif
#endif  /* SCO_STATIC_FUNC_CHECK */


#if defined( ULTRIX_STAT_CHECK )
@(#)stat.h      6.1     (ULTRIX)
#define S_IFPORT S_IFIFO

/* macro to test for symbolic link */
#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)

	fstat(),
	lstat(),

#endif  /* ULTRIX_STAT_CHECK */


#if defined( VXWORKS_NEEDS_VXWORKS_CHECK )
#include </dev/null> /* ULONG */
# define	__INCstath <sys/stat.h>
#include <types/vxTypesOld.h>
#endif  /* VXWORKS_NEEDS_VXWORKS_CHECK */