delete old fcntl(2) delegation codes
This commit is contained in:
@ -791,21 +791,6 @@ int main_loop(int fd, int cpu, pthread_mutex_t *lock)
|
||||
do_syscall_return(fd, cpu, ret, 0, 0, 0, 0);
|
||||
break; }
|
||||
|
||||
case __NR_fcntl: {
|
||||
int c;
|
||||
switch(w.sr.args[1]) {
|
||||
case F_GETFD:
|
||||
c = fcntl(w.sr.args[0], w.sr.args[1]);
|
||||
__dprintf("fcntl,F_GETFD,c=%x\n", c);
|
||||
ret = (c < 0) ? -errno : c;
|
||||
break;
|
||||
default:
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
}
|
||||
do_syscall_return(fd, cpu, ret, 0, 0, 0, 0);
|
||||
break; }
|
||||
|
||||
case __NR_getdents64: { // linux-2.6.34.13/fs/readdir.c
|
||||
long c = syscall((int)__NR_getdents64, (unsigned int)w.sr.args[0], (void *)dma_buf, (unsigned int)w.sr.args[2]);
|
||||
ret = (c < 0) ? -errno : c;
|
||||
|
||||
@ -636,13 +636,6 @@ SYSCALL_DECLARE(getdents64)
|
||||
SYSCALL_FOOTER;
|
||||
}
|
||||
|
||||
SYSCALL_DECLARE(fcntl)
|
||||
{
|
||||
SYSCALL_HEADER;
|
||||
SYSCALL_ARGS_2(D, D);
|
||||
SYSCALL_FOOTER;
|
||||
}
|
||||
|
||||
SYSCALL_DECLARE(readlink)
|
||||
{
|
||||
SYSCALL_HEADER;
|
||||
@ -1182,7 +1175,6 @@ static long (*syscall_table[])(int, ihk_mc_user_context_t *) = {
|
||||
[56] = sys_clone,
|
||||
[60] = sys_exit,
|
||||
[63] = sys_uname,
|
||||
[72] = sys_fcntl,
|
||||
[79] = sys_getcwd,
|
||||
[89] = sys_readlink,
|
||||
[96] = sys_gettimeofday,
|
||||
@ -1239,8 +1231,7 @@ static char *syscall_name[] = {
|
||||
[56] = "sys_clone",
|
||||
[60] = "sys_exit",
|
||||
[63] = "sys_uname",
|
||||
|
||||
[72] = "sys_fcntl",
|
||||
[72] = "sys_fcntl",
|
||||
[79] = "sys_getcwd",
|
||||
[89] = "sys_readlink",
|
||||
[96] = "sys_gettimeofday",
|
||||
|
||||
Reference in New Issue
Block a user