|
From: Tom H. <th...@cy...> - 2003-04-24 14:19:17
|
Rather oddly, it appears that valgrind has never had support for the
creat system call, so here it is:
--- valgrind-1.9.5/coregrind/vg_syscalls.c.orig 2003-04-24 14:37:11.000000000 +0100
+++ valgrind-1.9.5/coregrind/vg_syscalls.c 2003-04-24 14:37:58.000000000 +0100
@@ -2600,6 +2600,14 @@
KERNEL_DO_SYSCALL(tid,res);
MAYBE_PRINTF("%d\n",res);
break;
+
+ case __NR_creat: /* syscall 8 */
+ /* int creat(const char *pathname, mode_t mode); */
+ MAYBE_PRINTF("creat ( %p(%s), %d ) --> ",arg1,arg1,arg2);
+ SYSCALL_TRACK( pre_mem_read_asciiz, tst, "creat(pathname)", arg1 );
+ KERNEL_DO_SYSCALL(tid,res);
+ MAYBE_PRINTF("%d\n",res);
+ break;
case __NR_pipe: /* syscall 42 */
/* int pipe(int filedes[2]); */
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|
|
From: Nicholas N. <nj...@ca...> - 2003-04-24 18:14:24
|
On 24 Apr 2003, Tom Hughes wrote: > Rather oddly, it appears that valgrind has never had support for the > creat system call, so here it is: Thanks, I just committed it to the HEAD. N |