Commit Graph

84 Commits

Author SHA1 Message Date
Tom Hughes
606bd75025 Fix system call name in error messages.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4346
2005-08-08 16:50:16 +00:00
Tom Hughes
ebe67e6134 Check the fields of the new structure passed to sigaction individually
and only check sa_restorer if the SA_RESTORER flag is set.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4338
2005-08-07 15:16:59 +00:00
Tom Hughes
d7f4ee0a3c Enable the inotify system calls on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4336
2005-08-06 18:07:17 +00:00
Tom Hughes
5636f53a8c If the pre-handler for the execve system call fails to state the file
being executed then propagate the error from the stat instead of just
return ENOACCES all the time. Fixes bug #110208.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4330
2005-08-05 07:46:32 +00:00
Tom Hughes
3f28625849 Implement the waitid system call. Fixes bug #110202.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4329
2005-08-05 07:32:04 +00:00
Tom Hughes
888f6e02cf Allow a NULL second argument to clock_getres. Fixes bug #110203.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4328
2005-08-05 07:22:00 +00:00
Julian Seward
ec55a5e7bb Fix up do_syscall_clone_ppc32_linux. Seems to improve thread exiting.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4327
2005-08-05 02:15:18 +00:00
Julian Seward
ce962acecb ppc32-linux: implement a bunch more syscalls, and also fix up clone
handling enough so that threads can successfuly be started.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4325
2005-08-05 00:10:11 +00:00
Nicholas Nethercote
05cf8f1611 Replace out-of-date email address.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4322
2005-08-04 19:26:54 +00:00
Julian Seward
08184e8ea4 Enable sys_fchmod and sys_fchown.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4296
2005-07-29 22:01:19 +00:00
Tom Hughes
4f8e0cb52b Take the address of the ifr_index member when testing if it is defined
before an SIOCGIFNAME ioctl.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4295
2005-07-29 18:42:22 +00:00
Tom Hughes
cca571d1c9 Handle the TIOCMGET ioctl.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4291
2005-07-28 16:26:34 +00:00
Tom Hughes
1dc053205f Handle the HDIO_GETGEO ioctl. Secondary problem found from bug #109780.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4290
2005-07-28 16:13:42 +00:00
Tom Hughes
fd2217006c Handle a number of additional block device ioctls. Fixes bug #109780.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4288
2005-07-28 16:08:09 +00:00
Tom Hughes
b2f3925a5f Handle the fadvise64 system calls correctly on 32 bit platforms.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4285
2005-07-27 22:57:18 +00:00
Julian Seward
b101826494 Makefile stuff, partly from Tom, which uses the SVN-externall'd VEX
tree a bit better.  Also, fixes to make 'make dist' include into the
final tarball a minimal but workable subset of the stuff in the VEX
directory.

Note, you must do 'make' or 'make install' before 'make dist' since
otherwise VEX/priv/main/vex_svnversion.h will not exist.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4266
2005-07-26 10:42:57 +00:00
Tom Hughes
69ef21a629 Fix some inconsistent system call trace messages.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4251
2005-07-25 15:28:36 +00:00
Tom Hughes
03bc2deb25 Add support for the inotify system calls based on a patch
from John McCutchan <ttb@tentacle.dhs.org>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4250
2005-07-25 15:21:41 +00:00
Julian Seward
1bafc58697 Get rid of --support-elan3=. This flag wasn't doing anything since
the Elan3 user-space driver now works on unmodified Valgrind.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4238
2005-07-24 07:15:44 +00:00
Julian Seward
5caa702a1f Enable sys_poll.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4235
2005-07-24 06:30:37 +00:00
Julian Seward
ab00074929 Change some int uses to Int (the house types).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4229
2005-07-23 09:22:46 +00:00
Julian Seward
6789f6542e A commit which is almost all trivial change.
- m_main: if --log-file-qualifier applies, do not add ".pid"
  at the end of the name

- Fix the logic which detected whether the just-devised name
  already existed.  This was broken (by me) because it could not
  distinguish the reasons for failing to open the logfile.

  Doing this required changing the return type of VG_(open)
  from Int to SysRes (to make failure reasons visible) and 
  that's the cause of most of the changes.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4228
2005-07-23 09:18:34 +00:00
Tom Hughes
a74aa1e74d Yet more system calls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4227
2005-07-22 15:04:14 +00:00
Tom Hughes
f0fdce6382 Enable rt_sigpending on amd64. Fixes bug #109429.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4223
2005-07-21 20:23:26 +00:00
Tom Hughes
f67d1dc95e Document different argument order for clone on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4217
2005-07-20 13:49:55 +00:00
Tom Hughes
5c41eefec8 The timeout argument to rt_sigtimedwait is in the third argument not
the fourth, plus linux allows it to be null.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4214
2005-07-20 09:32:35 +00:00
Tom Hughes
5e7b1d48c7 More system call fixups.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4213
2005-07-20 09:24:04 +00:00
Tom Hughes
87e835de1f Yet more amd64 system calls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4212
2005-07-20 08:46:50 +00:00
Tom Hughes
6e11d22b74 Fix mistaken comments.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4202
2005-07-19 23:01:56 +00:00
Tom Hughes
dd1e9ed254 Pass clone arguments in the correct order when doing a fork style
clone. This should fix bug #109358.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4201
2005-07-19 22:59:47 +00:00
Tom Hughes
01962be11b Enable sched_yield on amd64. Fixes bug #109362.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4200
2005-07-19 22:48:04 +00:00
Tom Hughes
d1d9783242 Return success when get_thread_area succeeds.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4199
2005-07-19 22:44:33 +00:00
Tom Hughes
a658d8c40f Support ARCH_GET_FS with arch_prctl on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4197
2005-07-19 22:35:58 +00:00
Nicholas Nethercote
61448c507d We have a nice little collection of text files describing various high
level things.  But they're all over the place.  This commits moves
them all to the new docs/internals/ directory, and gives them 
a consistent naming scheme.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4196
2005-07-19 21:46:19 +00:00
Tom Hughes
0d957fbca0 Enable some more system calls on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4191
2005-07-19 16:05:49 +00:00
Tom Hughes
dc892caf68 Fix compiler warning.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4190
2005-07-19 15:28:31 +00:00
Tom Hughes
24de900c15 Enable setuid and setgid on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4189
2005-07-19 15:26:33 +00:00
Tom Hughes
bd8021aa26 Fix the mmap2 pre-handler to avoid corrupting the arguments when
it fails with ENOMEM due to a lack of memory.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4184
2005-07-19 13:04:04 +00:00
Tom Hughes
dea2bc96c6 Enable the rt_sigqueueinfo syscall on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4178
2005-07-19 07:21:06 +00:00
Tom Hughes
9a1ea2d7cc Fix crash when no environment is given to execve.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4169
2005-07-18 23:23:03 +00:00
Tom Hughes
5914fa6a53 Check members of the stack_t structure passed to sigaltstack
individually to avoid problems with padding on 64 bit platforms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4168
2005-07-18 23:18:10 +00:00
Tom Hughes
ada7c716a1 Check each member of the ifconf structure passed to SIOCGIFCONF
individually to avoid problems with padding bytes on 64 bit platforms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4167
2005-07-18 22:45:55 +00:00
Tom Hughes
2b08b3a3b0 Check each field of the msghdr structure passed to sendmsg/recvmsg
individually to avoid complaints due to uninitialised padding bytes
on 64 bit platforms.

Also fixed sendmsg to check things which should be initialised (the
msghdr structure and the iov array) properly instead of doing a write
check for everything.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4166
2005-07-18 22:41:33 +00:00
Nicholas Nethercote
776cd36bb4 add comment
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4163
2005-07-18 14:10:12 +00:00
Tom Hughes
a85d532b0d Take a copy of the environment given to execve before trying to mangle
it as it might be in read only memory. Fixes bug #101881.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4162
2005-07-18 14:02:11 +00:00
Tom Hughes
0fef787853 Handle the BLKGETSIZE64 ioctl. Fixes bug #104797.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4161
2005-07-18 13:26:55 +00:00
Tom Hughes
1426576c53 Preserve %esi across VG_(clone) as the caller may be relying on it
not being changed. Fix to bug #106713.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4160
2005-07-18 12:02:45 +00:00
Julian Seward
ce1682b2d8 Track API changes in vex r1272.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4159
2005-07-18 11:41:15 +00:00
Tom Hughes
83dfcfa3f9 Allow a NULL argument to the times system call. Fixes bug #103509.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4158
2005-07-18 11:03:35 +00:00
Julian Seward
cc206745a8 Get rid of endianness assumptions in the PRRAn macro, which is
important for doing checks of scalar syscall args.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4143
2005-07-10 00:55:26 +00:00