mailing list of musl libc
 help / color / mirror / code / Atom feed
760e4d5bd4dd08d9f6230978ac0bba05fdee1e61 blob 199 bytes (raw)

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

int sched_getcpu(void)
{
	int r;
	unsigned cpu;

	r = __syscall(SYS_getcpu, &cpu, 0, 0);
	if (!r) return cpu;
	return __syscall_ret(r);
}
debug log:

solving 760e4d5 ...
found 760e4d5 in https://git.vuxu.org/mirror/musl/

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).