OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [linux/] [linuxthreads/] [reqsyscalls.c] - Blame information for rev 301

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/* EL/IX level 1 and 2 libraries don't have the following syscalls,
2
   but we need them due to our threading model based on processes */
3
 
4
#include <time.h>
5
#include <sched.h>
6
#include <sys/wait.h>
7
#include <machine/syscall.h>
8
 
9
#define __NR___waitpid __NR_waitpid
10
#define __NR___sched_getparam __NR_sched_getparam
11
#define __NR___sched_getscheduler __NR_sched_getscheduler
12
#define __NR___sched_setscheduler __NR_sched_setscheduler
13
 
14
_syscall2(int,__sched_getparam,pid_t,pid,struct sched_param *,sched);
15
_syscall1(int,__sched_getscheduler,pid_t,pid);
16
_syscall3(int,__sched_setscheduler,pid_t,pid,int,policy,const struct sched_param *,sched);
17
 
18
/* we want __libc____waitpid defined to support __waitpid which is
19
   defined in wrapsyscall.c */
20
_syscall3_base(pid_t,__waitpid,pid_t,pid,int *,wait_stat,int,options)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.