summaryrefslogtreecommitdiffstats
path: root/config/statx-syscall.c
blob: 87ec8694b576513f79d663292e52571d3dec94ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD

#include <fcntl.h>
#include <linux/stat.h>
#include <sys/syscall.h>
#include <unistd.h>

int main(void) {
	struct statx sb;
	syscall(SYS_statx, AT_FDCWD, ".", 0, STATX_BASIC_STATS, &sb);
	return 0;
}