2152 Commits

Author SHA1 Message Date
Nicholas Nethercote
39914e513d Converted sigprocmask and rt_sigprocmask.
While doing so, fixed bug #93328, by using the right sized types in
sigprocmask(), and converting them as necessary.  Added a regression test for
it too.

(partly) MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3013
2004-11-15 19:03:27 +00:00
Nicholas Nethercote
0ec929266e convert a couple more
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3012
2004-11-15 17:19:22 +00:00
Nicholas Nethercote
2c423e4567 Convert more syscalls. Avoid obvious seg faults due to NULL vectors in readv()
and writev().


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3011
2004-11-15 17:04:14 +00:00
Tom Hughes
825ce5be82 Pass an argument to exit_group in the scalar_exit_group test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3010
2004-11-15 16:59:18 +00:00
Nicholas Nethercote
ba41261f08 Converted modify_ldt() and init_module(); the old code for init_module() was
seemingly totally wrong, as the man page doesn't reflect the real kernel code.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3009
2004-11-15 16:40:40 +00:00
Nicholas Nethercote
98da137d80 Add scalar_exit_group to reg tests. Tweak scalar.c again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3008
2004-11-15 16:11:20 +00:00
Tom Hughes
de135bbb7f After a clone system call there are two threads of control running so we
need to make sure the child exits or we will get two copies of the output
from each test which follows. Also some older systems do not define the
CLONE_PARENT_SETTID flag.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3007
2004-11-15 15:35:49 +00:00
Nicholas Nethercote
a01f2960be Fill in missing cases in scalar.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3006
2004-11-15 15:31:17 +00:00
Nicholas Nethercote
aa4b01411e converted more syscalls
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3005
2004-11-15 14:50:02 +00:00
Nicholas Nethercote
a0ce711edb Converted more syscalls
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3004
2004-11-15 14:32:12 +00:00
Nicholas Nethercote
df2c9db230 converted mmap and mmap2
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3003
2004-11-15 12:57:39 +00:00
Nicholas Nethercote
ad980e636a Converted a few more, including clone() which I'm not at all sure about, and
ipc() which is done too simplistically.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3002
2004-11-15 12:28:58 +00:00
Tom Hughes
d29a50f397 Add some missing system call arguments to the scalar test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3001
2004-11-15 10:02:53 +00:00
Tom Hughes
4ab6205dcc Remove trailing space after \ continuation marker.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3000
2004-11-15 09:38:26 +00:00
Tom Hughes
88c5a7cfba Add comments documenting the difference between the sigsuspend
function in the C library and the sigsuspend and rt_sigsuspend
system calls.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2999
2004-11-15 09:27:24 +00:00
Nicholas Nethercote
7be89aef83 Converted some more syscalls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2998
2004-11-14 20:06:27 +00:00
Tom Hughes
c817c6bfaf Fix the sigsuspend wrapper - the existing implementation was totally
bogus. Also checked the rt_sigsuspend wrapper, which does seem to be
correct.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2997
2004-11-14 19:44:25 +00:00
Nicholas Nethercote
117e80b375 Converted a few more syscalls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2996
2004-11-14 19:11:56 +00:00
Nicholas Nethercote
ef904d7d63 converted a few more syscalls
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2995
2004-11-14 18:37:07 +00:00
Nicholas Nethercote
7479659865 forgot to remove these files in last commit
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2994
2004-11-14 18:22:09 +00:00
Nicholas Nethercote
838a81ce30 Undo splitting of scalar from the last commit, which was stupid; just use
--error-limit=no instead.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2993
2004-11-14 18:11:55 +00:00
Nicholas Nethercote
1dbf6e342f Converted a few more syscalls.
Also split scalar into 6 pieces, to avoid hitting the 300 error limit.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2992
2004-11-14 17:58:27 +00:00
Nicholas Nethercote
8e2be498fc Converted a couple more
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2991
2004-11-14 17:03:47 +00:00
Nicholas Nethercote
344a3d78aa Add gettimeofday() to test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2990
2004-11-14 15:56:32 +00:00
Nicholas Nethercote
18c90ac917 Add missing params. Tom's nightly tests should work now.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2989
2004-11-14 15:55:06 +00:00
Nicholas Nethercote
4a6e2f7afb converted sigsuspend, rt_sigsuspend. Not very sure about them.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2988
2004-11-14 14:13:05 +00:00
Nicholas Nethercote
e0c74bbbfa converted a few more
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2987
2004-11-14 13:42:51 +00:00
Nicholas Nethercote
da82e7dd7a converted some more
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2986
2004-11-13 13:57:12 +00:00
Tom Hughes
d3ecb6f1e8 Add the post handlers for the console ioctls that I managed to
forget to include yesterday.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2985
2004-11-13 10:38:04 +00:00
Tom Hughes
d249a6bd93 Remove a couple of commented out lines that were left in when committing
the previous stabs fix.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2984
2004-11-13 00:40:18 +00:00
Tom Hughes
bbc0767128 Fix compiler warning.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2983
2004-11-13 00:39:37 +00:00
Tom Hughes
8448d42efa Add support for most of the console driver ioctls. This fixes one of
the ioctls complained about in bug 93096 as well as one that came up
on the mailing list a few weeks ago.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2982
2004-11-13 00:36:15 +00:00
Tom Hughes
e35a3fb298 Try and improve the parsing of C++ stabs that contain :: sequences. This
patch attempts to follow the same rules that gdb uses and is based on the
fact that there appear to be three places where :: can appear:

  - In the name of a undefined struct/union/enum after an x type
    marker. In this case we follow a simplified version of the old
    rules and only allow :: inside <> characters.

  - In a method name. These are mangled so :: will never appear as
    part of the name but will always occurs as the terminator. We
    handle this by stopping at the first :: sequence.

  - In a symbol/type name. This can include :: but can only be ended
    by a single colon so we simply carry on until we see that.

I suspect this will resolve a number of bugs but I'm still waiting for
the submitters to confirm exactly which ones it resolves.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2981
2004-11-12 23:16:31 +00:00
Tom Hughes
3a70bde344 Change VG_(nuke_all_threads) to disassociate the the stacks of the threads
being killed from the threads rather than marking them as inaccessible.

This should fix the problem with the environment (and other data from the
stacks of other threads) causing warnings after a fork. I believe that
VG_(nuke_all_threads) is only called in places where this is the behaviour
that we want or where it doesn't matter because we're about to exit anyway.

I believe this fixes bug 85625 but I'm still waiting for confirmation.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2980
2004-11-12 23:11:21 +00:00
Nicholas Nethercote
e10f7ac465 convert some more, mash some more
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2979
2004-11-12 21:21:07 +00:00
Nicholas Nethercote
17ce7e1ba9 Add commented-out templates so further additions are easier.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2978
2004-11-12 21:00:08 +00:00
Nicholas Nethercote
5bd31665ee mash things around to make further conversions quicker
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2977
2004-11-12 20:38:34 +00:00
Nicholas Nethercote
66213608e7 converted some more
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2976
2004-11-12 19:55:08 +00:00
Nicholas Nethercote
a7d211f313 wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2975
2004-11-12 18:49:50 +00:00
Nicholas Nethercote
cdbb6cd2e1 and converted a few more
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2974
2004-11-12 18:49:27 +00:00
Nicholas Nethercote
e3a2bb9405 renamed variables
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2973
2004-11-12 18:21:17 +00:00
Nicholas Nethercote
192c356143 converted some more
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2972
2004-11-12 18:20:12 +00:00
Nicholas Nethercote
be04c2e5d9 Remove unnecessary comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2971
2004-11-12 17:13:17 +00:00
Nicholas Nethercote
c8d91069ed Use our own unistd.h, because the system one might be missing some of the
constants.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2970
2004-11-12 17:12:04 +00:00
Nicholas Nethercote
b54443644a Converted a whole bunch of syscalls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2969
2004-11-12 17:07:26 +00:00
Nicholas Nethercote
0c0a684a6d Converted execve().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2968
2004-11-12 15:41:06 +00:00
Nicholas Nethercote
267ff3faac Converted vfork() and acct(). Properly annotated all the ones we don't handle,
plus a few we do.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2967
2004-11-12 14:57:34 +00:00
Nicholas Nethercote
691c66f51d Converted lookup_dcookie.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2966
2004-11-12 13:29:24 +00:00
Nicholas Nethercote
4a6c062608 CVS fixups: cvs add files I forgot to before; add .cvsignore entries.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2965
2004-11-12 11:25:39 +00:00
Nicholas Nethercote
ccdeacec51 Converted uname(); annotated some obsolete ones.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2964
2004-11-12 11:19:36 +00:00