Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
att
GitHub Repository: att/ast
Path: blob/master/src/lib/libast/comp/gross.c
1810 views
1
/***********************************************************************
2
* *
3
* This software is part of the ast package *
4
* Copyright (c) 1985-2011 AT&T Intellectual Property *
5
* and is licensed under the *
6
* Eclipse Public License, Version 1.0 *
7
* by AT&T Intellectual Property *
8
* *
9
* A copy of the License is available at *
10
* http://www.eclipse.org/org/documents/epl-v10.html *
11
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
12
* *
13
* Information and Software Systems Research *
14
* AT&T Research *
15
* Florham Park NJ *
16
* *
17
* Glenn Fowler <[email protected]> *
18
* David Korn <[email protected]> *
19
* Phong Vo <[email protected]> *
20
* *
21
***********************************************************************/
22
/*
23
* porting hacks here
24
*/
25
26
#include <ast.h>
27
#include <ls.h>
28
29
#include "FEATURE/hack"
30
31
void _STUB_gross(){}
32
33
#if _lcl_xstat
34
35
extern int fstat(int fd, struct stat* st)
36
{
37
#if _lib___fxstat
38
return __fxstat(_STAT_VER, fd, st);
39
#else
40
return _fxstat(_STAT_VER, fd, st);
41
#endif
42
}
43
44
extern int lstat(const char* path, struct stat* st)
45
{
46
#if _lib___lxstat
47
return __lxstat(_STAT_VER, path, st);
48
#else
49
return _lxstat(_STAT_VER, path, st);
50
#endif
51
}
52
53
extern int stat(const char* path, struct stat* st)
54
{
55
#if _lib___xstat
56
return __xstat(_STAT_VER, path, st);
57
#else
58
return _xstat(_STAT_VER, path, st);
59
#endif
60
}
61
62
#endif
63
64
#if _lcl_xstat64
65
66
extern int fstat64(int fd, struct stat64* st)
67
{
68
#if _lib___fxstat64
69
return __fxstat64(_STAT_VER, fd, st);
70
#else
71
return _fxstat64(_STAT_VER, fd, st);
72
#endif
73
}
74
75
extern int lstat64(const char* path, struct stat64* st)
76
{
77
#if _lib___lxstat64
78
return __lxstat64(_STAT_VER, path, st);
79
#else
80
return _lxstat64(_STAT_VER, path, st);
81
#endif
82
}
83
84
extern int stat64(const char* path, struct stat64* st)
85
{
86
#if _lib___xstat64
87
return __xstat64(_STAT_VER, path, st);
88
#else
89
return _xstat64(_STAT_VER, path, st);
90
#endif
91
}
92
93
#endif
94
95
#if __sgi && _hdr_locale_attr
96
97
#include "gross_sgi.h"
98
99
#endif
100
101