Commit Graph

28 Commits

Author SHA1 Message Date
pooka a207070c4b Include non-portable <sys/idtype.h> inside RUMP_CLIENT protection. 2016-05-06 10:17:34 +00:00
christos 1d741a3ba3 rump needs <sys/idtype.h> 2016-04-03 01:22:18 +00:00
pgoyette 217b023ed5 Rename "autoloadprefix" variable to "emulname" - suggested by christos@ 2015-12-01 00:58:29 +00:00
pgoyette 0513b92c02 Make the list of syscalls which can trigger a module autoload an
attribute of each emulation, rather than having a single global
list which applies only to the default emulation.

This changes 'struct emul' so

        Welcome to 7.99.23 !
2015-11-30 22:47:19 +00:00
pooka e037806b6d <sys/mount.h> is necessary only with !RUMP_CLIENT, so include it only
in that case.  Fixes build for Hurd (which does not provide <sys/mount.h>)

from rmh@gnu.org
2015-08-24 16:05:46 +00:00
pgoyette 718c347b7c Add new configuration variable to point at the list of auto-loadable
syscalls
2015-05-09 05:57:18 +00:00
christos 7678e81703 Adjust for systrace based on the FreeBSD code:
- create new file systrace_args.c that use used to convert the syscall
  arguments to an array, and functions that print the types of the
  entry and return arguments.
- call the systrace probe from the trace_enter and trace_exit functions
2015-03-07 16:38:07 +00:00
apb f498235332 Add COMPAT_70 to conf/files; add compat_70 to kern/syscalls.conf
and compat/netbsd32/syscalls.conf.
2014-08-16 17:24:28 +00:00
pooka 94ebf9ba52 Eliminate weak symbols from rump kernel syscall handlers, part 2:
Generate a file (rump.sysmap) which can be used to autogenerate the
syscall loaders.  The file contains syscall handler names and numbers.

Also store "libc" side syscall names in rump.sysmap to help with
the rumprun build process.
2014-04-27 14:50:23 +00:00
pooka 3c09f0a002 Forgot this one from previous commit. It too is needed for syscallargs.h
on rumpclient on !NetBSD.
2012-08-03 12:41:13 +00:00
matt e541fdb425 Add compat_60 2012-02-19 17:00:57 +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
pooka 8aa52577fe Make syscallargs.h include <sys/sched.h> for cpuset_t typedef for
the benefit of ports where it does not get typedef'd via autoinclusion
of other headers.

problem pointed out & fix proposed by Izumi Tsutsui
2011-01-18 17:33:05 +00:00
pooka e867c34ab2 Make is possible to add extra output at the top of syscallargs.h.
Use this feature to stick sys/mount.h in there.
2010-03-02 19:33:12 +00:00
pooka cc4373b56d Use rump/include/rump as the rump_syscalls.h directory. 2008-11-17 08:46:42 +00:00
christos 4897e6c085 bring some stuff from time_t=64...
- add sysalign parameter to syscalls.conf
- add compat_50
2008-03-22 15:11:01 +00:00
pooka 5354d1092b Add locations for rump_syscalls.[hc] files 2008-03-11 22:51:51 +00:00
dsl 1490d3327f Version mount(2) so that the length of the 'data' buffer is passed into
the kernel.
2007-07-14 15:41:30 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
christos 50f8955b6e 64 bit inode changes. 2005-08-19 02:04:03 +00:00
christos 6bd1d6d4db Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
christos 883b4b0369 we don't need sigreturn and sigcode glue if we are not compat_16 anymore. 2003-09-10 16:43:34 +00:00
mycroft e2743f72a9 Round up the sysent table size. 2000-12-09 06:15:42 +00:00
thorpej 0174ee34d0 Add COMPAT_14. 1999-08-25 04:55:53 +00:00
kleink 96dd101e9b Add compat_13. 1997-11-25 19:02:50 +00:00
mrg 5abbf990f3 Change reboot(2) to take two arguments: bootopt like normal and also
a boot string for firmware that can do this, such as the SPARC and
the sun3 models.  It is currently silently ignored on all other
hardware now, however.  The MD function "boot()" has been changed to
also take a char *.
1996-08-09 10:30:23 +00:00
cgd aa9eacdd59 new RCS ID format. 1994-10-26 06:39:02 +00:00
cgd 6b86130410 update for new syscall args description mechanism 1994-10-20 04:22:35 +00:00