delete SYSCALL_DECLARE(getcwd)
This commit is contained in:
@@ -630,14 +630,6 @@ int main_loop(int fd, int cpu, pthread_mutex_t *lock)
|
||||
pthread_mutex_unlock(lock);
|
||||
return w.sr.args[0];
|
||||
|
||||
case __NR_getcwd: {
|
||||
// note that return type is different between glibc-getcwd and sys_getcwd
|
||||
char* c = getcwd((void *)dma_buf, w.sr.args[1]);
|
||||
ret = (c == 0) ? -errno : strnlen((const char*)dma_buf, w.sr.args[1]);
|
||||
__dprintf("getcwd result: %s\n", dma_buf);
|
||||
do_syscall_return(fd, cpu, ret, 1, (unsigned long)dma_buf, w.sr.args[0], c == 0 ? 0 : ret + 1);
|
||||
break; }
|
||||
|
||||
// see linux-2.6.34.13/fs/open.c
|
||||
case __NR_access: {
|
||||
dma_buf[256] = 0;
|
||||
|
||||
Reference in New Issue
Block a user