add chdir
[snitchaser:mainline.git] / src / arch / x86 / interp / syscalls / read.c
1 /* 
2  * read.c
3  * by WN @ Jul. 21, 2010
4  */
5
6 #include "syscall_handler.h"
7 #include <xasm/syscall.h>
8 #include <common/debug.h>
9
10 #ifndef PRE_LIBRARY
11
12 DEF_HANDLER(read)
13 {
14         TRACE(LOG_SYSCALL, "read\n");
15         int r = regs->eax;
16         if (r > 0)
17                 BUFFER((void*)(regs->ecx), r);
18         return 0;
19 }
20
21 #endif
22
23 // vim:ts=4:sw=4
24