1 /***********************************************************************
3 * This software is part of the ast package *
4 * Copyright (c) 1985-2010 AT&T Intellectual Property *
5 * and is licensed under the *
6 * Common Public License, Version 1.0 *
7 * by AT&T Intellectual Property *
9 * A copy of the License is available at *
10 * http://www.opensource.org/licenses/cpl1.0.txt *
11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
13 * Information and Software Systems Research *
17 * Glenn Fowler <gsf@research.att.com> *
18 * David Korn <dgk@research.att.com> *
19 * Phong Vo <kpv@research.att.com> *
21 ***********************************************************************/
29 #include "FEATURE/hack"
35 extern int fstat(int fd
, struct stat
* st
)
38 return __fxstat(_STAT_VER
, fd
, st
);
40 return _fxstat(_STAT_VER
, fd
, st
);
44 extern int lstat(const char* path
, struct stat
* st
)
47 return __lxstat(_STAT_VER
, path
, st
);
49 return _lxstat(_STAT_VER
, path
, st
);
53 extern int stat(const char* path
, struct stat
* st
)
56 return __xstat(_STAT_VER
, path
, st
);
58 return _xstat(_STAT_VER
, path
, st
);
66 extern int fstat64(int fd
, struct stat64
* st
)
69 return __fxstat64(_STAT_VER
, fd
, st
);
71 return _fxstat64(_STAT_VER
, fd
, st
);
75 extern int lstat64(const char* path
, struct stat64
* st
)
78 return __lxstat64(_STAT_VER
, path
, st
);
80 return _lxstat64(_STAT_VER
, path
, st
);
84 extern int stat64(const char* path
, struct stat64
* st
)
87 return __xstat64(_STAT_VER
, path
, st
);
89 return _xstat64(_STAT_VER
, path
, st
);
95 #if __sgi && _hdr_locale_attr
97 #include "gross_sgi.h"