Home | History | Annotate | only in /src/share/examples
History log of /src/share/examples
RevisionDateAuthorComments
 1.25 30-Mar-2024  thorpej Descend into share/examples/devpubd/hooks
 1.24 15-Oct-2019  christos remove sup examples
 1.23 23-Sep-2018  maxv Remove the userland part of ISDN. The kernel part is untouched for now.
ipppctl was actually an exact copy of pppoectl; there is no functional
change in pppoectl in this commit.
 1.22 23-Jan-2014  spz branches: 1.22.24; 1.22.26;
- make etc/rc.d/wpa_supplicant create directory /var/run/wpa_supplicant
on startup
- create share/examples/wpa_supplicant/wpa_supplicant.conf and make it
known in the relevant places. Improvements welcome, my point was
ctrl_interface and "you seriously want this"
 1.21 22-Aug-2012  spz branches: 1.21.2;
actually install the new npf examples
add examples for a hash table file and a tree table file
add an ID string to host-npf.conf
 1.20 12-Nov-2011  jmmv branches: 1.20.2; 1.20.4;
Add assembly language examples in a new 'asm' subdirectory.

At the moment this only provides an example for a "Hello world" program
for powerpc. (Bear with me: this is my very first assembly program in
powerpc; if you find anything stupid in the code, please fix it!)
 1.19 15-Oct-2011  mbalmer branches: 1.19.2;
Install, and add to the set lists, example code to illustrate Lua module use.
 1.18 14-May-2009  ginsbach Add the getdate(3) function and getdate_err value, conforming to IEEE
Std 1003.1 (``POSIX.1'') and the Open Group Base Specifications X/Open
System Interfaces extension (``XSI'').
 1.17 19-Jan-2009  jmmv Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.
 1.16 25-Oct-2008  christos Add an example script to connect to Cingular's 3G service.
 1.15 12-Nov-2007  jmmv Add the ATF data files

This change adds example files shipped with ATF as well as other data files
required to support some of its features.
 1.14 16-Sep-2006  elad branches: 1.14.8;
Obsolete old fingerprint generation scripts.
 1.13 30-Apr-2006  rpaulo Add a hostapd.conf example based on the one distributed with hostapd.
 1.12 19-Feb-2005  thorpej Switch to ipsec-tools for libipsec, setkey, and racoon. From
Emmanuel Dreyfus, with some small changes by me.
 1.11 04-Mar-2003  jmmv Add a wsmoused sample configuration file.
 1.10 17-Dec-2002  jdolecek add example disktab file
 1.9 23-Nov-2002  blymn Added verified exec directory.
 1.8 04-May-2002  jdolecek Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.7 06-Jan-2001  martin Enable ISDN examples.
 1.6 18-Jul-2000  enami Go into the subdirectory syslogd.
 1.5 03-Jan-2000  hubertf branches: 1.5.4;
Install apm example script.
Fixes PR 9105 by Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
 1.4 06-Jun-1998  lukem install ftpd examples
 1.3 11-Dec-1997  hubertf Install amd examples too, closing PR 3219 by myself.
 1.2 13-Nov-1997  thorpej Move the svr4 and ultrix example files from "share/samples" to
"share/examples" (because that's what they are: examples) and install
them into $DESTDIR/usr/share/examples/emul/{svr4,ultrix}/etc.
 1.1 13-Nov-1997  thorpej branches: 1.1.2;
A Makefile for the examples tree; currently builds "supfiles".
 1.1.2.2 13-Nov-1997  thorpej Sync w/ trunk.
 1.1.2.1 13-Nov-1997  thorpej file Makefile was added on branch netbsd-1-3 on 1997-11-13 03:07:42 +0000
 1.5.4.1 26-Jul-2000  jhawk Pullup rev 1.6, requested by lukem, approved by jhawk:
Go into the subdirectory syslogd.
 1.14.8.1 09-Jan-2008  matt sync with HEAD
 1.19.2.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.19.2.2 30-Oct-2012  yamt sync with head
 1.19.2.1 17-Apr-2012  yamt sync with head
 1.20.4.1 01-Nov-2012  matt sync with netbsd-6-0-RELEASE.
 1.20.2.1 01-Oct-2012  riz Pull up following revision(s) (requested by rmind in ticket #584):
share/examples/npf/treetablefile: revision 1.1
share/examples/npf/Makefile: revision 1.1
distrib/sets/lists/base/mi: revision 1.1003
share/examples/npf/host-npf.conf: revision 1.2
share/examples/Makefile: revision 1.21
share/examples/npf/soho_gw-npf.conf: revision 1.1
etc/mtree/NetBSD.dist.base: revision 1.104
share/examples/npf/soho_gw-npf.conf: revision 1.2
share/examples/npf/hashtablefile: revision 1.1
the example from the man page, with a few extra comments
add id string, fix comments
actually install the new npf examples
add examples for a hash table file and a tree table file
add an ID string to host-npf.conf
 1.21.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.22.26.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.22.26.1 10-Jun-2019  christos Sync with HEAD
 1.22.24.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.8 12-Dec-2001  lukem Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
 1.7 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.6 20-Nov-2000  wiz Install adapted config file instead of old one.
 1.5 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.4 27-Sep-1998  lukem don't install in /usr/share if NOSHARE is defined
 1.3 21-Jun-1998  tron Use "/cd" not "/mnt" for CD ROM drive(s), install file "cd", no need to
strip "master" any more.
 1.2 12-Dec-1997  hubertf Fix leftovers from last commit.
 1.1 11-Dec-1997  hubertf branches: 1.1.1;
Initial revision
 1.1.1.1 11-Dec-1997  hubertf Import of some example files for amd
 1.2 23-Aug-2005  rpaulo Added map_type = file to the global configuration. Else, we would get warnings
on amd boot saying the file wasn't executable.
 1.1 20-Nov-2000  wiz branches: 1.1.8;
Adapt config file example to am-utils-6.0.4.
 1.1.8.1 28-Aug-2005  tron Pull up following revision(s) (requested by rpaulo in ticket #713):
share/examples/amd/amd.conf: revision 1.2
Added map_type = file to the global configuration. Else, we would get warnings
on amd boot saying the file wasn't executable.
 1.3 11-Aug-2000  soda s/nodevs/nodev/ for mount option.
 1.2 25-Jan-2000  hubertf branches: 1.2.4;
add note on how to umount (as user), using amq.
Hint taken from a posting on tech-kern by
Wolfgang Rupprecht <wolfgang@wsrcc.com>
 1.1 21-Jun-1998  tron Use "/cd" not "/mnt" for CD ROM drive(s), install file "cd", no need to
strip "master" any more.
 1.2.4.1 11-Aug-2000  soda Pull up to netbsd-1-5 branch
Approved by: thorpej

s/nodevs/nodev/ for mount option.

Revision pulled up:
> cvs rdiff -r1.2 -r1.3 sharesrc/share/examples/amd/cd
 1.6 20-Nov-2000  wiz Adapt config file example to am-utils-6.0.4.
 1.5 11-Aug-2000  soda fix thinko of revision 1.4.
the change seemed to intend "/net" and "/cd", rather than "/mnt" and "/cd".
 1.4 21-Jun-1998  tron branches: 1.4.10;
Use "/cd" not "/mnt" for CD ROM drive(s), install file "cd", no need to
strip "master" any more.
 1.3 17-Jun-1998  tron Add example how to automount a local CD ROM.
 1.2 26-Jan-1998  hubertf Add a warning on how to use this file
 1.1 11-Dec-1997  hubertf branches: 1.1.1;
Initial revision
 1.1.1.1 11-Dec-1997  hubertf Import of some example files for amd
 1.4.10.1 11-Aug-2000  soda Pull up to netbsd-1-5 branch
Approved by: thorpej

fix thinko of revision 1.4.
the change seemed to intend "/net" and "/cd", rather than "/mnt" and "/cd".

Revision pulled up:
> cvs rdiff -r1.4 -r1.5 sharesrc/share/examples/amd/master
 1.2 21-Jun-1998  tron Use "/cd" not "/mnt" for CD ROM drive(s), install file "cd", no need to
strip "master" any more.
 1.1 17-Jun-1998  tron Add example how to automount a local CD ROM.
 1.2 12-Dec-1997  hubertf Some enhancements and security fixes submitted by
Noriyuki Soda <soda@sra.co.jp>.
 1.1 11-Dec-1997  hubertf branches: 1.1.1;
Initial revision
 1.1.1.1 11-Dec-1997  hubertf Import of some example files for amd
 1.3 12-Dec-2001  lukem Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
 1.2 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.1 03-Jan-2000  hubertf Install apm example script.
Fixes PR 9105 by Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
 1.7 02-Nov-2021  abs Adjust example path to kde/sounds

Wherever sounds may be on a current NetBSD system, /usr/X11R6 is
unlikely to be in that set...
 1.6 13-Jul-2018  maya dhclient->dhcpcd
 1.5 10-Mar-2003  david branches: 1.5.94; 1.5.96;
Note that the /etc/apm/* scripts must be executable.
 1.4 05-Nov-2000  lukem - only audioplay if the audio file exists
- replace logger with $LOGGER, which is defined to `logger -t apm'
- use 'mount -u ... -A -t ffs' instead of 'mount -u ... -a', since the
latter won't work on already mounted file systems except for `/'.
 1.3 18-Jun-2000  hubertf branches: 1.3.2;
* Add some cut&paste ready commands for installing this
* Move audioplay to a shell function, to have one location where to
change the noise-making
* use /etc/rc.d/dhclient instead of doing it manually
* when going line->battery and vice versa, adjust idle timeouts of
harddisk (atactl), and add noatime,nodevmtime mount options.
Inspired by htdocs/Documentation/power-mgmt/
 1.2 01-Jun-2000  gmcgarry pcmplay -> audioplay
 1.1 29-Dec-1999  hubertf branches: 1.1.2;
Add share/examples/apm/script, an example script to put into
/etc/apm/{line,battery,standby,...}
 1.1.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.3.2.1 06-May-2001  he Pull up revision 1.4 (requested by hubertf):
Fix some errors, and provide more flexible logging.
 1.5.96.1 10-Jun-2019  christos Sync with HEAD
 1.5.94.1 28-Jul-2018  pgoyette Sync with HEAD
 1.1 12-Nov-2011  jmmv branches: 1.1.4;
Add assembly language examples in a new 'asm' subdirectory.

At the moment this only provides an example for a "Hello world" program
for powerpc. (Bear with me: this is my very first assembly program in
powerpc; if you find anything stupid in the code, please fix it!)
 1.1.4.2 17-Apr-2012  yamt sync with head
 1.1.4.1 12-Nov-2011  yamt file Makefile was added on branch yamt-pagecache on 2012-04-17 00:05:44 +0000
 1.1 12-Nov-2011  jmmv branches: 1.1.4;
Add assembly language examples in a new 'asm' subdirectory.

At the moment this only provides an example for a "Hello world" program
for powerpc. (Bear with me: this is my very first assembly program in
powerpc; if you find anything stupid in the code, please fix it!)
 1.1.4.2 17-Apr-2012  yamt sync with head
 1.1.4.1 12-Nov-2011  yamt file Makefile.inc.inst was added on branch yamt-pagecache on 2012-04-17 00:05:44 +0000
 1.2 27-Nov-2011  skrll branches: 1.2.4;
Typo
 1.1 12-Nov-2011  jmmv Add assembly language examples in a new 'asm' subdirectory.

At the moment this only provides an example for a "Hello world" program
for powerpc. (Bear with me: this is my very first assembly program in
powerpc; if you find anything stupid in the code, please fix it!)
 1.2.4.2 17-Apr-2012  yamt sync with head
 1.2.4.1 27-Nov-2011  yamt file README was added on branch yamt-pagecache on 2012-04-17 00:05:44 +0000
 1.2 14-Oct-2022  ryo add more examples
 1.1 12-Nov-2011  jmmv branches: 1.1.4;
Add assembly language examples in a new 'asm' subdirectory.

At the moment this only provides an example for a "Hello world" program
for powerpc. (Bear with me: this is my very first assembly program in
powerpc; if you find anything stupid in the code, please fix it!)
 1.1.4.2 17-Apr-2012  yamt sync with head
 1.1.4.1 12-Nov-2011  yamt file Makefile was added on branch yamt-pagecache on 2012-04-17 00:05:44 +0000
 1.3 07-Mar-2023  martin This example is plain asm code, running ctf tools on it is not usefull
 1.2 14-Oct-2022  ryo - Since the example is for a cpu, use MACHINE_CPU instead of MACHINE_ARCH.
- In some cpu, it is necessary to use GOT to make it a PIE,
which are too complicated as examples, so MKPIE=no by default.
 1.1 12-Nov-2011  jmmv branches: 1.1.4;
Add assembly language examples in a new 'asm' subdirectory.

At the moment this only provides an example for a "Hello world" program
for powerpc. (Bear with me: this is my very first assembly program in
powerpc; if you find anything stupid in the code, please fix it!)
 1.1.4.2 17-Apr-2012  yamt sync with head
 1.1.4.1 12-Nov-2011  yamt file Makefile.inst was added on branch yamt-pagecache on 2012-04-17 00:05:44 +0000
 1.1 14-Oct-2022  ryo add more examples
 1.1 14-Oct-2022  ryo add more examples
 1.1 14-Oct-2022  ryo add more examples
 1.1 12-Nov-2011  jmmv branches: 1.1.4;
Add assembly language examples in a new 'asm' subdirectory.

At the moment this only provides an example for a "Hello world" program
for powerpc. (Bear with me: this is my very first assembly program in
powerpc; if you find anything stupid in the code, please fix it!)
 1.1.4.2 17-Apr-2012  yamt sync with head
 1.1.4.1 12-Nov-2011  yamt file powerpc.s was added on branch yamt-pagecache on 2012-04-17 00:05:44 +0000
 1.1 14-Oct-2022  ryo add more examples
 1.1 14-Oct-2022  ryo add more examples
 1.1 30-Mar-2024  thorpej Descend into share/examples/devpubd/hooks
 1.1 30-Mar-2024  thorpej Add an example devpubd hook that makes stable path names, using symlinks,
for USB serial interfaces, regardless of where the interface is connected
or the order of enumeration. This requires the USB device to have a
"serialnumber" to function. Examples:

- uftdi serial adapter with two ports:

/dev/tty-uftdi-FT64S4YP-1 -> /dev/ttyU0
/dev/tty-uftdi-FT64S4YP-2 -> /dev/ttyU1

- uslsa serial adapter:

/dev/tty-uslsa-01E7ABCC -> /dev/ttyU4

This allows something like the following in /etc/remote:

sun3:dv=/dev/tty-uftdi-FT64S4YP-1:br#9600:pa=none:dc:

That path will always be stable regardless of which /dev/ttyU* node is
actually assigned when the serial adapter is plugged in.
 1.2 05-Sep-2025  thorpej Update for newer "minipro" programmers:
- T48 / T56 use the same USB VID/PID as the TL866II+.
- Add the T76 USB VID/PID.
 1.1 30-Mar-2024  thorpej branches: 1.1.4;
Add an example devpubd hook that looks for Minipro-compatible EEPROM
programmers and sets the access permissions to 0660.
 1.1.4.1 07-Sep-2025  martin Pull up following revision(s) (requested by thorpej in ticket #27):

share/examples/devpubd/hooks/99-ugen-perms-minipro: revision 1.2

Update for newer "minipro" programmers:
- T48 / T56 use the same USB VID/PID as the TL866II+.
- Add the T76 USB VID/PID.
 1.1 30-Mar-2024  thorpej Add an example devpubd hook that detects the generic USB interface
portion of a Tigard debug board and changes the permissions of the
appropriate /dev/ugenN.* nodes to allow access without superuser
permissions, suitable for using e.g. openocd with the device.

This example can be easily modified to support other generic USB devices
that have user-space drivers where running as the superuser is not desired.
 1.3 30-Mar-2024  thorpej Add an example devpubd hook that looks for Minipro-compatible EEPROM
programmers and sets the access permissions to 0660.
 1.2 30-Mar-2024  thorpej Add an example devpubd hook that detects the generic USB interface
portion of a Tigard debug board and changes the permissions of the
appropriate /dev/ugenN.* nodes to allow access without superuser
permissions, suitable for using e.g. openocd with the device.

This example can be easily modified to support other generic USB devices
that have user-space drivers where running as the superuser is not desired.
 1.1 30-Mar-2024  thorpej Add an example devpubd hook that makes stable path names, using symlinks,
for USB serial interfaces, regardless of where the interface is connected
or the order of enumeration. This requires the USB device to have a
"serialnumber" to function. Examples:

- uftdi serial adapter with two ports:

/dev/tty-uftdi-FT64S4YP-1 -> /dev/ttyU0
/dev/tty-uftdi-FT64S4YP-2 -> /dev/ttyU1

- uslsa serial adapter:

/dev/tty-uslsa-01E7ABCC -> /dev/ttyU4

This allows something like the following in /etc/remote:

sun3:dv=/dev/tty-uftdi-FT64S4YP-1:br#9600:pa=none:dc:

That path will always be stable regardless of which /dev/ttyU* node is
actually assigned when the serial adapter is plugged in.
 1.1 17-Dec-2002  jdolecek add example disktab file
 1.3 24-Jan-2018  skrll Remove port-acorn26

OK core@
 1.2 19-Apr-2004  wiz Spell removable with only two es. Inspired by jmc@openbsd.
 1.1 17-Dec-2002  jdolecek add example disktab file
 1.3 19-Dec-2018  maxv Remove compat_svr4 and compat_svr4_32, as discussed on tech-kern@ recently,
but also as discussed several times in the past.
 1.2 22-Sep-2006  christos branches: 1.2.80; 1.2.82;
add a LINUX_MAKEDEV for ptmx
 1.1 13-Nov-1997  thorpej branches: 1.1.2;
Move the svr4 and ultrix example files from "share/samples" to
"share/examples" (because that's what they are: examples) and install
them into $DESTDIR/usr/share/examples/emul/{svr4,ultrix}/etc.
 1.1.2.2 13-Nov-1997  thorpej Move the svr4 and ultrix example files from "share/samples" to
"share/examples" (because that's what they are: examples) and install
them into $DESTDIR/usr/share/examples/emul/{svr4,ultrix}/etc.
 1.1.2.1 13-Nov-1997  thorpej file Makefile was added on branch netbsd-1-3 on 1997-11-13 03:02:04 +0000
 1.2.82.1 10-Jun-2019  christos Sync with HEAD
 1.2.80.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.1 22-Sep-2006  christos add a LINUX_MAKEDEV for ptmx
 1.1 22-Sep-2006  christos add a LINUX_MAKEDEV for ptmx
 1.1 22-Sep-2006  christos add a LINUX_MAKEDEV for ptmx
 1.1 13-Nov-1997  thorpej branches: 1.1.2;
Move the svr4 and ultrix example files from "share/samples" to
"share/examples" (because that's what they are: examples) and install
them into $DESTDIR/usr/share/examples/emul/{svr4,ultrix}/etc.
 1.1.2.2 13-Nov-1997  thorpej Move the svr4 and ultrix example files from "share/samples" to
"share/examples" (because that's what they are: examples) and install
them into $DESTDIR/usr/share/examples/emul/{svr4,ultrix}/etc.
 1.1.2.1 13-Nov-1997  thorpej file Makefile was added on branch netbsd-1-3 on 1997-11-13 03:02:08 +0000
 1.5 12-Dec-2001  lukem Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
 1.4 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.3 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.2 27-Sep-1998  lukem don't install in /usr/share if NOSHARE is defined
 1.1 13-Nov-1997  thorpej branches: 1.1.2;
Move the svr4 and ultrix example files from "share/samples" to
"share/examples" (because that's what they are: examples) and install
them into $DESTDIR/usr/share/examples/emul/{svr4,ultrix}/etc.
 1.1.2.2 13-Nov-1997  thorpej Move the svr4 and ultrix example files from "share/samples" to
"share/examples" (because that's what they are: examples) and install
them into $DESTDIR/usr/share/examples/emul/{svr4,ultrix}/etc.
 1.1.2.1 13-Nov-1997  thorpej file Makefile was added on branch netbsd-1-3 on 1997-11-13 03:02:09 +0000
 1.2 14-May-2024  andvar fix recently committed typos by msaitoh in few more places, as well as few more.
mainly s/contigous/contiguous/ and s/miliseconds/milliseconds/ in comments.
 1.1 13-Nov-1997  thorpej branches: 1.1.2;
Move the svr4 and ultrix example files from "share/samples" to
"share/examples" (because that's what they are: examples) and install
them into $DESTDIR/usr/share/examples/emul/{svr4,ultrix}/etc.
 1.1.2.2 13-Nov-1997  thorpej Move the svr4 and ultrix example files from "share/samples" to
"share/examples" (because that's what they are: examples) and install
them into $DESTDIR/usr/share/examples/emul/{svr4,ultrix}/etc.
 1.1.2.1 13-Nov-1997  thorpej file svc.conf was added on branch netbsd-1-3 on 1997-11-13 03:02:09 +0000
 1.5 24-Dec-2005  jmmv Merge fstab.tmpfs into fstab.ramdisk so that the file names represent
concepts rather than specific file systems. Suggested by hubertf@.
 1.4 30-Sep-2005  simonb Split the fstab examples so that adding newer examples doesn't need a
shuffling of previous examples across line boundaries.
 1.3 29-Sep-2005  jmmv Add a fstab.tmpfs sample file showing simple but common sample entries.
Suggested by martti@.
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.2 04-May-2005  hubertf No devices on /usr -> mount -o nodev
No setuid programs in /var -> mount -o nodev,nosuid

Adding "noexec" in various places may cause too much damage
(e.g. for running DEINSTALL scripts from /var/db/pkg, configure
scripts, etc).

Inspired by OpenBSD's afterboot(8) manpage.
 1.1 03-Apr-2005  hubertf branches: 1.1.2;
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1.2.2 04-Apr-2005  tron Pull up revision 1.1 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1.2.1 03-Apr-2005  tron file fstab.cdrom was added on branch netbsd-3 on 2005-04-04 17:31:02 +0000
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.2 04-Apr-2005  tron Pull up file removal (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1.8.1 04-Apr-2005  tron Pull up file removal (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.4 06-May-2005  hubertf Backout previous:
Don't recommend mounting /var and /usr nodev,nosuid
too many things may break.
 1.3 04-May-2005  hubertf No devices on /usr -> mount -o nodev
No setuid programs in /var -> mount -o nodev,nosuid

Adding "noexec" in various places may cause too much damage
(e.g. for running DEINSTALL scripts from /var/db/pkg, configure
scripts, etc).

Inspired by OpenBSD's afterboot(8) manpage.
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 03-Apr-2005  hubertf branches: 1.1.2;
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1.2.2 04-Apr-2005  tron Pull up revision 1.1 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1.2.1 03-Apr-2005  tron file fstab.pseudo was added on branch netbsd-3 on 2005-04-04 17:31:02 +0000
 1.4 06-May-2005  hubertf Backout previous:
Don't recommend mounting /var and /usr nodev,nosuid
too many things may break.
 1.3 04-May-2005  hubertf No devices on /usr -> mount -o nodev
No setuid programs in /var -> mount -o nodev,nosuid

Adding "noexec" in various places may cause too much damage
(e.g. for running DEINSTALL scripts from /var/db/pkg, configure
scripts, etc).

Inspired by OpenBSD's afterboot(8) manpage.
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.5 04-Mar-2015  christos add a shm example
 1.4 24-Dec-2005  jmmv Merge fstab.tmpfs into fstab.ramdisk so that the file names represent
concepts rather than specific file systems. Suggested by hubertf@.
 1.3 27-Nov-2005  sketch Fix typo: ammount -> amount.
 1.2 04-May-2005  hubertf No devices on /usr -> mount -o nodev
No setuid programs in /var -> mount -o nodev,nosuid

Adding "noexec" in various places may cause too much damage
(e.g. for running DEINSTALL scripts from /var/db/pkg, configure
scripts, etc).

Inspired by OpenBSD's afterboot(8) manpage.
 1.1 03-Apr-2005  hubertf branches: 1.1.2;
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1.2.2 04-Apr-2005  tron Pull up revision 1.1 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1.2.1 03-Apr-2005  tron file fstab.ramdisk was added on branch netbsd-3 on 2005-04-04 17:31:02 +0000
 1.4 06-May-2005  hubertf Backout previous:
Don't recommend mounting /var and /usr nodev,nosuid
too many things may break.
 1.3 04-May-2005  hubertf No devices on /usr -> mount -o nodev
No setuid programs in /var -> mount -o nodev,nosuid

Adding "noexec" in various places may cause too much damage
(e.g. for running DEINSTALL scripts from /var/db/pkg, configure
scripts, etc).

Inspired by OpenBSD's afterboot(8) manpage.
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.4 06-May-2005  hubertf Backout previous:
Don't recommend mounting /var and /usr nodev,nosuid
too many things may break.
 1.3 04-May-2005  hubertf No devices on /usr -> mount -o nodev
No setuid programs in /var -> mount -o nodev,nosuid

Adding "noexec" in various places may cause too much damage
(e.g. for running DEINSTALL scripts from /var/db/pkg, configure
scripts, etc).

Inspired by OpenBSD's afterboot(8) manpage.
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.4 06-May-2005  hubertf Backout previous:
Don't recommend mounting /var and /usr nodev,nosuid
too many things may break.
 1.3 04-May-2005  hubertf No devices on /usr -> mount -o nodev
No setuid programs in /var -> mount -o nodev,nosuid

Adding "noexec" in various places may cause too much damage
(e.g. for running DEINSTALL scripts from /var/db/pkg, configure
scripts, etc).

Inspired by OpenBSD's afterboot(8) manpage.
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.5 08-Dec-2021  andvar s/recomended/recommended/ and s/unknonwn/unknown/
 1.4 06-May-2005  hubertf Backout previous:
Don't recommend mounting /var and /usr nodev,nosuid
too many things may break.
 1.3 04-May-2005  hubertf No devices on /usr -> mount -o nodev
No setuid programs in /var -> mount -o nodev,nosuid

Adding "noexec" in various places may cause too much damage
(e.g. for running DEINSTALL scripts from /var/db/pkg, configure
scripts, etc).

Inspired by OpenBSD's afterboot(8) manpage.
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.4 06-May-2005  hubertf Backout previous:
Don't recommend mounting /var and /usr nodev,nosuid
too many things may break.
 1.3 04-May-2005  hubertf No devices on /usr -> mount -o nodev
No setuid programs in /var -> mount -o nodev,nosuid

Adding "noexec" in various places may cause too much damage
(e.g. for running DEINSTALL scripts from /var/db/pkg, configure
scripts, etc).

Inspired by OpenBSD's afterboot(8) manpage.
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.3 24-Dec-2005  jmmv Merge fstab.tmpfs into fstab.ramdisk so that the file names represent
concepts rather than specific file systems. Suggested by hubertf@.
 1.2 03-Oct-2005  jmmv Disable the /var/run entry and tell the user what to do to make it work
correctly.

While here, add two more sample entries.
 1.1 29-Sep-2005  jmmv Add a fstab.tmpfs sample file showing simple but common sample entries.
Suggested by martti@.
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.4 06-May-2005  hubertf Backout previous:
Don't recommend mounting /var and /usr nodev,nosuid
too many things may break.
 1.3 04-May-2005  hubertf No devices on /usr -> mount -o nodev
No setuid programs in /var -> mount -o nodev,nosuid

Adding "noexec" in various places may cause too much damage
(e.g. for running DEINSTALL scripts from /var/db/pkg, configure
scripts, etc).

Inspired by OpenBSD's afterboot(8) manpage.
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.4 06-May-2005  hubertf Backout previous:
Don't recommend mounting /var and /usr nodev,nosuid
too many things may break.
 1.3 04-May-2005  hubertf No devices on /usr -> mount -o nodev
No setuid programs in /var -> mount -o nodev,nosuid

Adding "noexec" in various places may cause too much damage
(e.g. for running DEINSTALL scripts from /var/db/pkg, configure
scripts, etc).

Inspired by OpenBSD's afterboot(8) manpage.
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.3 04-May-2005  hubertf No devices on /usr -> mount -o nodev
No setuid programs in /var -> mount -o nodev,nosuid

Adding "noexec" in various places may cause too much damage
(e.g. for running DEINSTALL scripts from /var/db/pkg, configure
scripts, etc).

Inspired by OpenBSD's afterboot(8) manpage.
 1.2 03-Apr-2005  hubertf Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.1 04-May-2002  jdolecek branches: 1.1.8;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.
 1.1.8.1 04-Apr-2005  tron Pull up revision 1.2 (requested by hubertf in ticket #95):
Extract commonly used things like CDROMs, pseudo-filesystems (/proc, ...)
and mfs-based /tmp into their own files. Hint at them in the existing
files. (fstab needs an #include statement :)
 1.6 12-Dec-2001  lukem Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
 1.5 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.4 08-Jan-2000  lukem sample ftpusers with lots of examples on the syntax
 1.3 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.2 27-Sep-1998  lukem don't install in /usr/share if NOSHARE is defined
 1.1 06-Jun-1998  lukem example ftpd.conf
 1.4 09-Jan-2000  lukem improve examples:
- put local anon users into a separate class `localguest'
- use `localguest' to demonstrate the template features
- provide a better description of how the conversion commands work.
 1.3 08-Jan-2000  lukem add example "limit" command
 1.2 26-Dec-1999  lukem * add example upload, rateget, rateput entries
* add `--' to the argument string for the conversion commands (to prevent
filenames starting with `-' from being interpreted as options)
 1.1 06-Jun-1998  lukem example ftpd.conf
 1.4 22-Sep-2023  lukem ftpusers(5) example: use IP & DNS examples

Use .example TLD, per IETF RFC 2606.
Use 192.0.2.0/24, per IETF RFC 5737.
Use 127.0.0.1/24 for localguest, not network that ftp.NetBSD.org used to be in.
 1.3 26-Jul-2003  salo branches: 1.3.106;
netbsd.org->NetBSD.org
 1.2 09-Jan-2000  lukem improve examples:
- put local anon users into a separate class `localguest'
- use `localguest' to demonstrate the template features
- provide a better description of how the conversion commands work.
 1.1 08-Jan-2000  lukem sample ftpusers with lots of examples on the syntax
 1.3.106.1 02-Oct-2023  martin Pull up following revision(s) (requested by lukem in ticket #387):

share/examples/ftpd/ftpusers: revision 1.4

ftpusers(5) example: use IP & DNS examples

Use .example TLD, per IETF RFC 2606.

Use 192.0.2.0/24, per IETF RFC 5737.

Use 127.0.0.1/24 for localguest, not network that ftp.NetBSD.org used to be in.
 1.1 14-May-2009  ginsbach Add the getdate(3) function and getdate_err value, conforming to IEEE
Std 1003.1 (``POSIX.1'') and the Open Group Base Specifications X/Open
System Interfaces extension (``XSI'').
 1.1 14-May-2009  ginsbach Add the getdate(3) function and getdate_err value, conforming to IEEE
Std 1003.1 (``POSIX.1'') and the Open Group Base Specifications X/Open
System Interfaces extension (``XSI'').
 1.1 14-May-2009  ginsbach Add the getdate(3) function and getdate_err value, conforming to IEEE
Std 1003.1 (``POSIX.1'') and the Open Group Base Specifications X/Open
System Interfaces extension (``XSI'').
 1.1 14-May-2009  ginsbach Add the getdate(3) function and getdate_err value, conforming to IEEE
Std 1003.1 (``POSIX.1'') and the Open Group Base Specifications X/Open
System Interfaces extension (``XSI'').
 1.1 30-Apr-2006  rpaulo Add a hostapd.conf example based on the one distributed with hostapd.
 1.2 07-Jan-2025  andvar Fix typos in the word 'Control' in comments.
 1.1 30-Apr-2006  rpaulo branches: 1.1.96;
Add a hostapd.conf example based on the one distributed with hostapd.
 1.1.96.1 02-Aug-2025  perseant Sync with HEAD
 1.1 15-Oct-2011  mbalmer Example files showing Lua module usage.
 1.1 15-Oct-2011  mbalmer Example files showing Lua module usage.
 1.4 10-May-2017  mbalmer Clarify gpio example.
 1.3 19-Jul-2014  lneto branches: 1.3.14;
lua: updated from 5.1 to 5.3 work3

* lua(1):
- changed lua_Integer to intmax_t
- updated distrib/sets/lists and etc/mtree
- updated bsd.lua.mk
- fixed bozohttpd (lua-bozo.c)
- compatibilized bindings: gpio, sqlite
* lua(4):
- removed floating-point and libc dependencies using '#ifndef _KERNEL'
- fixed division by zero and exponentiation
- libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct()
- acpica: removed isprint() from acnetbsd.h
- libc: moved strcspn.c, strpbrk.c and strspn.c to common
- removed stub headers
- compatibilized bindings: luapmf, luasystm
* reorganized luaconf.h
* updated doc/CHANGES and doc/RESPONSIBLE
 1.2 25-Feb-2012  mbalmer branches: 1.2.2; 1.2.8;
GPIO pins are 0 based when accessed from Lua, not 1 based like Lua usually
is. The pulse() has been removed, use gpiopwm(4) for that.
 1.1 15-Oct-2011  mbalmer branches: 1.1.2; 1.1.4;
Example files showing Lua module usage.
 1.1.4.1 25-Feb-2012  sborrill Pull up the following revisions(s) (requested by mbalmer in ticket #49):
share/examples/lua/gpio.lua: revision 1.2

GPIO pins are 0-based when accessed from Lua, not 1-based like Lua usually
is. The pulse() has been removed, use gpiopwm(4) for that.
 1.1.2.1 17-Apr-2012  yamt sync with head
 1.2.8.1 10-Aug-2014  tls Rebase.
 1.2.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.14.1 11-May-2017  pgoyette Sync with HEAD
 1.4 10-May-2017  mbalmer Fix flags for DB open.
 1.3 08-Dec-2015  kamil branches: 1.3.6;
Correct mistakes in the sqlite.lua example

Changes:
- The open flag: sqlite.OPEN_CREATE will open the DB for reading and
writing, adding sqlite.OPEN_READWRITE to sqlite.OPEN_CREATE will cause
the DB to not be created and prevent the script from continuing
- When using stmt:bind_parameter_index() the parameter needs to be
prefixed with ':' if that was used in the prepared statement,
otherwise the incorrect index of 0 is returned.
- The drop table statement has an "x" appended to the table name, looks
like a typo.

Patch by Travis Paul

Closes PR misc/50493
 1.2 19-Jul-2014  lneto lua: updated from 5.1 to 5.3 work3

* lua(1):
- changed lua_Integer to intmax_t
- updated distrib/sets/lists and etc/mtree
- updated bsd.lua.mk
- fixed bozohttpd (lua-bozo.c)
- compatibilized bindings: gpio, sqlite
* lua(4):
- removed floating-point and libc dependencies using '#ifndef _KERNEL'
- fixed division by zero and exponentiation
- libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct()
- acpica: removed isprint() from acnetbsd.h
- libc: moved strcspn.c, strpbrk.c and strspn.c to common
- removed stub headers
- compatibilized bindings: luapmf, luasystm
* reorganized luaconf.h
* updated doc/CHANGES and doc/RESPONSIBLE
 1.1 15-Oct-2011  mbalmer branches: 1.1.8; 1.1.18;
Example files showing Lua module usage.
 1.1.18.1 10-Aug-2014  tls Rebase.
 1.1.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.6.1 11-May-2017  pgoyette Sync with HEAD
 1.3 26-Jun-2013  christos rename to follow suit.
 1.2 26-Jun-2013  christos add an L2TP Gateway example.
 1.1 22-Aug-2012  spz branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
actually install the new npf examples
add examples for a hash table file and a tree table file
add an ID string to host-npf.conf
 1.1.8.2 20-Nov-2012  matt Add missing files.
 1.1.8.1 22-Aug-2012  matt file Makefile was added on branch matt-nb6-plus on 2012-11-20 23:13:35 +0000
 1.1.6.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.2 30-Oct-2012  yamt sync with head
 1.1.6.1 22-Aug-2012  yamt file Makefile was added on branch yamt-pagecache on 2012-10-30 18:59:34 +0000
 1.1.4.2 01-Oct-2012  riz Pull up following revision(s) (requested by rmind in ticket #584):
share/examples/npf/treetablefile: revision 1.1
share/examples/npf/Makefile: revision 1.1
distrib/sets/lists/base/mi: revision 1.1003
share/examples/npf/host-npf.conf: revision 1.2
share/examples/Makefile: revision 1.21
share/examples/npf/soho_gw-npf.conf: revision 1.1
etc/mtree/NetBSD.dist.base: revision 1.104
share/examples/npf/soho_gw-npf.conf: revision 1.2
share/examples/npf/hashtablefile: revision 1.1
the example from the man page, with a few extra comments
add id string, fix comments
actually install the new npf examples
add examples for a hash table file and a tree table file
add an ID string to host-npf.conf
 1.1.4.1 22-Aug-2012  riz file Makefile was added on branch netbsd-6 on 2012-10-01 20:15:34 +0000
 1.1.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1 22-Aug-2012  spz branches: 1.1.4; 1.1.6; 1.1.8;
actually install the new npf examples
add examples for a hash table file and a tree table file
add an ID string to host-npf.conf
 1.1.8.2 20-Nov-2012  matt Add missing files.
 1.1.8.1 22-Aug-2012  matt file hashtablefile was added on branch matt-nb6-plus on 2012-11-20 23:13:36 +0000
 1.1.6.2 30-Oct-2012  yamt sync with head
 1.1.6.1 22-Aug-2012  yamt file hashtablefile was added on branch yamt-pagecache on 2012-10-30 18:59:34 +0000
 1.1.4.2 01-Oct-2012  riz Pull up following revision(s) (requested by rmind in ticket #584):
share/examples/npf/treetablefile: revision 1.1
share/examples/npf/Makefile: revision 1.1
distrib/sets/lists/base/mi: revision 1.1003
share/examples/npf/host-npf.conf: revision 1.2
share/examples/Makefile: revision 1.21
share/examples/npf/soho_gw-npf.conf: revision 1.1
etc/mtree/NetBSD.dist.base: revision 1.104
share/examples/npf/soho_gw-npf.conf: revision 1.2
share/examples/npf/hashtablefile: revision 1.1
the example from the man page, with a few extra comments
add id string, fix comments
actually install the new npf examples
add examples for a hash table file and a tree table file
add an ID string to host-npf.conf
 1.1.4.1 22-Aug-2012  riz file hashtablefile was added on branch netbsd-6 on 2012-10-01 20:15:34 +0000
 1.12 31-Jul-2023  tsutsui Use proper variables for interface names in examples.
 1.11 21-Sep-2019  sevan branches: 1.11.8;
With bin/54124 fixed, the rule needs to be explicitly set to stateful.
 1.10 16-Apr-2019  sevan branches: 1.10.2;
Indent to improve readability.
Add a description for log event.
 1.9 15-Apr-2019  sevan Provide a simpler config for a host which permits any traffic from the host out,
and small subset of traffic in (DHCP (v4 and v6), All ICMPv6, ICMP echo
requests, traceroute, mDNS).
 1.8 04-Aug-2014  szptvlfn branches: 1.8.24;
use proper address, ok spz@.
 1.7 31-May-2014  spz example for port remapping added
 1.6 08-Feb-2014  rmind branches: 1.6.2;
Sync some NPF config examples with the reality.
 1.5 20-Sep-2013  spz track syntax change in npf.conf regarding group
 1.4 09-Dec-2012  rmind Fix syntax error in the example, fix one rule and G/C "rid" procedure.
 1.3 04-Dec-2012  spz adjust to current npf.conf syntax
 1.2 22-Aug-2012  spz branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8;
actually install the new npf examples
add examples for a hash table file and a tree table file
add an ID string to host-npf.conf
 1.1 20-Aug-2012  spz add an example for a npf.conf
It probably could do with polishing of both rules and comments, but meh,
better than nothing
 1.2.8.2 20-Nov-2012  matt Add missing files.
 1.2.8.1 22-Aug-2012  matt file host-npf.conf was added on branch matt-nb6-plus on 2012-11-20 23:13:36 +0000
 1.2.6.4 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.6.3 16-Jan-2013  yamt sync with (a bit old) head
 1.2.6.2 30-Oct-2012  yamt sync with head
 1.2.6.1 22-Aug-2012  yamt file host-npf.conf was added on branch yamt-pagecache on 2012-10-30 18:59:34 +0000
 1.2.4.4 15-Dec-2012  riz Pull up following revision(s) (requested by rmind in ticket #744):
usr.sbin/npf/npfctl/npf.conf.5: revision 1.25
share/examples/npf/host-npf.conf: revision 1.4
share/examples/npf/soho_gw-npf.conf: revision 1.4
Fix syntax error in the example, fix one rule and G/C &quot;rid&quot; procedure.
- npf.conf(5): fix of the example config.
- Mention npf_ext_log in a comment.
 1.2.4.3 11-Dec-2012  riz Pull up following revision(s) (requested by rmind in ticket #736):
usr.sbin/npf/npfctl/npf_parse.y: revision 1.17
sys/net/npf/npf_tableset.c: revision 1.16
usr.sbin/npf/npfctl/npfctl.h: revision 1.23
usr.sbin/npf/npfctl/npf_data.c: revision 1.19
usr.sbin/npf/npfctl/npf_build.c: revision 1.15
share/examples/npf/host-npf.conf: revision 1.3
usr.sbin/npf/npfctl/npf_scan.l: revision 1.9
share/examples/npf/soho_gw-npf.conf: revision 1.3
usr.sbin/npf/npfctl/npf_var.h: revision 1.6
usr.sbin/npf/npfctl/npf.conf.5: revision 1.24
npfctl: extend syntax for extracting interface IP address(es) by the family.
adjust to current npf.conf syntax
npf_table_list: avoid triggering assert on diagnostic.
 1.2.4.2 01-Oct-2012  riz Pull up following revision(s) (requested by rmind in ticket #584):
share/examples/npf/treetablefile: revision 1.1
share/examples/npf/Makefile: revision 1.1
distrib/sets/lists/base/mi: revision 1.1003
share/examples/npf/host-npf.conf: revision 1.2
share/examples/Makefile: revision 1.21
share/examples/npf/soho_gw-npf.conf: revision 1.1
etc/mtree/NetBSD.dist.base: revision 1.104
share/examples/npf/soho_gw-npf.conf: revision 1.2
share/examples/npf/hashtablefile: revision 1.1
the example from the man page, with a few extra comments
add id string, fix comments
actually install the new npf examples
add examples for a hash table file and a tree table file
add an ID string to host-npf.conf
 1.2.4.1 22-Aug-2012  riz file host-npf.conf was added on branch netbsd-6 on 2012-10-01 20:15:34 +0000
 1.2.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.2.1 25-Feb-2013  tls resync with head
 1.6.2.1 10-Aug-2014  tls Rebase.
 1.8.24.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.8.24.1 10-Jun-2019  christos Sync with HEAD
 1.10.2.2 05-Nov-2023  martin Pull up following revision(s) (requested by tsutsui in ticket #1762):

share/examples/npf/host-npf.conf: revision 1.12
share/examples/npf/soho_gw-npf.conf: revision 1.21

Use proper variables for interface names in examples.
 1.10.2.1 19-Nov-2019  martin Pull up following revision(s) (requested by sevan in ticket #445):

share/examples/npf/host-npf.conf: revision 1.11

With bin/54124 fixed, the rule needs to be explicitly set to stateful.
 1.11.8.1 05-Nov-2023  martin Pull up following revision(s) (requested by tsutsui in ticket #458):

share/examples/npf/host-npf.conf: revision 1.12
share/examples/npf/soho_gw-npf.conf: revision 1.21

Use proper variables for interface names in examples.
 1.2 27-Jun-2013  christos remove file that did not go before.
 1.1 26-Jun-2013  christos add an L2TP Gateway example.
 1.6 06-Feb-2016  riastradh Add $NetBSD$ tag.
 1.5 31-May-2014  spz branches: 1.5.4;
- match up comment and interface identifiers
- use RFC5737 documentation prefixes
- use a variable for the RFC1918 private address ranges
 1.4 27-May-2014  christos need esp
 1.3 27-May-2014  christos just allow l2tp not regular ipsec.
 1.2 20-Sep-2013  spz branches: 1.2.2; 1.2.4;
track syntax change in npf.conf regarding group
 1.1 26-Jun-2013  christos rename to follow suit.
 1.2.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.4.1 20-Sep-2013  yamt file l2tp_gw-npf.conf was added on branch yamt-pagecache on 2014-05-22 11:37:45 +0000
 1.2.2.1 10-Aug-2014  tls Rebase.
 1.5.4.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.4.1 31-May-2014  tls file l2tp_gw-npf.conf was added on branch tls-maxphys on 2014-08-20 00:02:30 +0000
 1.21 31-Jul-2023  tsutsui Use proper variables for interface names in examples.
 1.20 18-Nov-2019  sevan branches: 1.20.8;
Rename the block table to something else to make it easier to differentiate
between action and name. Use this table as the example for populating by npfctl.

Drop the int-block table, it's quite cumbersome to have a firewall which
needs the internal network lists added if reboot. Use the localnet variable to
indicated which network we should pass in traffic from instead.
 1.19 22-Sep-2019  sevan Add support for blacklistd
 1.18 22-Sep-2019  sevan Passive FTP works as a client without this and we're not hosting an FTP server (port are not listed in services_tcp)
 1.17 21-Sep-2019  sevan pastos
 1.16 21-Sep-2019  sevan improve description
 1.15 21-Sep-2019  sevan Add descriptions for all rules and make use of localnet variable in place of direct IP address
 1.14 21-Sep-2019  sevan default policy is to blockall
 1.13 21-Sep-2019  sevan Drop the final keyword to use the default policy of last matching rule wins
 1.12 11-Apr-2019  sevan branches: 1.12.2;
s/ifnets/ifaddrs
 1.11 11-Apr-2019  sevan Revert previous & just use the inets function to handle both address families.
Heads up by <leot>
 1.10 10-Apr-2019  sevan typo
 1.9 10-Apr-2019  sevan Use a separate variable for IPv6.
Found with npfctl validate.
 1.8 10-Apr-2019  sevan Switch out deprecated keywords.
Found with npfctl validate.
 1.7 20-Aug-2018  rjs Fix cvs id.
 1.6 08-Feb-2014  rmind branches: 1.6.24; 1.6.26;
Sync some NPF config examples with the reality.
 1.5 20-Sep-2013  spz track syntax change in npf.conf regarding group
 1.4 09-Dec-2012  rmind Fix syntax error in the example, fix one rule and G/C "rid" procedure.
 1.3 04-Dec-2012  spz adjust to current npf.conf syntax
 1.2 21-Aug-2012  spz branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8;
add id string, fix comments
 1.1 21-Aug-2012  spz the example from the man page, with a few extra comments
 1.2.8.2 20-Nov-2012  matt Add missing files.
 1.2.8.1 21-Aug-2012  matt file soho_gw-npf.conf was added on branch matt-nb6-plus on 2012-11-20 23:13:36 +0000
 1.2.6.4 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.6.3 16-Jan-2013  yamt sync with (a bit old) head
 1.2.6.2 30-Oct-2012  yamt sync with head
 1.2.6.1 21-Aug-2012  yamt file soho_gw-npf.conf was added on branch yamt-pagecache on 2012-10-30 18:59:35 +0000
 1.2.4.4 15-Dec-2012  riz Pull up following revision(s) (requested by rmind in ticket #744):
usr.sbin/npf/npfctl/npf.conf.5: revision 1.25
share/examples/npf/host-npf.conf: revision 1.4
share/examples/npf/soho_gw-npf.conf: revision 1.4
Fix syntax error in the example, fix one rule and G/C &quot;rid&quot; procedure.
- npf.conf(5): fix of the example config.
- Mention npf_ext_log in a comment.
 1.2.4.3 11-Dec-2012  riz Pull up following revision(s) (requested by rmind in ticket #736):
usr.sbin/npf/npfctl/npf_parse.y: revision 1.17
sys/net/npf/npf_tableset.c: revision 1.16
usr.sbin/npf/npfctl/npfctl.h: revision 1.23
usr.sbin/npf/npfctl/npf_data.c: revision 1.19
usr.sbin/npf/npfctl/npf_build.c: revision 1.15
share/examples/npf/host-npf.conf: revision 1.3
usr.sbin/npf/npfctl/npf_scan.l: revision 1.9
share/examples/npf/soho_gw-npf.conf: revision 1.3
usr.sbin/npf/npfctl/npf_var.h: revision 1.6
usr.sbin/npf/npfctl/npf.conf.5: revision 1.24
npfctl: extend syntax for extracting interface IP address(es) by the family.
adjust to current npf.conf syntax
npf_table_list: avoid triggering assert on diagnostic.
 1.2.4.2 01-Oct-2012  riz Pull up following revision(s) (requested by rmind in ticket #584):
share/examples/npf/treetablefile: revision 1.1
share/examples/npf/Makefile: revision 1.1
distrib/sets/lists/base/mi: revision 1.1003
share/examples/npf/host-npf.conf: revision 1.2
share/examples/Makefile: revision 1.21
share/examples/npf/soho_gw-npf.conf: revision 1.1
etc/mtree/NetBSD.dist.base: revision 1.104
share/examples/npf/soho_gw-npf.conf: revision 1.2
share/examples/npf/hashtablefile: revision 1.1
the example from the man page, with a few extra comments
add id string, fix comments
actually install the new npf examples
add examples for a hash table file and a tree table file
add an ID string to host-npf.conf
 1.2.4.1 21-Aug-2012  riz file soho_gw-npf.conf was added on branch netbsd-6 on 2012-10-01 20:15:34 +0000
 1.2.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.2.1 25-Feb-2013  tls resync with head
 1.6.26.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.6.26.1 10-Jun-2019  christos Sync with HEAD
 1.6.24.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.12.2.2 05-Nov-2023  martin Pull up following revision(s) (requested by tsutsui in ticket #1762):

share/examples/npf/host-npf.conf: revision 1.12
share/examples/npf/soho_gw-npf.conf: revision 1.21

Use proper variables for interface names in examples.
 1.12.2.1 19-Nov-2019  martin Pull up following revision(s) (requested by sevan in ticket #444):

share/examples/npf/soho_gw-npf.conf: revision 1.13
share/examples/npf/soho_gw-npf.conf: revision 1.14
share/examples/npf/soho_gw-npf.conf: revision 1.15
share/examples/npf/soho_gw-npf.conf: revision 1.16
share/examples/npf/soho_gw-npf.conf: revision 1.17
share/examples/npf/soho_gw-npf.conf: revision 1.18
share/examples/npf/soho_gw-npf.conf: revision 1.19
share/examples/npf/soho_gw-npf.conf: revision 1.20

Drop the final keyword to use the default policy of last matching rule wins
default policy is to blockall

Add descriptions for all rules and make use of localnet variable in
place of direct IP address
improve description

pastos

Passive FTP works as a client without this and we're not hosting an FTP
server (port are not listed in services_tcp)

Add support for blacklistd

Rename the block table to something else to make it easier to differentiate
between action and name. Use this table as the example for populating by
npfctl.

Drop the int-block table, it's quite cumbersome to have a firewall which
needs the internal network lists added if reboot. Use the localnet
variable to indicated which network we should pass in traffic from instead.
 1.20.8.1 05-Nov-2023  martin Pull up following revision(s) (requested by tsutsui in ticket #458):

share/examples/npf/host-npf.conf: revision 1.12
share/examples/npf/soho_gw-npf.conf: revision 1.21

Use proper variables for interface names in examples.
 1.1 22-Aug-2012  spz branches: 1.1.4; 1.1.6; 1.1.8;
actually install the new npf examples
add examples for a hash table file and a tree table file
add an ID string to host-npf.conf
 1.1.8.2 20-Nov-2012  matt Add missing files.
 1.1.8.1 22-Aug-2012  matt file treetablefile was added on branch matt-nb6-plus on 2012-11-20 23:13:36 +0000
 1.1.6.2 30-Oct-2012  yamt sync with head
 1.1.6.1 22-Aug-2012  yamt file treetablefile was added on branch yamt-pagecache on 2012-10-30 18:59:35 +0000
 1.1.4.2 01-Oct-2012  riz Pull up following revision(s) (requested by rmind in ticket #584):
share/examples/npf/treetablefile: revision 1.1
share/examples/npf/Makefile: revision 1.1
distrib/sets/lists/base/mi: revision 1.1003
share/examples/npf/host-npf.conf: revision 1.2
share/examples/Makefile: revision 1.21
share/examples/npf/soho_gw-npf.conf: revision 1.1
etc/mtree/NetBSD.dist.base: revision 1.104
share/examples/npf/soho_gw-npf.conf: revision 1.2
share/examples/npf/hashtablefile: revision 1.1
the example from the man page, with a few extra comments
add id string, fix comments
actually install the new npf examples
add examples for a hash table file and a tree table file
add an ID string to host-npf.conf
 1.1.4.1 22-Aug-2012  riz file treetablefile was added on branch netbsd-6 on 2012-10-01 20:15:33 +0000
 1.3 07-Aug-2010  christos Add cosmote examples.
 1.2 29-Oct-2008  jmcneill Add example pppd configuration for bluetooth DUN with Telus Mobility.
 1.1 25-Oct-2008  christos Add an example script to connect to Cingular's 3G service.
 1.1 25-Oct-2008  christos Add an example script to connect to Cingular's 3G service.
 1.1 25-Oct-2008  christos Add an example script to connect to Cingular's 3G service.
 1.1 07-Aug-2010  christos Add cosmote examples.
 1.1 07-Aug-2010  christos Add cosmote examples.
 1.1 01-Nov-2012  christos branches: 1.1.2; 1.1.4;
add configurations to connect to Sprint's 3G network.
 1.1.4.2 16-Jan-2013  yamt sync with (a bit old) head
 1.1.4.1 01-Nov-2012  yamt file sprint3G was added on branch yamt-pagecache on 2013-01-16 05:32:35 +0000
 1.1.2.2 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.1.2.1 01-Nov-2012  tls file sprint3G was added on branch tls-maxphys on 2012-11-20 03:00:50 +0000
 1.2 15-Feb-2014  christos put more info about the sierra modem
 1.1 01-Nov-2012  christos branches: 1.1.2; 1.1.4;
add configurations to connect to Sprint's 3G network.
 1.1.4.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.4.2 16-Jan-2013  yamt sync with (a bit old) head
 1.1.4.1 01-Nov-2012  yamt file sprint3G.chat was added on branch yamt-pagecache on 2013-01-16 05:32:35 +0000
 1.1.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.2.2 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.1.2.1 01-Nov-2012  tls file sprint3G.chat was added on branch tls-maxphys on 2012-11-20 03:00:50 +0000
 1.1 29-Oct-2008  jmcneill Add example pppd configuration for bluetooth DUN with Telus Mobility.
 1.1 29-Oct-2008  jmcneill Add example pppd configuration for bluetooth DUN with Telus Mobility.
 1.1 22-Nov-2007  pooka branches: 1.1.4;
quick & dirty support & tests for ioctl
 1.1.4.2 09-Jan-2008  matt sync with HEAD
 1.1.4.1 22-Nov-2007  matt file common.h was added on branch matt-armv6 on 2008-01-09 01:38:58 +0000
 1.2 06-Jul-2021  jmcneill build fix
 1.1 22-Nov-2007  pooka branches: 1.1.4;
quick & dirty support & tests for ioctl
 1.1.4.2 09-Jan-2008  matt sync with HEAD
 1.1.4.1 22-Nov-2007  matt file doioctl.c was added on branch matt-armv6 on 2008-01-09 01:38:58 +0000
 1.4 28-Nov-2007  pooka branches: 1.4.4;
* version the registration interface
* destroy all created locks
 1.3 22-Nov-2007  pooka quick & dirty support & tests for ioctl
 1.2 21-Nov-2007  pooka Register a block device and support read/write to it.
 1.1 20-Nov-2007  pooka Add a very simple intro-level example on how to use pud.
 1.4.4.2 09-Jan-2008  matt sync with HEAD
 1.4.4.1 28-Nov-2007  matt file intro.c was added on branch matt-armv6 on 2008-01-09 01:38:58 +0000
 1.3 15-Aug-2007  pooka sysctlfs was moved to base
 1.2 24-Jun-2007  pooka I wasn't going to add any more silly examples, but I'll bite for
this one, since it's a good exercise ..

Add icfs, which does the same thing as the refuse-based icfs agc
added earlier this week, i.e. null-mounts & converts the entire
namespace to lowercase. However, it's a fun comparison, since this
is implemented in a completely different fashion from the refuse
version.
 1.1 30-Jan-2007  gdt Even though the parent doesn't descend here, it's still convenient to
have a makefile to build the 4 examples at once.
 1.2 06-Jul-2010  pooka Move the Delectable Test File System from share/examples/puffs/dtfs
to tests/fs/puffs/h_dtfs.

No functional change (apart from adjusting the Makefile for test builds).
 1.1 23-Oct-2006  pooka dtfs (*): a very simple in-memory file system providing an example on
how to use libpuffs

this is not installed into the binary distribution just yet

*) you can call it either "Delectable Test File System" or
"Detrempe File System", depending on what you think will result
in more puffing
 1.1 06-Jul-2010  pooka Move the Delectable Test File System from share/examples/puffs/dtfs
to tests/fs/puffs/h_dtfs.

No functional change (apart from adjusting the Makefile for test builds).
 1.43 06-Jul-2010  pooka Move the Delectable Test File System from share/examples/puffs/dtfs
to tests/fs/puffs/h_dtfs.

No functional change (apart from adjusting the Makefile for test builds).
 1.42 06-Jul-2010  pooka Reinstate the inactive operation (mostly dummy). This makes -i
work again and henceforth makes it possible to test inactive.
 1.41 05-Dec-2009  pooka Use puffs_kernerr_abort as the error handler.
 1.40 04-Dec-2009  pooka Remove no longer supported suspend code.
 1.39 19-Dec-2007  pooka use generic getattr
 1.38 16-Nov-2007  pooka use puffs_daemon() instead of daemon()
 1.37 05-Nov-2007  pooka Actually, daemonize the file servers before mounting. I might require
at some point that the local protocol handler does not change after
the file system has been mounted.
 1.36 05-Nov-2007  pooka Pull the daemonizing code out of the library mainloop into the file
servers. Calling daemon() (i.e. fork()ing) inside a library can
cause nice surprises for e.g. threaded programs. As discussed with
Greg Oster & others.
 1.35 11-Oct-2007  pooka add testing option -l, which causes the flush of the page cache of
the node under lookup (if found)
 1.34 05-Sep-2007  pooka fix usage. from Karl Jenkinson
 1.33 09-Aug-2007  pooka branches: 1.33.2;
require standard mount_foo bar /path usage, where bar is ignored here
 1.32 27-Jul-2007  pooka branches: 1.32.4;
implement node_mmap and allow to specify accepted mappings on command line
 1.31 19-Jul-2007  pooka -m for setting maxreqlen
 1.30 17-Jul-2007  pooka * add mntfromname parameter to puffs_init()
* set it in file servers
 1.29 01-Jul-2007  pooka dtfs -f for PUFFS_KFLAG_LOOKUP_FULLPNBUF
 1.28 06-Jun-2007  pooka Move puffs to a two clause license where it already isn't so. And
as agc pointed out, even files with the third clause were already
effectively two clause because of a slight bug in the language...
 1.27 05-Jun-2007  pooka make getopt() actually accept -t also
 1.26 18-May-2007  pooka Use SETBACK_NOREF instead of SETBACK_INACT to control node removal.
Avoids one round of inactive (wheee!).
 1.25 18-May-2007  pooka "support" vop_poll enough for testing purposes. In short, yield every
poll request for a few seconds before returning.
 1.24 17-May-2007  pooka Adapt to changes with mounting file systems.

Introduce a parameter -r to control the root node type. For example
"dtfs -r 'lnk /etc' /puffs" mounts dtfs with the root node as a
symbolic link to /etc:

jojonaru# ./dtfs -r 'lnk /etc' /puffs
jojonaru# ls -l /puffs
lrw-rw-rw- 1 root wheel 4 May 17 14:06 /puffs -> /etc
jojonaru# cd /puffs
jojonaru# pwd
/etc
jojonaru#

Extra credit for figuring out how to unmount this file system with
umount(8).

Likewise, "dtfs -r 'chr 2 12' /puffs" makes /puffs (i386) /dev/zero etcetc.
 1.23 07-May-2007  pooka Unmount frequently requires some test code, so define it here as
a dummy instead of libpuffs to make plugging the test code in easier.
 1.22 07-May-2007  pooka Default to inactive-on-demand, use inactive setback to request inactive
to be called for a removed node (for unix open file semantics).
 1.21 22-Apr-2007  pooka mount with write-through page cache if command line -t is given
 1.20 16-Apr-2007  pooka update usage
 1.19 16-Apr-2007  pooka adapt to kernel changes with file handles
 1.18 13-Apr-2007  pooka Instead of keeping on adding parameters to puffs_mount(), make it
only take the bare essentials, which currently means removing
"maxreqlen" from the argument list (all current callers I'm aware
of set it as 0 anyway). Introduce puffs_init(), which provides a
context for setting various parameters and puffs_domount(), which
can be used to mount the file system. Keep puffs_mount() as a
shortcut for the above two for simple file systems.

Bump development ABI version to 13. After all, it's Friday the 13th.
Watch out! Bad things can happen on Friday the 13th. --No carrier--
 1.17 11-Apr-2007  pooka support nfs exporting dtfs
 1.16 20-Mar-2007  pooka add support for permissions and file ownership
 1.15 26-Jan-2007  pooka Add very uncorrect "suspend fs if server gets SIGUSR1" test for fs
suspension (hey, it's a test file system after all .... )
 1.14 15-Jan-2007  pooka adapt to libpuffs changes
 1.13 06-Jan-2007  pooka * do mount as a forward operation instead of a callback
* process -o args for mount
 1.12 29-Dec-2006  pooka apply wide-angle rotollation beam to match libpuffs changes
 1.11 07-Dec-2006  pooka use command line flags to set various options
 1.10 07-Dec-2006  pooka counter-rototill for libpuffs change: unify all callback ops under
a single structure
 1.9 01-Dec-2006  pooka update flag names
 1.8 30-Nov-2006  pooka adapt to flags parameter for puffs_mainloop()
 1.7 18-Nov-2006  pooka * no more fsid
* no more start()
 1.6 14-Nov-2006  pooka adapt to libpuffs namespace change
 1.5 14-Nov-2006  pooka use generic dummies for sync and unmount
 1.4 09-Nov-2006  pooka play catchup with the rest of the world, i.e. shuffle stuff a bit
 1.3 26-Oct-2006  pooka support mknod, essentially makes it possible to run dtfs as /dev
 1.2 25-Oct-2006  pooka Only nuke directory entry in remove and clear data completely only
when the node is reclaimed. This makes dtfs preserve unix open file
semantics.
 1.1 23-Oct-2006  pooka dtfs (*): a very simple in-memory file system providing an example on
how to use libpuffs

this is not installed into the binary distribution just yet

*) you can call it either "Delectable Test File System" or
"Detrempe File System", depending on what you think will result
in more puffing
 1.32.4.2 27-Jul-2007  pooka implement node_mmap and allow to specify accepted mappings on command line
 1.32.4.1 27-Jul-2007  pooka file dtfs.c was added on branch matt-mips64 on 2007-07-27 08:29:11 +0000
 1.33.2.2 09-Jan-2008  matt sync with HEAD
 1.33.2.1 06-Nov-2007  matt sync with HEAD
 1.22 06-Jul-2010  pooka Move the Delectable Test File System from share/examples/puffs/dtfs
to tests/fs/puffs/h_dtfs.

No functional change (apart from adjusting the Makefile for test builds).
 1.21 27-Sep-2007  pooka dtfs memsets all allocated block content to 0 immediately, so to
avoid wasting unbelievable amounts of memory, set the blocksize to
something more believable. Should fix the memset-part to act only
up to the size the file is extended to, though.
 1.20 27-Jul-2007  pooka branches: 1.20.4; 1.20.6;
implement node_mmap and allow to specify accepted mappings on command line
 1.19 17-Jul-2007  pooka With fullpath support we need to check name lengths also, otherwise
lookup for "foo" will match "foobar".
 1.18 01-Jul-2007  pooka dtfs -f for PUFFS_KFLAG_LOOKUP_FULLPNBUF
 1.17 06-Jun-2007  pooka Move puffs to a two clause license where it already isn't so. And
as agc pointed out, even files with the third clause were already
effectively two clause because of a slight bug in the language...
 1.16 18-May-2007  pooka "support" vop_poll enough for testing purposes. In short, yield every
poll request for a few seconds before returning.
 1.15 17-May-2007  pooka Adapt to changes with mounting file systems.

Introduce a parameter -r to control the root node type. For example
"dtfs -r 'lnk /etc' /puffs" mounts dtfs with the root node as a
symbolic link to /etc:

jojonaru# ./dtfs -r 'lnk /etc' /puffs
jojonaru# ls -l /puffs
lrw-rw-rw- 1 root wheel 4 May 17 14:06 /puffs -> /etc
jojonaru# cd /puffs
jojonaru# pwd
/etc
jojonaru#

Extra credit for figuring out how to unmount this file system with
umount(8).

Likewise, "dtfs -r 'chr 2 12' /puffs" makes /puffs (i386) /dev/zero etcetc.
 1.14 11-Apr-2007  pooka support nfs exporting dtfs
 1.13 10-Apr-2007  pooka use dev_t from puffs_node instead of duplicating it into
fs specific structures
 1.12 10-Apr-2007  pooka g/c leftovers
 1.11 01-Apr-2007  pooka Allocate file memory in blocks instead of one big chunk. Makes
writing large files much cheaper since there's no longer a need to
realloc $lots of memory when the file grows.
 1.10 20-Mar-2007  pooka add support for permissions and file ownership
 1.9 11-Mar-2007  pooka don't shrink file size when writing to the middle of an existing file

(mandatory AsiaBSDCon live commit)
 1.8 06-Jan-2007  pooka * do mount as a forward operation instead of a callback
* process -o args for mount
 1.7 07-Dec-2006  pooka counter-rototill for libpuffs change: unify all callback ops under
a single structure
 1.6 18-Nov-2006  pooka * no more fsid
* no more start()
 1.5 09-Nov-2006  pooka play catchup with the rest of the world, i.e. shuffle stuff a bit
 1.4 27-Oct-2006  pooka update appropriate timestamps after each operation. cvs works much
better now with dtfs /tmp
 1.3 26-Oct-2006  pooka support mknod, essentially makes it possible to run dtfs as /dev
 1.2 25-Oct-2006  pooka Only nuke directory entry in remove and clear data completely only
when the node is reclaimed. This makes dtfs preserve unix open file
semantics.
 1.1 23-Oct-2006  pooka dtfs (*): a very simple in-memory file system providing an example on
how to use libpuffs

this is not installed into the binary distribution just yet

*) you can call it either "Delectable Test File System" or
"Detrempe File System", depending on what you think will result
in more puffing
 1.20.6.2 27-Jul-2007  pooka implement node_mmap and allow to specify accepted mappings on command line
 1.20.6.1 27-Jul-2007  pooka file dtfs.h was added on branch matt-mips64 on 2007-07-27 08:29:11 +0000
 1.20.4.1 06-Nov-2007  matt sync with HEAD
 1.22 06-Jul-2010  pooka Move the Delectable Test File System from share/examples/puffs/dtfs
to tests/fs/puffs/h_dtfs.

No functional change (apart from adjusting the Makefile for test builds).
 1.21 11-Oct-2007  pooka when removing file, free last block also
 1.20 22-Jul-2007  pooka branches: 1.20.4; 1.20.6;
Match code with comment (can't really remember doing it often that
way around .. ) and initialize storage to zero when extending a file.
 1.19 17-Jul-2007  pooka With fullpath support we need to check name lengths also, otherwise
lookup for "foo" will match "foobar".
 1.18 01-Jul-2007  pooka dtfs -f for PUFFS_KFLAG_LOOKUP_FULLPNBUF
 1.17 01-Jul-2007  pooka adapt: pcn->pcn_cred is now a pointer
 1.16 06-Jun-2007  pooka Move puffs to a two clause license where it already isn't so. And
as agc pointed out, even files with the third clause were already
effectively two clause because of a slight bug in the language...
 1.15 12-Apr-2007  pooka Hide struct puffs_usermount from the rest of the world and provide
accessors for interesting data in it. Namely, you can now get
pu->pu_privdata with puffs_getspecific(), pu->pu_pn_root with
puffs_set/getroot() and pu->pu_maxreqlen with puffs_getmaxreqlen().
 1.14 11-Apr-2007  pooka support nfs exporting dtfs
 1.13 01-Apr-2007  pooka Allocate file memory in blocks instead of one big chunk. Makes
writing large files much cheaper since there's no longer a need to
realloc $lots of memory when the file grows.
 1.12 20-Mar-2007  pooka add support for permissions and file ownership
 1.11 11-Mar-2007  pooka don't shrink file size when writing to the middle of an existing file

(mandatory AsiaBSDCon live commit)
 1.10 28-Jan-2007  pooka Avoid doing a ludicrous number of reallocs when the file grows by only
lazy extending the file in setattr and really extending it in write.
 1.9 29-Dec-2006  pooka apply wide-angle rotollation beam to match libpuffs changes
 1.8 05-Dec-2006  pooka only count directories in the number of hard links to a directory
 1.7 18-Nov-2006  pooka * no more fsid
* no more start()
 1.6 09-Nov-2006  pooka play catchup with the rest of the world, i.e. shuffle stuff a bit
 1.5 27-Oct-2006  pooka update appropriate timestamps after each operation. cvs works much
better now with dtfs /tmp
 1.4 27-Oct-2006  pooka relax typechecks so that all file types work (they were already supported)
 1.3 26-Oct-2006  pooka support mknod, essentially makes it possible to run dtfs as /dev
 1.2 25-Oct-2006  pooka Only nuke directory entry in remove and clear data completely only
when the node is reclaimed. This makes dtfs preserve unix open file
semantics.
 1.1 23-Oct-2006  pooka dtfs (*): a very simple in-memory file system providing an example on
how to use libpuffs

this is not installed into the binary distribution just yet

*) you can call it either "Delectable Test File System" or
"Detrempe File System", depending on what you think will result
in more puffing
 1.20.6.2 22-Jul-2007  pooka Match code with comment (can't really remember doing it often that
way around .. ) and initialize storage to zero when extending a file.
 1.20.6.1 22-Jul-2007  pooka file dtfs_subr.c was added on branch matt-mips64 on 2007-07-22 13:19:39 +0000
 1.20.4.1 06-Nov-2007  matt sync with HEAD
 1.25 06-Jul-2010  pooka Move the Delectable Test File System from share/examples/puffs/dtfs
to tests/fs/puffs/h_dtfs.

No functional change (apart from adjusting the Makefile for test builds).
 1.24 04-Dec-2009  pooka Remove no longer supported suspend code.
 1.23 30-Nov-2007  pooka Rototill.

Ok, ok, a few more words about it: stop holding puffs_cc as a holy
value and passing it around to almost every possible place (popquiz:
which kernel variable does this remind you of?). Instead, pass
the natural choice, puffs_usermount, and fetch puffs_cc via
puffs_cc_getcc() only in routines which actually need it. This
not only simplifies code, but (thanks to the introduction of
puffs_cc_getcc()) enables constructs which weren't previously sanely
possible, say layering as a curious example.

There's still a little to do on this front, but this was the major
fs interface blast.
 1.22 27-Nov-2007  pooka Remove "puffs_cid" from the puffs interface following l-removal
from the kernel vfs interfaces. puffs_cc_getcaller(pcc) can be
used now should the same information be desired.
 1.21 01-Jul-2007  pooka branches: 1.21.4;
adapt: **newnode etc. pointers -> struct puffs_newinfo
 1.20 01-Jul-2007  pooka adapt: pid -> const struct puffs_cid *
 1.19 06-Jun-2007  pooka Move puffs to a two clause license where it already isn't so. And
as agc pointed out, even files with the third clause were already
effectively two clause because of a slight bug in the language...
 1.18 18-May-2007  pooka "support" vop_poll enough for testing purposes. In short, yield every
poll request for a few seconds before returning.
 1.17 17-May-2007  pooka Adapt to changes with mounting file systems.

Introduce a parameter -r to control the root node type. For example
"dtfs -r 'lnk /etc' /puffs" mounts dtfs with the root node as a
symbolic link to /etc:

jojonaru# ./dtfs -r 'lnk /etc' /puffs
jojonaru# ls -l /puffs
lrw-rw-rw- 1 root wheel 4 May 17 14:06 /puffs -> /etc
jojonaru# cd /puffs
jojonaru# pwd
/etc
jojonaru#

Extra credit for figuring out how to unmount this file system with
umount(8).

Likewise, "dtfs -r 'chr 2 12' /puffs" makes /puffs (i386) /dev/zero etcetc.
 1.16 07-May-2007  pooka Unmount frequently requires some test code, so define it here as
a dummy instead of libpuffs to make plugging the test code in easier.
 1.15 16-Apr-2007  pooka lessen file handle size sanity checks: kernel does it already (mostly)
 1.14 16-Apr-2007  pooka adapt to kernel changes with file handles
 1.13 12-Apr-2007  pooka Hide struct puffs_usermount from the rest of the world and provide
accessors for interesting data in it. Namely, you can now get
pu->pu_privdata with puffs_getspecific(), pu->pu_pn_root with
puffs_set/getroot() and pu->pu_maxreqlen with puffs_getmaxreqlen().
 1.12 11-Apr-2007  pooka support nfs exporting dtfs
 1.11 26-Jan-2007  pooka Add very uncorrect "suspend fs if server gets SIGUSR1" test for fs
suspension (hey, it's a test file system after all .... )
 1.10 15-Jan-2007  pooka adapt to libpuffs changes
 1.9 06-Jan-2007  pooka * do mount as a forward operation instead of a callback
* process -o args for mount
 1.8 29-Dec-2006  pooka apply wide-angle rotollation beam to match libpuffs changes
 1.7 07-Dec-2006  pooka counter-rototill for libpuffs change: unify all callback ops under
a single structure
 1.6 18-Nov-2006  pooka * no more fsid
* no more start()
 1.5 14-Nov-2006  pooka use generic dummies for sync and unmount
 1.4 13-Nov-2006  pooka fix link count for rootnode broken last week
 1.3 09-Nov-2006  pooka play catchup with the rest of the world, i.e. shuffle stuff a bit
 1.2 08-Nov-2006  pooka give an estimation of the amount of free space
 1.1 23-Oct-2006  pooka dtfs (*): a very simple in-memory file system providing an example on
how to use libpuffs

this is not installed into the binary distribution just yet

*) you can call it either "Delectable Test File System" or
"Detrempe File System", depending on what you think will result
in more puffing
 1.21.4.1 09-Jan-2008  matt sync with HEAD
 1.44 06-Jul-2010  pooka Move the Delectable Test File System from share/examples/puffs/dtfs
to tests/fs/puffs/h_dtfs.

No functional change (apart from adjusting the Makefile for test builds).
 1.43 06-Jul-2010  pooka Reinstate the inactive operation (mostly dummy). This makes -i
work again and henceforth makes it possible to test inactive.
 1.42 19-Dec-2007  pooka use generic getattr
 1.41 30-Nov-2007  pooka Rototill.

Ok, ok, a few more words about it: stop holding puffs_cc as a holy
value and passing it around to almost every possible place (popquiz:
which kernel variable does this remind you of?). Instead, pass
the natural choice, puffs_usermount, and fetch puffs_cc via
puffs_cc_getcc() only in routines which actually need it. This
not only simplifies code, but (thanks to the introduction of
puffs_cc_getcc()) enables constructs which weren't previously sanely
possible, say layering as a curious example.

There's still a little to do on this front, but this was the major
fs interface blast.
 1.40 27-Nov-2007  pooka Remove "puffs_cid" from the puffs interface following l-removal
from the kernel vfs interfaces. puffs_cc_getcaller(pcc) can be
used now should the same information be desired.
 1.39 11-Oct-2007  pooka add testing option -l, which causes the flush of the page cache of
the node under lookup (if found)
 1.38 15-Aug-2007  pooka branches: 1.38.2;
Nuke PUFFSLOOKUP_FOO and move to NAMEI_FOO
 1.37 27-Jul-2007  pooka branches: 1.37.4;
implement node_mmap and allow to specify accepted mappings on command line
 1.36 22-Jul-2007  pooka missed one place to set dirent namelen - unmiss it
 1.35 19-Jul-2007  pooka Oops, the cookies for nfs of course represent the *next* directory
entry offset, not the current one.
 1.34 17-Jul-2007  pooka With fullpath support we need to check name lengths also, otherwise
lookup for "foo" will match "foobar".
 1.33 17-Jul-2007  pooka nuke accidental debug printf
 1.32 01-Jul-2007  pooka dtfs -f for PUFFS_KFLAG_LOOKUP_FULLPNBUF
 1.31 01-Jul-2007  pooka adapt: **newnode etc. pointers -> struct puffs_newinfo
 1.30 01-Jul-2007  pooka adapt: pid -> const struct puffs_cid *
 1.29 01-Jul-2007  pooka adapt: pcn->pcn_cred is now a pointer
 1.28 06-Jun-2007  pooka Move puffs to a two clause license where it already isn't so. And
as agc pointed out, even files with the third clause were already
effectively two clause because of a slight bug in the language...
 1.27 18-May-2007  pooka Use SETBACK_NOREF instead of SETBACK_INACT to control node removal.
Avoids one round of inactive (wheee!).
 1.26 18-May-2007  pooka "support" vop_poll enough for testing purposes. In short, yield every
poll request for a few seconds before returning.
 1.25 07-May-2007  pooka Default to inactive-on-demand, use inactive setback to request inactive
to be called for a removed node (for unix open file semantics).
 1.24 20-Apr-2007  pooka remove assertion now done in libpuffs
 1.23 17-Apr-2007  pooka use PUFFS_STORE_DCOOKIE
 1.22 11-Apr-2007  pooka support nfs exporting dtfs
 1.21 10-Apr-2007  pooka use dev_t from puffs_node instead of duplicating it into
fs specific structures
 1.20 01-Apr-2007  pooka Allocate file memory in blocks instead of one big chunk. Makes
writing large files much cheaper since there's no longer a need to
realloc $lots of memory when the file grows.
 1.19 22-Mar-2007  pooka reflect libpuffs change of puffs_access argument unification
 1.18 21-Mar-2007  pooka check puffs_access_{chmod,chown,times} in setattr
 1.17 20-Mar-2007  pooka add support for permissions and file ownership
 1.16 11-Mar-2007  pooka don't shrink file size when writing to the middle of an existing file

(mandatory AsiaBSDCon live commit)
 1.15 27-Feb-2007  pooka * remove rogue header
* better variable name to avoid shadowing global symbol name
 1.14 15-Feb-2007  pooka PUFFS_ISDOTDOT -> PCNISDOTDOT
 1.13 28-Jan-2007  pooka Avoid doing a ludicrous number of reallocs when the file grows by only
lazy extending the file in setattr and really extending it in write.
 1.12 06-Jan-2007  pooka * do mount as a forward operation instead of a callback
* process -o args for mount
 1.11 01-Jan-2007  pooka SUSv3 says: should the implementation not support directory unlinking,
unlink shall fail with EPERM and the errno of the failure shall be EPERM
 1.10 29-Dec-2006  pooka apply wide-angle rotollation beam to match libpuffs changes
 1.9 07-Dec-2006  pooka counter-rototill for libpuffs change: unify all callback ops under
a single structure
 1.8 13-Nov-2006  pooka remove special-case handling for CREATE/RENAME from lookup() - this fs
does not need it, just return ENOENT
 1.7 07-Nov-2006  pooka adapt to new lookup signature
 1.6 27-Oct-2006  pooka update appropriate timestamps after each operation. cvs works much
better now with dtfs /tmp
 1.5 27-Oct-2006  pooka relax typechecks so that all file types work (they were already supported)
 1.4 26-Oct-2006  pooka support mknod, essentially makes it possible to run dtfs as /dev
 1.3 25-Oct-2006  pooka Only nuke directory entry in remove and clear data completely only
when the node is reclaimed. This makes dtfs preserve unix open file
semantics.
 1.2 23-Oct-2006  pooka don't allow to read or write a directory
 1.1 23-Oct-2006  pooka dtfs (*): a very simple in-memory file system providing an example on
how to use libpuffs

this is not installed into the binary distribution just yet

*) you can call it either "Delectable Test File System" or
"Detrempe File System", depending on what you think will result
in more puffing
 1.37.4.2 27-Jul-2007  pooka implement node_mmap and allow to specify accepted mappings on command line
 1.37.4.1 27-Jul-2007  pooka file dtfs_vnops.c was added on branch matt-mips64 on 2007-07-27 08:29:11 +0000
 1.38.2.2 09-Jan-2008  matt sync with HEAD
 1.38.2.1 06-Nov-2007  matt sync with HEAD
 1.2 26-Aug-2016  tnn fix build of puffs examples; need _KERNTYPES for register_t
 1.1 24-Jun-2007  pooka I wasn't going to add any more silly examples, but I'll bite for
this one, since it's a good exercise ..

Add icfs, which does the same thing as the refuse-based icfs agc
added earlier this week, i.e. null-mounts & converts the entire
namespace to lowercase. However, it's a fun comparison, since this
is implemented in a completely different fashion from the refuse
version.
 1.12 04-May-2025  andvar s/demostrates/demonstrates/ in comment.
 1.11 12-Sep-2008  christos branches: 1.11.72;
fix more A0
 1.10 12-Aug-2008  pooka Add -p for presenting the directory listing in the original case.
 1.9 30-Nov-2007  pooka branches: 1.9.6; 1.9.10;
Rototill.

Ok, ok, a few more words about it: stop holding puffs_cc as a holy
value and passing it around to almost every possible place (popquiz:
which kernel variable does this remind you of?). Instead, pass
the natural choice, puffs_usermount, and fetch puffs_cc via
puffs_cc_getcc() only in routines which actually need it. This
not only simplifies code, but (thanks to the introduction of
puffs_cc_getcc()) enables constructs which weren't previously sanely
possible, say layering as a curious example.

There's still a little to do on this front, but this was the major
fs interface blast.
 1.8 16-Nov-2007  pooka use puffs_daemon() instead of daemon()
 1.7 05-Nov-2007  pooka Actually, daemonize the file servers before mounting. I might require
at some point that the local protocol handler does not change after
the file system has been mounted.
 1.6 05-Nov-2007  pooka Pull the daemonizing code out of the library mainloop into the file
servers. Calling daemon() (i.e. fork()ing) inside a library can
cause nice surprises for e.g. threaded programs. As discussed with
Greg Oster & others.
 1.5 17-Jul-2007  pooka branches: 1.5.4;
* add mntfromname parameter to puffs_init()
* set it in file servers
 1.4 24-Jun-2007  pooka PUFFS_KFLAG_NOCACHE became two, so introduce the command line options
-o nonamecache and -o nopagecache and adapt file systems where necessary.
 1.3 24-Jun-2007  pooka cast tolower() arg to unsigned char
 1.2 24-Jun-2007  pooka use puffs_null_setops()
 1.1 24-Jun-2007  pooka I wasn't going to add any more silly examples, but I'll bite for
this one, since it's a good exercise ..

Add icfs, which does the same thing as the refuse-based icfs agc
added earlier this week, i.e. null-mounts & converts the entire
namespace to lowercase. However, it's a fun comparison, since this
is implemented in a completely different fashion from the refuse
version.
 1.5.4.2 09-Jan-2008  matt sync with HEAD
 1.5.4.1 06-Nov-2007  matt sync with HEAD
 1.9.10.2 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.9.10.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.9.6.1 05-Oct-2008  mjf Sync with HEAD.
 1.11.72.1 02-Aug-2025  perseant Sync with HEAD
 1.3 26-Aug-2016  tnn fix build of puffs examples; need _KERNTYPES for register_t
 1.2 22-Apr-2013  yamt make pg_config overridable
 1.1 12-Oct-2011  yamt branches: 1.1.2; 1.1.8;
puffs file system server backed by postgresql
 1.1.8.1 23-Jun-2013  tls resync from head
 1.1.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1 12-Oct-2011  yamt puffs file system server backed by postgresql
 1.1 12-Oct-2011  yamt puffs file system server backed by postgresql
 1.3 19-May-2025  andvar spelling and grammar fixes in comments.
 1.2 12-Oct-2011  yamt branches: 1.2.54;
tweak some sql statements to improve chances to use the index.
 1.1 12-Oct-2011  yamt puffs file system server backed by postgresql
 1.2.54.1 02-Aug-2025  perseant Sync with HEAD
 1.4 22-Apr-2013  yamt fix user-after-free bug
 1.3 22-Apr-2013  yamt do setlocale so that we can print localized messages from libpq correctly.
 1.2 11-Apr-2012  yamt branches: 1.2.2;
- enable writeback cache and namecache.
- use setback hack to reduce number of puffs OPs.
 1.1 12-Oct-2011  yamt branches: 1.1.2;
puffs file system server backed by postgresql
 1.1.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.2.1 17-Apr-2012  yamt sync with head
 1.2.2.1 23-Jun-2013  tls resync from head
 1.4 11-Apr-2012  yamt comment
 1.3 11-Apr-2012  yamt remove FK references as it creates more problems than it solves.
particularly, it involves shared lock on the referenced table
and causes frequent deadlock.
 1.2 11-Apr-2012  yamt reduce number of SQL statements for inactivate
 1.1 12-Oct-2011  yamt branches: 1.1.2;
puffs file system server backed by postgresql
 1.1.2.1 17-Apr-2012  yamt sync with head
 1.1 12-Oct-2011  yamt puffs file system server backed by postgresql
 1.3 11-Apr-2012  yamt setlabel: save SQL statements by caching the last label
 1.2 11-Apr-2012  yamt abuse application_name to show the last puffs activity for the connection.
 1.1 12-Oct-2011  yamt branches: 1.1.2;
puffs file system server backed by postgresql
 1.1.2.1 17-Apr-2012  yamt sync with head
 1.2 11-Apr-2012  yamt abuse application_name to show the last puffs activity for the connection.
 1.1 12-Oct-2011  yamt branches: 1.1.2;
puffs file system server backed by postgresql
 1.1.2.1 17-Apr-2012  yamt sync with head
 1.1 12-Oct-2011  yamt puffs file system server backed by postgresql
 1.1 12-Oct-2011  yamt puffs file system server backed by postgresql
 1.5 18-Oct-2014  snj de-foodify comment
 1.4 11-Apr-2012  yamt abuse application_name to show the last puffs activity for the connection.
 1.3 11-Apr-2012  yamt reduce number of SQL statements for inactivate
 1.2 11-Apr-2012  yamt - enable writeback cache and namecache.
- use setback hack to reduce number of puffs OPs.
 1.1 12-Oct-2011  yamt branches: 1.1.2;
puffs file system server backed by postgresql
 1.1.2.1 17-Apr-2012  yamt sync with head
 1.5 11-Apr-2012  yamt don't bother to call lo_close.
as we ever open a few LOs at most in a transaction, just let them be closed
automatically at the end of the transaction.
 1.4 11-Apr-2012  yamt reduce number of SQL statements for inactivate
 1.3 13-Oct-2011  yamt branches: 1.3.2;
isempty: fix a query result type.
 1.2 12-Oct-2011  yamt tweak some sql statements to improve chances to use the index.
 1.1 12-Oct-2011  yamt puffs file system server backed by postgresql
 1.3.2.1 17-Apr-2012  yamt sync with head
 1.2 11-Apr-2012  yamt reduce number of SQL statements for inactivate
 1.1 12-Oct-2011  yamt branches: 1.1.2;
puffs file system server backed by postgresql
 1.1.2.1 17-Apr-2012  yamt sync with head
 1.1 12-Oct-2011  yamt puffs file system server backed by postgresql
 1.1 12-Oct-2011  yamt puffs file system server backed by postgresql
 1.2 26-Aug-2016  tnn fix build of puffs examples; need _KERNTYPES for register_t
 1.1 11-Jan-2007  pooka example null file system built on top of the null layer in libpuffs
 1.18 26-Nov-2008  pooka puffs_setfhsize() in init
 1.17 12-Sep-2008  christos fix more A0
 1.16 16-Nov-2007  pooka branches: 1.16.6; 1.16.10;
use puffs_daemon() instead of daemon()
 1.15 05-Nov-2007  pooka Actually, daemonize the file servers before mounting. I might require
at some point that the local protocol handler does not change after
the file system has been mounted.
 1.14 05-Nov-2007  pooka Pull the daemonizing code out of the library mainloop into the file
servers. Calling daemon() (i.e. fork()ing) inside a library can
cause nice surprises for e.g. threaded programs. As discussed with
Greg Oster & others.
 1.13 17-Jul-2007  pooka branches: 1.13.4;
* add mntfromname parameter to puffs_init()
* set it in file servers
 1.12 24-Jun-2007  pooka use puffs_null_setops()
 1.11 24-Jun-2007  pooka fix this also, had a similar rototill-typo as rot13fs
 1.10 06-Jun-2007  pooka Move puffs to a two clause license where it already isn't so. And
as agc pointed out, even files with the third clause were already
effectively two clause because of a slight bug in the language...
 1.9 17-May-2007  pooka reflect changes in fs mount: use puffs_mount() instead of
puffs_domount() & puffs_start()
 1.8 24-Apr-2007  pooka allow to mount nullfs types only from directories
TODO: generalize
 1.7 13-Apr-2007  pooka Instead of keeping on adding parameters to puffs_mount(), make it
only take the bare essentials, which currently means removing
"maxreqlen" from the argument list (all current callers I'm aware
of set it as 0 anyway). Introduce puffs_init(), which provides a
context for setting various parameters and puffs_domount(), which
can be used to mount the file system. Keep puffs_mount() as a
shortcut for the above two for simple file systems.

Bump development ABI version to 13. After all, it's Friday the 13th.
Watch out! Bad things can happen on Friday the 13th. --No carrier--
 1.6 12-Apr-2007  pooka Hide struct puffs_usermount from the rest of the world and provide
accessors for interesting data in it. Namely, you can now get
pu->pu_privdata with puffs_getspecific(), pu->pu_pn_root with
puffs_set/getroot() and pu->pu_maxreqlen with puffs_getmaxreqlen().
 1.5 15-Feb-2007  pooka support reclaim
 1.4 15-Jan-2007  pooka use new style to indicate rootpath
 1.3 11-Jan-2007  pooka * register fsync operation
* test for -s, which causes no detach (don't need to remember to
do follow-dances in gdb because of fork() used in daemon())
 1.2 11-Jan-2007  pooka * initialize pflags properly
* make 'dump' imply 'don't detach'
 1.1 11-Jan-2007  pooka example null file system built on top of the null layer in libpuffs
 1.13.4.2 09-Jan-2008  matt sync with HEAD
 1.13.4.1 06-Nov-2007  matt sync with HEAD
 1.16.10.1 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.16.6.1 05-Oct-2008  mjf Sync with HEAD.
 1.2 26-Aug-2016  tnn fix build of puffs examples; need _KERNTYPES for register_t
 1.1 15-Jan-2007  pooka Gur Zbba vf Jnavat Perfprag (19% bs Shyy)

Add a little layering experiment, which both exercises the
componentname modification feature of libpuffs and tries to do
layering (just a little too hardcoded for comfort, fow now). This
simply uses the puffs nullfs to present all data and paths in rot13.
You can even mount it twice for extra fun.
 1.17 12-Sep-2008  christos fix more A0
 1.16 30-Nov-2007  pooka branches: 1.16.6; 1.16.10;
Rototill.

Ok, ok, a few more words about it: stop holding puffs_cc as a holy
value and passing it around to almost every possible place (popquiz:
which kernel variable does this remind you of?). Instead, pass
the natural choice, puffs_usermount, and fetch puffs_cc via
puffs_cc_getcc() only in routines which actually need it. This
not only simplifies code, but (thanks to the introduction of
puffs_cc_getcc()) enables constructs which weren't previously sanely
possible, say layering as a curious example.

There's still a little to do on this front, but this was the major
fs interface blast.
 1.15 16-Nov-2007  pooka use puffs_daemon() instead of daemon()
 1.14 05-Nov-2007  pooka Actually, daemonize the file servers before mounting. I might require
at some point that the local protocol handler does not change after
the file system has been mounted.
 1.13 05-Nov-2007  pooka Pull the daemonizing code out of the library mainloop into the file
servers. Calling daemon() (i.e. fork()ing) inside a library can
cause nice surprises for e.g. threaded programs. As discussed with
Greg Oster & others.
 1.12 17-Jul-2007  pooka branches: 1.12.4;
* add mntfromname parameter to puffs_init()
* set it in file servers
 1.11 24-Jun-2007  pooka Just to demonstrate namemod a bit further, make this flip the case
of filenames / contents instead of rot13 if -f is given.
 1.10 24-Jun-2007  pooka use puffs_null_setops()
 1.9 20-Jun-2007  pooka fix typo from previous rototill, makes this work again
 1.8 06-Jun-2007  pooka Move puffs to a two clause license where it already isn't so. And
as agc pointed out, even files with the third clause were already
effectively two clause because of a slight bug in the language...
 1.7 17-May-2007  pooka reflect changes in fs mount: use puffs_mount() instead of
puffs_domount() & puffs_start()
 1.6 24-Apr-2007  pooka allow to mount nullfs types only from directories
TODO: generalize
 1.5 13-Apr-2007  pooka Instead of keeping on adding parameters to puffs_mount(), make it
only take the bare essentials, which currently means removing
"maxreqlen" from the argument list (all current callers I'm aware
of set it as 0 anyway). Introduce puffs_init(), which provides a
context for setting various parameters and puffs_domount(), which
can be used to mount the file system. Keep puffs_mount() as a
shortcut for the above two for simple file systems.

Bump development ABI version to 13. After all, it's Friday the 13th.
Watch out! Bad things can happen on Friday the 13th. --No carrier--
 1.4 12-Apr-2007  pooka Hide struct puffs_usermount from the rest of the world and provide
accessors for interesting data in it. Namely, you can now get
pu->pu_privdata with puffs_getspecific(), pu->pu_pn_root with
puffs_set/getroot() and pu->pu_maxreqlen with puffs_getmaxreqlen().
 1.3 11-Apr-2007  pooka adapt to new readdir signature. no functional change
 1.2 15-Feb-2007  pooka do reclaim
 1.1 15-Jan-2007  pooka Gur Zbba vf Jnavat Perfprag (19% bs Shyy)

Add a little layering experiment, which both exercises the
componentname modification feature of libpuffs and tries to do
layering (just a little too hardcoded for comfort, fow now). This
simply uses the puffs nullfs to present all data and paths in rot13.
You can even mount it twice for extra fun.
 1.12.4.2 09-Jan-2008  matt sync with HEAD
 1.12.4.1 06-Nov-2007  matt sync with HEAD
 1.16.10.1 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.16.6.1 05-Oct-2008  mjf Sync with HEAD.
 1.4 21-May-2017  riastradh Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
 1.3 10-Dec-2006  manu New README.plainrsa sample file
 1.2 26-Jun-2006  mrg don't install crypto files with MKCRYPTO=no. with these changes, a
MKCRYPTO=no build completes.
 1.1 19-Feb-2005  thorpej Switch to ipsec-tools for libipsec, setkey, and racoon. From
Emmanuel Dreyfus, with some small changes by me.
 1.3 21-May-2017  riastradh Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
 1.2 26-Jun-2006  mrg don't install crypto files with MKCRYPTO=no. with these changes, a
MKCRYPTO=no build completes.
 1.1 19-Feb-2005  thorpej Switch to ipsec-tools for libipsec, setkey, and racoon. From
Emmanuel Dreyfus, with some small changes by me.
 1.3 21-May-2017  riastradh Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
 1.2 26-Jun-2006  mrg don't install crypto files with MKCRYPTO=no. with these changes, a
MKCRYPTO=no build completes.
 1.1 19-Feb-2005  thorpej Switch to ipsec-tools for libipsec, setkey, and racoon. From
Emmanuel Dreyfus, with some small changes by me.
 1.4 21-May-2017  riastradh Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
 1.3 26-Jun-2006  mrg don't install crypto files with MKCRYPTO=no. with these changes, a
MKCRYPTO=no build completes.
 1.2 10-May-2005  manu Take into account file removal
 1.1 19-Feb-2005  thorpej branches: 1.1.2;
Switch to ipsec-tools for libipsec, setkey, and racoon. From
Emmanuel Dreyfus, with some small changes by me.
 1.1.2.1 11-May-2005  tron Pull up revision 1.2 (requested by manu in ticket #286):
Take into account file removal
 1.2 09-Mar-2008  dholland MKMAN should not be set in source makefiles. Use NOMAN.
 1.1 23-Feb-2007  agc branches: 1.1.4; 1.1.8;
Add dbfs, an example (re)fuse file system which mounts a Berkeley
database as a file system.

The file was created in the first place with the following commands:

cp /etc/passwd infile
db -E B -w -f infile -F: -C btree bdb.db

and mounted as follows:

./dbfs bdb.db /mnt

Example use is as follows, using a btree-based database with login
names as the key, and the rest of the passwd file entry as the value:

[21:17:20] agc@inspiron1300 ~ 142 > df -i /mnt
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
puffs:refuse:dbfs 32 32 0 100% 1 0 100% /mnt
[21:17:25] agc@inspiron1300 ~ 143 > l /mnt
total 2
drwxr-xr-x 2 root wheel 0 Jan 1 1970 .
drwxr-xr-x 29 root wheel 1024 Jan 31 21:14 ..
-r--r--r-- 1 agc agc 55 Feb 23 14:49 _pflogd
-r--r--r-- 1 agc agc 50 Feb 23 14:49 _proxy
-r--r--r-- 1 agc agc 46 Feb 23 14:49 _rwhod
-r--r--r-- 1 agc agc 49 Feb 23 14:49 _timedc
-r--r--r-- 1 agc agc 33 Feb 23 14:49 agc
-r--r--r-- 1 agc agc 51 Feb 23 14:49 bin
-r--r--r-- 1 agc agc 40 Feb 23 14:49 daemon
-r--r--r-- 1 agc agc 46 Feb 23 14:49 games
-r--r--r-- 1 agc agc 54 Feb 23 14:49 named
-r--r--r-- 1 agc agc 56 Feb 23 14:49 nobody
-r--r--r-- 1 agc agc 53 Feb 23 14:49 ntpd
-r--r--r-- 1 agc agc 49 Feb 23 14:49 operator
-r--r--r-- 1 agc agc 55 Feb 23 14:49 postfix
-r--r--r-- 1 agc agc 32 Feb 23 14:49 root
-r--r--r-- 1 agc agc 53 Feb 23 14:49 sshd
-r--r--r-- 1 agc agc 43 Feb 23 14:49 toor
-r--r--r-- 1 agc agc 52 Feb 23 14:49 uucp
[21:17:32] agc@inspiron1300 ~ 144 > grep nologin /mnt/*
/mnt/_pflogd:*:18:18:& pseudo-user:/var/chroot/pflogd:/sbin/nologin
/mnt/_proxy:*:21:21:Proxy Services:/nonexistent:/sbin/nologin
/mnt/_rwhod:*:19:19:& pseudo-user:/var/rwho:/sbin/nologin
/mnt/_timedc:*:22:22:& pseudo-user:/nonexistent:/sbin/nologin
/mnt/bin:*:3:7:Binaries Commands and Source:/:/sbin/nologin
/mnt/daemon:*:1:1:The devil himself:/:/sbin/nologin
/mnt/games:*:7:13:& pseudo-user:/usr/games:/sbin/nologin
/mnt/named:*:14:14:& pseudo-user:/var/chroot/named:/sbin/nologin
/mnt/nobody:*:32767:39:Unprivileged user:/nonexistent:/sbin/nologin
/mnt/ntpd:*:15:15:& pseudo-user:/var/chroot/ntpd:/sbin/nologin
/mnt/operator:*:2:5:System &:/usr/guest/operator:/sbin/nologin
/mnt/postfix:*:12:12:& pseudo-user:/var/spool/postfix:/sbin/nologin
/mnt/sshd:*:16:16:& pseudo-user:/var/chroot/sshd:/sbin/nologin
/mnt/uucp:*:66:1:UNIX-to-UNIX Copy:/nonexistent:/sbin/nologin
[21:17:37] agc@inspiron1300 ~ 145 >
 1.1.8.1 24-Mar-2008  keiichi sync with head.
 1.1.4.1 23-Mar-2008  matt sync with HEAD
 1.1 23-Feb-2007  agc Add dbfs, an example (re)fuse file system which mounts a Berkeley
database as a file system.

The file was created in the first place with the following commands:

cp /etc/passwd infile
db -E B -w -f infile -F: -C btree bdb.db

and mounted as follows:

./dbfs bdb.db /mnt

Example use is as follows, using a btree-based database with login
names as the key, and the rest of the passwd file entry as the value:

[21:17:20] agc@inspiron1300 ~ 142 > df -i /mnt
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
puffs:refuse:dbfs 32 32 0 100% 1 0 100% /mnt
[21:17:25] agc@inspiron1300 ~ 143 > l /mnt
total 2
drwxr-xr-x 2 root wheel 0 Jan 1 1970 .
drwxr-xr-x 29 root wheel 1024 Jan 31 21:14 ..
-r--r--r-- 1 agc agc 55 Feb 23 14:49 _pflogd
-r--r--r-- 1 agc agc 50 Feb 23 14:49 _proxy
-r--r--r-- 1 agc agc 46 Feb 23 14:49 _rwhod
-r--r--r-- 1 agc agc 49 Feb 23 14:49 _timedc
-r--r--r-- 1 agc agc 33 Feb 23 14:49 agc
-r--r--r-- 1 agc agc 51 Feb 23 14:49 bin
-r--r--r-- 1 agc agc 40 Feb 23 14:49 daemon
-r--r--r-- 1 agc agc 46 Feb 23 14:49 games
-r--r--r-- 1 agc agc 54 Feb 23 14:49 named
-r--r--r-- 1 agc agc 56 Feb 23 14:49 nobody
-r--r--r-- 1 agc agc 53 Feb 23 14:49 ntpd
-r--r--r-- 1 agc agc 49 Feb 23 14:49 operator
-r--r--r-- 1 agc agc 55 Feb 23 14:49 postfix
-r--r--r-- 1 agc agc 32 Feb 23 14:49 root
-r--r--r-- 1 agc agc 53 Feb 23 14:49 sshd
-r--r--r-- 1 agc agc 43 Feb 23 14:49 toor
-r--r--r-- 1 agc agc 52 Feb 23 14:49 uucp
[21:17:32] agc@inspiron1300 ~ 144 > grep nologin /mnt/*
/mnt/_pflogd:*:18:18:& pseudo-user:/var/chroot/pflogd:/sbin/nologin
/mnt/_proxy:*:21:21:Proxy Services:/nonexistent:/sbin/nologin
/mnt/_rwhod:*:19:19:& pseudo-user:/var/rwho:/sbin/nologin
/mnt/_timedc:*:22:22:& pseudo-user:/nonexistent:/sbin/nologin
/mnt/bin:*:3:7:Binaries Commands and Source:/:/sbin/nologin
/mnt/daemon:*:1:1:The devil himself:/:/sbin/nologin
/mnt/games:*:7:13:& pseudo-user:/usr/games:/sbin/nologin
/mnt/named:*:14:14:& pseudo-user:/var/chroot/named:/sbin/nologin
/mnt/nobody:*:32767:39:Unprivileged user:/nonexistent:/sbin/nologin
/mnt/ntpd:*:15:15:& pseudo-user:/var/chroot/ntpd:/sbin/nologin
/mnt/operator:*:2:5:System &:/usr/guest/operator:/sbin/nologin
/mnt/postfix:*:12:12:& pseudo-user:/var/spool/postfix:/sbin/nologin
/mnt/sshd:*:16:16:& pseudo-user:/var/chroot/sshd:/sbin/nologin
/mnt/uucp:*:66:1:UNIX-to-UNIX Copy:/nonexistent:/sbin/nologin
[21:17:37] agc@inspiron1300 ~ 145 >
 1.1 21-May-2007  agc Another day, another file system.

dmesgfs is another example file system, which displays the device tree
information gained from dmesg(8) as a directory hierarchy. The information
can be displayed in files, or as targets of symbolic links.

% l /mnt/mainbus0
total 320
drwxr-xr-x 2 agc agc 512 May 21 22:21 .
drwxr-xr-x 2 root wheel 0 Jan 1 1970 ..
drwxr-xr-x 2 agc agc 512 May 21 22:21 acpi0
lrwxr-xr-x 1 agc agc 41 May 21 22:21 cpu0 -> cpu0 at mainbus0 apid 0: (boot processor)
lrwxr-xr-x 1 agc agc 40 May 21 22:21 ioapic -> ioapic at mainbus0 apid 1 not configured
drwxr-xr-x 2 agc agc 512 May 21 22:21 pci0
% l /mnt/mainbus0/pci0/piixide0/atabus1/atapibus0
total 256
drwxr-xr-x 2 agc agc 512 May 21 22:21 .
drwxr-xr-x 2 agc agc 512 May 21 22:21 ..
lrwxr-xr-x 1 agc agc 31 May 21 22:21 Description -> atapibus0 at atabus1: 2 targets
lrwxr-xr-x 1 agc agc 104 May 21 22:21 cd0 -> cd0 at atapibus0 drive 0: <VMware Virtual IDE CDROM Drive, 1000000000000000000, 0000000> cdrom removable
%
 1.2 20-Jul-2013  wiz Use Mt for email addresses.
 1.1 21-May-2007  agc branches: 1.1.34; 1.1.40; 1.1.46;
Another day, another file system.

dmesgfs is another example file system, which displays the device tree
information gained from dmesg(8) as a directory hierarchy. The information
can be displayed in files, or as targets of symbolic links.

% l /mnt/mainbus0
total 320
drwxr-xr-x 2 agc agc 512 May 21 22:21 .
drwxr-xr-x 2 root wheel 0 Jan 1 1970 ..
drwxr-xr-x 2 agc agc 512 May 21 22:21 acpi0
lrwxr-xr-x 1 agc agc 41 May 21 22:21 cpu0 -> cpu0 at mainbus0 apid 0: (boot processor)
lrwxr-xr-x 1 agc agc 40 May 21 22:21 ioapic -> ioapic at mainbus0 apid 1 not configured
drwxr-xr-x 2 agc agc 512 May 21 22:21 pci0
% l /mnt/mainbus0/pci0/piixide0/atabus1/atapibus0
total 256
drwxr-xr-x 2 agc agc 512 May 21 22:21 .
drwxr-xr-x 2 agc agc 512 May 21 22:21 ..
lrwxr-xr-x 1 agc agc 31 May 21 22:21 Description -> atapibus0 at atabus1: 2 targets
lrwxr-xr-x 1 agc agc 104 May 21 22:21 cd0 -> cd0 at atapibus0 drive 0: <VMware Virtual IDE CDROM Drive, 1000000000000000000, 0000000> cdrom removable
%
 1.1.46.1 23-Jul-2013  riastradh sync with HEAD
 1.1.40.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.34.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1 21-May-2007  agc Another day, another file system.

dmesgfs is another example file system, which displays the device tree
information gained from dmesg(8) as a directory hierarchy. The information
can be displayed in files, or as targets of symbolic links.

% l /mnt/mainbus0
total 320
drwxr-xr-x 2 agc agc 512 May 21 22:21 .
drwxr-xr-x 2 root wheel 0 Jan 1 1970 ..
drwxr-xr-x 2 agc agc 512 May 21 22:21 acpi0
lrwxr-xr-x 1 agc agc 41 May 21 22:21 cpu0 -> cpu0 at mainbus0 apid 0: (boot processor)
lrwxr-xr-x 1 agc agc 40 May 21 22:21 ioapic -> ioapic at mainbus0 apid 1 not configured
drwxr-xr-x 2 agc agc 512 May 21 22:21 pci0
% l /mnt/mainbus0/pci0/piixide0/atabus1/atapibus0
total 256
drwxr-xr-x 2 agc agc 512 May 21 22:21 .
drwxr-xr-x 2 agc agc 512 May 21 22:21 ..
lrwxr-xr-x 1 agc agc 31 May 21 22:21 Description -> atapibus0 at atabus1: 2 targets
lrwxr-xr-x 1 agc agc 104 May 21 22:21 cd0 -> cd0 at atapibus0 drive 0: <VMware Virtual IDE CDROM Drive, 1000000000000000000, 0000000> cdrom removable
%
 1.2 11-Sep-2007  agc Generalise the tests for OBJDIR and non-OBJDIR builds
 1.1 31-Mar-2007  agc branches: 1.1.4;
Add a refuse-based "fanout" file system. This is more commonly known in
the BSD world as a "union" file system.

This fanout file system takes a number of directories and makes them
available under a single mount point.

This is more of an example file sytsem than anything else, but is used
as the basis of a number of other file systems which will be forthcoming
"real soon now".
 1.1.4.1 06-Nov-2007  matt sync with HEAD
 1.2 20-Aug-2007  agc If we're writing to a file, make sure the version we're writing is in
the topmost directory (the writable one). If it's not there, copy the
file to there.
 1.1 31-Mar-2007  agc Add a refuse-based "fanout" file system. This is more commonly known in
the BSD world as a "union" file system.

This fanout file system takes a number of directories and makes them
available under a single mount point.

This is more of an example file sytsem than anything else, but is used
as the basis of a number of other file systems which will be forthcoming
"real soon now".
 1.1 31-Mar-2007  agc Add a refuse-based "fanout" file system. This is more commonly known in
the BSD world as a "union" file system.

This fanout file system takes a number of directories and makes them
available under a single mount point.

This is more of an example file sytsem than anything else, but is used
as the basis of a number of other file systems which will be forthcoming
"real soon now".
 1.3 11-Sep-2007  wiz Fix xref, sort SEE ALSO. Add RCS Id.
 1.2 11-Sep-2007  agc Generalise the tests for objdir builds, as well as none
 1.1 31-Mar-2007  agc branches: 1.1.4;
Add a refuse-based "fanout" file system. This is more commonly known in
the BSD world as a "union" file system.

This fanout file system takes a number of directories and makes them
available under a single mount point.

This is more of an example file sytsem than anything else, but is used
as the basis of a number of other file systems which will be forthcoming
"real soon now".
 1.1.4.1 06-Nov-2007  matt sync with HEAD
 1.2 20-Aug-2007  agc If we're writing to a file, make sure the version we're writing is in
the topmost directory (the writable one). If it's not there, copy the
file to there.
 1.1 31-Mar-2007  agc Add a refuse-based "fanout" file system. This is more commonly known in
the BSD world as a "union" file system.

This fanout file system takes a number of directories and makes them
available under a single mount point.

This is more of an example file sytsem than anything else, but is used
as the basis of a number of other file systems which will be forthcoming
"real soon now".
 1.1 31-Mar-2007  agc Add a refuse-based "fanout" file system. This is more commonly known in
the BSD world as a "union" file system.

This fanout file system takes a number of directories and makes them
available under a single mount point.

This is more of an example file sytsem than anything else, but is used
as the basis of a number of other file systems which will be forthcoming
"real soon now".
 1.1 28-Aug-2007  agc branches: 1.1.2;
Makefile for new ian file system
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 28-Aug-2007  matt file Makefile was added on branch matt-armv6 on 2007-11-06 23:12:43 +0000
 1.1 28-Aug-2007  agc branches: 1.1.2;
Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 28-Aug-2007  matt file Makefile was added on branch matt-armv6 on 2007-11-06 23:12:43 +0000
 1.1 28-Aug-2007  agc branches: 1.1.2;
Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 28-Aug-2007  matt file ian.8 was added on branch matt-armv6 on 2007-11-06 23:12:44 +0000
 1.1 28-Aug-2007  agc branches: 1.1.2;
Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 28-Aug-2007  matt file ian.c was added on branch matt-armv6 on 2007-11-06 23:12:45 +0000
 1.2 29-Aug-2007  agc branches: 1.2.2;
Modify the NetBSD emulation of the FreeBSD __DECONST macro to include
the cast as well. From Dag-Erling Co\xEFdan Sm\xF8rgrav.
 1.1 28-Aug-2007  agc Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.2.2.2 06-Nov-2007  matt sync with HEAD
 1.2.2.1 29-Aug-2007  matt file Makefile was added on branch matt-armv6 on 2007-11-06 23:12:45 +0000
 1.2 29-Aug-2007  agc branches: 1.2.2;
Modify the NetBSD emulation of the FreeBSD __DECONST macro to include
the cast as well. From Dag-Erling Co\xEFdan Sm\xF8rgrav.
 1.1 28-Aug-2007  agc Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.2.2.2 06-Nov-2007  matt sync with HEAD
 1.2.2.1 29-Aug-2007  matt file common.c was added on branch matt-armv6 on 2007-11-06 23:12:46 +0000
 1.1 28-Aug-2007  agc branches: 1.1.2;
Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 28-Aug-2007  matt file common.h was added on branch matt-armv6 on 2007-11-06 23:12:47 +0000
 1.2 20-Jul-2013  wiz Use Mt for email addresses.
 1.1 28-Aug-2007  agc branches: 1.1.2; 1.1.30; 1.1.36; 1.1.42;
Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.1.42.1 23-Jul-2013  riastradh sync with HEAD
 1.1.36.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.30.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 28-Aug-2007  matt file fetch.3 was added on branch matt-armv6 on 2007-11-06 23:12:47 +0000
 1.1 28-Aug-2007  agc branches: 1.1.2;
Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 28-Aug-2007  matt file fetch.c was added on branch matt-armv6 on 2007-11-06 23:12:48 +0000
 1.1 28-Aug-2007  agc branches: 1.1.2;
Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 28-Aug-2007  matt file fetch.h was added on branch matt-armv6 on 2007-11-06 23:12:49 +0000
 1.1 28-Aug-2007  agc branches: 1.1.2;
Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 28-Aug-2007  matt file file.c was added on branch matt-armv6 on 2007-11-06 23:12:49 +0000
 1.2 29-Aug-2007  agc branches: 1.2.2;
Modify the NetBSD emulation of the FreeBSD __DECONST macro to include
the cast as well. From Dag-Erling Co\xEFdan Sm\xF8rgrav.
 1.1 28-Aug-2007  agc Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.2.2.2 06-Nov-2007  matt sync with HEAD
 1.2.2.1 29-Aug-2007  matt file free2net.h was added on branch matt-armv6 on 2007-11-06 23:12:50 +0000
 1.1 28-Aug-2007  agc branches: 1.1.2;
Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 28-Aug-2007  matt file ftp.c was added on branch matt-armv6 on 2007-11-06 23:12:50 +0000
 1.1 28-Aug-2007  agc branches: 1.1.2;
Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 28-Aug-2007  matt file ftp.errors was added on branch matt-armv6 on 2007-11-06 23:12:51 +0000
 1.1 28-Aug-2007  agc branches: 1.1.2;
Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 28-Aug-2007  matt file http.c was added on branch matt-armv6 on 2007-11-06 23:12:52 +0000
 1.1 28-Aug-2007  agc branches: 1.1.2;
Add a new refuse-based file system called ian - the Internet Access Node.

This utility uses FreeBSD's libfetch (updated for NetBSD, and to quieten
lint) to provide a BSD-licensed ftp/http/https file system similar to the
old alex utility. The full URL is used as the path underneath the "/ian"
mountpoint.

Sample use as follows:

[19:09:38] agc@inspiron1300 ...examples/refuse/ian 126 > priv ian/obj/ian /ian
[19:09:55] agc@inspiron1300 ...examples/refuse/ian 127 > cat /ian/ftp://localhost/motd
NetBSD 4.99.27 (INSPIRON) #4: Tue Aug 7 13:04:33 BST 2007

Welcome to NetBSD!

This system is running a development snapshot of the NetBSD operating system,
also known as NetBSD-current. It is highly possible for it to contain serious
bugs, regressions, broken features or other problems. Please bear this in mind
and use the system with care.

You are encouraged to test this version as thoroughly as possible. Should you
encounter any problem, please report it back to the development team using the
send-pr(1) utility (requires a working MTA). If yours is not properly set up,
use the web interface at: http://www.netbsd.org/support/send-pr.html

Thank you for helping us test and improve NetBSD.

[19:10:17] agc@inspiron1300 ...examples/refuse/ian 128 > df
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/dk0 28101396 19491972 7204356 73% /
kernfs 1 1 0 100% /kern
procfs 4 4 0 100% /proc
ptyfs 1 1 0 100% /dev/pts
/dev/puffs 0 0 0 100% /ian
[19:10:21] agc@inspiron1300 ...examples/refuse/ian 129 > ls -al /ian/ftp://localhost/motd
-rw------- 1 root wheel 705 Aug 28 19:10 /ian/ftp://localhost/motd
[19:10:42] agc@inspiron1300 ...examples/refuse/ian 130 > ls -al ~ftp/motd
-rw-r--r-- 1 ftp ftp 705 Aug 27 21:33 /home/ftp/motd
[19:10:53] agc@inspiron1300 ...examples/refuse/ian 131 >
 1.1.2.2 06-Nov-2007  matt sync with HEAD
 1.1.2.1 28-Aug-2007  matt file http.errors was added on branch matt-armv6 on 2007-11-06 23:12:52 +0000
 1.1 21-Jun-2007  agc branches: 1.1.1;
Initial revision
 1.1.1.1 21-Jun-2007  agc Initial import of icfs, a case-insensitive/retentive file system.

This file system is based on librefuse and puffs.

The icfs(8) utility can be used to mount an existing directory on a
new mount point. icfs makes use of the virtdir(3) virtual directory
routines. Underneath those virtual directories, the individual
directory entries will be displayed as an exact mirror of the original
directory, except that any capital letters in the original entry's
name will be substituted with an entry name consisting entirely of
lower-case letters.

This is an unusual example of a refuse-based file system which provides
lesser functionality than the file system it sits on.
 1.1 21-Jun-2007  agc branches: 1.1.1;
Initial revision
 1.1.1.1 21-Jun-2007  agc Initial import of icfs, a case-insensitive/retentive file system.

This file system is based on librefuse and puffs.

The icfs(8) utility can be used to mount an existing directory on a
new mount point. icfs makes use of the virtdir(3) virtual directory
routines. Underneath those virtual directories, the individual
directory entries will be displayed as an exact mirror of the original
directory, except that any capital letters in the original entry's
name will be substituted with an entry name consisting entirely of
lower-case letters.

This is an unusual example of a refuse-based file system which provides
lesser functionality than the file system it sits on.
 1.1 21-Jun-2007  agc branches: 1.1.1;
Initial revision
 1.1.1.1 21-Jun-2007  agc Initial import of icfs, a case-insensitive/retentive file system.

This file system is based on librefuse and puffs.

The icfs(8) utility can be used to mount an existing directory on a
new mount point. icfs makes use of the virtdir(3) virtual directory
routines. Underneath those virtual directories, the individual
directory entries will be displayed as an exact mirror of the original
directory, except that any capital letters in the original entry's
name will be substituted with an entry name consisting entirely of
lower-case letters.

This is an unusual example of a refuse-based file system which provides
lesser functionality than the file system it sits on.
 1.1 15-Apr-2007  agc Add id3fs, a virtual file system, based on librefuse, for accessing
mp3-based files according to artist, genre or year.

Three virtual directories are made available under the mount point -

artists/
genre/
year/

and then virtual directory entries (see virtdir(3)) are created under
these heading directories.

The pkgsrc/audio/id3 package is needed for this file system to function
properly.

Two shell scripts, id3info.sh and id3db.sh, are included to build up
the music database for id3fs to use to build up its virtual
directories.
 1.1 15-Apr-2007  agc Add id3fs, a virtual file system, based on librefuse, for accessing
mp3-based files according to artist, genre or year.

Three virtual directories are made available under the mount point -

artists/
genre/
year/

and then virtual directory entries (see virtdir(3)) are created under
these heading directories.

The pkgsrc/audio/id3 package is needed for this file system to function
properly.

Two shell scripts, id3info.sh and id3db.sh, are included to build up
the music database for id3fs to use to build up its virtual
directories.
 1.1 15-Apr-2007  agc Add id3fs, a virtual file system, based on librefuse, for accessing
mp3-based files according to artist, genre or year.

Three virtual directories are made available under the mount point -

artists/
genre/
year/

and then virtual directory entries (see virtdir(3)) are created under
these heading directories.

The pkgsrc/audio/id3 package is needed for this file system to function
properly.

Two shell scripts, id3info.sh and id3db.sh, are included to build up
the music database for id3fs to use to build up its virtual
directories.
 1.1 15-Apr-2007  agc Add id3fs, a virtual file system, based on librefuse, for accessing
mp3-based files according to artist, genre or year.

Three virtual directories are made available under the mount point -

artists/
genre/
year/

and then virtual directory entries (see virtdir(3)) are created under
these heading directories.

The pkgsrc/audio/id3 package is needed for this file system to function
properly.

Two shell scripts, id3info.sh and id3db.sh, are included to build up
the music database for id3fs to use to build up its virtual
directories.
 1.3 21-May-2007  agc Adapt to new signature for virtdir_add().
 1.2 18-Apr-2007  agc Take advantage of the new functionality in virtdir_add() to create
intermediate directories automatically.
 1.1 15-Apr-2007  agc Add id3fs, a virtual file system, based on librefuse, for accessing
mp3-based files according to artist, genre or year.

Three virtual directories are made available under the mount point -

artists/
genre/
year/

and then virtual directory entries (see virtdir(3)) are created under
these heading directories.

The pkgsrc/audio/id3 package is needed for this file system to function
properly.

Two shell scripts, id3info.sh and id3db.sh, are included to build up
the music database for id3fs to use to build up its virtual
directories.
 1.1 15-Apr-2007  agc Add id3fs, a virtual file system, based on librefuse, for accessing
mp3-based files according to artist, genre or year.

Three virtual directories are made available under the mount point -

artists/
genre/
year/

and then virtual directory entries (see virtdir(3)) are created under
these heading directories.

The pkgsrc/audio/id3 package is needed for this file system to function
properly.

Two shell scripts, id3info.sh and id3db.sh, are included to build up
the music database for id3fs to use to build up its virtual
directories.
 1.1 16-May-2007  agc Add a new, trivial file system, pcifs, which shows the devices on a
pcibus (via pcictl(8)) under the mount point:

% df /mnt
Filesystem 1K-blocks Used Avail Capacity Mounted on
puffs:refuse:pcifs 0 0 0 100% /mnt
% l /mnt
total 642
drwxr-xr-x 2 root wheel 0 Jan 1 1970 .
drwxr-xr-x 31 root wheel 1024 May 16 20:06 ..
lrw-r--r-- 1 agc agc 65 May 16 22:05 000:00:0: -> Intel 82443BX Host Bridge/Controller (host bridge, revision 0x01)
lrw-r--r-- 1 agc agc 55 May 16 22:05 000:01:0: -> Intel 82443BX AGP Interface (PCI bridge, revision 0x01)
lrw-r--r-- 1 agc agc 64 May 16 22:05 000:07:0: -> Intel 82371AB (PIIX4) PCI-ISA Bridge (ISA bridge, revision 0x08)
lrw-r--r-- 1 agc agc 86 May 16 22:05 000:07:1: -> Intel 82371AB (PIIX4) IDE controller (IDE mass storage, interface 0x8a, revision 0x01)
lrw-r--r-- 1 agc agc 58 May 16 22:05 000:07:2: -> Intel 82371AB (PIIX4) USB Host Controller (USB serial bus)
lrw-r--r-- 1 agc agc 87 May 16 22:05 000:07:3: -> Intel 82371AB (PIIX4) Power Management Controller (miscellaneous bridge, revision 0x08)
lrw-r--r-- 1 agc agc 36 May 16 22:05 000:15:0: -> VMware Virtual SVGA II (VGA display)
lrw-r--r-- 1 agc agc 56 May 16 22:05 000:16:0: -> Symbios Logic 53c1030 (SCSI mass storage, revision 0x01)
lrw-r--r-- 1 agc agc 75 May 16 22:05 000:17:0: -> Advanced Micro Devices PCnet-PCI Ethernet (ethernet network, revision 0x10)
lrw-r--r-- 1 agc agc 53 May 16 22:05 000:18:0: -> Ensoniq AudioPCI 97 (audio multimedia, revision 0x02)
%

pcifs uses the virtdir routines, librefuse and puffs.
 1.4 18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.3 20-Jul-2013  wiz Use Mt for email addresses.
 1.2 25-May-2008  wiz branches: 1.2.18; 1.2.24; 1.2.30;
Add RCS Id. Sort options. Fix xref.
XXX: virtdir(3) does not exist, but I do not know to which page the link
should point instead.
 1.1 16-May-2007  agc branches: 1.1.10; 1.1.12; 1.1.14;
Add a new, trivial file system, pcifs, which shows the devices on a
pcibus (via pcictl(8)) under the mount point:

% df /mnt
Filesystem 1K-blocks Used Avail Capacity Mounted on
puffs:refuse:pcifs 0 0 0 100% /mnt
% l /mnt
total 642
drwxr-xr-x 2 root wheel 0 Jan 1 1970 .
drwxr-xr-x 31 root wheel 1024 May 16 20:06 ..
lrw-r--r-- 1 agc agc 65 May 16 22:05 000:00:0: -> Intel 82443BX Host Bridge/Controller (host bridge, revision 0x01)
lrw-r--r-- 1 agc agc 55 May 16 22:05 000:01:0: -> Intel 82443BX AGP Interface (PCI bridge, revision 0x01)
lrw-r--r-- 1 agc agc 64 May 16 22:05 000:07:0: -> Intel 82371AB (PIIX4) PCI-ISA Bridge (ISA bridge, revision 0x08)
lrw-r--r-- 1 agc agc 86 May 16 22:05 000:07:1: -> Intel 82371AB (PIIX4) IDE controller (IDE mass storage, interface 0x8a, revision 0x01)
lrw-r--r-- 1 agc agc 58 May 16 22:05 000:07:2: -> Intel 82371AB (PIIX4) USB Host Controller (USB serial bus)
lrw-r--r-- 1 agc agc 87 May 16 22:05 000:07:3: -> Intel 82371AB (PIIX4) Power Management Controller (miscellaneous bridge, revision 0x08)
lrw-r--r-- 1 agc agc 36 May 16 22:05 000:15:0: -> VMware Virtual SVGA II (VGA display)
lrw-r--r-- 1 agc agc 56 May 16 22:05 000:16:0: -> Symbios Logic 53c1030 (SCSI mass storage, revision 0x01)
lrw-r--r-- 1 agc agc 75 May 16 22:05 000:17:0: -> Advanced Micro Devices PCnet-PCI Ethernet (ethernet network, revision 0x10)
lrw-r--r-- 1 agc agc 53 May 16 22:05 000:18:0: -> Ensoniq AudioPCI 97 (audio multimedia, revision 0x02)
%

pcifs uses the virtdir routines, librefuse and puffs.
 1.1.14.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.1.12.1 04-Jun-2008  yamt sync with head
 1.1.10.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.30.1 23-Jul-2013  riastradh sync with HEAD
 1.2.24.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.18.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2 21-May-2007  agc Adapt to new signature for virtdir_add().
 1.1 16-May-2007  agc Add a new, trivial file system, pcifs, which shows the devices on a
pcibus (via pcictl(8)) under the mount point:

% df /mnt
Filesystem 1K-blocks Used Avail Capacity Mounted on
puffs:refuse:pcifs 0 0 0 100% /mnt
% l /mnt
total 642
drwxr-xr-x 2 root wheel 0 Jan 1 1970 .
drwxr-xr-x 31 root wheel 1024 May 16 20:06 ..
lrw-r--r-- 1 agc agc 65 May 16 22:05 000:00:0: -> Intel 82443BX Host Bridge/Controller (host bridge, revision 0x01)
lrw-r--r-- 1 agc agc 55 May 16 22:05 000:01:0: -> Intel 82443BX AGP Interface (PCI bridge, revision 0x01)
lrw-r--r-- 1 agc agc 64 May 16 22:05 000:07:0: -> Intel 82371AB (PIIX4) PCI-ISA Bridge (ISA bridge, revision 0x08)
lrw-r--r-- 1 agc agc 86 May 16 22:05 000:07:1: -> Intel 82371AB (PIIX4) IDE controller (IDE mass storage, interface 0x8a, revision 0x01)
lrw-r--r-- 1 agc agc 58 May 16 22:05 000:07:2: -> Intel 82371AB (PIIX4) USB Host Controller (USB serial bus)
lrw-r--r-- 1 agc agc 87 May 16 22:05 000:07:3: -> Intel 82371AB (PIIX4) Power Management Controller (miscellaneous bridge, revision 0x08)
lrw-r--r-- 1 agc agc 36 May 16 22:05 000:15:0: -> VMware Virtual SVGA II (VGA display)
lrw-r--r-- 1 agc agc 56 May 16 22:05 000:16:0: -> Symbios Logic 53c1030 (SCSI mass storage, revision 0x01)
lrw-r--r-- 1 agc agc 75 May 16 22:05 000:17:0: -> Advanced Micro Devices PCnet-PCI Ethernet (ethernet network, revision 0x10)
lrw-r--r-- 1 agc agc 53 May 16 22:05 000:18:0: -> Ensoniq AudioPCI 97 (audio multimedia, revision 0x02)
%

pcifs uses the virtdir routines, librefuse and puffs.
 1.1 15-Apr-2007  agc Add routines to manipulate virtual directory entries, for use with
librefuse-based file systems.

These are especially useful for file systems which present virtual
directory hierarchies to the caller.

The routines build up and manage an array of virtual directory
entries, indexed upon full pathname within the file system. This is
analogous to the way refuse indexes its own entries. Routines are
available to add, delete, and find entries. Each entry can be one of
3 types - file ('f'), directory ('d') or symbolic link ('l'). Each
entry can also be associated with a target, which is a character
string allocated upon addition. This can be useful for virtual
directory entries of the symbolic link type.

The virtual directory entries can be traversed as an ordered list
(the entries are ordered alphabetically), or can be accessed by
directory component, using routines analogous to opendir(3), readdir(3),
and closedir(3).
 1.1 15-Apr-2007  agc Add routines to manipulate virtual directory entries, for use with
librefuse-based file systems.

These are especially useful for file systems which present virtual
directory hierarchies to the caller.

The routines build up and manage an array of virtual directory
entries, indexed upon full pathname within the file system. This is
analogous to the way refuse indexes its own entries. Routines are
available to add, delete, and find entries. Each entry can be one of
3 types - file ('f'), directory ('d') or symbolic link ('l'). Each
entry can also be associated with a target, which is a character
string allocated upon addition. This can be useful for virtual
directory entries of the symbolic link type.

The virtual directory entries can be traversed as an ordered list
(the entries are ordered alphabetically), or can be accessed by
directory component, using routines analogous to opendir(3), readdir(3),
and closedir(3).
 1.4 18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.3 20-Jul-2013  wiz Use Mt for email addresses.
 1.2 02-Dec-2007  wiz branches: 1.2.28; 1.2.34; 1.2.40;
Use more markup. Fix xrefs. Use standard headers.
 1.1 15-Apr-2007  agc branches: 1.1.4;
Add routines to manipulate virtual directory entries, for use with
librefuse-based file systems.

These are especially useful for file systems which present virtual
directory hierarchies to the caller.

The routines build up and manage an array of virtual directory
entries, indexed upon full pathname within the file system. This is
analogous to the way refuse indexes its own entries. Routines are
available to add, delete, and find entries. Each entry can be one of
3 types - file ('f'), directory ('d') or symbolic link ('l'). Each
entry can also be associated with a target, which is a character
string allocated upon addition. This can be useful for virtual
directory entries of the symbolic link type.

The virtual directory entries can be traversed as an ordered list
(the entries are ordered alphabetically), or can be accessed by
directory component, using routines analogous to opendir(3), readdir(3),
and closedir(3).
 1.1.4.1 09-Jan-2008  matt sync with HEAD
 1.2.40.1 23-Jul-2013  riastradh sync with HEAD
 1.2.34.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.28.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.9 07-Feb-2008  agc Set a definitive FUSE ABI before including fuse.h, to avoid situations
where different operating ssystems default to different levels.
 1.8 11-Nov-2007  agc Only use the bottom 20bits for an inode number to prevent the inode number creeping out of range for fts
 1.7 11-Nov-2007  agc Include a (random) inode number in the virtual directory information that
is held. Return this as part of the virtual entry information.

Prevents problems with fts code thinking that some directories create
a cycle.
 1.6 21-Jun-2007  agc branches: 1.6.4;
Record the root directory at initialisation time.

Add a function to "normalise" a path to condense multiple repeated '/'
characters into one.
 1.5 21-May-2007  agc Add a size parameter to virtdir_add, so that binary information can be
attached to a virtual directory entry.
 1.4 19-May-2007  agc Add a function to return the virtual offset in the virtdir_t tree.
 1.3 18-Apr-2007  agc When adding virtual directory entries, check the path to see that
intermediate directories have already been created. If not, then
create the intermediate directories. This means that callers don't
need to create the intermediate directories themselves.

When reading a virtual directory, don't return a zero-length
virtual directory entry.
 1.2 17-Apr-2007  agc Don't allow duplicate directory entries to be created.

Correct a comment.
 1.1 15-Apr-2007  agc Add routines to manipulate virtual directory entries, for use with
librefuse-based file systems.

These are especially useful for file systems which present virtual
directory hierarchies to the caller.

The routines build up and manage an array of virtual directory
entries, indexed upon full pathname within the file system. This is
analogous to the way refuse indexes its own entries. Routines are
available to add, delete, and find entries. Each entry can be one of
3 types - file ('f'), directory ('d') or symbolic link ('l'). Each
entry can also be associated with a target, which is a character
string allocated upon addition. This can be useful for virtual
directory entries of the symbolic link type.

The virtual directory entries can be traversed as an ordered list
(the entries are ordered alphabetically), or can be accessed by
directory component, using routines analogous to opendir(3), readdir(3),
and closedir(3).
 1.6.4.2 23-Mar-2008  matt sync with HEAD
 1.6.4.1 09-Jan-2008  matt sync with HEAD
 1.5 11-Nov-2007  agc Include a (random) inode number in the virtual directory information that
is held. Return this as part of the virtual entry information.

Prevents problems with fts code thinking that some directories create
a cycle.
 1.4 21-Jun-2007  agc branches: 1.4.4;
Record the root directory at initialisation time.

Add a function to "normalise" a path to condense multiple repeated '/'
characters into one.
 1.3 21-May-2007  agc Add a size parameter to virtdir_add, so that binary information can be
attached to a virtual directory entry.
 1.2 19-May-2007  agc Add a function to return the virtual offset in the virtdir_t tree.
 1.1 15-Apr-2007  agc Add routines to manipulate virtual directory entries, for use with
librefuse-based file systems.

These are especially useful for file systems which present virtual
directory hierarchies to the caller.

The routines build up and manage an array of virtual directory
entries, indexed upon full pathname within the file system. This is
analogous to the way refuse indexes its own entries. Routines are
available to add, delete, and find entries. Each entry can be one of
3 types - file ('f'), directory ('d') or symbolic link ('l'). Each
entry can also be associated with a target, which is a character
string allocated upon addition. This can be useful for virtual
directory entries of the symbolic link type.

The virtual directory entries can be traversed as an ordered list
(the entries are ordered alphabetically), or can be accessed by
directory component, using routines analogous to opendir(3), readdir(3),
and closedir(3).
 1.4.4.1 09-Jan-2008  matt sync with HEAD
 1.6 11-Nov-2010  pooka Remove some programs which live as atf tests now.
 1.5 01-May-2010  pooka Add a test/example program for using audio/pad in a rump kernel.
It stuffs some nice sounds into the virtual kernel's /dev/audio,
reads the PCM from /dev/pad, and writes the data to stdout from
where it can be piped to audioplay to test that things actually
work.

If you want to know the secret message, you'll just have to run
this program ;)
 1.4 22-Mar-2010  pooka Add an example/test program for rump bluetooth. This does discovery
and prints the address and name of the first peer encountered (if any):

ubt0 at uhub0 port 1
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.15, addr 2
device ubt0, addr xx:xx:xx:xx:xx:xx
my peer: yy:yy:yy:yy:yy:yy, major class: 2 (phone)
peer name: Mokia maailmalta
 1.3 07-Mar-2010  pooka Add a simple tty server which attaches to /dev/ttyU in the rump
kernel and provides the same device on the host with pud(4). I
can succesfully talk to my u3g device using tip(1) against the
server's devices. Some characters are lost here and there, though
(probably a problem with interrupt pipes in ugenhc). Once that
issues is solved, there is no reason why e.g. pppd (chat) could
not be used against the server.

Now, why would anyone want to do this instead of using the kernel
driver directly? Well, for one, on my laptop I run netbsd-5 which
doesn't have a u3g driver which supports the u3g hardware I have.

As anyone with half an eye can see, this is quite copypasted from
umserv and there is plenty of opportunity for uncopypasting for
the eager vi-wielder.
 1.2 11-Jan-2010  pooka descend into new subdirs
 1.1 09-Jan-2010  pooka Stick a top-level subdir-makefile here for easy build-testing.
 1.1 11-Nov-2010  pooka Add readme explaining which grue has ok'd the eating of some code
until recently located here.
 1.1 22-Mar-2010  pooka Add an example/test program for rump bluetooth. This does discovery
and prints the address and name of the first peer encountered (if any):

ubt0 at uhub0 port 1
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.15, addr 2
device ubt0, addr xx:xx:xx:xx:xx:xx
my peer: yy:yy:yy:yy:yy:yy, major class: 2 (phone)
peer name: Mokia maailmalta
 1.1 22-Mar-2010  pooka Add an example/test program for rump bluetooth. This does discovery
and prints the address and name of the first peer encountered (if any):

ubt0 at uhub0 port 1
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.15, addr 2
device ubt0, addr xx:xx:xx:xx:xx:xx
my peer: yy:yy:yy:yy:yy:yy, major class: 2 (phone)
peer name: Mokia maailmalta
 1.2 05-Dec-2009  haad Fix some small bugs pointed out byt pooka@. Remove not needed -D defines and
do not include private kernel header files. Instead copy part of it to test
program.
 1.1 04-Dec-2009  haad Add small testing program which uses RUMP libdm to test device-mapper
functionality in userspace.
 1.3 05-Dec-2009  haad Include public interface describing user-kernel interface from include/dev/dm.
 1.2 05-Dec-2009  haad Fix some small bugs pointed out byt pooka@. Remove not needed -D defines and
do not include private kernel header files. Instead copy part of it to test
program.
 1.1 04-Dec-2009  haad Add small testing program which uses RUMP libdm to test device-mapper
functionality in userspace.
 1.1 04-Dec-2009  haad Add small testing program which uses RUMP libdm to test device-mapper
functionality in userspace.
 1.1 04-Dec-2009  haad Add small testing program which uses RUMP libdm to test device-mapper
functionality in userspace.
 1.6 23-Aug-2010  pooka update component lists: scsipi is independent of umass now
 1.5 17-Feb-2010  pooka * support cd devices (@scsibus & @atapibus, per libumass)
* support cd9660
* add "probe" keyword, which just prints the dmesg in verbose form
 1.4 10-Feb-2010  pooka rumpusbhc is now ugenhc
 1.3 14-Oct-2009  pooka WARNS
 1.2 13-Oct-2009  pooka Try ffs is msdosfs mount fails -- I happened to have one USB stick
where the file system is ffs.
 1.1 05-Oct-2009  pooka Add an example program which shows how to mount and read files from
an msdos file system which is located on a usb stick. What makes
this special is that the USB driver stack (and the file system
driver, of course) is run in rump instead of in the host kernel.
 1.6 25-Mar-2010  pooka Check open return value and close fd when we're done.
 1.5 22-Mar-2010  pooka Use DIOCTUR to test if a newly configured CD drive is ready instead
of playing a random waiting game.
 1.4 07-Mar-2010  pooka Pause after probe here too, so that you can amuse yourself by
unplugging and replugging devices and looking at the detach/attach
feedback messages.
 1.3 17-Feb-2010  pooka * support cd devices (@scsibus & @atapibus, per libumass)
* support cd9660
* add "probe" keyword, which just prints the dmesg in verbose form
 1.2 13-Oct-2009  pooka Try ffs is msdosfs mount fails -- I happened to have one USB stick
where the file system is ffs.
 1.1 05-Oct-2009  pooka Add an example program which shows how to mount and read files from
an msdos file system which is located on a usb stick. What makes
this special is that the USB driver stack (and the file system
driver, of course) is run in rump instead of in the host kernel.
 1.3 14-Jun-2010  pooka tty support is in rumpkern_tty now
 1.2 10-Feb-2010  pooka rumpusbhc is now ugenhc
 1.1 20-Dec-2009  pooka Add a simple terminal program which uses a rump kernel for a ucom@usb
terminal and host terminal stdin/stdout for human interaction.
Tipsy just simply shovels bits between the two. I can use my
JavaStation Krups (*) serial console with this ... without having
to worry abort those pesky usb drivers crashing my desktop kernel.

*) strictly speaking it's uwe's ;)
 1.2 18-Feb-2010  pooka In "probeonly", pause after bootstrap to make "monkey plug and
unplug device, monkey see fancy dmesg info" possible.
 1.1 20-Dec-2009  pooka Add a simple terminal program which uses a rump kernel for a ucom@usb
terminal and host terminal stdin/stdout for human interaction.
Tipsy just simply shovels bits between the two. I can use my
JavaStation Krups (*) serial console with this ... without having
to worry abort those pesky usb drivers crashing my desktop kernel.

*) strictly speaking it's uwe's ;)
 1.3 25-Jan-2016  pooka add -D_KERNTYPES
 1.2 14-Jun-2010  pooka tty support is in rumpkern_tty now
 1.1 07-Mar-2010  pooka Add a simple tty server which attaches to /dev/ttyU in the rump
kernel and provides the same device on the host with pud(4). I
can succesfully talk to my u3g device using tip(1) against the
server's devices. Some characters are lost here and there, though
(probably a problem with interrupt pipes in ugenhc). Once that
issues is solved, there is no reason why e.g. pppd (chat) could
not be used against the server.

Now, why would anyone want to do this instead of using the kernel
driver directly? Well, for one, on my laptop I run netbsd-5 which
doesn't have a u3g driver which supports the u3g hardware I have.

As anyone with half an eye can see, this is quite copypasted from
umserv and there is plenty of opportunity for uncopypasting for
the eager vi-wielder.
 1.3 25-Jan-2016  pooka Don't include <rump/rumpvnode_if.h> from rump.h. It's not needed
unless you're doing something special, but requires register_t.
Adjust the few places which actually need rumpvnode_if.h.
 1.2 24-Jun-2010  hannken Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.
 1.1 07-Mar-2010  pooka Add a simple tty server which attaches to /dev/ttyU in the rump
kernel and provides the same device on the host with pud(4). I
can succesfully talk to my u3g device using tip(1) against the
server's devices. Some characters are lost here and there, though
(probably a problem with interrupt pipes in ugenhc). Once that
issues is solved, there is no reason why e.g. pppd (chat) could
not be used against the server.

Now, why would anyone want to do this instead of using the kernel
driver directly? Well, for one, on my laptop I run netbsd-5 which
doesn't have a u3g driver which supports the u3g hardware I have.

As anyone with half an eye can see, this is quite copypasted from
umserv and there is plenty of opportunity for uncopypasting for
the eager vi-wielder.
 1.2 10-Feb-2010  pooka rumpusbhc is now ugenhc
 1.1 11-Jan-2010  pooka Add an example program which reads keypresses from the ukbd driver
(via wscons) and simply prints them on screen.
 1.1 11-Jan-2010  pooka Add an example program which reads keypresses from the ukbd driver
(via wscons) and simply prints them on screen.
 1.2 10-Feb-2010  pooka rumpusbhc is now ugenhc
 1.1 15-Dec-2009  pooka Add an example to show how to print with a rump ulpt driver.
 1.1 15-Dec-2009  pooka Add an example to show how to print with a rump ulpt driver.
 1.2 10-Feb-2010  pooka rumpusbhc is now ugenhc
 1.1 11-Jan-2010  pooka Read mouse events from wsmouse and move a silly curses cursor around
the screen (quite poorly, i might add ;).
 1.1 11-Jan-2010  pooka Read mouse events from wsmouse and move a silly curses cursor around
the screen (quite poorly, i might add ;).
 1.4 25-Jan-2016  pooka add -D_KERNTYPES
 1.3 23-Aug-2010  pooka update component lists: scsipi is independent of umass now
 1.2 10-Feb-2010  pooka rumpusbhc is now ugenhc
 1.1 22-Dec-2009  pooka Add a simple example of how to run the kernel umass/USB in userspace
and attach it back to the host kernel using pud(4). The result is
pretty much indistinguisable from if kernel drivers were used.

It's possible to e.g. mount a file system backed by the userspace
block device driver:

golem> disklabel ./rumpsd0d
[...]
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
d: 1994752 0 unused 0 0 # (Cyl. 0 - 3895)
e: 1994512 240 MSDOS # (Cyl. 0*- 3895)

golem> s mount_msdos ./rumpsd0a /mnt
mount_msdos: "./rumpsd0a" is a non-resolved or relative path.
mount_msdos: using "/usr/home/pooka/src/umserv/rumpsd0a" instead.
mount_msdos: /usr/home/pooka/src/umserv/rumpsd0a on /mnt: Device not configured

golem> s mount_msdos ./rumpsd0e /mnt
mount_msdos: "./rumpsd0e" is a non-resolved or relative path.
mount_msdos: using "/usr/home/pooka/src/umserv/rumpsd0e" instead.
golem> df -h /mnt
Filesystem Size Used Avail %Cap Mounted on
/usr/home/pooka/src/umserv/rumpsd0e 974M 5.2M 968M 0% /mnt

etcetc.
 1.3 25-Jan-2016  pooka Don't include <rump/rumpvnode_if.h> from rump.h. It's not needed
unless you're doing something special, but requires register_t.
Adjust the few places which actually need rumpvnode_if.h.
 1.2 24-Jun-2010  hannken Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.
 1.1 22-Dec-2009  pooka Add a simple example of how to run the kernel umass/USB in userspace
and attach it back to the host kernel using pud(4). The result is
pretty much indistinguisable from if kernel drivers were used.

It's possible to e.g. mount a file system backed by the userspace
block device driver:

golem> disklabel ./rumpsd0d
[...]
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
d: 1994752 0 unused 0 0 # (Cyl. 0 - 3895)
e: 1994512 240 MSDOS # (Cyl. 0*- 3895)

golem> s mount_msdos ./rumpsd0a /mnt
mount_msdos: "./rumpsd0a" is a non-resolved or relative path.
mount_msdos: using "/usr/home/pooka/src/umserv/rumpsd0a" instead.
mount_msdos: /usr/home/pooka/src/umserv/rumpsd0a on /mnt: Device not configured

golem> s mount_msdos ./rumpsd0e /mnt
mount_msdos: "./rumpsd0e" is a non-resolved or relative path.
mount_msdos: using "/usr/home/pooka/src/umserv/rumpsd0e" instead.
golem> df -h /mnt
Filesystem Size Used Avail %Cap Mounted on
/usr/home/pooka/src/umserv/rumpsd0e 974M 5.2M 968M 0% /mnt

etcetc.
 1.2 29-Mar-2010  pooka amazing grep, how sweet the find
that saved a hack like me
script once was lost but now it's found
was -x, but now I sh
 1.1 29-Mar-2010  pooka Add an example for a rump router cluster setup along with a README.

some contributions to the code from Martti Kuparinen
 1.5 04-Jul-2010  pooka send routing messages via routing sucket -- works better than via inet sucket
 1.4 04-Jul-2010  pooka Fix pointer assignment in previous commit (test compile works better
when you do it with the #defines which actually compile the code
in question).
 1.3 04-Jul-2010  pooka Use a bit more than 1 byte of space for routing messages.
 1.2 29-Mar-2010  pooka fix typo in, um, copyright.

spotted by a keen-eyed enthusiast ;)
 1.1 29-Mar-2010  pooka Add an example for a rump router cluster setup along with a README.

some contributions to the code from Martti Kuparinen
 1.1 29-Mar-2010  pooka amazing grep, how sweet the find
that saved a hack like me
script once was lost but now it's found
was -x, but now I sh
 1.5 05-Dec-2010  pooka mirror change of -lrumpcrypto ==> -lrumpkern_crypto
 1.4 10-Feb-2010  pooka rumpusbhc is now ugenhc
 1.3 05-Feb-2010  pooka The rumpdev_net80211 until-recently-wip component is now rumpnet_net80211.
 1.2 14-Oct-2009  pooka WARNS + make compile
 1.1 05-Oct-2009  pooka Add an example program which shows how to do "ifconfig rum0 up".
What makes this special is that the USB driver stack, the rum
driver, network subroutines and net80211 are running in userspace
in a rump kernel instead of in the host kernel.
 1.3 03-Nov-2009  pooka * use rump_boot_sethowto()
* fail in a nicer way if interface device is not probed
 1.2 14-Oct-2009  pooka WARNS + make compile
 1.1 05-Oct-2009  pooka Add an example program which shows how to do "ifconfig rum0 up".
What makes this special is that the USB driver stack, the rum
driver, network subroutines and net80211 are running in userspace
in a rump kernel instead of in the host kernel.
 1.1 15-Sep-2006  elad Add skeleton files to be used by developers interested in writing NetBSD
security models from scratch. Address issues both for in-tree integration
as well as distribution as LKMs.

Placed in the public domain.
 1.2 04-Dec-2011  jym Update secmodel_examples to better describe the secmodel(9) API.
 1.1 15-Sep-2006  elad branches: 1.1.40;
Add skeleton files to be used by developers interested in writing NetBSD
security models from scratch. Address issues both for in-tree integration
as well as distribution as LKMs.

Placed in the public domain.
 1.1.40.1 17-Apr-2012  yamt sync with head
 1.1 15-Sep-2006  elad Add skeleton files to be used by developers interested in writing NetBSD
security models from scratch. Address issues both for in-tree integration
as well as distribution as LKMs.

Placed in the public domain.
 1.30 02-Feb-2024  andvar s/attachement/attachment/ and s/detachement/detachment/.
 1.29 05-Jan-2023  jakllsch more strip(4) removal, this time in kauth(9)
 1.28 25-Aug-2018  maxv branches: 1.28.10;
Add KAUTH_REQ_PROCESS_CANSEE_EPROC, and use it for the kern.proc node.
Same permission as before, so no functional change.
 1.27 15-Jul-2018  maxv Retire ipkdb entirely. The option was removed from the config files
yesterday.

ok kamil christos
 1.26 04-Dec-2011  jym branches: 1.26.38; 1.26.40;
Update secmodel_examples to better describe the secmodel(9) API.
 1.25 28-Feb-2008  elad branches: 1.25.2;
Introduce a new kauth action, KAUTH_NETWORK_NFS, and two requests,
KAUTH_REQ_NETWORK_NFS_EXPORT and KAUTH_REQ_NETWORK_NFS_SVC, and use them
to replace two KAUTH_GENERIC_ISSUSER calls in the NFS code.

Also replace two more with KAUTH_SYSTEM_MKNOD, where appropriate.

Documetnation and examples updated. More to come.
 1.24 28-Feb-2008  elad Factor out the guts of get/setparam so it can be used from the compat code.

Make the FreeBSD and Linux compat code convert the parameters to their
native representation and call the native routines.

Remove KAUTH_PROCESS_SCHEDULER_GET/SET.

Update documentation and examples.

XXX: For now, only the Linux compat code does the priority conversion
XXX: right.

Linux priority conversion code from yamt@, thanks!

Okay yamt@.
 1.23 16-Feb-2008  elad branches: 1.23.2;
Fold KAUTH_REQ_PROCESS_SCHEDULER_* to KAUTH_PROCESS_SCHEDULER_*. In other
words, don't pass an action and a request, and just use a single action to
indicate what is the operation in question.

This is the first step in fixing PR/37986, which calls for policy/priority
checking in the secmodel code. Right now we're lacking room for another
parameter required to make a decision, and this change makes room for such.
 1.22 02-Feb-2008  elad Add, document, and use KAUTH_REQ_PROCESS_KTRACE_PERSISTENT.
 1.21 01-Feb-2008  elad Replace a KAUTH_GENERIC_ISSUSER in the cpuctl code with a proper kauth
request.

Reviewed by ad@, tested by me.
 1.20 30-Jan-2008  elad Use proper kauth(9) actions/requests for native scheduler stuff and the
recently introduced processor-sets.

Discussed with and okay rmind@, yamt@, and christos@.
 1.19 23-Jan-2008  elad Tons of process scope changes.

- Add a KAUTH_PROCESS_SCHEDULER action, to handle scheduler related
requests, and add specific requests for set/get scheduler policy and
set/get scheduler parameters.

- Add a KAUTH_PROCESS_KEVENT_FILTER action, to handle kevent(2) related
requests.

- Add a KAUTH_DEVICE_TTY_STI action to handle requests to TIOCSTI.

- Add requests for the KAUTH_PROCESS_CANSEE action, indicating what
process information is being looked at (entry itself, args, env,
open files).

- Add requests for the KAUTH_PROCESS_RLIMIT action indicating set/get.

- Add requests for the KAUTH_PROCESS_CORENAME action indicating set/get.

- Make bsd44 secmodel code handle the newly added rqeuests appropriately.

All of the above make it possible to issue finer-grained kauth(9) calls in
many places, removing some KAUTH_GENERIC_ISSUSER requests.

- Remove the "CAN" from KAUTH_PROCESS_CAN{KTRACE,PROCFS,PTRACE,SIGNAL}.

Discussed with christos@ and yamt@.
 1.18 07-Jan-2008  elad Make fork use kauth.

Been running in my tree for over a month at least.

Reviewed and okay yamt@, and special thanks to him as well as rittera@
for making this possible through fixing NDIS to not call fork1() with
l1 != curlwp.
 1.17 31-Dec-2007  ad Remove systrace. Ok core@.
 1.16 23-Nov-2007  uebayasi s, , ,
 1.15 23-Nov-2007  elad Kill another instance of KAUTH_GENERIC_ISSUSER.
 1.14 20-Jan-2007  elad branches: 1.14.4;
Kill KAUTH_PROCESS_RESOURCE and just replace it with two actions for
nice and rlimit.
 1.13 15-Jan-2007  elad arg0 is always 'struct proc *' for the process scope.
 1.12 05-Jan-2007  elad We no longer have 'enum kauth_machdep_req'.
 1.11 02-Jan-2007  elad Make mount(2) and unmount(2) use kauth(9) for security policy.

Okay yamt@.
 1.10 26-Dec-2006  elad Make machdep scope architecture-agnostic by removing all arch-specific
requests and centralizing them all. The result is that some of these
are not used on some architectures, but the documentation was updated
to reflect that.
 1.9 22-Dec-2006  elad Add requests indicating access to unmanaged memory for arm, pc532, powerpc,
sh3, sh5, and vax, and use them instead of KAUTH_GENERIC_ISSUSER.

Update documentation and example secmodel code.
 1.8 14-Dec-2006  elad - moves 'nice' access semantics to secmodel code,
- makes sysctl_proc_find() just lookup the process,
- use KAUTH_PROCESS_CANSEE requests to determine if the caller is
allowed to view the target process' corename, stop flags, and
rlimits,
- use explicit kauth(9) calls with KAUTH_PROCESS_CORENAME,
KAUTH_REQ_PROCESS_RESOURCE_NICE, KAUTH_REQ_PROCESS_RESOURCE_RLIMIT,
and KAUTH_PROCESS_STOPFLAG when modifying the aforementioned.
- sync man-page and example skeleton secmodel with reality.

okay yamt@

this is a pullup candidate.
 1.7 22-Nov-2006  elad branches: 1.7.2;
Introduce KAUTH_REQ_MACHDEP_{ALPHA,X86}_UNMANAGEDMEM to handle access
to unmanaged memory.

These are the last two securelevel references in the MD code.
 1.6 04-Nov-2006  elad Add example listener for the device scope.
While here, sync with reality.
 1.5 25-Oct-2006  elad Introduce KAUTH_REQ_NETWORK_SOCKET_OPEN, to check if opening a socket is
allowed. It takes three int * arguments indicating domain, type, and
protocol. Replace previous KAUTH_REQ_NETWORK_SOCKET_RAWSOCK with it (but
keep it still).

Places that used to explicitly check for privileged context now don't
need it anymore, so I replaced these with XXX comment indiacting it for
future reference.

Documented and updated examples as well.
 1.4 20-Oct-2006  elad Introduce a new action on the network scope, KAUTH_NETWORK_INTERFACE,
used to manage network interfaces.

Add four sub-actions to fulfill generic needs for now, until a more
carefully defined usage of the interface is documented: get, set,
getpriv, and setpriv.
 1.3 20-Oct-2006  elad Add a new ALTQ kauth(9) request, KAUTH_REQ_NETWORK_ALTQ_JOBS.
 1.2 13-Oct-2006  elad Introduce KAUTH_REQ_NETWORK_SOCKET_CANSEE. Since we're not gonna be having
credentials on sockets, at least not anytime soon, this is a way to check
if we can "look" at a socket. Later on when (and if) we do have socket
credentials, the interface usage remains the same because we pass the
socket.

This also fixes sysctl for inet/inet6 pcblist.
 1.1 15-Sep-2006  elad Add skeleton files to be used by developers interested in writing NetBSD
security models from scratch. Address issues both for in-tree integration
as well as distribution as LKMs.

Placed in the public domain.
 1.7.2.2 21-Jan-2007  bouyer Pull up following revision(s) (requested by elad in ticket #379):
sys/secmodel/bsd44/secmodel_bsd44_suser.c: revision 1.33 via patch
share/examples/secmodel/secmodel_example.c: revision 1.14 via patch
sys/sys/kauth.h: revision 1.35 via patch
sys/kern/kern_resource.c: revision 1.112 via patch
share/man/man9/kauth.9: revision 1.48 via patch
Kill KAUTH_PROCESS_RESOURCE and just replace it with two actions for
nice and rlimit.
 1.7.2.1 06-Jan-2007  bouyer Pull up following revision(s) (requested by elad in ticket #316):
share/examples/secmodel/secmodel_example.c: revision 1.10 via patch
sys/arch/i386/i386/sys_machdep.c: revision 1.79
sys/arch/amd64/amd64/netbsd32_machdep.c: revision 1.31
share/man/man9/secmodel_bsd44.9: revision 1.9
sys/arch/vax/vax/mem.c: revision 1.34 via patch
sys/arch/sh3/sh3/mem.c: revision 1.23 via patch
sys/arch/sh5/sh5/mem.c: revision 1.14 via patch
sys/secmodel/bsd44/secmodel_bsd44_suser.c: revision 1.22 via patch
sys/arch/powerpc/powerpc/mem.c: revision 1.27 via patch
sys/arch/x86/x86/x86_machdep.c: revision 1.5
sys/arch/alpha/alpha/machdep.c: revision 1.291
sys/arch/arm/arm32/mem.c: revision 1.17 via patch
sys/secmodel/bsd44/secmodel_bsd44_securelevel.c: revision 1.20
sys/sys/kauth.h: revision 1.29 via patch
sys/arch/amd64/amd64/sys_machdep.c: revision 1.10
share/man/man9/kauth.9: revision 1.43 via patch
sys/arch/xen/i386/sys_machdep.c: revision 1.10
sys/kern/kern_auth.c: revision 1.35
sys/arch/pc532/pc532/mem.c: revision 1.43 via patch
Make machdep scope architecture-agnostic by removing all arch-specific
requests and centralizing them all. The result is that some of these
are not used on some architectures, but the documentation was updated
to reflect that.
 1.14.4.2 23-Mar-2008  matt sync with HEAD
 1.14.4.1 09-Jan-2008  matt sync with HEAD
 1.23.2.1 24-Mar-2008  keiichi sync with head.
 1.25.2.1 17-Apr-2012  yamt sync with head
 1.26.40.1 10-Jun-2019  christos Sync with HEAD
 1.26.38.2 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.26.38.1 28-Jul-2018  pgoyette Sync with HEAD
 1.28.10.1 13-Jan-2023  martin Pull up following revision(s) (requested by jakllsch in ticket #45):

sys/secmodel/suser/secmodel_suser.c: revision 1.56
sys/sys/kauth.h: revision 1.88
sys/arch/sparc/conf/INSTALL: revision 1.106
share/examples/secmodel/secmodel_example.c: revision 1.29
sys/conf/files: revision 1.1306

remove lingering strip(4) remnants

more strip(4) removal, this time in kauth(9)
 1.4 18-Dec-2001  mrg add a newsyslog.conf that matches the all.debug.
 1.3 12-Dec-2001  lukem Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
 1.2 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.1 13-Jul-2000  lukem branches: 1.1.2;
example syslogd(8) config files (to be installed as /etc/syslog.conf):
all.debug - each facility gets logged to its own file
 1.1.2.2 21-Jul-2000  jhawk Pullup rev 1.1 (requested by lukem, approved by jhawk):
example syslogd(8) config files (to be installed as /etc/syslog.conf):
all.debug - each facility gets logged to its own file
 1.1.2.1 13-Jul-2000  jhawk file Makefile was added on branch netbsd-1-5 on 2000-07-21 16:24:11 +0000
 1.2 01-Sep-2003  lukem provide commands required to create the syslog log files used by this config
 1.1 13-Jul-2000  lukem branches: 1.1.2;
example syslogd(8) config files (to be installed as /etc/syslog.conf):
all.debug - each facility gets logged to its own file
 1.1.2.2 21-Jul-2000  jhawk Pullup rev 1.1 (requested by lukem, approved by jhawk):
example syslogd(8) config files (to be installed as /etc/syslog.conf):
all.debug - each facility gets logged to its own file
 1.1.2.1 13-Jul-2000  jhawk file all.debug was added on branch netbsd-1-5 on 2000-07-21 16:24:11 +0000
 1.2 01-Sep-2003  lukem don't need to rotate /var/cron/log, as all.debug doesn't use it
 1.1 18-Dec-2001  mrg add a newsyslog.conf that matches the all.debug.
 1.1 23-Jan-2014  spz branches: 1.1.4; 1.1.8;
- make etc/rc.d/wpa_supplicant create directory /var/run/wpa_supplicant
on startup
- create share/examples/wpa_supplicant/wpa_supplicant.conf and make it
known in the relevant places. Improvements welcome, my point was
ctrl_interface and "you seriously want this"
 1.1.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.8.1 23-Jan-2014  tls file Makefile was added on branch tls-maxphys on 2014-08-20 00:02:30 +0000
 1.1.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.4.1 23-Jan-2014  yamt file Makefile was added on branch yamt-pagecache on 2014-05-22 11:37:45 +0000
 1.5 10-Oct-2023  nia Add an example of connecting to an unsecured network with wpa_supplicant
 1.4 29-Sep-2023  gutteridge wpa_supplicant.conf: fix connection string for Eduroam

"MSCHAPV2" must have an uppercase "V" in the connection string.
Reported by nebbionegiuseppe@gmail.com in PR misc/57634.
 1.3 26-Nov-2015  hubertf branches: 1.3.8; 1.3.18; 1.3.26;
Move today's most common config (WPA) to the front
Add a WPA config with hidden (non-broadcasting) SSID
 1.2 26-Nov-2015  hubertf add RCS is
 1.1 23-Jan-2014  spz branches: 1.1.4; 1.1.8;
- make etc/rc.d/wpa_supplicant create directory /var/run/wpa_supplicant
on startup
- create share/examples/wpa_supplicant/wpa_supplicant.conf and make it
known in the relevant places. Improvements welcome, my point was
ctrl_interface and "you seriously want this"
 1.1.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.8.1 23-Jan-2014  tls file wpa_supplicant.conf was added on branch tls-maxphys on 2014-08-20 00:02:30 +0000
 1.1.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.4.1 23-Jan-2014  yamt file wpa_supplicant.conf was added on branch yamt-pagecache on 2014-05-22 11:37:45 +0000
 1.3.26.1 02-Oct-2023  martin Pull up following revision(s) (requested by gutteridge in ticket #384):

share/examples/wpa_supplicant/wpa_supplicant.conf: revision 1.4

wpa_supplicant.conf: fix connection string for Eduroam
"MSCHAPV2" must have an uppercase "V" in the connection string.

Reported by nebbionegiuseppe at gmail.com in PR misc/57634.
 1.3.18.1 02-Oct-2023  martin Pull up following revision(s) (requested by gutteridge in ticket #1736):

share/examples/wpa_supplicant/wpa_supplicant.conf: revision 1.4

wpa_supplicant.conf: fix connection string for Eduroam
"MSCHAPV2" must have an uppercase "V" in the connection string.

Reported by nebbionegiuseppe at gmail.com in PR misc/57634.
 1.3.8.1 02-Oct-2023  martin Pull up following revision(s) (requested by gutteridge in ticket #1899):

share/examples/wpa_supplicant/wpa_supplicant.conf: revision 1.4

wpa_supplicant.conf: fix connection string for Eduroam
"MSCHAPV2" must have an uppercase "V" in the connection string.

Reported by nebbionegiuseppe at gmail.com in PR misc/57634.
 1.1 04-Mar-2003  jmmv Add a wsmoused sample configuration file.
 1.5 05-Feb-2004  jmmv Add trailing semicolons to lines that need it.
 1.4 05-Jan-2004  jmmv xconsole is a global property, so move it to the global scope.
Fixes part of PR bin/23223.
 1.3 06-Aug-2003  jmmv Add example section for action mode.
 1.2 06-Aug-2003  jmmv Add a sample line for the new "modes" property. Fix a word.
 1.1 04-Mar-2003  jmmv Add a wsmoused sample configuration file.

RSS XML Feed