File: statx.c

package info (click to toggle)
fio 3.25-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,812 kB
  • sloc: ansic: 69,429; python: 4,155; sh: 4,058; makefile: 749; yacc: 204; lex: 184
file content (23 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef CONFIG_HAVE_STATX
#include "statx.h"

#ifdef CONFIG_HAVE_STATX_SYSCALL
#include <unistd.h>
#include <sys/syscall.h>

int statx(int dfd, const char *pathname, int flags, unsigned int mask,
	  struct statx *buffer)
{
	return syscall(__NR_statx, dfd, pathname, flags, mask, buffer);
}
#else
#include <errno.h>

int statx(int dfd, const char *pathname, int flags, unsigned int mask,
	  struct statx *buffer)
{
	errno = EINVAL;
	return -1;
}
#endif
#endif