Commit Graph

1585 Commits

Author SHA1 Message Date
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
matt
773e544e8c Deal with changes in the trapframe. 2011-01-18 01:13:03 +00:00
rmind
7146b2f61d Retire struct user, remove sys/user.h inclusions. Note sys/user.h header
as obsolete.  Remove USER_TO_UAREA/UAREA_TO_USER macros.

Various #include fixes and review by matt@.
2011-01-14 02:06:22 +00:00
dholland
8f6ed30d57 Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.

Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).

The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.
2010-11-19 06:44:33 +00:00
chs
6842940109 personality() now interprets its parameter as having
the base personality type in the low byte and
various flags in the upper bytes.  for now just mask off
the flags to make sure the base type is one we accept.
store the current personality in the emuldata so that
we can return the expected value for PER_QUERY.
2010-11-02 18:18:07 +00:00
chs
fc7a196102 implement the following syscalls for linux32:
truncate64
  ftruncate64
  profil
  ioperm
  iopl
  setdomainname
  modify_ldt
  statfs64
  fstatfs64

note that iopl(), ioperm() and modify_ldt() just call
the respective 64-bit handlers, which don't do anything yet.
2010-11-02 18:14:05 +00:00
chs
3c3115da20 update linux_sys_socket() to understand the flags that are now
included in the "type" parameter.  in linux_sys_sendmsg(),
if we see an SCM_CREDENTIALS control message, just drop it
instead of giving an error.  the linux and native versions of
the cred-passing operation are very different and some apps
(eg. linux pulseaudio library talking to a native server)
will work without the control data.
2010-11-02 18:02:59 +00:00
chs
069ef5a4d0 define LINUX_O_CLOEXEC.
sort definitions by value.
consistently use hex instead of octal for the values.
2010-11-02 18:01:25 +00:00
chs
38b9dc3505 implement O_DIRECTORY as standardized in POSIX-2008,
for both native and linux emulations.
this fixes the rest of PR 43695.
2010-09-21 19:26:18 +00:00