14887Schin /***********************************************************************
24887Schin * *
34887Schin * This software is part of the ast package *
4*12068SRoger.Faulkner@Oracle.COM * Copyright (c) 1985-2010 AT&T Intellectual Property *
54887Schin * and is licensed under the *
64887Schin * Common Public License, Version 1.0 *
78462SApril.Chin@Sun.COM * by AT&T Intellectual Property *
84887Schin * *
94887Schin * A copy of the License is available at *
104887Schin * http://www.opensource.org/licenses/cpl1.0.txt *
114887Schin * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
124887Schin * *
134887Schin * Information and Software Systems Research *
144887Schin * AT&T Research *
154887Schin * Florham Park NJ *
164887Schin * *
174887Schin * Glenn Fowler <gsf@research.att.com> *
184887Schin * David Korn <dgk@research.att.com> *
194887Schin * Phong Vo <kpv@research.att.com> *
204887Schin * *
214887Schin ***********************************************************************/
224887Schin /*
234887Schin * porting hacks here
244887Schin */
254887Schin
264887Schin #include <ast.h>
274887Schin #include <ls.h>
284887Schin
294887Schin #include "FEATURE/hack"
304887Schin
_STUB_gross()314887Schin void _STUB_gross(){}
324887Schin
334887Schin #if _lcl_xstat
344887Schin
fstat(int fd,struct stat * st)354887Schin extern int fstat(int fd, struct stat* st)
364887Schin {
374887Schin #if _lib___fxstat
384887Schin return __fxstat(_STAT_VER, fd, st);
394887Schin #else
404887Schin return _fxstat(_STAT_VER, fd, st);
414887Schin #endif
424887Schin }
434887Schin
lstat(const char * path,struct stat * st)444887Schin extern int lstat(const char* path, struct stat* st)
454887Schin {
464887Schin #if _lib___lxstat
474887Schin return __lxstat(_STAT_VER, path, st);
484887Schin #else
494887Schin return _lxstat(_STAT_VER, path, st);
504887Schin #endif
514887Schin }
524887Schin
stat(const char * path,struct stat * st)534887Schin extern int stat(const char* path, struct stat* st)
544887Schin {
554887Schin #if _lib___xstat
564887Schin return __xstat(_STAT_VER, path, st);
574887Schin #else
584887Schin return _xstat(_STAT_VER, path, st);
594887Schin #endif
604887Schin }
614887Schin
624887Schin #endif
634887Schin
644887Schin #if _lcl_xstat64
654887Schin
fstat64(int fd,struct stat64 * st)664887Schin extern int fstat64(int fd, struct stat64* st)
674887Schin {
684887Schin #if _lib___fxstat64
694887Schin return __fxstat64(_STAT_VER, fd, st);
704887Schin #else
714887Schin return _fxstat64(_STAT_VER, fd, st);
724887Schin #endif
734887Schin }
744887Schin
lstat64(const char * path,struct stat64 * st)754887Schin extern int lstat64(const char* path, struct stat64* st)
764887Schin {
774887Schin #if _lib___lxstat64
784887Schin return __lxstat64(_STAT_VER, path, st);
794887Schin #else
804887Schin return _lxstat64(_STAT_VER, path, st);
814887Schin #endif
824887Schin }
834887Schin
stat64(const char * path,struct stat64 * st)844887Schin extern int stat64(const char* path, struct stat64* st)
854887Schin {
864887Schin #if _lib___xstat64
874887Schin return __xstat64(_STAT_VER, path, st);
884887Schin #else
894887Schin return _xstat64(_STAT_VER, path, st);
904887Schin #endif
914887Schin }
924887Schin
934887Schin #endif
944887Schin
954887Schin #if __sgi && _hdr_locale_attr
964887Schin
974887Schin #include "gross_sgi.h"
984887Schin
994887Schin #endif
100