Commit Graph

1593 Commits

Author SHA1 Message Date
chs
cf43d4681a define LINUX_DEBUGLINK_SIGNATURE for i386 too.
this allows linux ldd to work.
2012-03-21 03:20:22 +00:00
bouyer
44cd46846c Do not read past end of array. Found by gcc -03 2012-03-15 16:17:48 +00:00
rjs
bbf374d1d6 Switch to ANSI style declaration. 2012-02-21 18:10:00 +00:00
rmind
ad12c77015 Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3!
Approved by core@.
2012-02-19 21:05:51 +00:00
matt
1d7f24ead8 Change old-style function defintions to C89 prototypes.
Approved by releng.
2012-02-12 16:34:06 +00:00
matt
2210079e9b Add a hook for freeing an ep_emul_arg. Add a wrapper routine
(exec_free_emul_arg) to call the hook and then clear the ep_emul_arg
and ep_emul_arg_free members in the exec_package.
Change users/accessors to use these routines.
Approved by releng.
2012-02-03 20:11:53 +00:00
joerg
e8bec33be1 Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.
2012-01-20 14:08:04 +00:00
christos
87d8a6fadb - Eliminate so_nbio and turn it into a bit SS_NBIO in so_state.
- Introduce MSG_NBIO so that we can turn non blocking i/o on a per call basis
- Use MSG_NBIO to fix the XXX: multi-threaded issues on the fifo sockets.
- Don't set SO_CANTRCVMORE, if we were interrupted (perhaps do it for all
  errors?).
2011-12-20 23:56:28 +00:00
njoly
63da447932 Adjust setup_linux_rt_sigframe/setup_linux_sigframe prototypes. 2011-11-21 22:00:42 +00:00
christos
fb060436c8 remove one more kassert 2011-11-18 17:36:06 +00:00
christos
d356aedea4 remove incorrect assertions (the len passed is the size of the bsd structure
not the linux one)
2011-11-18 15:45:47 +00:00
martin
590ed99f9d Provide linux_siginfo_t for all archs, to unbreak kdump build. 2011-11-18 09:17:09 +00:00
christos
f72d02ff70 - add sigtimedwait support.
- merge the siginfo population code.
2011-11-18 04:07:43 +00:00
christos
4a806ef735 add sigtimedwait 2011-11-18 04:03:50 +00:00
hannken
2cc7a01f10 Change the vnode locking protocol of VOP_GETATTR() to request at least
a shared lock.  Make all calls outside of file systems respect it.

The calls from file systems need review.

No objections from tech-kern.
2011-10-14 09:23:28 +00:00
chs
11c35aee5c linux_termio c_cc array should be indexed by LINUX_OLD_V* rather than LINUX_V*.
fixes array overrun on alpha noticed by gcc 4.5.
2011-09-25 13:40:07 +00:00
christos
747c11eab6 Can't use RUN_ONCE here to initialize the futex_lock, otherwise we cannot
unload the module.
2011-09-14 12:28:08 +00:00
njoly
e6b8e35e92 Make linux_sys_getdents64 fails with ENOTDIR instead of EINVAL, when fd
does not refer to a directory.
2011-09-01 12:44:10 +00:00
christos
c439220508 Better debugging. 2011-08-18 02:26:38 +00:00
christos
c2480dc377 sizeof type -> sizeof *var 2011-08-18 02:21:02 +00:00
christos
1360a27d17 fail early on socket domain+type combinations we don't support 2011-07-17 23:59:54 +00:00
christos
2284e7a4b7 revert accidental commit from unrelated change. no custom linux fork. 2011-07-09 23:46:32 +00:00
christos
6fd4657362 the first argument of {g,s}etitimer() is int not u_int. 2011-07-09 14:49:40 +00:00
mrg
97796e3e22 avoid array bounds violation on netbsd/mips when dealing with termio
structures.  (did linux/mips ever support termio?).

the effect of this is that termio linux apps won't have VEOF support.
i can't tell what it should be since that code isn't in linux going
back quite some years.
2011-07-04 12:39:36 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
matt
dcd3c68619 Adapt to change to PCU. 2011-06-09 13:41:40 +00:00
dsl
57cfea60ab Delete some splurious commas and very unexpected trailing space 2011-06-05 08:42:59 +00:00
njoly
9ff7ba5b5a Fix path for fadvise64 files. 2011-05-31 22:35:22 +00:00
njoly
9c8dbddec0 Regen for fadvise64_64 typo fix. 2011-05-31 21:39:00 +00:00
njoly
1cfc88e038 Small typo in fadvise64_64 args (advise -> advice). 2011-05-31 21:38:00 +00:00
njoly
7ee3c495f9 Add needed linux_fadvise64.c 2011-05-31 20:53:13 +00:00
alnsn
466d6e1aa9 Regenerate files to pick up correct RCS Ids. Suggested by Chris Badura. 2011-05-30 21:37:37 +00:00
alnsn
dab2e0b58e Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32. 2011-05-30 17:50:31 +00:00
alnsn
1ff2a8d080 Fix typo in a comment. 2011-05-28 23:24:58 +00:00
matt
cf77a76b75 Adapt to new PCU based FPU code. 2011-05-05 16:20:55 +00:00
he
bb979087ff Regenerate these files after adding pipe2() and dup3(). 2011-04-15 13:07:37 +00:00
he
0e4429dc30 Add dup3() and pipe2() for these archs as well. 2011-04-15 13:04:52 +00:00
he
d6f2b33ab3 Fix this so that it builds (missing "struct" keyword). 2011-04-14 11:17:47 +00:00
christos
caa78eadaf add the "special" pipe2. 2011-04-14 01:03:23 +00:00
christos
239691fffa move dup3 to a more appropriate place because pipe is "special". Gotta love
linux.
2011-04-14 00:59:06 +00:00
christos
c1bc70d6fb - implement dup3 and pipe2
- eliminate amd64 ifdef
2011-04-10 15:50:34 +00:00
christos
0d7e057e6b We have O_CLOEXEC now 2011-04-10 15:49:56 +00:00
christos
a5071c95ef Regen: Argh:
cat: rumphdr.types: No such file or directory
rm: rumphdr.types: No such file or directory
*** Error code 1
2011-04-10 15:49:23 +00:00
christos
dd9e944ede add pipe2 and dup3 2011-04-10 15:48:46 +00:00
plunky
1a7622f6a7 tidy up include pathname to exclude undefined behaviour
"If the characters ', \, ", //, or /* occur in the sequence between
  the < and > delimiters, the behavior is undefined."
2011-03-29 20:10:31 +00:00
joerg
48717cfc00 Refactor ps_strings access. Based on PK_32, write either the normal
version or the 32bit compat layout in execve1. Introduce a new function
copyin_psstrings for reading it back from userland and converting it to
the native layout. Refactor procfs to share most of the code with the
kern.proc_args sysctl handler.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
2011-03-04 22:25:24 +00:00
matt
aa306c700f Deal with differences in signal delivery between o32/n32/n64. 2011-02-20 08:14:10 +00:00
matt
6a385f43c2 Regen. 2011-02-20 08:13:29 +00:00
matt
6ab83fddf5 Change some ints to longs (for LP64). 2011-02-20 08:09:46 +00:00
he
68cb75d86c save_fpu_lwp() was renamed to fpu_save_lwp(), so follow suit. 2011-01-20 11:59:24 +00:00