mailing list of musl libc
 help / color / mirror / code / Atom feed
45d4cb7a3d0a59039c2619ef11fb795272a0e2f1 blob 650 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
#include <sys/select.h>
#include <signal.h>
#include <stdint.h>
#include <errno.h>
#include "syscall.h"
#include "libc.h"

int select(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, struct timeval *restrict tv)
{
#ifdef SYS_select
	return syscall_cp(SYS_select, n, rfds, wfds, efds, tv);
#else
	syscall_arg_t data[2] = { 0, _NSIG/8 };
	struct timespec ts;
	int result;
	if (tv) {
		ts->tv_sec = tv->tv_sec;
		ts->tv_nsec = tv->usec * 1000;
	}
	result = syscall_cp(SYS_pselect6, n, rfds, wfds, efds, tv ? &ts : 0, data);
	if (tv) {
		tv->tv_sec = ts->tv_sec;
		tv->tv_usec = ts->tv_nsec / 1000;
	}
	return result;
#endif
}
debug log:

solving 45d4cb7a3d0a ...
found 45d4cb7a3d0a in https://inbox.vuxu.org/musl/20180525205240.20319-1-peter@meraki.com/
found 7b5f6dcf7a53 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 7b5f6dcf7a53aaf435db3221d4cd0d7db8f2abd7	src/select/select.c

applying [1/1] https://inbox.vuxu.org/musl/20180525205240.20319-1-peter@meraki.com/
diff --git a/src/select/select.c b/src/select/select.c
index 7b5f6dcf7a53..45d4cb7a3d0a 100644

Checking patch src/select/select.c...
Applied patch src/select/select.c cleanly.

index at:
100644 45d4cb7a3d0a59039c2619ef11fb795272a0e2f1	src/select/select.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).