mailing list of musl libc
 help / color / mirror / code / Atom feed
070d6e7f9d97dd58342733f04e23f88ed6ddf2e8 blob 190 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 
#define _GNU_SOURCE
#include <stdlib.h>
#include <sched.h>
#include "syscall.h"

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

solving 070d6e7 ...
found 070d6e7 in https://inbox.vuxu.org/musl/1456765216-24883-1-git-send-email-nathan@nathan7.eu/ ||
	https://inbox.vuxu.org/musl/1456765028-23958-2-git-send-email-nathan@nathan7.eu/

applying [1/2] https://inbox.vuxu.org/musl/1456765216-24883-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..070d6e7

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

skipping https://inbox.vuxu.org/musl/1456765028-23958-2-git-send-email-nathan@nathan7.eu/ for 070d6e7
index at:
100644 070d6e7f9d97dd58342733f04e23f88ed6ddf2e8	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).