]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Handle setpgid(). Partly addresses bug 198624.
authorNicholas Nethercote <njn@valgrind.org>
Wed, 15 Jul 2009 05:46:43 +0000 (05:46 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 15 Jul 2009 05:46:43 +0000 (05:46 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10457

coregrind/m_syswrap/syswrap-darwin.c
memcheck/tests/darwin/scalar.c
memcheck/tests/darwin/scalar.stderr.exp

index ae69cd24e8d5e4dece71223179d1ee778ba07f4b..bf0c4595a38819b3457818c1d7e50d8a2d3a8341 100644 (file)
@@ -7124,7 +7124,7 @@ const SyscallTableEntry ML_(syscall_table)[] = {
    GENXY(__NR_getgroups,   sys_getgroups), 
 // _____(__NR_setgroups),   // 80
    GENX_(__NR_getpgrp,     sys_getpgrp), 
-// _____(__NR_setpgid), 
+   GENX_(__NR_setpgid,     sys_setpgid), 
    GENXY(__NR_setitimer,   sys_setitimer), 
    _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(84)),    // old wait
 // _____(__NR_swapon), 
index 6015bbfd21a94ec0d59c06d3b5786a49a1719878..24ac0e532cbc90eb4c616668e655d0f09e44f0ca 100644 (file)
@@ -160,14 +160,16 @@ int main(void)
 
    GO_UNIMP(77, "old vlimit");
 
-   // __NR_mincore 218
-   GO(__NR_mincore, 218, "3s 1m");
+   GO(__NR_mincore, 78, "3s 1m");
    SY(__NR_mincore, x0, x0+40960, x0); FAIL;
 
    // __NR_getgroups 79
    // __NR_setgroups 80
    // __NR_getpgrp 81
-   // __NR_setpgid 82
+
+   GO(__NR_setpgid, 82, "2s 0m");
+   SY(__NR_setpgid, x0-1, x0-1); FAIL;
+
    // __NR_setitimer 83
 
    GO_UNIMP(78, "old wait");
index 904777f7e07611fea7ba548399335828e167b800..01c6ec43108ed51da473edfca9ed8422297de228 100644 (file)
@@ -235,7 +235,7 @@ Syscall param chown(path) points to unaddressable byte(s)
 (77):            old vlimit
 -----------------------------------------------------
 -----------------------------------------------------
-x200004e(218):        __NR_mincore 3s 1m
+x200004e(78):        __NR_mincore 3s 1m
 -----------------------------------------------------
 
 Syscall param mincore(start) contains uninitialised byte(s)
@@ -251,6 +251,15 @@ Syscall param mincore(vec) points to unaddressable byte(s)
    ...
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 -----------------------------------------------------
+x2000052(82):        __NR_setpgid 2s 0m
+-----------------------------------------------------
+
+Syscall param setpgid(pid) contains uninitialised byte(s)
+   ...
+
+Syscall param setpgid(pgid) contains uninitialised byte(s)
+   ...
+-----------------------------------------------------
 (78):            old wait
 -----------------------------------------------------
 -----------------------------------------------------
@@ -623,6 +632,9 @@ Syscall param stat_extended(fsacl) contains uninitialised byte(s)
 Syscall param stat_extended(fsacl_size) contains uninitialised byte(s)
    ...
 
+More than 100 errors detected.  Subsequent errors
+will still be recorded, but in less detail than before.
+
 Syscall param stat_extended(file_name) points to unaddressable byte(s)
    ...
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
@@ -631,9 +643,6 @@ Syscall param stat_extended(buf) points to unaddressable byte(s)
    ...
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
-More than 100 errors detected.  Subsequent errors
-will still be recorded, but in less detail than before.
-
 Syscall param stat_extended(fsacl_size) points to unaddressable byte(s)
    ...
  Address 0x........ is not stack'd, malloc'd or (recently) free'd