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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 
#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 __syscall_ret((s == 0) ? c : s);
}
debug log:

solving f34d84a ...
found f34d84a in https://inbox.vuxu.org/musl/1456778974-8825-1-git-send-email-nathan@nathan7.eu/

applying [1/1] https://inbox.vuxu.org/musl/1456778974-8825-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..f34d84a

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

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