about summary refs log tree commit diff
path: root/src/stat/fstat.c
blob: d2a828f32c64bf4686e995672243f1c8ce77766d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#define _BSD_SOURCE
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include "syscall.h"

int fstat(int fd, struct stat *st)
{
	return fstatat(fd, "", st, AT_EMPTY_PATH);
}

weak_alias(fstat, fstat64);