balrog
436d124b7d
Band-aid vfork() emulation (Kirill Shutemov).
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5279 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-21 02:39:45 +00:00
balrog
872ea0c098
Enable same-arch consistency check on x86-64, print syscall name on error.
...
Also disable testing instructions unsupported by 64-bit binutils in
test-i386.c
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5277 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-21 02:31:19 +00:00
blueswir1
b55266b5a2
Suppress gcc 4.x -Wpointer-sign (included in -Wall) warnings
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5275 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-20 08:07:15 +00:00
balrog
a4ae00bc07
Fix pread() and pwrite() syscall on ARM EABI (Kirill Shutemov).
...
pread() and pwrite() have differences in arguments between ARM EABI and
OABI.
See arch/arm/kernel/entry-common.S in Linux kernel source for
additional information.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5272 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-20 03:14:14 +00:00
balrog
8fbd6b5267
Add MTIOCTOP, MTIOCGET and MTIOCPOS ioctls (Kirill Shutemov).
...
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5271 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-20 03:03:09 +00:00
balrog
8d5c28ec85
Fix building with 2.6.27 kernel headers (Kirill Shutemov).
...
<linux/dirent.h> unexported since 2.6.27
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5270 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-20 02:29:38 +00:00
balrog
ac8a655648
Implement the futimesat() syscall (by Kirill Shutemov).
...
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5269 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-20 02:25:39 +00:00
balrog
6a24a778ba
Implement fstatat64() syscall (by Kirill Shutemov).
...
Move the transformation of struct stat64 into a separate function and
implement fstatat64() using it.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5268 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-20 02:23:36 +00:00
balrog
a2155fcc65
Swap only altered elements of the grouplist in getgroups() (Kirill Shutemov).
...
getgroups() returns the number of supplementary group IDs, so it's
unnessary to swap the entire array. It can dramatically speed up
the syscall: on recent Linux kernels NGROUPS_MAX=65536.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5267 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-20 02:12:08 +00:00
balrog
cb3bc23361
Fix getgroups() with zero size parameter (Kirill Shutemov).
...
According to man page getgroups(2):
If size is zero, list is not modified, but the total number of
supplementary group IDs for the process is returned.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5266 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-20 02:08:13 +00:00
aurel32
0b6d3ae072
qemu sh4 nptl support
...
(Michael Trimarchi)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5223 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-15 07:43:43 +00:00
blueswir1
79383c9c08
Fix some warnings that would be generated by gcc -Wredundant-decls
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5115 c046a42c-6fe2-441c-8c8c-71466251a162
2008-08-30 09:51:20 +00:00
blueswir1
4583f5897b
To make syscall.c for 64 bit truly warning-free, we need some more #ifs.
...
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5080 c046a42c-6fe2-441c-8c8c-71466251a162
2008-08-24 10:35:55 +00:00
blueswir1
8fcd36920e
Fix some warnings that would be generated by gcc -Wmissing-prototypes
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5022 c046a42c-6fe2-441c-8c8c-71466251a162
2008-08-17 20:26:25 +00:00
balrog
526ccb7a26
Fix a bunch of type mismatch-related warnings (Jan Kiszka).
...
Fix a typo in my previous comming (spotted by Laurent Desnouges).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4877 c046a42c-6fe2-441c-8c8c-71466251a162
2008-07-16 12:13:52 +00:00
ths
b5dc7732e1
More efficient target register / TC accesses.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4794 c046a42c-6fe2-441c-8c8c-71466251a162
2008-06-27 10:02:35 +00:00
ths
af325d36e0
Fix typo, by Laurent Desnogues.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4726 c046a42c-6fe2-441c-8c8c-71466251a162
2008-06-10 15:29:15 +00:00
pbrook
c3a928338e
Use qemu_mallocz to allocate new thread state. Remove redundant memset.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4712 c046a42c-6fe2-441c-8c8c-71466251a162
2008-06-09 14:02:50 +00:00
pbrook
82e671d9ec
Despite what the documentation says/implies, PTHREAD_STACK_MIN is often not
...
defined by pthread.h.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4709 c046a42c-6fe2-441c-8c8c-71466251a162
2008-06-09 12:10:22 +00:00
pbrook
d865bab552
Implement thread creation.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4693 c046a42c-6fe2-441c-8c8c-71466251a162
2008-06-07 22:12:17 +00:00
pbrook
30813cea9b
Fix location of futex.h.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4653 c046a42c-6fe2-441c-8c8c-71466251a162
2008-06-02 15:45:44 +00:00
pbrook
624f797905
Make signal queues per thread.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4635 c046a42c-6fe2-441c-8c8c-71466251a162
2008-05-31 16:11:38 +00:00
pbrook
e1e3f30b02
Fix structure type in sigtimedwait syscall.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4630 c046a42c-6fe2-441c-8c8c-71466251a162
2008-05-30 21:53:38 +00:00
pbrook
da94d26390
Handle NULL argp/envp in execve syscall.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4627 c046a42c-6fe2-441c-8c8c-71466251a162
2008-05-30 18:24:00 +00:00
pbrook
f0cbb61333
Implement waitid syscall.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4626 c046a42c-6fe2-441c-8c8c-71466251a162
2008-05-30 18:20:05 +00:00
pbrook
4cb05961c2
Perform target->host signal mapping for *kill syscalls.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4625 c046a42c-6fe2-441c-8c8c-71466251a162
2008-05-30 18:05:19 +00:00
pbrook
6e68e076e7
Move clone() register setup to target specific code. Handle fork-like clone.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4623 c046a42c-6fe2-441c-8c8c-71466251a162
2008-05-30 17:22:15 +00:00
pbrook
bd0c5661bf
NPTL host detection and futex syscall passthrough.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4616 c046a42c-6fe2-441c-8c8c-71466251a162
2008-05-29 14:34:11 +00:00
pbrook
63d7651b76
Implement clock_nanosleep.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4613 c046a42c-6fe2-441c-8c8c-71466251a162
2008-05-29 13:43:29 +00:00
pbrook
d7e4036e31
Fix build failure with old kernel headers (loop.h is incompatible with
...
glibc headers).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4543 c046a42c-6fe2-441c-8c8c-71466251a162
2008-05-23 16:06:43 +00:00
bellard
b255bfa816
added missing return (Mike Frysinger)
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4419 c046a42c-6fe2-441c-8c8c-71466251a162
2008-05-10 21:51:02 +00:00
pbrook
a745ec6d91
Update ARM rt_frame layout.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4365 c046a42c-6fe2-441c-8c8c-71466251a162
2008-05-06 15:36:17 +00:00
balrog
b80059146a
Add loop device ioctls (Gary Thomas).
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4257 c046a42c-6fe2-441c-8c8c-71466251a162
2008-04-26 14:44:49 +00:00
balrog
7ab240ad4b
Teach mmap to not overwrite reserved pages and fix brk return value (Richard Purdie).
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4255 c046a42c-6fe2-441c-8c8c-71466251a162
2008-04-26 12:17:34 +00:00
aurel32
f2c7ba159b
add pread64 and pwrite64 system calls
...
(Gary Thomas)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4126 c046a42c-6fe2-441c-8c8c-71466251a162
2008-03-28 22:32:06 +00:00
pbrook
bb7ec0437a
m68k mmap2 fixes.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4106 c046a42c-6fe2-441c-8c8c-71466251a162
2008-03-25 22:28:25 +00:00
aurel32
b5eff35546
Revert fix for CVE-2008-0928. Will be fixed in a different way later.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4041 c046a42c-6fe2-441c-8c8c-71466251a162
2008-03-11 23:30:22 +00:00
ths
d0dc7dc327
Make MIPS MT implementation more cache friendly.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3981 c046a42c-6fe2-441c-8c8c-71466251a162
2008-02-12 21:01:26 +00:00
balrog
7bedce8d85
Don't error out on zero-length chunks in writev, as to mimic Linux (Kirill A. Shutemov).
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3970 c046a42c-6fe2-441c-8c8c-71466251a162
2008-02-10 13:28:08 +00:00
bellard
41df841110
lock_iovec() fix
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3967 c046a42c-6fe2-441c-8c8c-71466251a162
2008-02-04 22:26:57 +00:00
ths
6fa13c170c
Correct errno return for setsockopt(), by Thayne Harbaugh.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3839 c046a42c-6fe2-441c-8c8c-71466251a162
2007-12-18 02:41:04 +00:00
ths
c02f499e10
Correct errno return for getsockopt(), by Thayne Harbaugh.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3838 c046a42c-6fe2-441c-8c8c-71466251a162
2007-12-18 02:39:59 +00:00
balrog
b7d35e6583
sh_serial: enable tx after reset (Magnus Damm).
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3811 c046a42c-6fe2-441c-8c8c-71466251a162
2007-12-12 00:40:24 +00:00
balrog
ed494d87f7
Add missing break just before execve, by Takashi Yoshii.
...
Fix a comment typo.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3810 c046a42c-6fe2-441c-8c8c-71466251a162
2007-12-11 23:23:52 +00:00
ths
982f3ab679
Fix execve argc/envc counting, by Takashi Yoshii.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3788 c046a42c-6fe2-441c-8c8c-71466251a162
2007-12-09 23:12:55 +00:00
ths
788f5ec40d
copy_{to,from}_user_timeval() update, by Thayne Harbaugh.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3780 c046a42c-6fe2-441c-8c8c-71466251a162
2007-12-09 02:37:05 +00:00
ths
26edcf41db
copy_from_user_fdset() update, by Thayne Harbaugh.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3779 c046a42c-6fe2-441c-8c8c-71466251a162
2007-12-09 02:25:24 +00:00
ths
03aa197628
Fix for execve syscall, by Kirill A. Shutemov.
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3763 c046a42c-6fe2-441c-8c8c-71466251a162
2007-12-02 06:28:08 +00:00
bellard
2f6196984b
suppressed tgetx and tputx (initial patch by Thayne Harbaugh)
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3653 c046a42c-6fe2-441c-8c8c-71466251a162
2007-11-16 10:46:05 +00:00
bellard
d2fd1af767
x86_64 linux user emulation
...
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3646 c046a42c-6fe2-441c-8c8c-71466251a162
2007-11-14 18:08:56 +00:00