delete SYSCALL_DECLARE(getcwd)

This commit is contained in:
NAKAMURA Gou
2013-06-12 17:42:24 +09:00
parent d6f6e4d6d7
commit 628793225f
2 changed files with 0 additions and 19 deletions

View File

@@ -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;