mailing list of musl libc
 help / color / mirror / code / Atom feed
923a807692b0ea5d55c4a5a802a0e9a4182a4982 blob 352 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
#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);
}

ssize_t getdents64(int fd, void *buf, size_t len)
{
	if (len>INT_MAX) len = INT_MAX;
	return syscall(SYS_getdents64, fd, buf, len);
}
debug log:

solving 923a8076 ...
found 923a8076 in https://inbox.vuxu.org/musl/20220524080704.70894-1-jiaqing.zhao@linux.intel.com/
found 796c1e5c in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 796c1e5c92499a1b0b914e3e6d5d865272026e7c	src/linux/getdents.c

applying [1/1] https://inbox.vuxu.org/musl/20220524080704.70894-1-jiaqing.zhao@linux.intel.com/
diff --git a/src/linux/getdents.c b/src/linux/getdents.c
index 796c1e5c..923a8076 100644

Checking patch src/linux/getdents.c...
Applied patch src/linux/getdents.c cleanly.

index at:
100644 923a807692b0ea5d55c4a5a802a0e9a4182a4982	src/linux/getdents.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).