mailing list of musl libc
 help / color / mirror / code / Atom feed
5e7fe1f0a3402ebaa221d64fece744fc8746b5c6 blob 475 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
#include <sys/select.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
	long data[2] = { 0, _NSIG/8 };
	struct timespec ts;
	if (tv) {
		ts.tv_sec = tv->tv_sec;
		ts.tv_nsec = tv->tv_usec * 1000;
	}
	return syscall_cp(SYS_pselect6, n, rfds, wfds, efds, tv ? &ts : 0, data);
#endif
}
debug log:

solving 5e7fe1f ...
found 5e7fe1f in https://inbox.vuxu.org/musl/20140525054237.GA18085@brightrain.aerifal.cx/
found f93597b in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 f93597b55cf78012a61b5d047c153e82bb1265e2	src/select/select.c

applying [1/1] https://inbox.vuxu.org/musl/20140525054237.GA18085@brightrain.aerifal.cx/
diff --git a/src/select/select.c b/src/select/select.c
index f93597b..5e7fe1f 100644

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

index at:
100644 5e7fe1f0a3402ebaa221d64fece744fc8746b5c6	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).