Tom Hughes
4c19c1fef0
Quote some more CC expansions.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4592
2005-08-30 21:07:23 +00:00
Nicholas Nethercote
b951ee0662
unbreak ppc32, I hope
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4584
2005-08-30 03:02:00 +00:00
Nicholas Nethercote
b706da9aa9
Group Linux-specific syscalls a bit.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4581
2005-08-30 02:45:44 +00:00
Nicholas Nethercote
b79e7281d4
Moved sched_* from "generic" to "linux"; Darwin doesn't have them.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4576
2005-08-30 02:17:23 +00:00
Nicholas Nethercote
40eb28bec1
Move *xattr from "generic" to "linux". Darwin has them, but with an extra
...
parameter.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4575
2005-08-30 01:53:54 +00:00
Julian Seward
42b4516a9d
Pass $(CC) to the vex Makefile.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4559
2005-08-29 12:11:06 +00:00
Tom Hughes
cf8c1b047f
Handle the SCTP_GET_LOCAL_ADDRS and SCTP_GET_PEER_ADDRS getsockopt
...
calls correctly. Fix to bug #111231 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4549
2005-08-28 10:16:29 +00:00
Nicholas Nethercote
63df7df1c8
Give file a better name.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4546
2005-08-28 04:48:12 +00:00
Nicholas Nethercote
ccad5e3600
Change slightly the way integers are printed by printf() and friends.
...
Previously, %d printed a 32-bit int. %ld and %lld printed 64-bit ints.
So if you wanted to print a word-sized int (eg. a SizeT variable), you
had to cast it to a Long and then print with %lld in order to work on
both 32-bit and 64-bit platforms.
I changed things so that %d prints a 32-bit int, %ld prints a word-sized
int, and %lld prints a 64-bit int. There are two advantages to this:
- it now matches the way the normal glibc printf() works;
- you can print word-sized ints without casting.
I also made the corresponding change for %u/lu/llu and %x/lx/llx, and I
changed a couple of VG_(printf)() invocations accordingly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4527
2005-08-26 19:42:27 +00:00
Nicholas Nethercote
45fc4050f8
Move *chown16 syscalls from "generic" to "linux".
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4523
2005-08-26 04:36:10 +00:00
Nicholas Nethercote
1d0665b897
whoops
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4522
2005-08-26 04:30:34 +00:00
Nicholas Nethercote
1fa6f9bf7a
Move get*16 and set*16 syscalls from "generic" to "linux".
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4521
2005-08-26 04:27:54 +00:00
Nicholas Nethercote
7fd1f02169
Move cap{get,set} syscalls from "generic" to "linux".
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4520
2005-08-26 04:03:04 +00:00
Nicholas Nethercote
832989d4af
Move timer_* syscalls from "generic" to "linux".
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4519
2005-08-26 03:54:30 +00:00
Nicholas Nethercote
c42361bf17
Move clock_* syscalls from "generic" to "linux".
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4518
2005-08-26 03:49:43 +00:00
Nicholas Nethercote
c710281899
Move mq_* syscalls from "generic" to "linux".
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4517
2005-08-26 03:43:28 +00:00
Nicholas Nethercote
ed0bcea859
Rename vg_preload_core.so to vgpreload_core.so to be consistent with
...
tool preload modules, which are called vgpreload_<tool>.so. Also
fixed a couple of comments relating to this.
(This need not be merged into 3_0_X.)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4514
2005-08-25 22:53:57 +00:00
Nicholas Nethercote
e266e53970
Minor fixes for problems pointed out by Greg Parker:
...
* The wrapper for fcntl(F_SETOWN) and fcntl(F_SETSIG) ignores ARG3,
but should not.
* Linux PRE(sys_umount) doesn't print ARG2.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4487
2005-08-24 13:55:59 +00:00
Julian Seward
4768087f6f
Even more ppc32 syscalls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4474
2005-08-21 00:49:41 +00:00
Julian Seward
b42cf14c30
Enable a few more syscalls on ppc32-linux.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4463
2005-08-19 10:07:29 +00:00
Julian Seward
c3de347191
- Fix bug causing thread slots not to get reused
...
- yet more syscalls on ppc32
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4460
2005-08-19 00:22:44 +00:00
Julian Seward
f964ed405c
Enable a couple more syscalls on ppc32.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4449
2005-08-18 23:44:13 +00:00
Tom Hughes
2f83dba402
Don't assert if execve fails. Fixes bug #110875 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4435
2005-08-16 10:19:58 +00:00
Nicholas Nethercote
c1719a4c98
Clarify comment.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4406
2005-08-14 17:36:07 +00:00
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