Merge branch 'master' of postpeta.pccluster.org:mckernel

This commit is contained in:
Tomoki Shirasawa
2014-06-10 10:42:55 +09:00
2 changed files with 12 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ SYSCALL_DELEGATED(79, getcwd)
SYSCALL_DELEGATED(89, readlink) SYSCALL_DELEGATED(89, readlink)
SYSCALL_DELEGATED(96, gettimeofday) SYSCALL_DELEGATED(96, gettimeofday)
SYSCALL_HANDLED(97, getrlimit) SYSCALL_HANDLED(97, getrlimit)
SYSCALL_HANDLED(101, ptrace)
SYSCALL_DELEGATED(102, getuid) SYSCALL_DELEGATED(102, getuid)
SYSCALL_DELEGATED(104, getgid) SYSCALL_DELEGATED(104, getgid)
SYSCALL_DELEGATED(107, geteuid) SYSCALL_DELEGATED(107, geteuid)

View File

@@ -1860,6 +1860,17 @@ SYSCALL_DECLARE(getrlimit)
return ret; return ret;
} }
SYSCALL_DECLARE(ptrace)
{
const int request = ihk_mc_syscall_arg0(ctx);
const long pid = ihk_mc_syscall_arg1(ctx);
void * const addr = (void *)ihk_mc_syscall_arg2(ctx);
void * const data = (void *)ihk_mc_syscall_arg3(ctx);
kprintf("ptrace(%d,%ld,%p,%p): ENOSYS\n", request, pid, addr, data);
return -ENOSYS;
}
SYSCALL_DECLARE(sched_setaffinity) SYSCALL_DECLARE(sched_setaffinity)
{ {
#if 0 #if 0