#include <syscall.h>
#include <errno.h>
#include <sys/stat.h>

#ifdef __SVR4_I386_ABI_L1__
#define prev_stat	__prev_stat
#else
static inline
_syscall2(int,prev_stat,const char *,path, struct stat *,statbuf)
#endif

int
_xstat(int version, const char * path, struct stat * statbuf)
{
  switch(version)
  {
  case 1:
    return prev_stat (path, statbuf);
  default:
    errno = EINVAL;
    return -1;
  }
}
