access.c\unistd\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/unistd/access.c
blob: d6eed6839822f32bebf333218b6e020d08bbbd28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <unistd.h>
#include <fcntl.h>
#include "syscall.h"
int access(const char *filename, int amode)
{
#ifdef SYS_access
	return syscall(SYS_access, filename, amode);
#else
	return syscall(SYS_faccessat, AT_FDCWD, filename, amode, 0);
#endif
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月16日 06:24:44 +0000

AltStyle によって変換されたページ (->オリジナル) /