Dirk Mueller
ac2bbadda5
implement support for AT_FDCWD in openat()
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6566
2007-01-31 23:06:08 +00:00
Julian Seward
967cd7b6fd
Enable the pselect6 wrapper on amd64-linux.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6530
2007-01-18 00:13:24 +00:00
Julian Seward
e71365244a
When '-d' (one or more) is specified, disallow the client from closing
...
fd 2 (stderr) since that's what m_debuglog writes to, and the
resulting disappearance of the debug log can be confusing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6519
2007-01-13 22:27:51 +00:00
Julian Seward
20a55a1469
ML_(generic_PRE_sys_mmap): In the case of a hinted mapping (for the
...
client) which aspacemgr accepts at the hint address but the kernel
declines, try again as a non-hinted mapping. Fixes ld.so mapping
failures observed on ppc32-linux, although the problem potentially
applies to all Linux targets.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6495
2007-01-09 16:47:20 +00:00
Julian Seward
172505c978
Update copyright dates.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6488
2007-01-08 06:01:59 +00:00
Julian Seward
37c3d2ead6
Merge (from 3_2_BRANCH) r6457/8 (Support 64k pages on ppc32/64-linux
...
(Jakub Jelink, Dave Nomura) )
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6459
2006-12-30 17:45:08 +00:00
Tom Hughes
141bfac9cf
Add support for some USB ioctls. Based on patches from Jon Burgess and
...
Marcus Meissner in bugs #136059 and #138896 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6411
2006-12-18 16:48:10 +00:00
Tom Hughes
69c8af5179
Improve prctl support - based on patch from Eric Pouech in bug #138627 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6410
2006-12-18 15:22:46 +00:00
Julian Seward
34198cf597
Rename VG_(get_lwp_tid) to VG_(lwpid_to_vgtid).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6409
2006-12-17 19:36:06 +00:00
Julian Seward
a96416a3e2
A naming-only change: rename VG_(set_running) to VG_(acquire_BigLock)
...
and VG_(set_sleeping) to VG_(release_BigLock). And some other minor
renamings to the thread locking stuff, to make it easier to follow.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6408
2006-12-17 18:58:55 +00:00
Julian Seward
52cf6ff843
Tidy fd-leak stuff a bit.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6391
2006-12-11 01:11:02 +00:00
Julian Seward
2040c9cd05
Syscall tidying.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6349
2006-11-10 22:47:27 +00:00
Julian Seward
e962ad7da5
signedness wibble
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6347
2006-11-04 18:18:14 +00:00
Julian Seward
639f06a928
Fix regression caused by recent merging, picked up by none/tests/shell.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6316
2006-10-18 00:34:21 +00:00
Julian Seward
56240918e0
Get rid of # comments in assembly files.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6311
2006-10-17 20:47:13 +00:00
Julian Seward
bbe7f55813
Merge r6140 (some of):
...
- track SysRes changes
- track VG_(am_find_nsegment) const-ness change
- increase number of client syscall args supported from 6 to 8
- simplify type SyscallStatus. Simply hold a copy of the SysRes
for the syscall rather than have this be a data structure
incorporating something very similar to the fields of a SysRes,
and more besides. Change various macros in priv_types_n_macros.h
to match.
- syswrap-main.c: instantiate the various impedance-matching
functions for AIX.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6276
2006-10-17 01:47:30 +00:00
Julian Seward
f92e61becb
Merge r6101:
...
Syscall wrappers for AIX5. Unfortunately they duplicate some of the
stuff in syswrap-generic.c since making that compile on AIX is just
too difficult.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6250
2006-10-17 01:08:19 +00:00
Julian Seward
8df6fe67b7
Unbreak amd64-linux after recent commits.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6229
2006-10-14 20:06:48 +00:00
Julian Seward
f8f709fc6e
Unbreak ppc{32,64}-linux after recent commits.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6228
2006-10-14 19:51:19 +00:00
Julian Seward
ae8215b3ac
Create a new module, m_vki, and move all knowledge about the kernel
...
interface, except for the syscall numbers, into that. Mostly this
means moving include/vki-*.h to include/vki/vki-*.h.
include/pub_tool_basics.h previously dragged in the entire kernel
interface. I've done away with that, so that modules which need to
see the kernel interface now have to include pub_{core,tool}_vki.h
explicitly. This is why there are many modified .c files -- they have
all acquired an extra #include line.
This certainly breaks all platforms except x86. Will fix shortly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6225
2006-10-14 19:26:10 +00:00
Julian Seward
4b572a567e
Create a new module, m_vkiscnums, and move all the system call numbers
...
into that. Mostly this means moving vki_unistd-<plat>.h to
include/vki/vki-scnums-<plat>.h.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6224
2006-10-14 15:51:32 +00:00
Julian Seward
1213e9bcf7
Merge (from 3_2_BRANCH) r6048 (SuSE 10.1 (ppc32) minor fixes)
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6051
2006-09-11 20:33:55 +00:00
Julian Seward
070042a4c5
When handling mremap, disallow an expanding in-place remap if it would
...
trash some other segment as a result of the expansion. This fixes
#129866 . I don't know if it is a good solution though. Causes
none/tests/mremap{,2} to fail now, although I think it is still OK.
mremap really is a semantic disaster area.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6003
2006-08-16 14:22:29 +00:00
Julian Seward
ed31950b18
Enable syslog/sysinfo (Andy Doan). Fixes #130638 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5989
2006-07-24 10:14:37 +00:00
Julian Seward
6149c5ff30
More ppc32/64-linux syscall wrappers, from Jakub Jelinek. Fixes #129246 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5988
2006-07-24 10:06:09 +00:00
Tom Hughes
0e8a28708c
Fix boundary case when trying to use brk() to expand right up to the
...
limit of the brk segment.
Because VG_(brk_limit) is the first address beyond the end of the
memory available to the caller of brk() we need to allow it to grow
up to and including the address one page below the end of the space
valgrind has reserved.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5974
2006-06-21 08:01:14 +00:00
Tom Hughes
22881a5f04
Implement some more terminal ioctls. Fixes bug #124039 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5970
2006-06-07 18:35:34 +00:00
Tom Hughes
ab5dbd4755
Validate futex system call arguments more carefully. Fixes bug #117172 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5968
2006-06-07 17:47:51 +00:00
Tom Hughes
ebe5060d49
Fix display of buffer address in sendto system call arguments.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5967
2006-06-07 17:46:12 +00:00
Julian Seward
ad67fd79fe
Update copyright dates.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5954
2006-06-05 23:21:15 +00:00
Tom Hughes
297aa09b43
Implement the set_robust_list and get_robust_list system calls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5905
2006-05-17 14:24:12 +00:00
Tom Hughes
6076d2c38b
Don't check the fifth argument of mremap() unless MREMAP_FIXED is set
...
in the fourth argument. Fix to bug #123535 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5886
2006-05-08 11:58:06 +00:00
Tom Hughes
17b262ab87
Add support for CDROMREADRAW and fix CDROMREADTOCENTRY to mark the right
...
number of bytes as defined in the post handler. Fixes bug #126696 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5885
2006-05-08 11:37:04 +00:00
Tom Hughes
490abde206
Fix linkat, renameat and symlinkat wrappers to look at the arguments
...
correctly. Fixes bug #126938 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5884
2006-05-08 11:19:47 +00:00
Julian Seward
6fc030b2be
Fix printing bug in PRE(sys_stat64).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5881
2006-05-04 16:43:34 +00:00
Dirk Mueller
a0d79c6e9f
split the assert so that its more obvious which
...
part is failing
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5864
2006-04-27 11:05:13 +00:00
Julian Seward
e717ec89e9
Add support for sys_broc on amd64-linux when --kernel-variant=bproc.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5860
2006-04-20 14:38:50 +00:00
Julian Seward
8367bd8ed0
Syscall wrappers for ppc32-linux (and one for amd64-linux).
...
(from Jakub Jelinek) See #125492 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5849
2006-04-14 01:04:04 +00:00
Tom Hughes
2b63758b93
Enable sigsuspend on x86-linux and ppc32-linux.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5819
2006-04-03 16:38:33 +00:00
Tom Hughes
ce490aed74
Handle msg_flags correctly - for recvmsg this field is written by the
...
kernel not read.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5789
2006-03-24 16:48:19 +00:00
Julian Seward
23218c0ec8
Update expected output following r5785; also add a missing 's'.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5788
2006-03-22 11:18:50 +00:00
Tom Hughes
4eb782b553
Add wrappers for a load of new 2.6.16 system calls. Fixes bug #123248 .
...
Also expands pathname arguments as strings in a lot more system call
trace messages and fixed the poll wrapper to not be x86 specific.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5785
2006-03-21 10:58:35 +00:00
Julian Seward
4246f1054a
Enable sys_fchdir on ppc32-linux.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5784
2006-03-21 02:23:27 +00:00
Tom Hughes
6331c1b82d
Make hard limit enforcement work for RLIMIT_DATA and RLIMIT_STACK in
...
the setrlimit system call wrapper.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5782
2006-03-20 15:36:28 +00:00
Dirk Mueller
f1a7bdd33f
various syscall wrappings needed for SUSE 10.1
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5669
2006-02-22 12:54:44 +00:00
Tom Hughes
391d10fdeb
Fix the tkill system call wrapper and enable it on x86 and amd64.
...
Fixes bug #121901 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5651
2006-02-15 10:34:50 +00:00
Julian Seward
ff75600128
A few more syscalls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5649
2006-02-14 21:48:42 +00:00
Julian Seward
7190322b0a
Ensure memory acquired from sys_brk() really is zeroed. Fixes #121893 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5647
2006-02-14 11:37:41 +00:00
Tom Hughes
3c2633355f
Implement the vm86 and vm86old system calls based on a patch
...
from Alper Akcan. Fixes bug #118939 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5635
2006-02-11 16:26:46 +00:00
Julian Seward
fb32c626b7
Enable enough syscalls to make self-hosting work on ppc64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5634
2006-02-11 14:35:17 +00:00