ack/mach/m68020/libsys/_Xstat.c

31 lines
424 B
C
Raw Permalink Normal View History

1990-01-22 08:51:54 +00:00
#include <sys/types.h>
#include <sys/stat.h>
static Xcvt();
int
_fstat(fd, buf)
int fd;
struct stat *buf;
{
char Xbuf[100];
int retval;
retval = __fstat(fd, Xbuf);
Xcvt(Xbuf, (char *)buf);
return retval;
}
static
Xcvt(buf, statbuf)
char *buf, *statbuf;
{
register char *s, *t;
register int i;
s = buf; t = statbuf;
for (i = 14; i; i--) *t++ = *s++;
*t++ = 0; *t++ = 0;
for (i = 16; i; i--) *t++ = *s++;
}