yamt
402cb9eb95
adapt to vfs_copyinfh -> vfs_copyinfh_alloc rename.
2006-07-16 07:52:02 +00:00
rillig
07e31b3af5
When debugging output is disabled, define DPRINTF() to a proper
...
statement expression instead of the empty string. Fixes a gcc warning in
ibcs2_ioctl.c.
2006-07-16 06:31:42 +00:00
martin
b9dade0e59
netbsd32_sys___fhstat30 and netbsd32_sys___fhstatvfs have nothing to do
...
with compat_30 - so use full/variable sized filehandles here too.
Fixes PR kern/34004.
2006-07-14 22:09:01 +00:00
christos
29b80779c5
make this compile again.
2006-07-14 20:06:57 +00:00
pavel
7173632277
sys_getfh -> compot_30_sys_getfh
2006-07-13 23:52:55 +00:00
pavel
336e41ffa7
regen (sys_getfh -> compat_30_sys_getfh)
2006-07-13 23:48:08 +00:00
pavel
50a6eaa646
use the COMPAT_30 getfh.
2006-07-13 23:47:17 +00:00
pavel
20d6f5666c
regen (sys_getfh -> compat_30_sys_getfh).
2006-07-13 23:45:54 +00:00
pavel
485f2e18be
use the COMPAT_30 getfh. And do it always - don't protect it by
...
#if defined(NFS) || defined(NFSSERVER).
2006-07-13 23:44:34 +00:00
pavel
b15a1164c7
regen
2006-07-13 23:40:55 +00:00
pavel
6ac5157e79
request the COMPAT_30 getfh in the master files. (Changes to the generated
...
ones would be lost.)
2006-07-13 23:38:57 +00:00
pavel
56194475a6
regen.
2006-07-13 23:23:52 +00:00
pavel
037b2fed75
do not protect the getfh syscall by
...
#if defined(NFS) || defined(NFSSERVER).
The native syscall also isn't.
2006-07-13 23:22:30 +00:00
martin
f8fef2f801
regen
2006-07-13 23:10:40 +00:00
yamt
9cb0d9a9d8
compat_30_sys_getfh: s/fhandle_t/struct compat_30_fhandle/ (fix overrun.)
2006-07-13 23:04:02 +00:00
pavel
65ace88efa
regenerate again to have correct source RCS Id
2006-07-13 22:35:06 +00:00
martin
b2fb3338d9
Adapt to getfh versioning
2006-07-13 21:31:31 +00:00
martin
9adca95023
COMPAT_SUNOS* uses COMPAT_30 getfh too
2006-07-13 17:39:47 +00:00
martin
508a062fec
Make freebsd_sys_getfh use compat_30_sys_getfh
2006-07-13 16:28:38 +00:00
martin
a3b5baed42
Fix alignement problems for fhandle_t, exposed by gcc4.1.
...
While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.
Discussed on tech-kern, with lots of help from yamt (thanks!).
2006-07-13 12:00:24 +00:00
christos
9dc3ec85f6
Fix gcc4 bogus initialization warnings from Arnaud Lacombe
2006-07-10 22:38:28 +00:00
manu
2e26811b6b
If the user process requests a non null timeout, make sure we do not turn
...
it into an infinite timeout because of a conversion
2006-07-09 18:51:28 +00:00
drochner
ad1ca09fb9
-fix for previous: don't malloc() with spinlock held
...
-wrap some long lines
2006-06-30 15:50:46 +00:00
he
68f1dc24e6
Convert from using the no-longer-existing sys_socket to using the
...
recently introduced compat_30_sys_socket.
2006-06-30 09:06:32 +00:00
pavel
60646c8d46
Regen after addition of sys___ntp_gettime30 and sys___socket30.
2006-06-29 06:02:42 +00:00
pavel
78789f2545
after sys_socket() versioning, add the new socket syscall.
2006-06-29 05:58:00 +00:00
pavel
43ffaf603b
Add the new ntp_gettime syscall to match native syscalls.master.
2006-06-29 05:54:18 +00:00
pavel
a78062784c
Use the new socket call for Linux and SVR4, because those systems (at
...
least Linux 2.4.31, Irix 6.5.20 and Solaris 10) use EAFNOSUPPORT.
Only the Linux emulation has been tested.
XXX somebody should audit the other emulations...
2006-06-27 09:09:40 +00:00
mrg
1b7ff51599
regenerate.
2006-06-26 21:30:50 +00:00
mrg
e2eb31d3a3
version the socket(2) syscall. for compat30 socket, we use
...
EPROTONOSUPPORT instead of EAFNOSUPPORT.
from pavel@ with a little bit of clean up from myself.
XXX: netbsd32 (and perhaps other emulations) should be able
XXX: to call the standard socket calls for this i think, but
XXX: revisit this at another time.
2006-06-26 21:23:56 +00:00
manu
0a52064ba3
Do not implement exit_group() the right way on platforms that do not
...
define LINUX_NPTL yet, that cause firefox-bin to fail.
2006-06-26 07:42:00 +00:00
manu
ce7e36a5a9
Regen
2006-06-25 16:16:52 +00:00
manu
b7432513dc
- Complete exit_group() implementation. We now maintain a list of Linux
...
threads in a processes and kill them properly. The code is a bit too
complicated, but I could not find a simplier way of dealing with it
- Change getpid() and getppid() semantics to match what Linux does,
and implement gettid(). In the Linux kernel, threads are implemnted
as plain old processes. A thread group is just a set of processes,
with the parent called leader. Thread ID, which are returned by gettid(),
are just the PID of the plain old processes, and getpid() returns the
PID of the thread group leader.
- Remove struct linux32_emuldata. COMPAT_LINUX32 uses a lot of COMPAT_LINUX
code, where a struct linux_emuldata is assumed. By having distinct emuldata
structure with different sizes and layouts, we caused kernel memory
corruptions.
- Fix setprioriry() and getpriority()
Thanks to Nicolas Joly for tracking down the problem and providing me the
hardware to fix them.
2006-06-25 16:15:39 +00:00
yamt
bf0859e932
netbsd32_sacopyout: don't leak kernel stack garbage to userland.
2006-06-25 08:11:06 +00:00
oki
aab3cbfbad
Added saemul_pecoff structure, and (hope) work again w/ pthread.
2006-06-20 14:11:56 +00:00
christos
e6ea8fe642
Don't allocate too much stuff on the stack
2006-06-20 03:21:30 +00:00
he
ab1ad64ac0
Make this file compile again by using the appropriate types, casts
...
and functions.
2006-06-14 14:18:44 +00:00
he
fe98fdf977
Regenerate after fixing the getpriority syscall definition.
2006-06-13 22:24:34 +00:00
he
e100449f69
We need the argument structure for the getpriority syscall defined, so
...
change NOARGS to STD.
2006-06-13 22:23:03 +00:00
christos
9d7289ea69
change 20 to NZERO; pointed out by mrg.
2006-06-13 16:54:56 +00:00
skd
99e52fdeb8
include kauth.h
...
workaround a gcc4 warning.
2006-06-13 16:23:57 +00:00
simonb
5e13eca2c0
tvtohz() compat function isn't needed now we have timecounters.
2006-06-13 03:58:12 +00:00
christos
430ad9c2a9
don't allocate > 1K on the stack.
2006-06-13 02:31:28 +00:00
christos
48432186cb
stack police: don't allocate statvfs on the stack.
2006-06-12 00:46:50 +00:00
christos
155721b1be
don't allocate a crapload of struct's on the stack. Use a couple of unions
...
and use malloc for them.
2006-06-12 00:42:18 +00:00
christos
3f0deeffa7
stack police: don't allocate PAGE_SIZE bytes on the stack.
2006-06-12 00:07:24 +00:00
christos
9cfe87267e
PR/33671: Nicolas Joly: Add a getpriority syscall to account for the fact
...
that the linux getpriority is off by 20.
2006-06-10 21:18:11 +00:00
christos
ee08f35b9a
regen
2006-06-10 21:16:49 +00:00
christos
c02c268f6b
linux getpriority is off-by-20 so use our own function.
...
From PR/33671: Nicolas Joly
2006-06-10 21:15:33 +00:00
christos
d5ba7564d8
stack police: don't allocate statvfs on the stack.
2006-06-09 23:24:24 +00:00