xref: /titanic_50/usr/src/lib/libast/common/comp/gross.c (revision d6114e2d100d9ec3b45f9968d45ac2e3a0827af0)
1 /***********************************************************************
2 *                                                                      *
3 *               This software is part of the ast package               *
4 *          Copyright (c) 1985-2009 AT&T Intellectual Property          *
5 *                      and is licensed under the                       *
6 *                  Common Public License, Version 1.0                  *
7 *                    by AT&T Intellectual Property                     *
8 *                                                                      *
9 *                A copy of the License is available at                 *
10 *            http://www.opensource.org/licenses/cpl1.0.txt             *
11 *         (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9)         *
12 *                                                                      *
13 *              Information and Software Systems Research               *
14 *                            AT&T Research                             *
15 *                           Florham Park NJ                            *
16 *                                                                      *
17 *                 Glenn Fowler <gsf@research.att.com>                  *
18 *                  David Korn <dgk@research.att.com>                   *
19 *                   Phong Vo <kpv@research.att.com>                    *
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