minix/etc
Ben Gras e8eeebcd47 vfs: mmap support
. libc: add vfs_mmap, a way for vfs to initiate mmap()s.
	  This is a good special case to have as vfs is a slightly
	  different client from regular user processes. It doesn't do it
	  for itself, and has the dev & inode info already so the callback
	  to VFS for the lookup isn't necessary. So it has different info
	  to have to give to VM.
	. libc: also add minix_mmap64() that accepts a 64-bit offset, even
	  though our off_t is still 32 bit now.
	. to support mmap, we need to create new references to FD's (such
	  as an FD) so that the mmapped object can never be removed even if
	  all FD's are closed. To do that we conceptually dup the
	  filedescriptor into a new range that is only visible to the system.
	  So there are FDS_PER_PROCESS fd's, which is more than OPEN_MAX,
	  per process, and user processes can still use up to OPEN_MAX
	  FD's. mmap()ped objects then get extra reference in the invisible
	  range so user processes can't close them. The in-vfs fd_set is
	  of size FDS_PER_PROCESS.
	. On exec() time, try to mmap() in the executable if available.
	  (It is not yet available in this commit.)
	. To support mmap(), add do_vm_call that allows VM to lookup
	  (to ino+dev), do i/o from and close FD's on behalf of other
	  processes.
	. To make this possible, a few functions have 2 more arguments
	  to make the target process explicit (instead of the implicit
	  global fp) and to specify whether the request is from a user
	  process or the system (which implies whether FD's starting at
	  OPEN_MAX are valid). These are close_fd, common_open, actual_llseek,
	  actual_read_write_peek, get_fd and get_filp2.

Change-Id: I831551e45a6781c74313c450eb9c967a68505932
2013-05-27 13:56:54 +00:00
..
ast Fix command line history in ash 2013-02-01 11:41:47 +01:00
defaults Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
devmand Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
fonts support for ukranian (charse koi8-u) contributed by Roman Ignatov. 2010-06-08 01:04:52 +00:00
mtree Fix symlink issue when generating an ARM image 2013-05-24 11:08:15 +02:00
usr kernel, ramdisk: some boot unification 2013-03-07 14:29:27 +00:00
boot.cfg.default update_bootcfg(8): various improvements 2012-10-16 10:34:58 +02:00
crontab version /usr/lib/crontab too 2007-04-02 16:18:46 +00:00
group Switch to NetBSD passwd format 2011-11-14 14:47:42 +00:00
hostname.file Made things a little more boot-cd friendly (specifically readonly /usr). 2005-05-03 08:56:01 +00:00
inet.conf Initial revision 2005-04-21 14:53:53 +00:00
Makefile etcfiles: Improve the "install" message 2013-04-07 00:38:00 +02:00
man.conf use generic gcc* in man.conf 2011-10-06 19:00:16 +00:00
master.passwd Change the group of ast to users instead of others 2013-03-14 11:32:09 +01:00
mk.conf mk.conf: workaround for pkgin sourcing it 2013-05-16 11:13:00 +00:00
motd pkgin_all: script to auto-install all packages 2013-02-14 22:58:29 +00:00
newfstab.sh mainstream-format fstab format 2011-11-14 14:47:28 +00:00
profile profile: don't set $MANPATH explicitly as it's already in man.conf. 2010-07-22 08:26:49 +00:00
protocols Initial revision 2005-04-21 14:53:53 +00:00
rc kernel, ramdisk: some boot unification 2013-03-07 14:29:27 +00:00
rc.cd Don't do this here too 2006-04-05 11:27:25 +00:00
rc.conf change rc defaults reading 2011-11-23 15:36:51 +00:00
rc.daemons.dist libcompat_minix-centric cleanup 2012-03-16 17:06:24 +01:00
rc.subr Upgrading build system to new NetBSD revision 2012-11-15 16:07:29 +01:00
resolv.conf add /etc/resolv.conf pointing to minix nonamed 2011-07-26 18:03:04 +02:00
rs.inet INET: fix crash recovery script 2012-09-17 11:01:48 +00:00
rs.single Removed args debugging line 2007-02-16 15:58:05 +00:00
services postgresql services entry. 2009-09-02 13:23:22 +00:00
shells Importing bin/ksh 2013-03-14 11:33:10 +01:00
syslog.conf Remove revision IDs from files 2010-11-04 01:13:59 +00:00
system.conf vfs: mmap support 2013-05-27 13:56:54 +00:00
termcap Remove revision IDs from files 2010-11-04 01:13:59 +00:00
termcap.big Remove revision IDs from files 2010-11-04 01:13:59 +00:00
ttys prepare for netbsd libc/headers 2011-06-07 15:23:23 +00:00
utmp Initial revision 2005-04-21 14:53:53 +00:00