Commit Graph

4837 Commits

Author SHA1 Message Date
jmcneill e7968ac3c4 add libcompat.o/.po targets for COMPAT_AS=obj 2011-08-11 21:23:09 +00:00
jakllsch 88e3a4403f COMPAT_16 code only exists on amd64 in the presence of COMPAT_NETBSD32. 2011-08-08 23:44:06 +00:00
njoly 598b81ec2e Fix SYSCALL_DEBUG build. 2011-07-22 10:02:08 +00:00
christos 1360a27d17 fail early on socket domain+type combinations we don't support 2011-07-17 23:59:54 +00:00
joerg 3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +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
njoly 4127bcdacf Regen for pipe2. 2011-07-05 14:23:26 +00:00
njoly f85e6e86e8 Add pipe2 syscall now needed for popen(3). 2011-07-05 14:21:46 +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
christos e2bebf7172 * Arrange for interfaces that create new file descriptors to be able to
set close-on-exec on creation (http://udrepper.livejournal.com/20407.html).

    - Add F_DUPFD_CLOEXEC to fcntl(2).
    - Add MSG_CMSG_CLOEXEC to recvmsg(2) for unix file descriptor passing.
    - Add dup3(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
    - Add pipe2(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
    - Add flags SOCK_CLOEXEC, SOCK_NONBLOCK to the socket type parameter
      for socket(2) and socketpair(2).
    - Add new paccept(2) syscall that takes an additional sigset_t to alter
      the sigmask temporarily and a flags argument to set SOCK_CLOEXEC,
      SOCK_NONBLOCK.
    - Add new mode character 'e' to fopen(3) and popen(3) to open pipes
      and file descriptors for close on exec.
    - Add new kqueue1(2) syscall with a new flags argument to open the
      kqueue file descriptor with O_CLOEXEC, O_NONBLOCK.

* Fix the system calls that take socklen_t arguments to actually do so.

* Don't include userland header files (signal.h) from system header files
  (rump_syscallargs.h).

* Bump libc version for the new syscalls.
2011-06-26 16:42:39 +00:00
matt dcd3c68619 Adapt to change to PCU. 2011-06-09 13:41:40 +00:00
dsl 6e1d30d402 Use 'curlwp' here insteald of the 'l' - which isn't passsed as an arg
to the #define, but will always be curlwp.
2011-06-05 09:37:10 +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
joerg 165a8de9ef Give the body the same static inline treatment as the definition 2011-05-24 18:29:23 +00:00
joerg 4d037bbbc9 Update from GNU extension to C99 syntax for designated initializer 2011-05-23 21:34:47 +00:00
joerg 8e5ceb1134 Use __UNCONST to get rid of const 2011-05-23 21:34:01 +00:00
rmind 356c1e108a Replace simple_lock(9) with mutex(9), clean up. 2011-05-14 12:44:15 +00:00
matt cf77a76b75 Adapt to new PCU based FPU code. 2011-05-05 16:20:55 +00:00
rmind 8d15642306 Catch up with lim_privatise() change (missed in previous commit). 2011-05-01 02:08:15 +00:00
joerg 787e55aa29 Remove PECOFF/Win32 emulation. 2011-04-26 16:57:38 +00:00
joerg e958063324 Remove IRIX emulation 2011-04-26 16:36:40 +00:00
joerg 5aca2679d7 Remove Darwin, MACH and Mach-O support. 2011-04-26 15:51:22 +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
christos 632362bdbb implement pipe2 and dup3 2011-04-10 15:48:23 +00:00
christos 53dcc5263b Regen: XXX: produces errors because of rump changes! 2011-04-10 15:48:01 +00:00
christos bd81400360 add pipe2 and dup3 2011-04-10 15:47:21 +00:00
ahoka 7a9de7239e remove FLASH_GET_INFO compat as it is no longer using size_t 2011-04-04 18:24:56 +00:00
ahoka 3f1a2799ca flash_addr_t -> flash_off_t 2011-04-04 17:46:22 +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
bouyer d9210c2405 Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)
2011-03-24 17:05:39 +00:00
cliff 8c2354cc52 include flashio.h 2011-03-19 13:47:43 +00:00
cliff 0d7e06e2aa compat/netbsd32 ioctl support for FLASH_GET_INFO 2011-03-19 04:07:35 +00:00
bouyer 6e3787a787 Regen: use COMPAT_50 quotactl, not the native one 2011-03-07 19:27:27 +00:00