he
7a30544200
When implementing "read directory", when there are too many empty entries
...
in a row, and we need to try to read the next block, and have passed a
non-NULL cookie pointer to VOP_READDIR, ensure that we free the cookie
buffer before re-doing VOP_READDIR, so that we don't leak memory.
This fix is similar to nfs_serv.c revisions 1.115 + 1.124.
This should fix the long-standing problem observed by e.g. using Linux-
emulated programs to take backup of servers, which is one of the problems
which were reported in PR#42661.
Thanks to pooka@ for the hints for traversing the VOP* layer.
2010-03-03 08:20:38 +00:00
mbalmer
93f06d875c
Remove extra semicolon.
2010-01-05 13:22:40 +00:00
njoly
9e96206789
Add missing semicolons after NETBSD32TOx_UAP macro calls.
2009-12-12 10:30:09 +00:00
njoly
5e38c900e9
Add SIOCGIFMTU support.
2009-12-10 17:07:26 +00:00
njoly
ed22c0665f
Do not give native requests to netbsd32_ioctl(), use the compat
...
netbsd32 equivalent instead.
2009-12-10 16:55:17 +00:00
matt
6a9e4e8eeb
Change u_long to vaddr_t/vsize_t in exec code where appropriate (mostly
...
involves setregs and vmcmds). Should result in no code differences.
2009-12-10 14:13:48 +00:00
njoly
4898628cc1
Regen for personality(2) update.
2009-11-24 10:44:41 +00:00
njoly
675b20da1b
Update personality(2) to match Linux definition where the argument is an
...
unsigned long.
2009-11-24 10:42:43 +00:00
rmind
eaddd78061
Use lwp_getpcb() in compat code, clean from struct user.
2009-11-23 00:46:06 +00:00
njoly
6afff4b463
Make linux32_msqid_ds l_msg_[src]time members use the right type,
...
linux32_time_t.
2009-11-20 11:54:08 +00:00
njoly
87483a8bda
Make compat linux/linux32 msgrcv_msgarg type member of type
...
long/netbsd32_long to match linux definition.
2009-11-18 15:19:24 +00:00
njoly
bde1dd1459
Make linux32 msgsnd/msgrcv use the netbsd32 syscalls instead of native
...
ones, to ensure that msgbuf mtype member will be of the right type.
2009-11-18 12:27:58 +00:00
njoly
f08f03b58d
Kill noisy debug printf.
2009-11-18 12:01:25 +00:00
joerg
5685d06220
Follow up commit to fix breakage that somehow passed by the compiler.
2009-11-16 13:32:40 +00:00
joerg
cbdff4a667
Add SYSVMSG support for linux32.
2009-11-16 08:49:32 +00:00
joerg
e7123f329a
Return the result of copyout. Reminded by Niolas Joly.
2009-11-13 22:39:35 +00:00
joerg
8277e92195
Provide SIOCGIFNAME.
2009-11-13 21:45:03 +00:00
rmind
1283950019
- selcommon/pollcommon: drop redundant l argument.
...
- Use cached curlwp->l_fd, instead of p->p_fd.
- Inline selscan/pollscan.
2009-11-11 09:48:50 +00:00
rmind
4c1098f541
do_sys_wait(): fix previous by checking for ru != NULL. Noticed by
...
Onno van der Linden. Also, remove redundant arguments (seems that
was_zombie was not used since rev 1.177 ?).
2009-11-04 21:23:02 +00:00
rmind
554a0142dc
Initialise struct emul members by name (it is readable now and one can search
...
them in the tree).
2009-10-25 01:14:03 +00:00
christos
fc0d883cc1
add the video ioctls so that the 32 bit skype works with video
...
more commits to come
2009-08-18 02:02:58 +00:00
njoly
3d5d2c8f61
Make compat linux/linux32 getdents(2) fail with ENOTDIR instead of
...
EINVAL when file descriptor does not refer to a directory.
2009-07-22 15:49:29 +00:00
njoly
7d645a3ea4
Kill unreachable return statement.
2009-07-21 18:50:43 +00:00
njoly
add168f4d8
Fix defines against multiple inclusion protection (s/I386/AMD64).
2009-06-08 14:42:10 +00:00
njoly
e1a778e452
Regen for rt_queueinfo addition.
2009-06-08 13:41:17 +00:00
njoly
9c8407cd8f
Add rt_queueinfo(2) support.
2009-06-08 13:34:23 +00:00
njoly
b0b09eac89
Regen for fstatfs.
2009-06-05 16:46:52 +00:00
njoly
ca080002aa
Add fstatfs syscall.
2009-06-05 16:45:33 +00:00
njoly
4c8893bb2f
Regen for stat/lstat/fstat syscalls.
2009-06-04 18:01:02 +00:00
njoly
33fdfb68ef
Add stat/lstat/fstat syscalls.
2009-06-04 17:59:30 +00:00
njoly
ad76703a87
Cleanup (no functional changes).
...
Kill some unneeded variables and return stattement.
Rename linux32_from_stat() to better bsd_to_linux32_stat64().
Fix some types.
2009-06-03 15:13:26 +00:00
njoly
5a5f8e093f
Fix inverted lst_ino/__lst_ino assignment in linux32_from_stat().
2009-06-03 14:17:18 +00:00
njoly
49c8536f1f
Regen for siggetmask/sigsetmask.
2009-06-02 16:55:16 +00:00
njoly
9a0f18cccc
Add siggetmask/sigsetmask syscalls.
2009-06-02 16:54:39 +00:00
njoly
7c47c56d95
Make nice(2) return EPERM on error, not EACCES (from sys_setpriority).
2009-06-02 13:00:23 +00:00
njoly
d22e6f64ab
Add native to linux siginfo si_status translation, used on i386 and
...
amd64.
2009-05-29 14:19:12 +00:00
njoly
692b478fd5
Add IPC_64 support to all semctl(2) commands, following corresponding
...
compat linux change.
2009-04-27 13:24:18 +00:00
christos
2b1b4bc6ef
Move the internal poll/select related API's to use timespec instead
...
of timeval (rides the uvm bump).
2009-03-29 19:21:19 +00:00
cegger
c363a9cb62
bzero -> memset
2009-03-18 16:00:08 +00:00
cegger
9fca5da616
ansify function definitions
2009-03-15 15:55:51 +00:00
dsl
82357f6d42
ANSIfy another 1261 function definitions.
...
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
njoly
65488d267e
Add IPC_64 support for all shmctl(2) commands, and reduce diffs with
...
compat linux version.
2009-02-18 14:40:14 +00:00
njoly
bc0bccb487
Regen for mincore(2).
2009-01-30 13:57:39 +00:00
njoly
8bbb521068
Add mincore syscall.
2009-01-30 13:55:51 +00:00
christos
5bd9ba9f86
add some debugging.
2009-01-20 20:47:33 +00:00
njoly
8ed9e9eb51
Regen for personality(2) addition.
2009-01-20 12:02:09 +00:00
njoly
b22c955a54
Add basic support for linux32 personality(2) syscall.
2009-01-20 12:00:58 +00:00
njoly
77237e1c08
Regen for wait4 update.
2009-01-17 22:34:02 +00:00
njoly
25a76c08aa
Convert linux/linux32 wait(4) to use a compat50 rusage structure.
2009-01-17 22:28:52 +00:00
njoly
8ff5603c09
Regen for compat 50 update.
2009-01-16 13:12:35 +00:00