File:  [DVB] / dietlibc / lib / __sched_getaffinity.c
Revision 1.1: download - view: text, annotated - select for diffs
Thu Mar 3 18:40:05 2011 UTC (13 years, 3 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
get rid of lots of socket cruft

#define _GNU_SOURCE
#include <sched.h>

extern int __syscall_sched_getaffinity(pid_t, size_t, cpu_set_t*);

int sched_getaffinity(pid_t pid, size_t size, cpu_set_t *mask)
{
	int ret;

	*mask = 0;
	ret = __syscall_sched_getaffinity(pid, size, mask);
	if (ret > 0)
		return 0;
	return ret;
}

LinuxTV legacy CVS <linuxtv.org/cvs>