mailing list of musl libc
 help / color / mirror / code / Atom feed
f756643182dda78cb9a141e0f6f3126fa6f00e6a blob 341 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
#include <poll.h>
#include "syscall.h"
#include "libc.h"

int poll(struct pollfd *fds, nfds_t n, int timeout)
{
#ifdef SYS_poll
	return syscall_cp(SYS_poll, fds, n, timeout);
#else
	return syscall_cp(SYS_ppoll, fds, n, timeout>=0 ?
		&(struct timespec){ .tv_sec = timeout/1000,
		.tv_nsec = timeout%1000*1000000 } : 0, 0, _NSIG/8);
#endif
}
debug log:

solving f756643 ...
found f756643 in https://inbox.vuxu.org/musl/20140526184036.GZ507@brightrain.aerifal.cx/
found f1e73e8 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 f1e73e82f75d076f9c7cd32daed202a4f05908cf	src/select/poll.c

applying [1/1] https://inbox.vuxu.org/musl/20140526184036.GZ507@brightrain.aerifal.cx/
diff --git a/src/select/poll.c b/src/select/poll.c
index f1e73e8..f756643 100644

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

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