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

1
2
3
4
5
6
7
8
 
#define _GNU_SOURCE
#include <sched.h>

static int sched_getcpu(void) {
  int c, s;
  s = syscall(SYS_getcpu, &c, NULL, NULL);
  return (s == 0) ? c : s;
}
debug log:

solving a5f8ea7 ...
found a5f8ea7 in https://inbox.vuxu.org/musl/1456764572-18648-1-git-send-email-nathan@nathan7.eu/

applying [1/1] https://inbox.vuxu.org/musl/1456764572-18648-1-git-send-email-nathan@nathan7.eu/
diff --git a/src/sched/sched_getcpu.c b/src/sched/sched_getcpu.c
new file mode 100644
index 0000000..a5f8ea7

Checking patch src/sched/sched_getcpu.c...
Applied patch src/sched/sched_getcpu.c cleanly.

index at:
100644 a5f8ea7bee4809cc438c68c69b7eaf0227216ada	src/sched/sched_getcpu.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).