getdents.c\linux\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/linux/getdents.c
blob: 97f76e1479419011ada9fb02c427589d51b73ffb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#define _BSD_SOURCE
#include <dirent.h>
#include <limits.h>
#include "syscall.h"
int getdents(int fd, struct dirent *buf, size_t len)
{
	if (len>INT_MAX) len = INT_MAX;
	return syscall(SYS_getdents, fd, buf, len);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年11月06日 08:10:11 +0000

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