212 Commits

Author SHA1 Message Date
49621cbaa0 Remove gmake support for cross-compilation
Change-Id: I41d5aec5e11df6c44438501b09f85c6ad5eba096
2018-08-25 13:47:25 +02:00
2054828fa8 Remove GCC Libraries dependencies
Change-Id: I75608863e4d321df1333649b23db63ec411c319e
2018-08-25 13:47:24 +02:00
4e339bc1ae Remove GCC support
Change-Id: Ie238ed4878bc6dcc6404648cb7c5b8c63d6b7c61
2018-08-25 13:47:22 +02:00
fe28e6e4e8 works better, but weird failures 2018-08-25 12:08:35 +02:00
5036a533c6 Create README.md 2018-08-25 12:08:35 +02:00
4db348ac63 Remove unncessary variable definitions 2018-08-25 12:08:34 +02:00
79b2b6d9f5 ARM: Compile whole tree with clang.
Note: GCC is still the default compiler, to use clang do the following:

 $ BUILDVARS="" ./releasetools/arm_sdimage.sh
2018-08-25 12:08:34 +02:00
39c5f62ec2 ARM: Remove linker script for VM.
The linker script has been replaced by small adaptations to make sure
the required structures are aligned at runtime per hardware
requirements.

In some cases, the linker script failed to guarantee proper physical
addresses alignement.

This is important for page entries descriptors which are required to be
aligned as the MMU doesn't support unaligned accesses to those.

Change-Id: I3e22d3da102230be2534b4261e2c6c937e367de6
2018-08-25 12:08:34 +02:00
Sevan Janiyan
7377a594e4 Sync with manuals from netbsd-8 branch.
Change-Id: I82fdb7486ae4f0f8f622046538806471bfb17c1d
2018-08-25 12:05:46 +02:00
Sevan Janiyan
a513517459 Sync with cat.c from netbsd-8
When cat is invoked with -se, print a '$' on blank lines.

Change-Id: I1bdcced967261a231eab93e8d28736f9f52f53fd
2018-08-25 12:05:46 +02:00
145839b147 Fix Compilation on Ubuntu 18.04
* Fix Compilation of GCC on Ubuntu 18.04
   Apply the following patch:
     https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=ec1cc0263f156f70693a62cf17b254a0029f4852

 * Fix GNU make build on new GNU glibc systems

Change-Id: I44fcdc23b037a53d8cf50ec09ba9f210a1e127c8
2018-08-24 21:29:20 +02:00
03ac74ede9 Fix ARM NDEBUG Builds
Change-Id: I1250744d54b75d6380393afe848a6eb8c5dc894d
2018-03-31 19:34:03 +02:00
Arne Welzel
35b65c5af1 minix/tests/arm: naive tests to cause data aborts
Some assembly code to cause unaligned access as well as
segmentation faults to exercise the data abort path.

Change-Id: Ie419114b76a8db849537a94fda781019cf14d50d
2018-03-25 17:44:11 +02:00
Arne Welzel
0dd719f1bd kernel/arm: send SIGSEGV to processes
On second thought, handle unknown faults caused by processes by sending
SIGSEGV to them instead of bringing the whole system to a grind.

arm/archconst: use values defined in armreg.h

Change-Id: Ieed5bb06910ab0c8eef1e68b0b4eec680867acd3
2018-03-25 15:16:29 +02:00
Arne Welzel
5e9e5b98f6 bsd.own.mk: use -mno-unaligned-access on ARM
Without this option, gcc may emit code accessing unaligned memory. This,
and the fact that SCTRL.A (System Control Register - Alignment Check) is
set to 1 in Minix causes data aborts when such code is encountered.

This was the cause of #104. The `minix-service' executable caused
unaligned memory accesses calling into getpwnam(). These then trigger
data abort exceptions. On ARM, these were previously forwarded to `vm'
as pagefaults. However, `vm' did not properly handle them, but instead
allocated one page for the faulting address (over and over again) and
then resumed the process at the faulting instruction (over and over
again). This behavior masked the whole story as an OOM.

Below the assembly version getpwent.c in which unaligned memory
accesses are even highlighted...

 ...
 341         ldr     lr, [sp, #48]
 342         cmp     lr, #0
 343         bne     .L46
 344         ldr     r0, [r4]        @ unaligned
 345         add     r1, r7, #5
 346         str     r0, [sp, #4]    @ unaligned
 347         ldr     r4, [sp, #4]
 348         mov     r5, r4, asr #31
 349         strd    r4, [r8, #40]
 ...

This should fix #104. It was tested on an actual Beaglebone Black.

An alternative fix would be to disable alignment checking by setting
SCTRL.A to 0 and allowing unaligned memory accesses.

Change-Id: I4d366eb0af1b2936bca369fd28014fb829228ad5
2018-03-25 11:23:21 +02:00
Arne Welzel
7c3424c244 kernel/arm: do not treat all data aborts as pagefaults
For now, distinguish alignment, translation and permission faults.
The first kind of faults cause the kernel to send SIGBUS to the
process causing the fault, the latter two are forwarded to `vm' as
pagefaults. Previously, any data abort was forwarded to `vm' as
a pagefault, resulting in hard to debug issue #104.

Any unhandled fault status results in a disaster. This seems
better than naively hoping `vm' can do something about it.

Change-Id: I526f575bb2681e087e20fd49c5c0846cdd450c31
2018-03-25 11:22:35 +02:00
Marcelo Alencar
a27e58e1f7 Fix brazilian ABNT2 keymap
This adds two missing keys (0x73 and 0x7e) and fixes KP_PERIOD (it
should type a comma, not a period), as mentioned in

https://groups.google.com/d/msg/minix3/Pezep_HOL3I/mnfZXAeLsTMJ

Closes #247

Change-Id: Id85d04e36adcaa1a502cac8e5013396ea92502fe
2018-03-23 07:38:56 +01:00
blackdragonepic
4667c87c4d remove a duplicate include
removed #include <minix/type.h> duplicate

Closes #246

Change-Id: Icd575c452d562eb601133157a77d9d995ce043e9
2018-03-23 07:38:25 +01:00
Nik Nyby
2117e99cef Update usage man page: remove reference to /usr/ast
This directory no longer exists, probably since the netbsd file layout
re-organization.

Closes #244

Change-Id: Ie4e3761dbf3adbdd76cb6323f920a4abab6b29d5
2018-03-23 07:37:54 +01:00
Nik Nyby
9866ad31fd fs/mfs: Remove a few assert.h includes
Those are unnecessary.

Closes #241

Change-Id: I26db0f07c65e7d078e642001b97e6d4313e6660a
2018-03-23 07:36:59 +01:00
Nik Nyby
24f3305be0 mkfs.mfs: fix typo in error message
Closes #242

Change-Id: I91ec2b36b2abfa897a43c97d886578fd28a5c768
2018-03-23 07:33:25 +01:00
Krystian Lewandowski
b2ee0702ff pci server crashes during boot on Qubes OS
I tried to launch Minix3 in Qubes OS. While there is no problem to boot
minix as a qube (in Qubes OS terminology) before 3641562, it fails with
the commit (and after). I didn't digg into PCI handling but this change
fixes the problem. Minix handles NULL case from pci_subclass_name.

Change-Id: I162424d92b613598e6eb845a71f90a02e31041db
2017-11-16 23:05:02 +01:00
Jean-Baptiste Boric
39d31d9fab ARM: Remove dependency on mtools
Instead of formatting the image, and then using the mtools to copy on it
the boot partition files, we use makefs to directly generate the
partition.

Change-Id: I468e3100842177f3f55edbfdb910941bafa576ba
2017-07-12 08:20:16 +02:00
rlfnb
b67d2ae9e2 Fixed broken multiboot struct
Change-Id: Ib59fb04a45c4417588bf204a5a6e6306f5097e22
2017-07-12 07:40:10 +02:00
rlfnb
d4dd6511b9 replace tickdelay with micro_delay to be quantum-agnostic
Change-Id: Ie449d797389a178372035d797c84b02d636788cd
2017-06-01 19:48:56 +02:00
David van Moolenbroek
3e2c6c9674 isofs: support directories with many entries
In particular, remove the hardcoded limit of 4096 entries in a single
directory, as there are (at least) real DVDs out there with more
entries than that.  The implementation of this change requires a
second pass on large directories; performance optimizations are left
to future work.

Change-Id: Ia865ac95797fa2dd36b086779c3f1fef6b2f6a6f
2017-05-17 23:25:11 +00:00
David van Moolenbroek
502e7ff953 at_wini: bump hardcoded ATAPI limit to DVD size
at_wini was previously hardcoded to present ATAPI devices as having a
size of 800 MiB, which was enough for CDs but not for DVDs.  This
patch increases the device size to 8500 MiB, which should be large
enough to cover all DVDs.

Change-Id: I7d3192e4ecd0708a655663c1007ff517ed969580
2017-05-17 23:16:52 +00:00
Antoine Leca
d5e4fc0151 Fix Makefile.boot small issue sync'ing with NetBSD
Change-Id: I4f8cbfb9d4b6be8b31ce705cbecc4b12b7e1fe45
2017-05-08 12:15:09 +00:00
David van Moolenbroek
9f81acbc21 Fix lua
As reported by Jean-Baptiste Boric, lua would refuse to start,
throwing an error about incompatibility of numeric types.

This resolves #160.

Change-Id: I5cd6c3b2a35c7023946e4d14d4feedaaecb956fb
2017-05-08 11:53:38 +00:00
rlfnb
9624407e7a header cleanup
Change-Id: I4e169911591c56e91c301c5cb0bb3ea2d8140cf2
2017-05-07 14:02:00 +02:00
Jean-Baptiste Boric
c1d4abeb0c Fix pkgin_cd.sh
Change-Id: I513c16b0691897f3c665532d50ed398967f3e4d0
2017-05-07 00:54:46 +02:00
Jean-Baptiste Boric
66e071a40c Add releasetools/pkgsrc_cdimage.sh
This script uses the image generation framework to create a pkgsrc CD
image, useful for MINIX installations without Internet connectivity.

Change-Id: Ife037f6b6958e38986afad0632f37999ecbb2b55
2017-05-07 00:54:46 +02:00
Jean-Baptiste Boric
0884854a38 Rework package bundling mechanism
Setting PACKAGE_DIR without PACKAGES will default to bundling all
packages in PACKAGE_DIR. PKG_INFO is also mandatory now.

Change-Id: Iaf02221ec91e9c54dc8caec6e9a01bccfc65cc31
2017-05-07 00:54:45 +02:00
Ben Mezger
1915559884 Removed unused variable and cleaned whitespaces
Change-Id: Iaaf6b6f5f49f2d2599a3422250ad7e6e41838b82
2017-05-07 00:54:44 +02:00
Ben Mezger
afc65e92aa Removed unused variables and cleaned whitespaces.
Change-Id: Ib96d1c5bf7a1c65a99d77726fe54ccf37399f9eb
2017-05-07 00:54:43 +02:00
Ben Mezger
9f7f0ad073 Removed unused variables and cleaned whitespaces.
Change-Id: Ie5c1ad84ad162ab18443dd228686aba544ecb9ef
2017-05-07 00:54:43 +02:00
Ben Mezger
81ae2bc455 Prevent arg from being used any further
Patch edited by David van Moolenbroek.

Change-Id: Ie25faffea359e735145dbb4ae2bd2d213488952b
2017-05-07 00:54:19 +02:00
David van Moolenbroek
62cf0e1226 distrib: fix debug builds
Reported by Jean-Baptiste Boric.

Change-Id: I1e9b156326385aa188c824557b6716c059e39fce
2017-05-06 14:43:03 +02:00
David van Moolenbroek
79a488aa87 Network stack feedback-based fixes
Thanks to Lionel Sambuc!

Change-Id: Iae6b2caf58e2b58093e60c5004cfa477e43da154
2017-04-30 17:37:10 +02:00
David van Moolenbroek
3ba6090f82 tests: add advanced TCP/IP tests (test91-94)
Change-Id: I052102f6122f82b3307595990bf91f64e97a45a8
2017-04-30 13:16:25 +00:00
David van Moolenbroek
1dee92ebe9 Import NetBSD networking rc scripts
IMPORTANT: this change has a docs/UPDATING entry!

Change-Id: I6f1e575166f5b47530a004c12aea9b45b571e13d
2017-04-30 13:16:22 +00:00
David van Moolenbroek
9a8b4f5601 netconf(8): rewrite
When possible, network drivers are now started automatically.  That
means that netconf(8)'s network driver selection has become obsolete.
This patch changes netconf(8) to allow the user to specify a network
configuration (currently one of DHCP IPv4+IPv6, DHCP IPv4-only,
manual IPv4-only) for any hardware network interfaces that are
currently present.

Selection of network drivers that require manual configuration first
(mainly old ISA cards) is still supported, but now as a special case.

Change-Id: I6208fc75192eb7f0b061862aaf7507f71a620da4
2017-04-30 13:16:19 +00:00
David van Moolenbroek
60299d873c etc/rc: start lwip service
Change-Id: I10cfdcde490987b93c79532a2c53dda2307b83ce
2017-04-30 13:16:16 +00:00
David van Moolenbroek
e4dbab1e53 etc/rc: auto-start PnP ethernet drivers
Change-Id: I0f6c955511cbb04d47093de28109b5084609856a
2017-04-30 13:16:13 +00:00
David van Moolenbroek
ad920fc485 tests: adapt existing tests to new LWIP service
Change-Id: Id744e9d3fbe19733557011f8803593cf3768c35d
2017-04-30 13:16:10 +00:00
David van Moolenbroek
bb9622b5ed ping(8), traceroute(8): adapt to new LWIP service
Change-Id: I0aae7199dfd9075201975e133cdaeab6bc2bd24f
2017-04-30 13:16:06 +00:00
David van Moolenbroek
ef8d499e2d Add lwip: a new lwIP-based TCP/IP service
This commit adds a new TCP/IP service to MINIX 3.  As its core, the
service uses the lwIP TCP/IP stack for maintenance reasons.  The
service aims to be compatible with NetBSD userland, including its
low-level network management utilities.  It also aims to support
modern features such as IPv6.  In summary, the new LWIP service has
support for the following main features:

- TCP, UDP, RAW sockets with mostly standard BSD API semantics;
- IPv6 support: host mode (complete) and router mode (partial);
- most of the standard BSD API socket options (SO_);
- all of the standard BSD API message flags (MSG_);
- the most used protocol-specific socket and control options;
- a default loopback interface and the ability to create one more;
- configuration-free ethernet interfaces and driver tracking;
- queuing and multiple concurrent requests to each ethernet driver;
- standard ioctl(2)-based BSD interface management;
- radix tree backed, destination-based routing;
- routing sockets for standard BSD route reporting and management;
- multicast traffic and multicast group membership tracking;
- Berkeley Packet Filter (BPF) devices;
- standard and custom sysctl(7) nodes for many internals;
- a slab allocation based, hybrid static/dynamic memory pool model.

Many of its modules come with fairly elaborate comments that cover
many aspects of what is going on.  The service is primarily a socket
driver built on top of the libsockdriver library, but for BPF devices
it is at the same time also a character driver.

Change-Id: Ib0c02736234b21143915e5fcc0fda8fe408f046f
2017-04-30 13:16:03 +00:00
David van Moolenbroek
0f03189a6a RMIB: add indirection support for sparse subtrees
Normally, each RMIB subtree consists of an array of nodes, indexed
by node identifier.  In a sparsely filled subtree, most of the array
is empty and just wasting memory.  In that case, it may be beneficial
to have a level of indirection, with an intermediate array containing
pairs of node IDs and pointers to the actual nodes.  This patch adds
support for such indirection.

For the use cases that inspired this patch, net.inet and net.inet6,
the indirection shaves off a little under 16KB of memory from the
TCP/IP service.

Change-Id: Ic68ca3fee1a0f2032f77eef6df42728f9b9400e8
2017-04-30 13:16:00 +00:00
David van Moolenbroek
5edbea5063 libsys: allow for grant preallocation
Since the grant table is allocated dynamically, a system service always
runs the risk of running out of memory at run time when trying to
allocate a grant.  In order to allow services to mitigate that risk,
grants can now be preallocated, typically at system service startup,
using the new cpf_prealloc(3) libsys function.  The function takes a
'count' parameter that indicates the number of additional grants to
preallocate.  Thus, the function may be called from multiple submodules
within a service, each preallocating their own maximum of grants that
it may need at run time.

Change-Id: I6904726a722a8c27dfe2efa470e683718f310272
2017-04-30 13:15:57 +00:00
David van Moolenbroek
5d5fbe79c1 Import new lwIP version into liblwip
In order to match NetBSD-style imports of external code, the library
has been restructured.  The full lwIP source tree is imported, except
for a few .git* files in its root directory, into dist/.  The MINIX 3
Makefiles and other custom files are located in lib/.  Finally, since
we need to apply a number of small patches to lwIP, these patches are
stored in patches/, in addition to being applied to the lwIP tree.

The currently imported version of lwIP is taken from its master
branch sometime after the 2.0.1 release, specifically git-7ffe5bf.

Change-Id: Ie03c4fa36fa928870263c191205d6d93f652a3cc
2017-04-30 13:15:53 +00:00
David van Moolenbroek
47db417b1a lance: perform full reinitialization for restarts
When performing a restart (CSR0 STOP, STRT), the behavior regarding
the NIC's current RX/TX descriptor ring counters varies between cards:
older LANCE cards do not reset the counters; newer PCnet cards do
reset them; VirtualBox's emulation is once again broken in that it
claims to emulate newer cards but implements the older behavior.

Changing the card's receive mode requires such a restart, and now that
the system can actually change receive modes dynamically as part of
normal network operation, this results in the lance driver breaking
all the time on at least VirtualBox.

Instead of trying to figure out exactly what is going on with the
counters during a restart, we now simply perform a full-blown
reinitialization every time the NIC is restarted.  That leaves no
ambiguity regarding the counters, and appears to be what drivers on
other OSes do as well.  As a bonus, this approach actually saves code.

Change-Id: I60fad2df6de4616d5de2cec39c09b60c15d854fb
2017-04-30 13:15:50 +00:00
David van Moolenbroek
f7df02e747 libnetdriver: rewrite
This is a driver-breaking update to the netdriver library, which is
used by all network drivers.  The aim of this change is to make the
library more compatible with NetBSD, and in particular with various
features that are expected to be supported by the NetBSD userland.
The main changes made by this patch are the following:

- each network driver now has a NetBSD-style short device name;
- drivers are not expected to receive packets right after startup;
- extended support for receipt modes, including multicast lists;
- support for multiple parallel send, receive requests;
- embedding of I/O vectors in send and receive requests;
- support for capabilities, including checksum offloading;
- support for reporting link status updates to the TCP/IP stack;
- support for setting and retrieving media status;
- support for changing the hardware (MAC) address;
- support for NetBSD interface flags IFF_DEBUG, IFF_LINK[0-2];
- support for NetBSD error statistics;
- support for regular time-based ("tick") callbacks.

IMPORTANT: this patch applies a minimal update to the existing drivers
in order to make them work at all with the new netdriver library.  It
however does *not* change all drivers to make use of the new features.
In fact, strictly speaking, all drivers are now violating requirements
imposed by the new library in one way or another, most notably by
enabling packet receipt when starting the driver.  Changing all the
drivers to be compliant, and to support the newly added options, is
left to future patches.  The existing drivers should currently *not*
be taken as examples of how to implement a new network driver!

With that said, a few drivers have already been changed to make use of
some of the new features: fxp, e1000, rtl8139, and rtl8169 now report
link and media status, and the last three of those now support setting
the hardware MAC address on the fly.  In addition, dp8390 has been
changed to default to PCI autoconfiguration if no configuration is
specified through environment variables.

Change-Id: I4b3ea9c0b9bc25d5b0609c6ff256fb0db71cdc42
2017-04-30 13:15:28 +00:00
David van Moolenbroek
686761dbbc syslogd(8): drop some MINIX-specific changes
Change-Id: Ic286b89975eeea1abf0d5086ee13dfb9ab57d8ba
2017-03-21 22:00:37 +00:00
David van Moolenbroek
5bded7c030 ftpd(8): drop some MINIX-specific changes
Also put in a crude way to clean up zombies when ftpd(8) is running
in daemon mode, because we do not yet support SA_NOCLDWAIT.

Change-Id: I8a7db1d665c432d736db833b0022d0340764db1f
2017-03-21 22:00:34 +00:00
David van Moolenbroek
340f5e5660 Import NetBSD httpd(8)
Also known as bozohttpd(8).

Change-Id: I40e955b5654674f2c708b10e5e403ca9cbc92534
2017-03-21 22:00:31 +00:00
David van Moolenbroek
8f957290eb Import NetBSD rtadvd(8)
Change-Id: I22626843d85c78f0fadefd58d61d7a85d285b2b8
2017-03-21 22:00:28 +00:00
David van Moolenbroek
5de448e315 Import NetBSD ndp(8)
Like arp(8), this utility already uses the NetBSD 8 protocol for
talking to the operating system through routing sockets.

Like arp(8), this utility is not fully functional, due to limitations
of lwIP.  While ndp(8) should provide a proper (read-only) view of the
contents of the Neighbor Discovery table, any attempts to modify the
table will fail.  In addition, various other ndp(8) features are not
supported.  On MINIX 3, the prefix and default router lists are not
managed by the operating system however, but rather by dhcpcd(8);
therefore, an implementation of the features related to those lists
would not provide any actual functionality.

Change-Id: I479bfc8141ba69fe50c1b2f7091933267ce6fa3e
2017-03-21 22:00:25 +00:00
David van Moolenbroek
b636d99d91 Import NetBSD tcpdump(8)
For now, printing of Sun RPC requests is disabled because we do not
yet have the RPC header files.  This should affect basically noone,
as we do not have any RPC-based programs yet, for the same reason.

Change-Id: Ie7818faaaacdc104d8b2c37a68866b4ce18247d6
2017-03-21 22:00:21 +00:00
David van Moolenbroek
d56f51ea7d Import NetBSD libpcap
As part of this, we import bpf_filter.c from NetBSD.  Even though that
file is part of the NetBSD kernel, it is also used by userland (as is
clear here).  Our LWIP service has its own bpf_filter.c implementation
but that implementation has certain limits (e.g. on program size) that
are fine for a system service but should not apply to userland.

The libpcap code has a number of blocks guarded by __NetBSD__, but
none of those blocks apply to MINIX 3.  In particular, some of the
alignment logic used for NetBSD may in fact not work in our case.

Change-Id: Ib187e22d627c929e111d5d4a991c3bee3c0154cb
2017-03-21 22:00:18 +00:00
David van Moolenbroek
83ee113ee0 Import NetBSD dhclient(8), dhcpd(8), dhcrelay(8)
dhcrelay(8) and omshell(1) have not been tested.

Change-Id: I0cad89f65666af4e366a86e130ce8df0894c3bb4
2017-03-21 22:00:14 +00:00
David van Moolenbroek
00b67f09dd Import NetBSD named(8)
Also known as ISC bind.  This import adds utilities such as host(1),
dig(1), and nslookup(1), as well as many other tools and libraries.

Change-Id: I035ca46e64f1965d57019e773f4ff0ef035e4aa3
2017-03-21 22:00:06 +00:00
David van Moolenbroek
9f20bfa6c4 Import NetBSD dhcpcd(8)
The port could be improved by adding support for pselect(2).

Other than that, this port has a few MINIX-specific changes:

- we undefine IN_IFF_ flags to stop dhcpcd from thinking that we have
  operating system support for link-local IPv4 address management;
- we work around one crash bug that seems triggered by using dhcpcd
  on some but not all interfaces;
- we add "noalias" to the default dhcpcd.conf(5) configuration file.

Change-Id: I8a81c2c2af353c5ce08335673b1ab2d4b39178da
2017-03-21 21:59:13 +00:00
David van Moolenbroek
d642636d2d Import NetBSD resolvconf(8)
Also known as "openresolv".  Needed for dhcpcd(8).

Change-Id: Ibcb616837e9a5293377e451c6f6218a37260ed80
2017-03-09 23:40:18 +00:00
David van Moolenbroek
c3b6f8f269 Import NetBSD inetd(8)
Do not start it by default just yet.

Change-Id: Id8d2dd33eb67ae74b3ef3060638e20c781e8e37d
2017-03-09 23:40:18 +00:00
David van Moolenbroek
e044bafaad Import NetBSD telnetd(8)
Change-Id: Ie1ae80e8a4945f6f4ccce8f468c1b04a8d89cf43
2017-03-09 23:40:17 +00:00
David van Moolenbroek
7348b5c52b Import NetBSD telnet(1)
Change-Id: Ib58b43cc9baabe183a59410212827f65ec117277
2017-03-09 23:40:16 +00:00
David van Moolenbroek
72e899eafc Import NetBSD traceroute6(8)
Change-Id: I040651cf29a9efd6b85afafe6813e48c2f1a4f2d
2017-03-09 23:40:16 +00:00
David van Moolenbroek
903ca1e525 Import NetBSD ping6(8)
Change-Id: Ife49f5fac0e50852c74a0f85b6129c204d172c68
2017-03-09 23:40:15 +00:00
David van Moolenbroek
04e82b7dc9 Import NetBSD arp(8)
Behaviorally this port should already be largely on par with the
NetBSD 8 version, in that it sets the RTF_LLDATA flag on routing
socket requests to indicate that they target link-local data.

Many parts of the arp(8) functionality are currently not yet supported
by the operating system, largely due to lwIP not exposing appropriate
means of implementing them.

Change-Id: Icfac054b4deddda03eee4acf0e261aa48cd031ba
2017-03-09 23:40:14 +00:00
David van Moolenbroek
66dfcc8533 Import NetBSD netstat(1)
The port forces the use of sysctl(7), as obtaining information through
KVM is not and will never be viable.  The sysctl mode of netstat(1) is
currently somewhat limited and buggy, though.  We fix a few minimal
issues, but more improvements will have to come from NetBSD reimports.

Some of netstat(1)'s views are currently not supported by the
operating system.  Later improvements on this point will not require
changes to the imported code, though.

Change-Id: If74a6811f0fc81bd1ecc31010a28379b14b2a0eb
2017-03-09 23:40:14 +00:00
David van Moolenbroek
483e595557 Import NetBSD route(8)
Change-Id: I724a2a56157ea72afdd3f6a82239687894c8e3e8
2017-03-09 23:40:13 +00:00
David van Moolenbroek
90b801219a Import NetBSD ifconfig(8)
Not all of its functionality is actually implemented in the operating
system.  In addition, a few modules (agr, vlan) have been disabled
because we have not imported the necessary headers yet.

Change-Id: I4c9271065d640bd9112b4bd27e2652e1d51b18b4
2017-03-09 23:40:12 +00:00
David van Moolenbroek
f1fab66e7d Import NetBSD libwrap
Change-Id: Ib8b979fb9a96c2048b8ea93038944c743048bff4
2017-03-09 23:40:12 +00:00
David van Moolenbroek
c2a43b2200 Import NetBSD nsswitch.conf(5)
Change-Id: I0464b474d50b39cd6259c492e1fae6fecfd9d984
2017-03-09 23:40:11 +00:00
David van Moolenbroek
9b6c0eaf74 Import NetBSD hosts(5)
Change-Id: I0924dcc7d4eb9151b77305f370360722d4a7533a
2017-03-09 23:40:11 +00:00
David van Moolenbroek
5588c638c0 libutil: drop some MINIX-specific changes
Change-Id: I8deeac84deb4a986b62caabe96c8f7c722d97921
2017-03-09 23:40:10 +00:00
David van Moolenbroek
722c5aa73f Enable IPv6 support
Change-Id: I3f68c38ca5efbecd04941064542ed24004db1429
2017-03-09 23:40:09 +00:00
David van Moolenbroek
08cbf5a04d Enable a few more NetBSD functions
Change-Id: Ia8463adfb12b465bd43a62aee9f14b21eaa13b19
2017-03-09 23:40:09 +00:00
David van Moolenbroek
e6dabba58b PTY: add minimal support for TIOCPKT
With TIOCPKT enabled, each piece of output is preceded by a zero byte
on the PTY master.  In addition, a non-zero byte is a flags field
that conveys information about changes on the pseudoterminal.  This
patch implements the former, but not the latter.  That is enough to
get telnetd(8) going, however.  TIOCPKT support may be extended later.

Change-Id: I6ef9cc8cf1b4406147b088400fc8499684b62a30
2017-03-09 23:40:08 +00:00
David van Moolenbroek
d7c7182ad4 Retire MINIX rlogin(1)
Change-Id: Ib85e74e5333e8fffa05631dbc760284761bf3ecb
2017-03-09 23:40:08 +00:00
David van Moolenbroek
47ebcd22bd Retire MINIX rget(1), rput(1)
Change-Id: I70e3ec9281275730c589fb7683801dc1ca584cab
2017-03-09 23:40:07 +00:00
David van Moolenbroek
a9ef5b90e6 Retire MINIX in.telnetd(8)
Change-Id: Ib54998e7a81f924d19b8013ef567703996d24a03
2017-03-09 23:40:06 +00:00
David van Moolenbroek
4d04ccc15b Retire MINIX telnet(1)
..which, for some strange reason, was installed as "ttn".

Change-Id: I5ad2f969ad7978a27fb7345f8434470ca427d429
2017-03-09 23:40:06 +00:00
David van Moolenbroek
34a8cf369f Retire MINIX rarpd(8)
Change-Id: I2d7b7edbb8fa6000ba368d156cf947e7691cf454
2017-03-09 23:40:05 +00:00
David van Moolenbroek
9cf227216d Retire MINIX irdpd(8)
Change-Id: Id11c6db9db5da18346d993cb9c3faa4313ed3ed4
2017-03-09 23:40:04 +00:00
David van Moolenbroek
f130137a5e Retire MINIX arp(8)
Change-Id: I8351fbb99d73811282e46dae7fae1b6abb130bf2
2017-03-09 23:40:04 +00:00
David van Moolenbroek
b8046fb69b Retire MINIX tcpd(8)
Change-Id: If419d441c5df0b9f2e29db1ef0d904d102739f9b
2017-03-09 23:40:03 +00:00
David van Moolenbroek
fd8826c892 Retire MINIX host(1)
Change-Id: I19d2e866d6d397d3bff9ba698cb8ec26267ee82c
2017-03-09 23:40:03 +00:00
David van Moolenbroek
9490732a59 Retire MINIX dhcpd(8)
Change-Id: I4b8c738b6176ce390a7a7817b0dcaf9caffe636c
2017-03-09 23:40:02 +00:00
David van Moolenbroek
035c234ade Retire MINIX hostaddr(1)
Change-Id: I30c7b5fe4c96ea040c3eea46f1dc4d9bd135745d
2017-03-09 23:40:01 +00:00
David van Moolenbroek
407c396431 Retire MINIX nonamed(8)
Also retire support for the MINIX versions of /etc/hosts and
/etc/resolv.conf.  These files will be brought back with NetBSD
imports, although like NetBSD, MINIX 3 will be using external
resolvers directly from then on.  Since resolv.conf is hand-created
rather than installed, we do not mark it as obsolete.

Change-Id: Ie6154d5a4d8d977c19b9754bf920ae868680e9d1
2017-03-09 23:40:01 +00:00
David van Moolenbroek
50c98e1f41 Retire MINIX pr_routes(8)
Change-Id: Ic7494d097f9d19185b7173edb7590044baee5abc
2017-03-09 23:40:00 +00:00
David van Moolenbroek
73ee574be3 Retire MINIX add_route(8)
Change-Id: I900a3c6ac8e8fac15f5f84960bb89f92aeb90863
2017-03-09 23:40:00 +00:00
David van Moolenbroek
96339c07fd Retire MINIX ifconfig(8)
Change-Id: I26f3ceff01bbd31e4c009752c7454a58e8a72abf
2017-03-09 23:39:59 +00:00
David van Moolenbroek
c5da0dffe2 Retire inet: the previous MINIX TCP/IP service
This commit (temporarily) leaves MINIX 3 without a TCP/IP service.

Thanks go out to Philip Homburg for providing this TCP/IP stack in the
first place.  It has served MINIX well for a long time.

Change-Id: I0e3eb6fe64204081e4e3c2b9d6e6bd642f121973
2017-03-09 23:39:58 +00:00
David van Moolenbroek
3ea34559da Retire lwip: the previous lwIP-based TCP/IP service
Change-Id: Id9bbf96344a6e9d796f6773547588a981e70bf0f
2017-03-09 23:39:58 +00:00
David van Moolenbroek
49bf8d5c6a Retire MINIX tcpstat(1), udpstat(1)
This needs to be done before retiring inet itself, since these
utilities include headers from inet directly.

Also retire the now-obsolete paramvalue(3).

Change-Id: I9b27771190a6a32ee533b0c0d9d37f61a16ee36c
2017-03-09 23:39:57 +00:00
David van Moolenbroek
baa5830f28 tests: add advanced UDS tests (test90)
Change-Id: Ib4b81d441368fd9b7e7c7b9cab802bb01fa04065
2017-03-09 23:39:56 +00:00
David van Moolenbroek
27852ebe53 UDS: full rewrite
This new implementation of the UDS service is built on top of the
libsockevent library.  It thereby inherits all the advantages that
libsockevent brings.  However, the fundamental restructuring
required for that change also paved the way for resolution of a
number of other important open issues with the old UDS code.  Most
importantly, the rewrite brings the behavior of the service much
closer to POSIX compliance and NetBSD compatibility.  These are the
most important changes:

- due to the use of libsockevent, UDS now supports multiple suspending
  calls per socket and a large number of standard socket flags and
  options;
- socket address matching is now based on <device,inode> lookups
  instead of canonized path names, and socket addresses are no longer
  altered either due to canonization or at connect time;
- the socket state machine is now well defined, most importantly
  resolving the erroneous reset-on-EOF semantics of the old UDS, but
  also allowing socket reuse;
- sockets are now connected before being accepted instead of being
  held in connecting state, unless the LOCAL_CONNWAIT option is set
  on either the connecting or the listening socket;
- connect(2) on datagram sockets is now supported (needed by syslog),
  and proper datagram socket disconnect notification is provided;
- the receive queue now supports segmentation, associating ancillary
  data (in-flight file descriptors and credentials) with each segment
  instead of being kept fully separately; this is a POSIX requirement
  (and needed by tmux);
- as part of the segmentation support, the receive queue can now hold
  as many packets as can fit, instead of one;
- in addition to the flags supported by libsockevent, the MSG_PEEK,
  MSG_WAITALL, MSG_CMSG_CLOEXEC, MSG_TRUNC, and MSG_CTRUNC send and
  receive flags are now supported;
- the SO_PASSCRED and SO_PEERCRED socket options are replaced by
  LOCAL_CREDS and LOCAL_PEEREID respectively, now following NetBSD
  semantics and allowing use of NetBSD libc's getpeereid(3);
- memory usage is reduced by about 250 KB due to centralized in-flight
  file descriptor tracking, with a limit of OPEN_MAX total rather than
  of OPEN_MAX per socket;
- memory usage is reduced by another ~50 KB due to removal of state
  redundancy, despite the fact that socket path names may now be up to
  253 bytes rather than the previous 104 bytes;
- compared to the old UDS, there is now very little direct indexing on
  the static array of sockets, thus allowing dynamic allocation of
  sockets more easily in the future;
- the UDS service now has RMIB support for the net.local sysctl tree,
  implementing preliminary support for NetBSD netstat(1).

Change-Id: I4a9b6fe4aaeef0edf2547eee894e6c14403fcb32
2017-03-09 23:39:56 +00:00
David van Moolenbroek
241ebcae9b RMIB: expose full node path; improve restartability
A single function may be used to handle the implementation of more
than one node.  In some cases, the behavior of that function may
depend on the path name used to reach the node.  Therefore, provide
the full path name as part of the call information.

As a result, RMIB has to save the paths for each of its remote MIB
mount points.  That in turn also allows it to autonomously remount its
mount points after a MIB service restart, thus bringing us a step
closer to proper recovery after a MIB crash without requiring the
service using RMIB to perform explicit steps.  As before, the missing
ingredient is actual notification of MIB service restarts, and proper
support for *that* will likely require changes to the DS service.

Change-Id: Ic0c79931d6f3a76c2c998047f8b47350fd0fa5b0
2017-03-09 23:39:55 +00:00
David van Moolenbroek
bfa518c7ec PM/libsys: extend getepinfo, add getsockcred(3)
The service-only getepinfo(2) PM call returns information about a
given endpoint.  This patch extends that call so that it returns
enough information to allow correctly filling a sockcred structure.
A new getsockcred(3) function is added to libsys to fill an actual
sockcred structure with the obtained information.  However, for the
caller's convenience, the groups list is kept separate.

Change-Id: I9f1a6d1a221c77eabaa3498ff4ec9a5fb922e4fd
2017-03-09 23:39:55 +00:00
David van Moolenbroek
462713495a libsys: retire getnucred in favor of getepinfo
The getnucred() function was used by UDS to obtain credentials of user
processes in a form used in the UDS API, namely the ucred structure.
Since the NetBSD merge, this structure has changed drastically (aside
from being renamed to "uucred"), and it is no longer in UDS's best
interest to use this structure internally.  Therefore, getnucred() is
no longer a useful API either, and instead we directly use the
previously private getepinfo() function to obtain credentials.

Change-Id: I80bc809de716ec0a9b7497cb109d2f2708a629d5
2017-03-09 23:39:54 +00:00
David van Moolenbroek
dd96967135 UDS: prepare for socket file creation in bind(2)
This patch prepares for moving of the creation of socket files on the
file system from the libc bind(2) stub into the UDS service.  This
change is necessary for the socket type agnostic libc implementation.
The change is not yet activated - the code that is not yet used is
enclosed in "#if NOT_YET" blocks.  The activation needs to be atomic
with UDS's switch to libsockdriver; otherwise, user applications may
break.

As part of the change, various UDS bind(2) semantics are changed to
match the POSIX standard and other operating systems.  In
implementation terms, the service-only VFS API checkperms(2) is
renamed to socketpath(2), and extended with a new subcall which
creates a new socket file.  An extension to test56 checks the new
bind(2) semantics of UDS, although most new tests are still disabled
until activation as well.

Finally, as further preparation for a more structural redesign of the
UDS service, also return the <device,inode> number pair for the
created or checked file name, and make returning the canonized path
name optional.

Change-Id: I892d04b3301d4b911bdc571632ddde65fb747a8a
2017-03-09 23:39:53 +00:00
David van Moolenbroek
4c27a83389 Add libsockevent: a socket event dispatching library
This library provides an event-based abstraction model and dispatching
facility for socket drivers.  Its main goal is to eliminate any and
all need for socket drivers to keep track of pending socket calls.
Additionally, this library takes over responsibility of a number of
other tasks that would otherwise be duplicated between socket drivers,
but in such a way that individual socket drivers retain a large degree
of freedom in terms of API behavior.  The library's main features are:

- suspension, resumption, and cancellation of socket calls;
- an abstraction layer for select(2);
- state tracking of shutdown(2);
- pending (asynchronous) errors and the SO_ERROR socket option;
- listening-socket tracking and the SO_ACCEPTCONN socket option;
- generation of SIGPIPE signals; SO_NOSIGPIPE, MSG_NOSIGNAL;
- send and receive low-watermark tracking, SO_SNDLOWAT, SO_RCVLOWAT;
- send and receive timeout support and SO_SNDTIMEO, SO_RCVTIMEO;
- an abstraction layer for the SO_LINGER socket option;
- tracking of various on/off socket options as well as SO_TYPE;
- a range of pre-checks on socket calls that are required POSIX.

In order to track per-socket state, the library manages an opaque
"sock" object for each socket.  The allocation of such objects is left
entirely to the socket driver.  Each sock object has an associated
callback table for calls from libsockevent to the socket driver.  The
socket driver can raise events on the sock object in order to flag
that any previously suspended operations of a particular type should
be resumed.  The library may defer processing such raised events if
immediate processing could interfere with internal consistency.

The sockevent library is layered on top of libsockdriver, and should
be used by all socket driver implementations if at all possible.

Change-Id: I3eb2c80602a63ef13035f646473360293607ab76
2017-03-09 23:39:53 +00:00
David van Moolenbroek
85723df033 Add libsockdriver: a library for socket drivers
This library provides abstractions for socket drivers, and should be
used as the basis for all socket driver implementations.  It provides
the following functionality:

  - a function call table abstraction, hiding the details of the
    socket driver protocol with simple parameters and presenting the
    socket driver with callback functions very similar to the BSD
    socket API calls made from userland;
  - abstracting data structures and helper functions for suspending
    and resuming blocking calls;
  - abstracting data structures and helper functions for copying data
    from and to the caller.

Overall, the library is similar to lib{block,char,fs,input,net}driver
in concept.  Some of the abstractions provided here should in fact be
applied to libchardriver as well.  As always, for the case that the
provided message loop is too restrictive, a set of more low-level
message processing functions is provided.

Change-Id: I79ec215f5e195c3b0197e223636f987d3755fb13
2017-03-09 23:39:52 +00:00
David van Moolenbroek
45443f35b5 VFS: support close-on-exec flag for copyfd(2)
The flag is supported only when copying out file descriptors (i.e.
COPYFD_TO).  It will be used by UDS to support MSG_CMSG_CLOEXEC.

Change-Id: I46bfd04b5f28e22ec48938e43e42f78d3931220d
2017-03-09 23:39:51 +00:00
David van Moolenbroek
c344203e48 VFS: deny copying sockets to owning socket driver
This patch stops a socket driver from using copyfd(2) to copy in a
file descriptor that is a reference to a socket owned by that socket
driver, returning EDEADLK instead.  In effect, this will stop deadlock
and resource exhaustion issues with UDS once it has been converted to
a socket driver.  See the comment in the patch for details.

Change-Id: I5728a405eabda207725618231a6ff7be2d517146
2017-03-09 23:39:51 +00:00
David van Moolenbroek
491d647a3b VFS: support for suspending close(2) for sockets
This change effectively adds the VFS side of support for the SO_LINGER
socket option, by allowing file descriptor close operations to be
suspended (and later resumed) by socket drivers.  Currently, support
is limited to the close(2) system call--in all other cases where file
descriptors are closed (dup2, close-on-exec, process exit..), the
close operation still completes instantly.  As a general policy, the
close(2) return value will always indicate that the file descriptor
has been closed: either 0, or -1 with errno set to EINPROGRESS.  The
latter error may be thrown only when a suspended close is interrupted
by a signal.

As necessary for UDS, this change also introduces a closenb(2) system
call extension, allowing the caller to bypass blocking SO_LINGER close
behavior.  This extension allows UDS to avoid blocking on closing the
last reference to an in-flight file descriptor, in an atomic fashion.
The extension is currently part of libsys, but there is no reason why
userland would not be allowed to make this call, so it is deliberately
not protected from use by userland.

Change-Id: Iec77d6665232110346180017fc1300b1614910b7
2017-03-09 23:39:50 +00:00
David van Moolenbroek
722cbc6186 VFS: change select(2) semantics for closed filps
If a select(2) call was issued on a file descriptor for which the file
pointer was closed due to invalidation (FILP_CLOSED), typically as the
result of a character/socket driver dying, the call would previously
return with an error: EINTR upon call entry or EIO on invalidation at
at a later time.  Especially the former could severely confuse
applications, which would assume the call was interrupted by a signal,
restart the select call and immediately get EINTR again, ad infinitum.

This patch changes the select(2) semantics such that for closed filps,
the file descriptor is returned as readable and/or writable (depending
on the requested operations), as such letting the entire select call
finish successfully.  Applications will then typically attempt to read
from and/or write to the file descriptor, resulting in an I/O error
that they should generally be better equipped to handle.

This patch also fixes a potential problem with returning early from a
select(2) call if a bad file descriptor is given: previously, in such
cases not all actions taken so far would be undone; now they are.

Change-Id: Ia6581f8789473a8a6c200852fccf552691a17025
2017-03-09 23:39:50 +00:00
David van Moolenbroek
e3b8d4bb58 VFS: add BSD socket API, socket driver support
This patch adds the implementation of the BSD socket system calls
which have been introduced in an earlier patch.  At the same time, it
adds support for communication with socket drivers, using a new
"socket device" (SDEV_) protocol.  These two parts, implemented in
socket.c and sdev.c respectively, form the upper and lower halves of
the new BSD socket support in VFS.  New mapping functionality for
socket domains and drivers is added as well, implemented in smap.c.

The rest of the changes mainly facilitate the separation of character
and socket driver calls, and do not make any fundamental alterations.
For example, while this patch changes VFS's select.c rather heavily,
the new select logic for socket drivers is the exact same as for
character drivers; the changes mainly separate the driver type
specific parts from the generic select logic further than before.

Change-Id: I2f13084dd3c8d3a68bfc69da0621120c8291f707
2017-03-09 23:39:49 +00:00
David van Moolenbroek
181fb1b2b5 RS: add infrastructure for mapping socket drivers
This patch introduces the first piece of support for the concept of
"socket drivers": services that implement one or more socket protocol
families.  The latter are also known as "domains", as per the first
parameter of the socket(2) API.  More specifically, this patch adds
the basic infrastructure for specifying that a particular service is
the socket driver for a set of domains.

Unlike major number mappings for block and character drivers, socket
domain mappings are static.  For that reason, they are specified in
system.conf files, using the "domain" keyword.  Such a keyword is to
be followed by one or more protocol families, without their "PF_"
prefix.  For example, a service with the line "domain INET INET6;"
will be mapped as the socket driver responsible for the AF_INET and
AF_INET6 protocol families.

This patch implements only the infrastructure for creating such
mappings; the actual mapping will be implemented in VFS in a later
patch.  The infrastructure is implemented in service(8), RS, and VFS.

For now there is a hardcoded limit of eight domains per socket driver.
This may sound like a lot, but the upcoming new LWIP service will
already use four of those.  Also, it is allowed for a service to be
both a block/character driver and a socket driver at the same time,
which is a requirement for the new LWIP service.

Change-Id: I93352d488fc6c481e7079248082895d388c39f2d
2017-03-09 23:39:49 +00:00
David van Moolenbroek
a1c660069f libc: switch to NetBSD getifaddrs(3)
Change-Id: I698f7cef84506ebd7beed6974a232eb75ab853c3
2017-03-09 23:39:48 +00:00
David van Moolenbroek
14d921278d Import NetBSD getent(1)
Disable RPC support for now.

Change-Id: I5ccb435220bf20cd9089cdd7aacb7d126f62f119
2017-03-09 20:04:33 +01:00
Jia-Ju Bai
0d23d856eb Fix two mistakes in IP1000 driver
Change-Id: Iafdfc7496c0ed45727f414c35350cf86b644413b
2017-03-09 14:36:42 +01:00
David van Moolenbroek
8d0759b089 isofs: fix reported st_blocks stat(2) field
The st_blocks field should count 512-byte units, not file system
block units.  The previous computation would cause utilities such
as du(1), when used on isofs, to be off by a factor four.

Change-Id: If47c234079d19bd5b41f35a97780667efd822509
2017-02-26 22:22:20 +00:00
David van Moolenbroek
1d9650c9c5 etc: replace one more "service" with minix-service
This omission would cause the test set to hang, at least, if the
old /bin/service was indeed deleted.

Change-Id: I9423ecc77a4bf778973de81a49300748ce8c3dfd
2017-02-26 00:03:38 +00:00
David van Moolenbroek
8898fa503b ramdisk: clean up CD boot output
In particular, remove a stray '1'.

Change-Id: If82689060a92a4af318b01325492627944fba07f
2017-02-24 18:19:43 +00:00
David van Moolenbroek
e110411edb share: also install other existing manpages
A pair of manual pages were already present in /usr/share/man, but
not yet installed.  Install them as well.  Lots and lots more from
NetBSD's set of manual pages should be imported, though.

Change-Id: Ie2e8946967afcb2e71de563f06fa331586dcb31d
2017-02-23 14:09:01 +00:00
David van Moolenbroek
92bce86258 Import NetBSD service(8)
Change-Id: I48a4958424ebcdbd279b11e5425a6cd1b4a73121
2017-02-23 14:08:56 +00:00
David van Moolenbroek
e4449940d2 No longer auto-start pkgsrc packages
In order to comply with the pkgsrc standards, pkgsrc packages are no
longer auto-started.  Instead, we require that users follow the common
pkgsrc procedure: to start a pkgsrc package as part of system startup,
copy its startup script from /usr/pkg/etc/rc.d to /etc/rc.d, and make
the appropriate changes to /etc/rc.conf.

This change affects in particular the openssh package, of which its
ssh daemon is no longer auto-started.  However, installing this
package also no longer causes all kinds of Kerberos-related warnings
to be reported at boot time now.

Also remove a leftover reference to the defunct ddekit usb package.

Change-Id: I4d42f6ca1ab5e3bc2ec296bc7c0e3056964ae451
2017-02-23 14:08:50 +00:00
David van Moolenbroek
325ce30bcc Initial import of NetBSD rc system
IMPORTANT: this change has a docs/UPDATING entry!

This patch performs an initial import of the infrastructure and a
subset of the NetBSD set of rc startup and shutdown scripts.  The
"initial" refers to the fact that this is not yet a full switch to the
NetBSD rc system: the MINIX ramdisk rc script, which (typically) runs
as the first thing, is kept as is.  After mounting the root file
system, the ramdisk rc script will start the NetBSD rc infrastructure
by invoking /etc/rc, however.  The regular MINIX startup-and-shutdown
script has been moved from /etc/rc to /etc/rc.minix, and is now
invoked as part of the NetBSD rc infrastructure through a bridge rc
script /etc/rc.d/minixrc.  /etc/rc.minix invokes /usr/etc/rc as before.

Switching over the ramdisk to the NetBSD system and decomposing the
MINIX rc.minix script into smaller components are left to future work.
Also, the current pkgsrc etc/rc.d auto-start functionality is left as
is, even though it should be removed (see the etc/usr/rc comment).

Change-Id: Ia96cae7c426e94b85c67978dc1307dacc4b09fc5
2017-02-23 14:08:39 +00:00
David van Moolenbroek
2109df2759 VM: fix race condition communicating with VM
After processing certain asynchronous requests from VFS, VM would send
an asynchronous reply without supplying the AMF_NOREPLY flag.  As a
result, this asynchronous reply could be taken as the result of an
ipc_sendrec() call, causing the entire VM/VFS communication to become
desynchronized.  The end result was a deadlock-induced panic during a
later request.

This bug was exposed because of the higher-than-usual concurrency
level in the NetBSD rc scripts.  The fix consists of properly setting
the AMF_NOREPLY flag for asynchronous replies.

Change-Id: Iafafe2fdd67f212ecbf27a53862cefba2e4cf7e8
2017-02-23 11:27:42 +00:00
David van Moolenbroek
3e1f70db42 VBOX: update current time immediately at startup
Performing the update at any later time may cause rc scripts to work
with a wrong date, which may have side effects, such as databse files
getting regenerated on every boot.

Change-Id: Idfdbf67ad285300c982d95769007dc88c522b908
2017-02-22 17:18:12 +00:00
David van Moolenbroek
81fc6023c2 Import NetBSD services_mkdb(8)
Change-Id: Ia3fc2479d2abb2dbe9afd1b60e0ffbaf377bcf5a
2017-02-22 17:18:06 +00:00
David van Moolenbroek
5ae330e220 Import NetBSD fmt(1)
This requires importing a few files from mail(1) already.  Importing
the rest of mail(1) is left to future work.

Change-Id: If96513a306245cd7fb64660758d0dbd29a36e87c
2017-02-22 17:18:00 +00:00
David van Moolenbroek
045e0ed35c Import NetBSD rcorder(8)
Change-Id: Id2ed4959f8089189929fc56401d1c70add5ad323
2017-02-22 17:17:28 +00:00
David van Moolenbroek
c58da9fbc3 Rename MINIX service(8) to minix-service(8)
IMPORTANT: this change has a docs/UPDATING entry!

This rename is unfortunately necessary because NetBSD has decided to
create its own service(8) utility, and we will want to import theirs
as well.  The two can obviously not coexist.

Also move ours from /bin to /sbin, as it is a superuser-only utility.

Change-Id: Ic6e46ffb3a84b4747d2fdcb0d74e62dbea065039
2017-02-22 17:16:21 +00:00
David van Moolenbroek
bf5536d653 distrib: more minor fixes
- unbreak MKDEBUGLIB=yes builds
- please do not delete my .exrc file :(

Change-Id: Ib1d40e6894062bd881e50c712da88e7a604f2ad7
2017-02-22 13:57:54 +00:00
David van Moolenbroek
77e79d3374 etc: synchronize master.password, group to NetBSD
IMPORTANT: this change has a docs/UPDATING entry!

This change is a long overdue switch-over from the old MINIX set of
user and group accounts to the NetBSD set.  This switch-over is
increasingly important now that we are importing more and more
utilities from NetBSD, several of which expect various user accounts
to exist.  By switching over in one go, we save ourselves various
headaches in the long run, even if the switch-over itself is a bit
painful for existing MINIX users.

The newly imported master.passwd and group files have three exceptions
compared to their NetBSD originals:

1. There is a custom "service" account for MINIX 3 services.  This
   account is used to limit run-time privileges of various system
   services, and is not used for any files on disk.  Its user ID may
   be changed later, but should always correspond to whatever the
   SERVICE_UID definition is set to.
2. The user "bin" has its shell set to /bin/sh, instead of NetBSD's
   /sbin/nologin.  The reason for this is that the test set in
   /usr/tests/minix-posix will not be able to run otherwise.
3. The group "operator" has been set to group ID 0, to match its old
   value.  This tweak is purely for transitioning purposes: as of
   writing, pkgsrc packages are still using root:operator as owner and
   group for most installed files.  Sometime later, we can change back
   "operator" to group ID 5 without breaking anything, because it does
   not appear that this group name is used for anything important.

Change-Id: I689bcfff4cf7ba85c27d1ae579057fa3f8019c68
2017-02-18 21:37:24 +00:00
David van Moolenbroek
e436e99481 distrib: fix entries that are off
This small change makes it easier to do sorts without having to deal
with these entries over and over again.

Change-Id: Id5077a17733fa4b535cdc9881109286335d3cb17
2017-02-18 12:37:22 +00:00
David van Moolenbroek
0c6b4c6127 printconfig(8): print PCI sub-VID/DID when set
In order to allow for proper matching of available drivers to system
hardware, the output of this utility should reflect the full details
of the input from configuration files.  In particular, that includes
sub-IDs of PCI devices when those have been specified.

Change-Id: Iea24d72795cd714268dbdb95df998eb74de8f2bd
2017-02-16 10:22:28 +00:00
David van Moolenbroek
5f6c420586 Retire env.h
This was a MINIX3-specific header file placed outside of the minix/
header subdirectory, with its definitions duplicated in the more
standard minix/sysutil.h header.

Also make env_prefix(3) take constant pointers.

Change-Id: I243c38eb38e24eb98f0c0dddf7f340e7fec255f4
2017-02-16 10:22:27 +00:00
David van Moolenbroek
40dec70c39 trace(1): print sin6_scope_id when relevant
Site-local addresses are out, as they are RFC-deprecated and not
supported on MINIX 3 at all.  Interface-local and link-local multicast
addresses are in, because they are relevant in the context of a
particular zone ID only.

Change-Id: I64a9ecb472946f717f27a72c4073d78aa1120508
2017-02-16 10:21:56 +00:00
David van Moolenbroek
44fdeb7a62 libc: more poll(3) wrapper fixes
- POLLRDBAND is reported by select(2) as errorfd, not readfd;
- POLLERR is not the same as errorfd of select(2);
- flags that are not requested should not be returned.

Change-Id: I9cb3c2c260ead5a2852a2fbbc10280c2b5b0dff9
2017-02-16 10:18:26 +00:00
FeZoli
68804c208e Added Hungarian keyboard layout
Change-Id: Ib52ad3723ba6679506128813be962fd68f8998c5
2017-02-08 22:51:26 +01:00
Jia-Ju Bai
c28d8fefcf VT6105: Restructure the code and correct function order in initialization
Change-Id: Ibbc8f835174349501e74dde7163c234effb34bc8
2017-01-26 12:50:48 +01:00
Jia-Ju Bai
3afdc1200b IP1000: Restructure the code and correct function order in initialization
Change-Id: I7c887a777205ea0ae38b4ef1830535d035c5a976
2017-01-26 12:47:45 +01:00
Jean-Baptiste Boric
72e11e2789 Import NetBSD's passwd.conf
Without this file, the NetBSD userland will fall back by default to the
old, insecure classic UNIX password hashing algorithm.

This is a big security issue. Please check docs/UPDATING for details.

Change-Id: Ib85646ee4678f91384bab238426ee55ff26da011
2017-01-22 20:43:54 +01:00
Jia-Ju Bai
eecf6d233d Add the driver for Trident 4DWAVE-DX sound card
Change-Id: I6a4f5427915032a6a4c0246fed35c10397df3e07
2017-01-08 19:01:58 +01:00
Jia-Ju Bai
8acfcfc39e Add the driver for CS4281 sound card
Change-Id: Ifc1b7c129578c5efa5e328664d10d07ee5df786b
2017-01-08 19:01:20 +01:00
Jia-Ju Bai
86fd71a2c9 Add the driver for ALS4000 sound card
Change-Id: I2ad08e8479b743ec235d1c9e541faa2fa6a29fcc
2017-01-08 19:00:40 +01:00
Jia-Ju Bai
37e23b1cc7 Add the driver for CMI8738 sound card
Change-Id: I5a53e3b8652a014e105ca7c77c42a730f6824307
2017-01-08 18:59:39 +01:00
David van Moolenbroek
6dd801ffb8 libaudiodriver: buffer accounting bugfix
This fixes #191.

Change-Id: I93752161e466b2d03bbcb0838705aab9619c05c8
2016-12-28 13:12:58 +00:00
David van Moolenbroek
192c3a97f6 libaudiodriver: readd callback to drv_int_sum()
The callback, which was dropped in commit git-842c4ed, allows drivers
to fetch the interrupt status once and save it locally for subsequent
calls to drv_int().

This fixes #190 .

Change-Id: I83918656f637e716f60e9f4c19f1498f761d3b52
2016-12-28 13:08:23 +00:00
David van Moolenbroek
10a44c0ee2 trace(1): add basic support for timestamps
This patch adds strace-like support for a -t command line option,
which causes a timestamp to be printed at the beginning of each line.
If the option is given more than once, the output will also include
microseconds.

Change-Id: I8cda581651859448c154b01815cc49d915b7b354
2016-12-28 13:06:04 +00:00
David van Moolenbroek
1bb466dd36 libc: make posix_spawn(3) clean up child on failure
Change-Id: I39a321f23326485fca789e5792a57532d1036716
2016-12-28 13:05:55 +00:00
David van Moolenbroek
b52b83f927 test74: allow to be run from source directory
A small fix to allow this test to be run from its original source
directory location, in addition to its installed location.

Change-Id: I4b7afed14ba02b1bea8d9c5f65bc96698a279188
2016-12-28 13:05:44 +00:00
Antoine Leca
3f862305f8 Fix the process for GNU tools on MINIX
This is a fix over commit a150b26ee8
On a MINIX station, the tools are not usually built and
on a first-time building of the tree, the fetching script
of texinfo was not triggered in some cases. Let force it.
Reported on minix3 googlegroup by Chris Card.

Change-Id: I8beafdeaec66bb1f1f3250bd64c1e14c0023e9d0
2016-11-30 08:42:36 +01:00
117b6ea003 Fix OPSYS constant in pkg_install tools
Change-Id: I84c1596e4ca9b5a016b628deb75c8133d51a6a75
2016-11-30 08:35:38 +01:00
Jia-Ju Bai
8d98f2e579 Add the driver for IC Plus 1000A Ethernet card
Change-Id: I9ac119c6285bc63a8b795b44d9ab7d245d9a8832
2016-11-24 17:22:28 +01:00
Jia-Ju Bai
8dc24c0650 Update vt6105
Change-Id: I8136a17eb47f626141bb20b9d6a30f82117425b7
2016-11-24 17:22:15 +01:00
rlfnb
fee60e45e6 introducing libacpi
Change-Id: I0808545fefaefc9a8fc8d1101bd85b676467fea0
2016-10-29 17:08:10 +02:00
rlfnb
e154914956 Added vendor- and device id for Via Rhine III
The device id added is used by ALIX boards.

Change-Id: I78d1ce9f2fa0ee121e68d2c84818f669eeab3092
2016-10-24 14:20:37 +02:00
Jia-Ju Bai
9784113fda vt6105: add a README file
Change-Id: I8dbb122afc130f2f2504743fa4fcbada5c97dff5
2016-10-24 14:18:54 +02:00
David van Moolenbroek
286d266fd0 PM: fix alarm signal delivery
As of change git-87c599d, when processing CLOCK notifications, PM no
longer set the current process pointer 'mp'.  That pointer is however
used when delivering signals through check_sig(), to see whether the
current process may deliver a signal to the target process.  As a
result, delivering SIGALARM signals used a previous pointer in these
checks, causing alarm signals not to be delivered in some cases.
This patch ensures that alarm signals are again delivered with PM as
current process.

Change-Id: I94ccbe8b71289df0e1d6d67928e55297bbc28360
2016-10-24 12:11:52 +00:00
David van Moolenbroek
dd41186aac libc: remove MINIX3 restrictions from getnameinfo(3)
Change-Id: I4679f6804f229520d6399a06a5da0655f2bfd899
2016-10-24 12:11:07 +00:00
David van Moolenbroek
f221d2ce48 RMIB: add support for vector copy-out
Change-Id: I9e9b4b8d6eed39fdb511c6bd2a375ddf898064a5
2016-10-24 12:10:34 +00:00
io12
9f11521a37 Fix grammar errors in a comment
Change-Id: I0ad2b6a28afb44e42d1830f1b0944579dc032261
2016-10-19 23:51:07 +02:00
Jia-Ju Bai
022136b354 Add the driver for VIA Technology 6105/6106S Ethernet card
Change-Id: I690c34f0a37bcbb20a5b7748e3dd315707460caf
2016-10-19 21:54:58 +02:00
rlfnb
702ec7400f fixed git checkout and updated latest known changeset working for grub
Change-Id: If4a1e8bfb42a20cf50d847105cc8f96c3cf1cd00
2016-10-18 14:22:28 +02:00
Richard Sailer
a0814afb2e VFS: Convert K&R C -> ANSI C
Aditionally this removes all trailing whitespaces
using: sed -i 's/[[:space:]]*$//' *.c

Change-Id: I88451fdb6f6e79e61f8aae5bd5a7f2e3538f9944
2016-10-18 14:20:21 +02:00
Richard Sailer
4aa48abab9 is: Convert K&R C -> ANSI C
Aditionally this removes all trailing whitespaces
using: sed -i 's/[[:space:]]*$//' *.c

Change-Id: I274fccee9ec320e474ac26fbe19f3bd50bec271a
2016-10-18 14:19:48 +02:00
David van Moolenbroek
6956dd2b51 libc: bugfixes for minix's poll(3) wrapper
- clear "revents" fields even when the call times out;
- do not call FD_ISSET with a negative file descriptor number.

Change-Id: I7aeaae79e73e39aed127a75495ea08256b18c182
2016-10-18 14:18:41 +02:00
David van Moolenbroek
3ac58492b3 Add LLVM GCOV coverage support
With this patch, it is now possible to generate coverage information
for MINIX3 system services with LLVM.  In particular, the system can
be built with MKCOVERAGE=yes, either with a native "make build" or
with crosscompilation.  Either way, MKCOVERAGE=yes will build the
MINIX3 system services with coverage profiling support, generating a
.gcno file for each source module.  After a reboot it is possible to
obtain runtime coverage data (.gcda files) for individual system
services using gcov-pull(8).  The combination of the .gcno and .gcda
files can then be inspected with llvm-cov(1).

For reasons documented in minix.gcov.mk, only system service program
modules are supported for now; system service libraries (libsys etc.)
are not included.  Userland programs are not affected by MKCOVERAGE.

The heart of this patch is the libsys code that writes data generated
by the LLVM coverage hooks into a serialized format using the routines
we already had for GCC GCOV.  Unfortunately, the new llvm_gcov.c code
is LLVM ABI dependent, and may therefore have to be updated later when
we upgrade LLVM.  The current implementation should support all LLVM
versions 3.x with x >= 4.

The rest of this patch is mostly a light cleanup of our existing GCOV
infrastructure, with as most visible change that gcov-pull(8) now
takes a service label string rather than a PID number.

Change-Id: I6de055359d3d2b3f53e426f3fffb17af7877261f
2016-09-24 22:18:31 +00:00
rlfnb
92dfb2dc8e Removed redundant ifdef
Change-Id: Ifb7df30591d658700d6293632f5f944c32376fdf
2016-09-10 13:44:04 +02:00
Antoine Leca
2aa07764b8 [boot-i386] Reduce differences with NetBSD
Change-Id: I50c183d283858a098f0766cf3053fa6e78ce06ad
2016-09-10 12:47:42 +02:00
Antoine Leca
7a3aae8b5b Adjust .gitignore for MINIX file system
Some files in LLVM have more than Minix-maximum of 60 characters.
Also drop some obsolete stuff, and add obj which are symlinks added
to every directory when using /usr/obj as OBJDIR (hinted in wiki.)

Change-Id: Iac82bb064f68689f247a2ee1b1d2f365344ab793
2016-09-10 12:47:03 +02:00
Jean-Baptiste Boric
6afe26749a Enable building with MKDEBUG and MKDEBUGLIB
The way these options work is by creating files that contain debugging
symbols and stashing them in a dedicated set. The minix-debug set has
been created for this purpose, but it will probably have to be refined
since it has been tested only with the default options with an i386
cross-build.

LSC: Amended to support many combination of MKDEBUG, MKDEBUGLIB, with
     and without X11, for both intel and arm.

Change-Id: I2901952e8229938f9ac79c8656484acf704ccd9b
2016-09-10 12:42:45 +02:00
Antoine Leca
a150b26ee8 Improve the process for GNU tools
Split the process to fetch GNU tools (until now embedded
within tools/Makefile.gnuhost) into a new Makefile.fetchgnu,
MINIX-specific hence relocated, which is to be also used
to fetch sources even when not building the tools.
Use it for binutils too.
Improve documentation.

Also do not run configure on each run when MKUPDATE=yes
The .WAIT serialization instruction between fetching and other
configure sources was raising a new run of configure at each
compilation. Avoid it by using two rules.

Change-Id: Ie24950ccbb5c5067f3c1ea57b7bd8294e4c9445e
2016-09-01 21:16:13 +02:00
Antoine Leca
76c7f3dac9 Obey HAVE_GOLD=no to no intent to build gold
This is useful when the host C++ compiler is broken or not compliant.

Change-Id: I09933e81ae07e95e5696b177cd4670cab33ce6c1
2016-09-01 07:47:09 +02:00
Antoine Leca
00e393ca04 Kyua framework does not build up with /usr/obj
Reported to NetBSD as PR/51389, fix by dholland
http://gnats.netbsd.org/51389

Change-Id: Ib31662000255a62261fb461fcab2d931faa47f70
2016-08-31 18:27:05 +02:00
Antoine Leca
6ddb33542a Allow repartition(8) subpartitions above 4G
Change-Id: I058ab3b58b2e7822b59365b1ce222c5588f442cd
2016-08-06 10:52:38 +02:00
rlfnb
3c71801e8e made PAE enabled by accident and fixed libmagicrt.h
Change-Id: Ia09d8b9a68aa2e1522d66ed93453de9d7d802cb2
2016-08-06 10:52:09 +02:00
David van Moolenbroek
3083d603ba Resolve a number of GCC-generated warnings
The warnings in test47 seem to be a symptom of a larger problem,
i.e., not an issue with the test set code but rather with the GCC
configuration.  Hopefully the switch to LLVM will resolve those.

Change-Id: Ic9fa3b8bc9b728947c993f2e1ed49d9a3b731344
2016-08-05 16:24:04 +02:00
David van Moolenbroek
82de0a47ea system.conf: clean up the last sys_int86 remnants
The remaining entries produced warnings at startup.

Change-Id: I076f73a813f7c3ecb208cc458939afc6c4fe3066
2016-08-05 11:17:48 +00:00
David van Moolenbroek
f83d70a503 tests: fix bug in sys_vumap test
Ever since a VM allocation strategy change, this test is fully
dysfunctional.  It should be repaired and added to the regular
test set, but that will require some work.

For now, keep it in reasonable shape.

Reported by dcb314.

This closes #153.

Change-Id: Ia57bdfdf6a3fc8d47cae76a0be9881fb4d796f6d
2016-08-05 11:17:37 +00:00
David van Moolenbroek
815afbad33 libmthread: resolve memory leaks on exception path
If libmthread runs into a memory allocation failure while attempting
to enlarge its thread pool, it does not free up any preliminary
allocations made so far.

Reported by dcb314.

This closes #152.

Change-Id: Ib882a4544e4802a0eb0a53446b43997876cde633
2016-08-05 11:17:30 +00:00
David van Moolenbroek
ab712d1923 commands: fix various small issues
Reported by dcb314.  Recommendations adopted as is.

This closes #137, closes #138, closes #139, and hopefully I got that
right this time.

Change-Id: I79774f4c398495dba19dec43fbc3f79afd186843
2016-08-05 11:17:19 +00:00
David van Moolenbroek
1ccb488d84 libsys: fix format specifier in RMIB code
Reported by dcb314.

This closes #141.

Change-Id: I26011870891f5ba22844c335af6081ee9f05c12c
2016-08-05 11:16:43 +00:00
David van Moolenbroek
89a4204b83 VFS: split block, character device handling
All functions prefixed with bdev_ are moved into bdev.c, and those
prefixed with cdev_ are now in cdev.c.  The code in both files are
converted to KNF.  The little (IOCTL-related) code left in device.c
is also cleaned up but should probably be moved into other existing
source files.  This is left to a future patch.  In general, VFS is
long overdue for a source code rebalancing, and the patch here is
only a step in the right direction.

Change-Id: I2fb25734b5778b44f2ff6d2ce331a8e2146e20b0
2016-08-05 11:16:30 +00:00
David van Moolenbroek
232819dd49 VFS: store process suspension state as union
Previously, VFS would use various subsets of a number of fproc
structure fields to store state when the process is blocked
(suspended) for various reasons.  As a result, there was a fair
amount of abuse of fields, hidden state, and confusion as to
which fields were used with which suspension states.

Instead, the suspension state is now split into per-state
structures, which are then stored in a union.  Each of the union's
structures should be accessed only right before, during, and right
after the fp_blocked_on field is set to the corresponding blocking
type.  As a result, it is now very clear which fields are in use
at which times, and we even save a bit of memory as a side effect.

Change-Id: I5c24e353b6cb0c32eb41c70f89c5cfb23f6c93df
2016-08-05 11:15:15 +00:00
David van Moolenbroek
0eb6caa076 VFS: disallow opening files of unsupported types
Any attempt to use open(2) to open a socket file now fails with
EOPNOTSUPP, as is common and in the process of being standardized.
The behavior and error code is now tested in test56.

Any attempt to open a file of which the type is not known to VFS
(e.g., as a result of bogus file system contents) now fails with EIO.
For now, this is a safety feature, to prevent VFS tripping over such
types in unchecked cases.  In the future, a proper VFS code audit
should determine whether we can lift this restriction again, although
it does not seem particularly useful to be able to open files of
unknown types anyway.  Another error code may be assigned to this case
later, too.

Change-Id: Ib4cb4341eec954f0448fe469ecf28bd78edebde2
2016-08-05 11:14:29 +00:00
David van Moolenbroek
63faa8fe9a VFS: add debug dump for select
By now it has become clear that the VFS select code has an unusually
high concentration of bugs, and there is no indication that any form
of convergence to a bug-free state is in sight.  Thus, for now, it
may be helpful to be able to dump the contents of the select tables
in order to track down any bugs in the future.  Hopefully that will
allow the next bugs to be resolved slightly after than before.

The debug dump can be triggered with "svrctl vfs get print_select".

Change-Id: Ia826746dce0f065d7f3b46aa9047945067b8263d
2016-08-05 11:14:09 +00:00
David van Moolenbroek
2ff64318e2 VFS: fix race condition in select(2)
A select query could deadlock if..

- it was querying a character or socket device that, at the start of
  the select query, was not known to be ready for the requested
  operations;
- this device could not be checked immediately, due to another ongoing
  query to the same character or socket driver;
- the select query had a timer that triggered before the device could
  be checked, thereby changing the select query to non-blocking.

In this situation, a missing flag check would cause the select code to
conclude erroneously that the operations which it flagged for later,
were satisfied.  At the same time, the same flag remained set, so that
the select query would continue to wait for that device.  This
resulted in a deadlock.  The same bug could most likely be triggered
through other scenarios that were even less likely to occur.

This patch fixes the race condition and puts in a hopefully slightly
more informative comment for the affected block of code.

In practice, the bug could be triggered fairly reliably by generating
lots of output in tmux.

Change-Id: I1c909255dcf552e6c7cef08b0cf5cbc41294b99c
2016-08-05 11:13:59 +00:00
David van Moolenbroek
a758ec672e VFS: forbid mknod(2) on symlinks
As imposed by POSIX.

Extend a random test to verify this behavior.

Change-Id: Ib70550cefaeb9efd54e22312425263a5606fb5e8
2016-08-05 11:13:38 +00:00
David van Moolenbroek
cfd712b424 Various timer improvements
Now that clock_t is an unsigned value, we can also allow the system
uptime to wrap.  Essentially, instead of using (a <= b) to see if time
a occurs no later than time b, we use (b - a <= CLOCK_MAX / 2).  The
latter value does not exist, so instead we add TMRDIFF_MAX for that
purpose.

We must therefore also avoid using values like 0 and LONG_MAX as
special values for absolute times.  This patch extends the libtimers
interface so that it no longer uses 0 to indicate "no timeout".
Similarly, TMR_NEVER is now used as special value only when
otherwise a relative time difference would be used.  A minix_timer
structure is now considered in use when it has a watchdog function set,
rather than when the absolute expiry time is not TMR_NEVER.  A few new
macros in <minix/timers.h> help with timer comparison and obtaining
properties from a minix_timer structure.

This patch also eliminates the union of timer arguments, instead using
the only union element that is only used (the integer).  This prevents
potential problems with e.g. live update.  The watchdog function
prototype is changed to pass in the argument value rather than a
pointer to the timer structure, since obtaining the argument value was
the only current use of the timer structure anyway.  The result is a
somewhat friendlier timers API.

The VFS select code required a few more invasive changes to restrict
the timer value to the new maximum, effectively matching the timer
code in PM.  As a side effect, select(2) has been changed to reject
invalid timeout values.  That required a change to the test set, which
relied on the previous, erroneous behavior.

Finally, while we're rewriting significant chunks of the timer code
anyway, also covert it to KNF and add a few more explanatory comments.

Change-Id: Id43165c3fbb140b32b90be2cca7f68dd646ea72e
2016-08-05 11:12:44 +00:00
rlfnb
bf609e1012 Preparations for PAE support
Change-Id: I9a7c9ed9f803e2e26d745d14149a8aec64ab0c75
2016-08-04 09:24:42 +02:00
Antoine Leca
e70e5a1722 Adapt MINIX-specific part of tools/installboot
This is necessary to enable correct compilation of the tools version
of installboot_nbsd(8)when cross-compiling on a system close enough
to MINIX, like NetBSD 7.0.1 for example.

Change-Id: I7a12614518293e05d64d7cc189c62651fdc64734
2016-08-03 08:09:00 +02:00
Antoine Leca
55a5a21b97 Clean up traces from long-gone sys_int86 interface
Change-Id: I773ab67342be852cc74f76b4fcbb338c9cb11f7e
2016-07-20 19:00:44 +02:00
Antoine Leca
a2bd2caf02 Drop obsolete postinstall script
Conflicts with NetBSD /usr/sbin/postinstall(8)

Change-Id: Iaefe4494b95b46d1134f4a477798765bbcc66c70
2016-07-20 17:35:49 +02:00
Antoine Leca
4aaaf2c612 Remove long-obsolete pwdauth(8) command (in usr/lib)
Change-Id: I454d506199ce1d5d48295bca86b590ce0701dcc2
2016-07-20 17:35:37 +02:00
Antoine Leca
7eb1c60ab5 Allow part(8) to make subpartitions above 4G
Change-Id: I3fd2c5de7cbb190b857eb34f16463f67a30118a3
2016-07-14 12:34:41 +02:00
36dcc4a4a9 Import locale tools and ressource files
This commit requires special steps, please checkout docs/UPDATING.

Tools:
 - gencat
 - locale
 - mkcsmapper
 - mkesdb
 - mklocale

Libs:
 - i18n_module
 - libintl

Ressources:
 - i18n
 - locale

Change-Id: I559d0399d8e98bcee15225cab786e43f31506207
2016-07-09 12:18:33 +02:00
733a844ac6 kernel/cpulocals.h: Simplify macros
Change-Id: Ice845fb0743ff686398293cef2620f5ac9c902ad
2016-07-09 12:18:15 +02:00
7eaefc5e7c gnu/texinfo: Disable -Werror for clang
Change-Id: Ib5053044c03503942f9626703f086ee2bbb518ac
2016-07-09 12:11:26 +02:00
Richard Sailer
637f688f0d PM: Convert K&R C -> ANSI C
Aditionally this removes all trailing whitespaces in pm server code
using: sed -i 's/[[:space:]]*$//' *.c

Change-Id: Ie44162fd56cd7042f4f0cc7bd7314b17ea128761
2016-07-08 21:24:33 +02:00
Ralf Neeb
1717959aeb made minix3 bootable via EFI
Change-Id: I61d995e240deb6ebb3027d3ab07e6e3759e52b01
2016-07-02 13:43:03 +02:00
Mark Pauley
03de4d97b4 Typo in hardfloat command-line fixup/replacement
- Added two missing '%' characters to replacement strings.

Change-Id: I139d432f5cf2651642284fa39112b66f478dadce
2016-07-02 13:18:46 +02:00
David van Moolenbroek
764cd267a7 INET/LWIP: minimal net.route sysctl support
At a point not too far in the future, we will be switching from the
hardcoded MINIX3 implementation of the getifaddrs(3) libc routine to
the proper NetBSD implementation.  The latter uses the
net.route.rtable sysctl functionality to obtain its information.  In
order make the transition as painless as possible, this patch adds
basic support for that net.route.rtable functionality to INET and
LWIP, using the remote MIB (RMIB) facility.

Change-Id: I54f5cea7985f6606e317c73a5e6be3a5d07bc7dc
2016-06-18 12:47:30 +00:00
David van Moolenbroek
534584945c IPC: use RMIB to handle kern.ipc sysctl subtree
With this patch, the IPC service is changed to use the new RMIB
facility to register and handle the "kern.ipc" sysctl subtree itself.
The subtree was previously handled by the MIB service directly.  This
change improves locality of handling: especially the
kern.ipc.sysvipc_info node has some peculiarities specific to the IPC
service and is therefore better handled there.  Also, since the IPC
service is essentially optional to the system, this rearrangement
yields a cleaner situation when the IPC service is not running: in
that case, the MIB service will expose a few basic kern.ipc nodes
indicating that no SysV IPC facilities are present.  Those nodes will
be overridden through RMIB when the IPC service is running.

It should be easier to add the remaining (from NetBSD) kern.ipc nodes
as well now.

Test88 is extended with a new subtest that verifies that sysctl-based
information retrieval for semaphore sets works as expected.

Change-Id: I6b7730e85305b64cfd8418c0cc56bde64b22c584
2016-06-18 12:47:24 +00:00
David van Moolenbroek
6f3e0bcd3d MIB/libsys: support for remote MIB (RMIB) subtrees
Most of the nodes in the general sysctl tree will be managed directly
by the MIB service, which obtains the necessary information as needed.
However, in certain cases, it makes more sense to let another service
manage a part of the sysctl tree itself, in order to avoid replicating
part of that other service in the MIB service.  This patch adds the
basic support for such delegation: remote services may now register
their own subtrees within the full sysctl tree with the MIB service,
which will then forward any sysctl(2) requests on such subtrees to the
remote services.

The system works much like mounting a file system, but in addition to
support for shadowing an existing node, the MIB service also supports
creating temporary mount point nodes.  Each have their own use cases.
A remote "kern.ipc" would use the former, because even when such a
subtree were not mounted, userland would still expect some of its
children to exist and return default values.  A remote "net.inet"
would use the latter, as there is no reason to precreate nodes for all
possible supported networking protocols in the MIB "net" subtree.

A standard remote MIB (RMIB) implementation is provided for services
that wish to make use of this functionality.  It is essentially a
simplified and somewhat more lightweight version of the MIB service's
internals, and works more or less the same from a programmer's point
of view.  The most important difference is the "rmib" prefix instead
of the "mib" prefix.  Documentation will hopefully follow later.

Overall, the RMIB functionality should not be used lightly, for
several reasons.  First, despite being more lightweight than the MIB
service, the RMIB module still adds substantially to the code
footprint of the containing service.  Second, the RMIB protocol not
only adds extra IPC for sysctl(2), but has also not been optimized for
performance in other ways.  Third, and most importantly, the RMIB
implementation also several limitations.  The main limitation is that
remote MIB subtrees must be fully static.  Not only may the user not
create or destroy nodes, the service itself may not either, as this
would clash with the simplified remote node versioning system and
the cached subtree root node child counts.  Other limitations exist,
such as the fact that the root of a remote subtree may only be a
node-type node, and a stricter limit on the highest node identifier
of any child in this subtree root (currently 4095).

The current implementation was born out of necessity, and therefore
it leaves several improvements to future work.  Most importantly,
support for exit and crash notification is missing, primarily in the
MIB service.  This means that remote subtrees may not be cleaned up
immediately, but instead only when the MIB service attempts to talk
to the dead remote service.  In addition, if the MIB service itself
crashes, re-registration of remote subtrees is currently left up to
the individual RMIB users.  Finally, the MIB service uses synchronous
(sendrec-based) calls to the remote services, which while convenient
may cause cascading service hangs.  The underlying protocol is ready
for conversion to an asynchronous implementation already, though.

A new test set, testrmib.sh, tests the basic RMIB functionality.  To
this end it uses a test service, rmibtest, and also reuses part of
the existing test87 MIB service test.

Change-Id: I3378fe04f2e090ab231705bde7e13d6289a9183e
2016-06-18 12:46:59 +00:00
David van Moolenbroek
53d2fa057e Do not hide the MSG_NOSIGNAL flag
Instead, filter it in libc for old networking implementations, as
those do not support sending SIGPIPE to user processes anyway.  This
change allows newer socket drivers to implement the flag as per the
specification.

Change-Id: I423bdf28ca60f024a344d0a73e2eab38f1b269da
2016-06-18 12:20:48 +00:00
David van Moolenbroek
8bda47ed96 LWIP: fix system.conf file
Change-Id: I0f204a14776b4c3aaab4723c14a508506187acbc
2016-06-18 12:20:47 +00:00
David van Moolenbroek
ebe9f48d04 Import a subset of PF distribution files
We do not support any PF functionality, nor do we intend to.  However,
some NetBSD utilities rely on the presence of these files.  Not all of
the files are installed.  The NetBSD source seems rather inconsistent
in where from to include these files.  We simply follow what NetBSD
does, though.

Change-Id: Ib244dfcc60b16ebc4697af22f71b7e014374b855
2016-06-18 12:20:46 +00:00
David van Moolenbroek
37274f3cdb Import additional networking headers from NetBSD
While still a small subset of the NetBSD headers, this set should
allow various additional utilities to be compiled without too many
MINIX3-specific changes (even if those utilities will not yet work).

Change-Id: Idc70e9901d584e960cd406f75f561dcc9a4ddb7d
2016-06-18 12:20:46 +00:00
David van Moolenbroek
91d0779762 libchardriver: make some pointers constant
Change-Id: Ieabc6962d10f9f6e0db7807fd24add212bcfc148
2016-06-18 12:20:45 +00:00
Jacob Adams
4cb315c484 kernel: Update copyright year
Change-Id: If566bf95db32d9f5ebf1a6677acdaad1c023112e
2016-06-18 12:19:59 +00:00
David van Moolenbroek
4d3708913c cawf(1): remove various redundant comparisons
Reported by dcb314.

This fixes #135, #136.

Change-Id: I0f83a92e18adf68e5ad493b9057d093a6b37b328
2016-06-17 20:09:08 +00:00
David van Moolenbroek
dc2c582f36 Correct bad assignments in various conditions
Reported by dcb314.

This fixes #128, #129, #130, #131, #132, #133.

Change-Id: I284d6dd87fba7c5775bea22d04412d685a2ab027
2016-06-17 20:07:55 +00:00
David van Moolenbroek
ee0384891a MFS: do not crash when reading superblock fails
While MFS failing to do I/O on a block is generally fatal, reading
the superblock at mount time is an exception: this case may occur
when the given partition is too small to contain the superblock.
Therefore, MFS should not crash or even report anything in this
case, but rather refuse to mount cleanly.

This fixes #121.

Change-Id: I11326b48922a0e0ebefecbb8eec7c428f985f2b3
2016-06-17 19:48:20 +00:00
David van Moolenbroek
6c7e614940 SEF: identity transfer only after controlled crash
Transparent (endpoint-preserving) restarts with identity transfer
are meant to exercise the crash recovery system only.  After *real*
crashes, such restarts are useless at best and dangerous at worst,
because no state integrity can be guaranteed afterwards.  Thus,
except after a controlled crash, it is best not to perform such
restarts at all.  This patch changes SEF such that identity transfer
is successful only if the old process was the subject of a crash
induced through "service fi".  As a result, testrelpol.sh should
continue to be able to use identity transfers for testing purposes,
but any real crash will be handled more appropriately.

This fixes #126.

Change-Id: Idc17ac7b3dfee05098529cb889ac835a0cd03ef0
2016-06-17 18:19:25 +00:00
David van Moolenbroek
7d0647db6a VFS: fix aborting queued requests after FS crash
The new asserts from git-29e004d exposed an issue in how VFS handles
aborting file system (FS) requests that are queued for a FS (as
opposed to sent to it) when that FS crashes.  In that scenario, the
queued worker has its w_task set to NONE, because there is no ongoing
communication.  However, worker_stop() is called on it regardless,
which used to abort the request only if w_task was not set to NONE,
leading to an improperly aborted request, a warning, and a VFS crash a
bit later.  This patch changes worker_stop() so that w_task need not
be set to a valid endpoint for FS requests to be properly aborted.

Change-Id: Ib73db285e689ae4742b15cba26137bf340bc303b
2016-06-17 18:02:29 +00:00
10181 changed files with 2551463 additions and 573264 deletions

12
.gitignore vendored
View File

@@ -15,8 +15,10 @@ lib*.so*
*.a
*.so.*
*.d
!etc/*.d
.depend
nbsdsrc/*
*.gcno
*.gcda
TAGS
tags
GPATH
@@ -25,10 +27,10 @@ GSYMS
GTAGS
\#*#
CVS
obj
!/.gitignore
.gitignore
.svn
minix-port.patch
*.worldstone.log
.worldstone*
usr.bin/mdocml/man/*.7
@@ -39,5 +41,11 @@ releasetools/image
releasetools/kernel
releasetools/revision
share/zoneinfo/builddir
external/bsd/llvm/dist/clang/test/CodeGenCXX/microsoft-abi-vtables-multiple-nonvirtual-inheritance-no-thu
external/bsd/llvm/dist/clang/test/CodeGenCXX/microsoft-abi-vtables-multiple-nonvirtual-inheritance-pure-v
external/bsd/llvm/dist/clang/test/CodeGenCXX/microsoft-abi-vtables-multiple-nonvirtual-inheritance-return
external/bsd/llvm/dist/clang/test/CodeGenCXX/microsoft-abi-vtables-multiple-nonvirtual-inheritance-this-a
external/bsd/llvm/dist/clang/test/CodeGenCXX/microsoft-abi-vtables-multiple-nonvirtual-inheritance-vdtors
external/bsd/llvm/dist/llvm/test/Verifier/bitcast-address-space-through-constant-inttoptr-inside-gep-i
lib/libc/compat__*
.gdbinit

17
README.md Normal file
View File

@@ -0,0 +1,17 @@
# Build MINIX/arm with clang
It is now possible to build a full minix distribution for BeaglBone White/Black and BeagleBoardxM using clang instead of GCC.
This also add support to run the Kuya tests on ARM, which was not possible when GCC was used, because of problems in the C++ exception handling.
## Known Bugs
The following tests still fails:
1. 53: Division by zero does not trigger exceptions
2. 75: ru.tv_secs can't be zero (and is zero)
3. 85: hangs
4. isofs: Fails because of an out of memory condition
5. vnd: crash
6. Running two times the kyua tests in a row, without rebooting in between will lead to a mostly failed second run because of copy-on-write errors.

View File

@@ -1,4 +1,4 @@
/* $NetBSD: cat.c,v 1.55 2015/07/25 16:17:01 sevan Exp $ */
/* $NetBSD: cat.c,v 1.57 2016/06/16 00:52:37 sevan Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -44,7 +44,7 @@ __COPYRIGHT(
#if 0
static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
#else
__RCSID("$NetBSD: cat.c,v 1.55 2015/07/25 16:17:01 sevan Exp $");
__RCSID("$NetBSD: cat.c,v 1.57 2016/06/16 00:52:37 sevan Exp $");
#endif
#endif /* not lint */
@@ -113,6 +113,7 @@ main(int argc, char *argv[])
vflag = 1;
break;
default:
case '?':
(void)fprintf(stderr,
"Usage: %s [-beflnstuv] [-B bsize] [-] "
"[file ...]\n", getprogname());
@@ -174,18 +175,16 @@ cook_buf(FILE *fp)
line = gobble = 0;
for (prev = '\n'; (ch = getc(fp)) != EOF; prev = ch) {
if (prev == '\n') {
if (ch == '\n') {
if (sflag) {
if (!gobble && nflag && !bflag)
(void)fprintf(stdout,
"%6d\t\n", ++line);
else if (!gobble && putchar(ch) == EOF)
break;
if (sflag) {
if (ch == '\n') {
if (gobble)
continue;
gobble = 1;
continue;
} else
gobble = 0;
}
if (nflag) {
if (!bflag) {
if (!bflag || ch != '\n') {
(void)fprintf(stdout,
"%6d\t", ++line);
if (ferror(stdout))
@@ -197,13 +196,7 @@ cook_buf(FILE *fp)
break;
}
}
} else if (nflag) {
(void)fprintf(stdout, "%6d\t", ++line);
if (ferror(stdout))
break;
}
}
gobble = 0;
if (ch == '\n') {
if (eflag)
if (putchar('$') == EOF)

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: chmod.1,v 1.25 2013/12/17 09:54:08 apb Exp $
.\" $NetBSD: chmod.1,v 1.26 2016/08/11 00:10:42 sevan Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)chmod.1 8.4 (Berkeley) 3/31/94
.\"
.Dd October 22, 2012
.Dd August 11, 2016
.Dt CHMOD 1
.Os
.Sh NAME
@@ -304,6 +304,11 @@ compatible with the exception of the
symbol
.Dq t
which is not included in that standard.
.Sh HISTORY
A
.Nm
utility appeared in
.At v1 .
.Sh BUGS
There's no
.Ar perm

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: cp.1,v 1.44 2015/06/28 16:22:54 wiz Exp $
.\" $NetBSD: cp.1,v 1.45 2016/08/11 00:17:23 sevan Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)cp.1 8.3 (Berkeley) 4/18/94
.\"
.Dd March 25, 2012
.Dd August 11, 2016
.Dt CP 1
.Os
.Sh NAME
@@ -255,3 +255,8 @@ The
.Fl v
option is an extension to
.St -p1003.2 .
.Sh HISTORY
A
.Nm
utility appeared in
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: csh.1,v 1.52 2013/01/22 21:20:26 wiz Exp $
.\" $NetBSD: csh.1,v 1.53 2016/08/10 17:16:47 sevan Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)csh.1 8.2 (Berkeley) 1/21/94
.\"
.Dd January 22, 2013
.Dd August 8, 2016
.Dt CSH 1
.Os
.Sh NAME
@@ -2233,7 +2233,7 @@ substitutions on a single line to 20.
.Sh HISTORY
.Nm
appeared in
.Bx 3 .
.Bx 2 .
It was a first implementation of a command language interpreter
incorporating a history mechanism (see
.Sx History substitutions ) ,

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: date.1,v 1.42 2012/04/06 11:36:56 wiz Exp $
.\" $NetBSD: date.1,v 1.44 2017/01/03 16:01:05 abhinav Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)date.1 8.3 (Berkeley) 4/28/95
.\"
.Dd November 15, 2006
.Dd August 11, 2016
.Dt DATE 1
.Os
.Sh NAME
@@ -148,7 +148,7 @@ The hour of the day, from 00 to 23.
.It Ar MM
The minute of the hour, from 00 to 59.
.It Ar SS
The second of the minute, from 00 to 61.
The second of the minute, from 00 to 60.
.El
.Pp
Everything but the minutes is optional.
@@ -244,3 +244,8 @@ The
.Nm
utility is expected to be compatible with
.St -p1003.2 .
.Sh HISTORY
A
.Nm
utility appeared in
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: dd.1,v 1.27 2015/03/18 13:30:13 wiz Exp $
.\" $NetBSD: dd.1,v 1.32 2016/08/18 22:43:49 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)dd.1 8.2 (Berkeley) 1/13/94
.\"
.Dd March 18, 2015
.Dd August 18, 2016
.Dt DD 1
.Os
.Sh NAME
@@ -209,7 +209,7 @@ in order to output to a nonexistent file.
The default or specified value is or'ed with
.Va rdwr
for a first
.Xt open 2
.Xr open 2
attempt, then on failure with
.Va wronly
on a second attempt.
@@ -486,7 +486,6 @@ To print summary information in human-readable form:
.Pp
To customize the information summary output and print it through
.Xr unvis 3 :
.Pp
.Bd -literal -offset indent
dd if=/dev/zero of=/dev/null count=1 \e
msgfmt='speed:%E, in %s seconds\en' 2\*[Gt]\*[Am]1 | unvis
@@ -516,3 +515,8 @@ and
values are extensions to the
.Tn POSIX
standard.
.Sh HISTORY
A
.Nm
utility appeared in
.At v5 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: df.1,v 1.44 2010/04/05 21:17:28 joerg Exp $
.\" $NetBSD: df.1,v 1.46 2016/08/10 23:48:14 sevan Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)df.1 8.2 (Berkeley) 1/13/92
.\"
.Dd March 4, 2008
.Dd August 10, 2016
.Dt DF 1
.Os
.Sh NAME
@@ -203,4 +203,4 @@ size block.
A
.Nm
utility appeared in
.At v6 .
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: echo.1,v 1.13 2003/08/07 09:05:12 agc Exp $
.\" $NetBSD: echo.1,v 1.15 2016/08/14 22:59:22 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)echo.1 8.1 (Berkeley) 7/22/93
.\"
.Dd July 22, 1993
.Dd August 14, 2016
.Dt ECHO 1
.Os
.Sh NAME
@@ -66,3 +66,8 @@ The
utility is expected to be
.St -p1003.2
compatible.
.Sh HISTORY
An
.Nm
utility appeared in
.At v2 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: expr.1,v 1.33 2012/08/12 17:27:04 wiz Exp $
.\" $NetBSD: expr.1,v 1.36 2016/08/23 20:34:23 sevan Exp $
.\"
.\" Copyright (c) 2000,2003 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd April 20, 2004
.Dd August 23, 2016
.Dt EXPR 1
.Os
.Sh NAME
@@ -214,7 +214,7 @@ treat it as a delimiter to mark the end of command
line options, and ignore it.
Some
.Nm
implementations don't recognize it at all; others
implementations do not recognize it at all; others
might ignore it even in cases where doing so results in syntax
error.
There should be same result for both following examples,
@@ -242,15 +242,28 @@ The
.Ar length
keyword is an extension for compatibility with GNU
.Nm .
.Sh HISTORY
An
.Nm
utility first appeared in the Programmer's Workbench (PWB/UNIX).
A public domain version of
.Nm
written by
.An Pace Willisson
.Aq pace@blitz.com
appeared in
.Bx 386 0.1 .
.Sh AUTHORS
Original implementation was written by
.An J.T. Conklin
.Aq jtc@NetBSD.org .
It was rewritten for
Initial implementation by
.An Pace Willisson Aq Mt pace@blitz.com
was largely rewritten by
.An -nosplit
.An J.T. Conklin Aq Mt jtc@NetBSD.org .
It was rewritten again for
.Nx 1.6
by
.An Jaromir Dolecek
.Aq jdolecek@NetBSD.org .
.An -nosplit
.An Jaromir Dolecek Aq Mt jdolecek@NetBSD.org .
.Sh NOTES
The empty string
.Do Dc

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: kill.1,v 1.22 2012/03/22 07:58:17 wiz Exp $
.\" $NetBSD: kill.1,v 1.28 2017/04/22 23:01:36 christos Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)kill.1 8.2 (Berkeley) 4/28/95
.\"
.Dd April 28, 1995
.Dd April 22, 2017
.Dt KILL 1
.Os
.Sh NAME
@@ -63,7 +63,6 @@ by the pid operand(s).
Only the super-user may send signals to other users' processes.
.Pp
The options are as follows:
.Pp
.Bl -tag -width Ds
.It Fl s Ar signal_name
A symbolic signal name specifying the signal to be sent instead of the
@@ -104,6 +103,9 @@ belonging to the user.
.Pp
Some of the more commonly used signals:
.Bl -tag -width Ds -compact
.It 0
0 (does not affect the process; can be used to test whether the
process exists)
.It 1
HUP (hang up)
.It 2
@@ -130,6 +132,8 @@ arguments.
See
.Xr csh 1
for details.
.Sh DIAGNOSTICS
.Ex -std
.Sh SEE ALSO
.Xr csh 1 ,
.Xr pgrep 1 ,
@@ -141,11 +145,12 @@ for details.
.Sh STANDARDS
The
.Nm
function is expected to be
utility is expected to be
.St -p1003.2
compatible.
.Sh HISTORY
A
.Nm
command appeared in
.At v6 .
.At v3
in section 8 of the manual.

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: ls.1,v 1.78 2014/10/18 01:49:01 jschauma Exp $
.\" $NetBSD: ls.1,v 1.79 2016/08/10 17:45:12 sevan Exp $
.\"
.\" Copyright (c) 1980, 1990, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)ls.1 8.7 (Berkeley) 7/29/94
.\"
.Dd October 17, 2014
.Dd August 10, 2016
.Dt LS 1
.Os
.Sh NAME
@@ -513,4 +513,4 @@ specification.
An
.Nm
utility appeared in
.At v5 .
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: mkdir.1,v 1.17 2012/03/22 07:58:17 wiz Exp $
.\" $NetBSD: mkdir.1,v 1.19 2016/08/10 18:42:00 sevan Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)mkdir.1 8.2 (Berkeley) 1/25/94
.\"
.Dd January 25, 1994
.Dd August 10, 2016
.Dt MKDIR 1
.Os
.Sh NAME
@@ -92,3 +92,8 @@ The
utility is expected to be
.St -p1003.2
compatible.
.Sh HISTORY
A
.Nm
utility appeared in
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: mv.1,v 1.26 2012/03/22 07:58:17 wiz Exp $
.\" $NetBSD: mv.1,v 1.28 2016/08/10 18:08:14 sevan Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)mv.1 8.1 (Berkeley) 5/31/93
.\"
.Dd December 26, 2002
.Dd August 10, 2016
.Dt MV 1
.Os
.Sh NAME
@@ -144,3 +144,8 @@ The
.Fl v
option is an extension to
.St -p1003.2 .
.Sh HISTORY
An
.Nm
utility appeared in
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: cpio.1,v 1.13 2011/06/19 07:34:24 wiz Exp $
.\" $NetBSD: cpio.1,v 1.14 2015/12/19 18:48:33 wiz Exp $
.\"
.\" Copyright (c) 1997 SigmaSoft, Th. Lockert
.\" All rights reserved.
@@ -297,7 +297,8 @@ specific archive format specification.
.Xr pax 1 ,
.Xr tar 1
.Sh AUTHORS
Keith Muller at the University of California, San Diego.
.An Keith Muller
at the University of California, San Diego.
.Sh BUGS
The
.Fl s

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: pwd.1,v 1.24 2003/10/30 14:58:23 wiz Exp $
.\" $NetBSD: pwd.1,v 1.25 2016/08/12 02:03:26 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)pwd.1 8.2 (Berkeley) 4/28/95
.\"
.Dd October 30, 2003
.Dd August 12, 2016
.Dt PWD 1
.Os
.Sh NAME
@@ -87,6 +87,11 @@ except that the default is
.Fl P
not
.Fl L .
.Sh HISTORY
A
.Nm
utility appeared in
.At v5 .
.Sh BUGS
In
.Xr csh 1

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: rm.1,v 1.27 2013/04/26 19:34:34 wiz Exp $
.\" $NetBSD: rm.1,v 1.28 2016/08/12 02:26:42 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993, 1994, 2003
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)rm.1 8.5 (Berkeley) 12/5/94
.\"
.Dd April 26, 2013
.Dd August 12, 2016
.Dt RM 1
.Os
.Sh NAME
@@ -190,6 +190,11 @@ magnetic disk.
.Em Because these requirements are not met, the
.Fl P
.Em option does not conform to the standard .
.Sh HISTORY
An
.Nm
utility appeared in
.At v1 .
.Sh BUGS
The
.Fl P

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: rmdir.1,v 1.15 2003/08/07 09:05:29 agc Exp $
.\" $NetBSD: rmdir.1,v 1.16 2016/08/12 02:30:37 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)rmdir.1 8.1 (Berkeley) 5/31/93
.\"
.Dd May 31, 1993
.Dd August 12, 2016
.Dt RMDIR 1
.Os
.Sh NAME
@@ -88,3 +88,8 @@ The
utility is expected to be
.St -p1003.2
compatible.
.Sh HISTORY
An
.Nm
utility appeared in
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: sleep.1,v 1.22 2011/08/15 14:45:36 wiz Exp $
.\" $NetBSD: sleep.1,v 1.23 2016/08/12 02:36:38 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)sleep.1 8.3 (Berkeley) 4/18/94
.\"
.Dd August 13, 2011
.Dd August 12, 2016
.Dt SLEEP 1
.Os
.Sh NAME
@@ -121,3 +121,8 @@ The
command is expected to be
.St -p1003.2
compatible.
.Sh HISTORY
A
.Nm
utility appeared in
.At v4 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: stty.1,v 1.41 2012/06/20 14:19:39 wiz Exp $
.\" $NetBSD: stty.1,v 1.43 2016/08/14 23:29:43 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)stty.1 8.5 (Berkeley) 6/1/94
.\"
.Dd June 16, 2012
.Dd August 15, 2016
.Dt STTY 1
.Os
.Sh NAME
@@ -633,3 +633,8 @@ and
flags are
extensions to the standard, as are the operands mentioned in the control
operations section.
.Sh HISTORY
An
.Nm
utility appeared in
.At v2 .

View File

@@ -7,11 +7,7 @@ SUBDIR=mech
.if ${MKSHARE} != "no"
FILESDIR=/usr/share/examples/libsaslc
FILESOWN=root
.if !defined(__MINIX)
FILESGRP=wheel
.else
FILESGRP=operator
.endif # !defined(__MINIX)
FILESMODE=444
FILES= saslc.conf

View File

@@ -5,11 +5,7 @@
.if ${MKSHARE} != "no"
FILESDIR=/usr/share/examples/libsaslc/mech
FILESOWN=root
.if !defined(__MINIX)
FILESGRP=wheel
.else
FILESGRP=operator
.endif # !defined(__MINIX)
FILESMODE=444
FILES=

127
dist/pf/sbin/pfctl/pfctl.h vendored Normal file
View File

@@ -0,0 +1,127 @@
/* $NetBSD: pfctl.h,v 1.5 2008/06/18 09:06:26 yamt Exp $ */
/* $OpenBSD: pfctl.h,v 1.41 2007/05/31 04:13:37 mcbride Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef _PFCTL_H_
#define _PFCTL_H_
enum pfctl_show { PFCTL_SHOW_RULES, PFCTL_SHOW_LABELS, PFCTL_SHOW_NOTHING };
enum { PFRB_TABLES = 1, PFRB_TSTATS, PFRB_ADDRS, PFRB_ASTATS,
PFRB_IFACES, PFRB_TRANS, PFRB_MAX };
struct pfr_buffer {
int pfrb_type; /* type of content, see enum above */
int pfrb_size; /* number of objects in buffer */
int pfrb_msize; /* maximum number of objects in buffer */
void *pfrb_caddr; /* malloc'ated memory area */
};
#define PFRB_FOREACH(var, buf) \
for ((var) = pfr_buf_next((buf), NULL); \
(var) != NULL; \
(var) = pfr_buf_next((buf), (var)))
void pfr_set_fd(int);
int pfr_get_fd(void);
int pfr_clr_tables(struct pfr_table *, int *, int);
int pfr_add_tables(struct pfr_table *, int, int *, int);
int pfr_del_tables(struct pfr_table *, int, int *, int);
int pfr_get_tables(struct pfr_table *, struct pfr_table *, int *, int);
int pfr_get_tstats(struct pfr_table *, struct pfr_tstats *, int *, int);
int pfr_clr_tstats(struct pfr_table *, int, int *, int);
int pfr_clr_addrs(struct pfr_table *, int *, int);
int pfr_add_addrs(struct pfr_table *, struct pfr_addr *, int, int *, int);
int pfr_del_addrs(struct pfr_table *, struct pfr_addr *, int, int *, int);
int pfr_set_addrs(struct pfr_table *, struct pfr_addr *, int, int *,
int *, int *, int *, int);
int pfr_get_addrs(struct pfr_table *, struct pfr_addr *, int *, int);
int pfr_get_astats(struct pfr_table *, struct pfr_astats *, int *, int);
int pfr_clr_astats(struct pfr_table *, struct pfr_addr *, int, int *, int);
int pfr_tst_addrs(struct pfr_table *, struct pfr_addr *, int, int *, int);
int pfr_set_tflags(struct pfr_table *, int, int, int, int *, int *, int);
int pfr_ina_define(struct pfr_table *, struct pfr_addr *, int, int *,
int *, int, int);
void pfr_buf_clear(struct pfr_buffer *);
int pfr_buf_add(struct pfr_buffer *, const void *);
void *pfr_buf_next(struct pfr_buffer *, const void *);
int pfr_buf_grow(struct pfr_buffer *, int);
int pfr_buf_load(struct pfr_buffer *, char *, int,
int (*)(struct pfr_buffer *, char *, int));
char *pfr_strerror(int);
int pfi_get_ifaces(const char *, struct pfi_kif *, int *);
int pfi_clr_istats(const char *, int *, int);
void pfctl_print_title(char *);
int pfctl_clear_tables(const char *, int);
int pfctl_show_tables(const char *, int);
int pfctl_command_tables(int, char *[], char *, const char *, char *,
const char *, int);
int pfctl_show_altq(int, const char *, int, int);
void warn_namespace_collision(const char *);
int pfctl_show_ifaces(const char *, int);
FILE *pfctl_fopen(const char *, const char *);
#ifndef DEFAULT_PRIORITY
#define DEFAULT_PRIORITY 1
#endif
#ifndef DEFAULT_QLIMIT
#define DEFAULT_QLIMIT 50
#endif
/*
* generalized service curve used for admission control
*/
struct segment {
LIST_ENTRY(segment) _next;
double x, y, d, m;
};
extern int loadopt;
int check_commit_altq(int, int);
void pfaltq_store(struct pf_altq *);
struct pf_altq *pfaltq_lookup(const char *);
char *rate2str(double);
void print_addr(struct pf_addr_wrap *, sa_family_t, int);
void print_host(struct pfsync_state_host *, sa_family_t, int);
void print_seq(struct pfsync_state_peer *);
void print_state(struct pfsync_state *, int);
int unmask(struct pf_addr *, sa_family_t);
int pfctl_cmdline_symset(char *);
int pfctl_add_trans(struct pfr_buffer *, int, const char *);
u_int32_t
pfctl_get_ticket(struct pfr_buffer *, int, const char *);
int pfctl_trans(int, struct pfr_buffer *, u_long, int);
#endif /* _PFCTL_H_ */

280
dist/pf/sbin/pfctl/pfctl_parser.h vendored Normal file
View File

@@ -0,0 +1,280 @@
/* $NetBSD: pfctl_parser.h,v 1.5 2008/06/18 09:06:26 yamt Exp $ */
/* $OpenBSD: pfctl_parser.h,v 1.86 2006/10/31 23:46:25 mcbride Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef _PFCTL_PARSER_H_
#define _PFCTL_PARSER_H_
#define PF_OSFP_FILE "/etc/pf.os"
#define PF_OPT_DISABLE 0x0001
#define PF_OPT_ENABLE 0x0002
#define PF_OPT_VERBOSE 0x0004
#define PF_OPT_NOACTION 0x0008
#define PF_OPT_QUIET 0x0010
#define PF_OPT_CLRRULECTRS 0x0020
#define PF_OPT_USEDNS 0x0040
#define PF_OPT_VERBOSE2 0x0080
#define PF_OPT_DUMMYACTION 0x0100
#define PF_OPT_DEBUG 0x0200
#define PF_OPT_SHOWALL 0x0400
#define PF_OPT_OPTIMIZE 0x0800
#define PF_OPT_MERGE 0x2000
#define PF_OPT_RECURSE 0x4000
#define PF_TH_ALL 0xFF
#define PF_NAT_PROXY_PORT_LOW 50001
#define PF_NAT_PROXY_PORT_HIGH 65535
#define PF_OPTIMIZE_BASIC 0x0001
#define PF_OPTIMIZE_PROFILE 0x0002
#define FCNT_NAMES { \
"searches", \
"inserts", \
"removals", \
NULL \
}
struct pfr_buffer; /* forward definition */
struct pfctl {
int dev;
int opts;
int optimize;
int loadopt;
int asd; /* anchor stack depth */
int bn; /* brace number */
int brace;
int tdirty; /* kernel dirty */
#define PFCTL_ANCHOR_STACK_DEPTH 64
struct pf_anchor *astack[PFCTL_ANCHOR_STACK_DEPTH];
struct pfioc_pooladdr paddr;
struct pfioc_altq *paltq;
struct pfioc_queue *pqueue;
struct pfr_buffer *trans;
struct pf_anchor *anchor, *alast;
const char *ruleset;
/* 'set foo' options */
u_int32_t timeout[PFTM_MAX];
u_int32_t limit[PF_LIMIT_MAX];
u_int32_t debug;
u_int32_t hostid;
char *ifname;
u_int8_t timeout_set[PFTM_MAX];
u_int8_t limit_set[PF_LIMIT_MAX];
u_int8_t debug_set;
u_int8_t hostid_set;
u_int8_t ifname_set;
};
struct node_if {
char ifname[IFNAMSIZ];
u_int8_t not;
u_int8_t dynamic; /* antispoof */
u_int ifa_flags;
struct node_if *next;
struct node_if *tail;
};
struct node_host {
struct pf_addr_wrap addr;
struct pf_addr bcast;
struct pf_addr peer;
sa_family_t af;
u_int8_t not;
u_int32_t ifindex; /* link-local IPv6 addrs */
char *ifname;
u_int ifa_flags;
struct node_host *next;
struct node_host *tail;
};
struct node_os {
char *os;
pf_osfp_t fingerprint;
struct node_os *next;
struct node_os *tail;
};
struct node_queue_bw {
u_int32_t bw_absolute;
u_int16_t bw_percent;
};
struct node_hfsc_sc {
struct node_queue_bw m1; /* slope of 1st segment; bps */
u_int d; /* x-projection of m1; msec */
struct node_queue_bw m2; /* slope of 2nd segment; bps */
u_int8_t used;
};
struct node_hfsc_opts {
struct node_hfsc_sc realtime;
struct node_hfsc_sc linkshare;
struct node_hfsc_sc upperlimit;
int flags;
};
struct node_queue_opt {
int qtype;
union {
struct cbq_opts cbq_opts;
struct priq_opts priq_opts;
struct node_hfsc_opts hfsc_opts;
} data;
};
SIMPLEQ_HEAD(node_tinithead, node_tinit);
struct node_tinit { /* table initializer */
SIMPLEQ_ENTRY(node_tinit) entries;
struct node_host *host;
char *file;
};
/* optimizer created tables */
struct pf_opt_tbl {
char pt_name[PF_TABLE_NAME_SIZE];
int pt_rulecount;
int pt_generated;
struct node_tinithead pt_nodes;
struct pfr_buffer *pt_buf;
};
#define PF_OPT_TABLE_PREFIX "__automatic_"
/* optimizer pf_rule container */
struct pf_opt_rule {
struct pf_rule por_rule;
struct pf_opt_tbl *por_src_tbl;
struct pf_opt_tbl *por_dst_tbl;
u_int64_t por_profile_count;
TAILQ_ENTRY(pf_opt_rule) por_entry;
TAILQ_ENTRY(pf_opt_rule) por_skip_entry[PF_SKIP_COUNT];
};
TAILQ_HEAD(pf_opt_queue, pf_opt_rule);
int pfctl_rules(int, char *, FILE *, int, int, char *, struct pfr_buffer *);
int pfctl_optimize_ruleset(struct pfctl *, struct pf_ruleset *);
int pfctl_add_rule(struct pfctl *, struct pf_rule *, const char *);
int pfctl_add_altq(struct pfctl *, struct pf_altq *);
int pfctl_add_pool(struct pfctl *, struct pf_pool *, sa_family_t);
void pfctl_move_pool(struct pf_pool *, struct pf_pool *);
void pfctl_clear_pool(struct pf_pool *);
int pfctl_set_timeout(struct pfctl *, const char *, int, int);
int pfctl_set_optimization(struct pfctl *, const char *);
int pfctl_set_limit(struct pfctl *, const char *, unsigned int);
int pfctl_set_logif(struct pfctl *, char *);
int pfctl_set_hostid(struct pfctl *, u_int32_t);
int pfctl_set_debug(struct pfctl *, char *);
int pfctl_set_interface_flags(struct pfctl *, char *, int, int);
int parse_rules(FILE *, struct pfctl *);
int parse_flags(char *);
int pfctl_load_anchors(int, struct pfctl *, struct pfr_buffer *);
void print_pool(struct pf_pool *, u_int16_t, u_int16_t, sa_family_t, int);
void print_src_node(struct pf_src_node *, int);
void print_rule(struct pf_rule *, const char *, int);
void print_tabledef(const char *, int, int, struct node_tinithead *);
void print_status(struct pf_status *, int);
int eval_pfaltq(struct pfctl *, struct pf_altq *, struct node_queue_bw *,
struct node_queue_opt *);
int eval_pfqueue(struct pfctl *, struct pf_altq *, struct node_queue_bw *,
struct node_queue_opt *);
void print_altq(const struct pf_altq *, unsigned, struct node_queue_bw *,
struct node_queue_opt *);
void print_queue(const struct pf_altq *, unsigned, struct node_queue_bw *,
int, struct node_queue_opt *);
int pfctl_define_table(char *, int, int, const char *, struct pfr_buffer *,
u_int32_t);
void pfctl_clear_fingerprints(int, int);
int pfctl_file_fingerprints(int, int, const char *);
pf_osfp_t pfctl_get_fingerprint(const char *);
int pfctl_load_fingerprints(int, int);
char *pfctl_lookup_fingerprint(pf_osfp_t, char *, size_t);
void pfctl_show_fingerprints(int);
struct icmptypeent {
const char *name;
u_int8_t type;
};
struct icmpcodeent {
const char *name;
u_int8_t type;
u_int8_t code;
};
const struct icmptypeent *geticmptypebynumber(u_int8_t, u_int8_t);
const struct icmptypeent *geticmptypebyname(char *, u_int8_t);
const struct icmpcodeent *geticmpcodebynumber(u_int8_t, u_int8_t, u_int8_t);
const struct icmpcodeent *geticmpcodebyname(u_long, char *, u_int8_t);
struct pf_timeout {
const char *name;
int timeout;
};
#define PFCTL_FLAG_FILTER 0x02
#define PFCTL_FLAG_NAT 0x04
#define PFCTL_FLAG_OPTION 0x08
#define PFCTL_FLAG_ALTQ 0x10
#define PFCTL_FLAG_TABLE 0x20
extern const struct pf_timeout pf_timeouts[];
void set_ipmask(struct node_host *, u_int8_t);
int check_netmask(struct node_host *, sa_family_t);
int unmask(struct pf_addr *, sa_family_t);
void ifa_load(void);
struct node_host *ifa_exists(const char *);
struct node_host *ifa_lookup(const char *, int);
struct node_host *host(const char *);
int append_addr(struct pfr_buffer *, char *, int);
int append_addr_host(struct pfr_buffer *,
struct node_host *, int, int);
#endif /* _PFCTL_PARSER_H_ */

View File

@@ -133,7 +133,7 @@ BEGIN \
print "install:"
} else if (mode == "mtree") {
print "/unset\tall";
print "/set\ttype=file uname=root gname=operator";
print "/set\ttype=file uname=root gname=wheel";
print;
} else if (mode == "populate") {
print "cd " ENVIRON["CURDIR"];

View File

@@ -6,29 +6,38 @@
# mv out mi
#
./etc/system.conf.d/3c90x minix-base
./etc/system.conf.d/als4000 minix-base
./etc/system.conf.d/amddev minix-base
./etc/system.conf.d/atl2 minix-base
./etc/system.conf.d/cmi8738 minix-base
./etc/system.conf.d/cs4281 minix-base
./etc/system.conf.d/dec21140A minix-base
./etc/system.conf.d/dp8390 minix-base
./etc/system.conf.d/dpeth minix-base
./etc/system.conf.d/e1000 minix-base
./etc/system.conf.d/es1370 minix-base
./etc/system.conf.d/es1371 minix-base
./etc/system.conf.d/e1000 minix-base
./etc/system.conf.d/fxp minix-base
./etc/system.conf.d/ip1000 minix-base
./etc/system.conf.d/lance minix-base
./etc/system.conf.d/printer minix-base
./etc/system.conf.d/rtl8139 minix-base
./etc/system.conf.d/rtl8169 minix-base
./etc/system.conf.d/ti1225 minix-base
./etc/system.conf.d/trident minix-base
./etc/system.conf.d/vbfs minix-base
./etc/system.conf.d/vbox minix-base
./etc/system.conf.d/virtio_net minix-base
./etc/system.conf.d/vt6105 minix-base
./service/3c90x minix-base
./service/acpi minix-base
./service/ahci minix-base
./service/als4000 minix-base
./service/amddev minix-base
./service/at_wini minix-base
./service/atl2 minix-base
./service/cmi8738 minix-base
./service/cs4281 minix-base
./service/dec21140A minix-base
./service/dp8390 minix-base
./service/dpeth minix-base
@@ -40,6 +49,7 @@
./service/floppy minix-base
./service/fxp minix-base
./service/hgfs minix-base
./service/ip1000 minix-base
./service/lance minix-base
./service/pci minix-base
./service/pckbd minix-base
@@ -49,10 +59,14 @@
./service/rtl8169 minix-base
./service/sb16 minix-base
./service/ti1225 minix-base
./service/trident minix-base
./service/vbfs minix-base
./service/vbox minix-base
./service/virtio_blk minix-base
./service/virtio_net minix-base
./service/vt6105 minix-base
./usr/lib/libacpi.a minix-base
./usr/lib/libacpi_pic.a minix-base
./usr/lib/libhgfs.a minix-base
./usr/lib/libhgfs_pic.a minix-base
./usr/lib/libm387.a minix-base

File diff suppressed because it is too large Load Diff

View File

@@ -81,6 +81,9 @@
./usr/include/arm/vm.h minix-comp
./usr/include/arm/vmparam.h minix-comp
./usr/include/arm/wchar_limits.h minix-comp
./usr/include/clang-3.6/arm_acle.h minix-comp llvm,llvmcmds
./usr/include/clang-3.6/arm_neon.h minix-comp llvm,llvmcmds
./usr/include/clang-3.6/stdatomic.h minix-comp llvm,llvmcmds
./usr/include/evbarm minix-comp
./usr/include/evbarm/disklabel.h minix-comp
./usr/include/evbarm/intr.h minix-comp

View File

@@ -134,7 +134,7 @@
./usr/include/i386/ibcs2_machdep.h minix-comp
./usr/include/i386/ieee.h minix-comp
./usr/include/i386/ieeefp.h minix-comp
./usr/include/i386/int86.h minix-comp
./usr/include/i386/int86.h minix-comp obsolete
./usr/include/i386/int_const.h minix-comp
./usr/include/i386/int_fmtio.h minix-comp
./usr/include/i386/int_limits.h minix-comp

View File

@@ -292,7 +292,7 @@
./usr/include/disktab.h minix-comp
./usr/include/dlfcn.h minix-comp
./usr/include/elf.h minix-comp
./usr/include/env.h minix-comp
./usr/include/env.h minix-comp obsolete
./usr/include/err.h minix-comp
./usr/include/errno.h minix-comp
./usr/include/eti.h minix-comp
@@ -1126,6 +1126,7 @@
./usr/include/libelf.h minix-comp
./usr/include/libexec.h minix-comp
./usr/include/libgen.h minix-comp
./usr/include/libintl.h minix-comp
./usr/include/libutil.h minix-comp
./usr/include/limits.h minix-comp
./usr/include/link.h minix-comp
@@ -1181,6 +1182,7 @@
./usr/include/minix/blockdriver.h minix-comp
./usr/include/minix/blockdriver_mt.h minix-comp
./usr/include/minix/board.h minix-comp
./usr/include/minix/bpf.h minix-comp
./usr/include/minix/btrace.h minix-comp
./usr/include/minix/callnr.h minix-comp
./usr/include/minix/chardriver.h minix-comp
@@ -1207,6 +1209,7 @@
./usr/include/minix/hgfs.h minix-comp
./usr/include/minix/i2c.h minix-comp
./usr/include/minix/i2cdriver.h minix-comp
./usr/include/minix/if.h minix-comp
./usr/include/minix/input.h minix-comp
./usr/include/minix/inputdriver.h minix-comp
./usr/include/minix/ioctl.h minix-comp
@@ -1220,7 +1223,7 @@
./usr/include/minix/mmio.h minix-comp
./usr/include/minix/mthread.h minix-comp
./usr/include/minix/netdriver.h minix-comp
./usr/include/minix/netsock.h minix-comp
./usr/include/minix/netsock.h minix-comp obsolete
./usr/include/minix/optset.h minix-comp
./usr/include/minix/padconf.h minix-comp
./usr/include/minix/param.h minix-comp
@@ -1230,12 +1233,15 @@
./usr/include/minix/priv.h minix-comp
./usr/include/minix/procfs.h minix-comp
./usr/include/minix/profile.h minix-comp
./usr/include/minix/queryparam.h minix-comp
./usr/include/minix/queryparam.h minix-comp obsolete
./usr/include/minix/rmib.h minix-comp
./usr/include/minix/rs.h minix-comp
./usr/include/minix/safecopies.h minix-comp
./usr/include/minix/sched.h minix-comp
./usr/include/minix/sef.h minix-comp
./usr/include/minix/sffs.h minix-comp
./usr/include/minix/sockdriver.h minix-comp
./usr/include/minix/sockevent.h minix-comp
./usr/include/minix/sound.h minix-comp
./usr/include/minix/spin.h minix-comp
./usr/include/minix/sys_config.h minix-comp
@@ -1270,6 +1276,9 @@
./usr/include/msdosfs/msdosfsmount.h minix-comp
./usr/include/ndbm.h minix-comp
./usr/include/net minix-comp
./usr/include/net/bpf.h minix-comp
./usr/include/net/bpfdesc.h minix-comp
./usr/include/net/bpfjit.h minix-comp
./usr/include/net/dlt.h minix-comp
./usr/include/net/ethertypes.h minix-comp
./usr/include/net/gen minix-comp
@@ -1307,24 +1316,70 @@
./usr/include/net/if_arp.h minix-comp
./usr/include/net/if_dl.h minix-comp
./usr/include/net/if_ether.h minix-comp
./usr/include/net/if_ieee1394.h minix-comp
./usr/include/net/if_media.h minix-comp
./usr/include/net/if_pflog.h minix-comp
./usr/include/net/if_types.h minix-comp
./usr/include/net/netlib.h minix-comp
./usr/include/net/pfil.h minix-comp
./usr/include/net/pfkeyv2.h minix-comp
./usr/include/net/pfvar.h minix-comp
./usr/include/net/radix.h minix-comp
./usr/include/net/route.h minix-comp
./usr/include/net80211 minix-comp
./usr/include/net80211/_ieee80211.h minix-comp
./usr/include/net80211/ieee80211.h minix-comp
./usr/include/net80211/ieee80211_crypto.h minix-comp
./usr/include/net80211/ieee80211_ioctl.h minix-comp
./usr/include/net80211/ieee80211_netbsd.h minix-comp
./usr/include/netatalk minix-comp
./usr/include/netatalk/at.h minix-comp
./usr/include/netatalk/ddp_var.h minix-comp
./usr/include/netconfig.h minix-comp
./usr/include/netdb.h minix-comp
./usr/include/netgroup.h minix-comp
./usr/include/netinet minix-comp
./usr/include/netinet/icmp6.h minix-comp
./usr/include/netinet/icmp_var.h minix-comp
./usr/include/netinet/if_ether.h minix-comp
./usr/include/netinet/if_inarp.h minix-comp
./usr/include/netinet/igmp.h minix-comp
./usr/include/netinet/igmp_var.h minix-comp
./usr/include/netinet/in.h minix-comp
./usr/include/netinet/in_pcb.h minix-comp
./usr/include/netinet/in_pcb_hdr.h minix-comp
./usr/include/netinet/in_systm.h minix-comp
./usr/include/netinet/in_var.h minix-comp
./usr/include/netinet/ip.h minix-comp
./usr/include/netinet/ip6.h minix-comp
./usr/include/netinet/ip_carp.h minix-comp
./usr/include/netinet/ip_icmp.h minix-comp
./usr/include/netinet/ip_mroute.h minix-comp
./usr/include/netinet/ip_var.h minix-comp
./usr/include/netinet/pim_var.h minix-comp
./usr/include/netinet/tcp.h minix-comp
./usr/include/netinet/tcp_debug.h minix-comp
./usr/include/netinet/tcp_fsm.h minix-comp
./usr/include/netinet/tcp_seq.h minix-comp
./usr/include/netinet/tcp_timer.h minix-comp
./usr/include/netinet/tcp_var.h minix-comp
./usr/include/netinet/tcp_vtw.h minix-comp
./usr/include/netinet/tcpip.h minix-comp
./usr/include/netinet/udp.h minix-comp
./usr/include/netinet/udp_var.h minix-comp
./usr/include/netinet6 minix-comp
./usr/include/netinet6/in6.h minix-comp
./usr/include/netinet6/in6_pcb.h minix-comp
./usr/include/netinet6/in6_var.h minix-comp
./usr/include/netinet6/ip6_mroute.h minix-comp
./usr/include/netinet6/ip6_var.h minix-comp
./usr/include/netinet6/nd6.h minix-comp
./usr/include/netinet6/pim6_var.h minix-comp
./usr/include/netinet6/raw_ip6.h minix-comp
./usr/include/netinet6/udp6.h minix-comp
./usr/include/netinet6/udp6_var.h minix-comp
./usr/include/netmpls minix-comp
./usr/include/netmpls/mpls.h minix-comp
./usr/include/netpgp minix-comp
./usr/include/netpgp.h minix-comp crypto
./usr/include/netpgp/verify.h minix-comp crypto
@@ -1427,6 +1482,12 @@
./usr/include/openssl/x509_vfy.h minix-comp crypto
./usr/include/openssl/x509v3.h minix-comp crypto
./usr/include/paths.h minix-comp
./usr/include/pcap-namedb.h minix-comp
./usr/include/pcap minix-comp
./usr/include/pcap.h minix-comp
./usr/include/pcap/bpf.h minix-comp
./usr/include/pcap/namedb.h minix-comp
./usr/include/pcap/pcap.h minix-comp
./usr/include/pci.h minix-comp
./usr/include/poll.h minix-comp
./usr/include/ppath minix-comp
@@ -1736,6 +1797,7 @@
./usr/include/sysexits.h minix-comp
./usr/include/syslog.h minix-comp
./usr/include/tar.h minix-comp
./usr/include/tcpd.h minix-comp
./usr/include/term.h minix-comp
./usr/include/termcap.h minix-comp
./usr/include/termios.h minix-comp
@@ -1816,11 +1878,13 @@
./usr/include/zlib.h minix-comp
./usr/lib minix-comp
./usr/lib/bc minix-comp
./usr/lib/bc/libacpi.a minix-comp bitcode
./usr/lib/bc/libarchive.a minix-comp bitcode
./usr/lib/bc/libasyn.a minix-comp bitcode
./usr/lib/bc/libaudiodriver.a minix-comp bitcode
./usr/lib/bc/libbdev.a minix-comp bitcode
./usr/lib/bc/libbfd.a minix-comp bitcode,binutils
./usr/lib/bc/libbind9.a minix-comp bitcode
./usr/lib/bc/libblacklist.a minix-comp bitcode
./usr/lib/bc/libblockdriver.a minix-comp bitcode
./usr/lib/bc/libbz2.a minix-comp bitcode
@@ -1836,6 +1900,7 @@
./usr/lib/bc/libddekit_usb_server.a minix-comp bitcode
./usr/lib/bc/libdes.a minix-comp bitcode
./usr/lib/bc/libdevman.a minix-comp bitcode
./usr/lib/bc/libdns.a minix-comp bitcode
./usr/lib/bc/libedit.a minix-comp bitcode
./usr/lib/bc/libelf.a minix-comp bitcode
./usr/lib/bc/libevent.a minix-comp bitcode
@@ -1850,10 +1915,16 @@
./usr/lib/bc/libhgfs.a minix-comp bitcode
./usr/lib/bc/libiberty.a minix-comp bitcode,binutils
./usr/lib/bc/libinputdriver.a minix-comp bitcode
./usr/lib/bc/libintl.a minix-comp bitcode
./usr/lib/bc/libirs.a minix-comp bitcode
./usr/lib/bc/libisc.a minix-comp bitcode
./usr/lib/bc/libisccc.a minix-comp bitcode
./usr/lib/bc/libisccfg.a minix-comp bitcode
./usr/lib/bc/libkvm.a minix-comp bitcode
./usr/lib/bc/libl.a minix-comp bitcode
./usr/lib/bc/liblua.a minix-comp bitcode
./usr/lib/bc/liblwip.a minix-comp bitcode
./usr/lib/bc/liblwres.a minix-comp bitcode
./usr/lib/bc/liblzma.a minix-comp bitcode
./usr/lib/bc/libm.a minix-comp bitcode
./usr/lib/bc/libm387.a minix-comp bitcode
@@ -1867,8 +1938,9 @@
./usr/lib/bc/libnetdriver.a minix-comp bitcode
./usr/lib/bc/libnetpgp.a minix-comp bitcode
./usr/lib/bc/libnetpgpverify.a minix-comp bitcode
./usr/lib/bc/libnetsock.a minix-comp bitcode
./usr/lib/bc/libnetsock.a minix-comp bitcode,obsolete
./usr/lib/bc/libopcodes.a minix-comp bitcode,binutils
./usr/lib/bc/libpcap.a minix-comp bitcode
./usr/lib/bc/libpci.a minix-comp bitcode
./usr/lib/bc/libprop.a minix-comp bitcode
./usr/lib/bc/libpuffs.a minix-comp bitcode
@@ -1876,6 +1948,8 @@
./usr/lib/bc/librmt.a minix-comp bitcode
./usr/lib/bc/libsaslc.a minix-comp bitcode
./usr/lib/bc/libsffs.a minix-comp bitcode
./usr/lib/bc/libsockdriver.a minix-comp bitcode
./usr/lib/bc/libsockevent.a minix-comp bitcode
./usr/lib/bc/libsqlite3.a minix-comp bitcode
./usr/lib/bc/libssl.a minix-comp bitcode
./usr/lib/bc/libsys.a minix-comp bitcode
@@ -1887,7 +1961,55 @@
./usr/lib/bc/libvboxfs.a minix-comp bitcode
./usr/lib/bc/libvirtio.a minix-comp bitcode
./usr/lib/bc/libvtreefs.a minix-comp bitcode
./usr/lib/bc/libwrap.a minix-comp bitcode
./usr/lib/bc/libz.a minix-comp bitcode
./usr/lib/i18n/bc minix-comp bitcode
./usr/lib/i18n/bc/libBIG5.a minix-comp bitcode
./usr/lib/i18n/bc/libDECHanyu.a minix-comp bitcode
./usr/lib/i18n/bc/libEUC.a minix-comp bitcode
./usr/lib/i18n/bc/libEUCTW.a minix-comp bitcode
./usr/lib/i18n/bc/libGBK2K.a minix-comp bitcode
./usr/lib/i18n/bc/libHZ.a minix-comp bitcode
./usr/lib/i18n/bc/libISO2022.a minix-comp bitcode
./usr/lib/i18n/bc/libJOHAB.a minix-comp bitcode
./usr/lib/i18n/bc/libMSKanji.a minix-comp bitcode
./usr/lib/i18n/bc/libUES.a minix-comp bitcode
./usr/lib/i18n/bc/libUTF1632.a minix-comp bitcode
./usr/lib/i18n/bc/libUTF7.a minix-comp bitcode
./usr/lib/i18n/bc/libUTF8.a minix-comp bitcode
./usr/lib/i18n/bc/libVIQR.a minix-comp bitcode
./usr/lib/i18n/bc/libZW.a minix-comp bitcode
./usr/lib/i18n/bc/libiconv_none.a minix-comp bitcode
./usr/lib/i18n/bc/libiconv_std.a minix-comp bitcode
./usr/lib/i18n/bc/libmapper_646.a minix-comp bitcode
./usr/lib/i18n/bc/libmapper_none.a minix-comp bitcode
./usr/lib/i18n/bc/libmapper_parallel.a minix-comp bitcode
./usr/lib/i18n/bc/libmapper_serial.a minix-comp bitcode
./usr/lib/i18n/bc/libmapper_std.a minix-comp bitcode
./usr/lib/i18n/bc/libmapper_zone.a minix-comp bitcode
./usr/lib/i18n/libBIG5.a minix-comp
./usr/lib/i18n/libDECHanyu.a minix-comp
./usr/lib/i18n/libEUC.a minix-comp
./usr/lib/i18n/libEUCTW.a minix-comp
./usr/lib/i18n/libGBK2K.a minix-comp
./usr/lib/i18n/libHZ.a minix-comp
./usr/lib/i18n/libISO2022.a minix-comp
./usr/lib/i18n/libJOHAB.a minix-comp
./usr/lib/i18n/libMSKanji.a minix-comp
./usr/lib/i18n/libUES.a minix-comp
./usr/lib/i18n/libUTF1632.a minix-comp
./usr/lib/i18n/libUTF7.a minix-comp
./usr/lib/i18n/libUTF8.a minix-comp
./usr/lib/i18n/libVIQR.a minix-comp
./usr/lib/i18n/libZW.a minix-comp
./usr/lib/i18n/libiconv_none.a minix-comp
./usr/lib/i18n/libiconv_std.a minix-comp
./usr/lib/i18n/libmapper_646.a minix-comp
./usr/lib/i18n/libmapper_none.a minix-comp
./usr/lib/i18n/libmapper_parallel.a minix-comp
./usr/lib/i18n/libmapper_serial.a minix-comp
./usr/lib/i18n/libmapper_std.a minix-comp
./usr/lib/i18n/libmapper_zone.a minix-comp
./usr/lib/libarchive.a minix-comp
./usr/lib/libarchive_pic.a minix-comp
./usr/lib/libasyn.a minix-comp
@@ -1896,6 +2018,8 @@
./usr/lib/libaudiodriver_pic.a minix-comp
./usr/lib/libbdev.a minix-comp
./usr/lib/libbdev_pic.a minix-comp
./usr/lib/libbind9.a minix-comp
./usr/lib/libbind9_pic.a minix-comp
./usr/lib/libblockdriver.a minix-comp
./usr/lib/libblockdriver_pic.a minix-comp
./usr/lib/libbz2.a minix-comp
@@ -1920,6 +2044,8 @@
./usr/lib/libddekit_usb_server_pic.a minix-comp
./usr/lib/libdevman.a minix-comp
./usr/lib/libdevman_pic.a minix-comp
./usr/lib/libdns.a minix-comp
./usr/lib/libdns_pic.a minix-comp
./usr/lib/libedit.a minix-comp
./usr/lib/libedit_pic.a minix-comp
./usr/lib/libelf.a minix-comp
@@ -1946,6 +2072,16 @@
./usr/lib/libgcov.a minix-comp gcc=45,!gcccmds
./usr/lib/libinputdriver.a minix-comp
./usr/lib/libinputdriver_pic.a minix-comp
./usr/lib/libintl.a minix-comp
./usr/lib/libintl_pic.a minix-comp
./usr/lib/libirs.a minix-comp
./usr/lib/libirs_pic.a minix-comp
./usr/lib/libisc.a minix-comp
./usr/lib/libisc_pic.a minix-comp
./usr/lib/libisccc.a minix-comp
./usr/lib/libisccc_pic.a minix-comp
./usr/lib/libisccfg.a minix-comp
./usr/lib/libisccfg_pic.a minix-comp
./usr/lib/libkvm.a minix-comp
./usr/lib/libkvm_pic.a minix-comp
./usr/lib/libl.a minix-comp
@@ -1953,6 +2089,8 @@
./usr/lib/liblua_pic.a minix-comp
./usr/lib/liblwip.a minix-comp
./usr/lib/liblwip_pic.a minix-comp
./usr/lib/liblwres.a minix-comp
./usr/lib/liblwres_pic.a minix-comp
./usr/lib/liblzma.a minix-comp
./usr/lib/liblzma_pic.a minix-comp
./usr/lib/libm.a minix-comp
@@ -1971,10 +2109,12 @@
./usr/lib/libmthread_pic.a minix-comp
./usr/lib/libnetdriver.a minix-comp
./usr/lib/libnetdriver_pic.a minix-comp
./usr/lib/libnetsock.a minix-comp
./usr/lib/libnetsock_pic.a minix-comp
./usr/lib/libnetsock.a minix-comp obsolete
./usr/lib/libnetsock_pic.a minix-comp obsolete
./usr/lib/libobjc.a minix-comp gcc=45
./usr/lib/libobjc_pic.a minix-comp gcc=45
./usr/lib/libpcap.a minix-comp
./usr/lib/libpcap_pic.a minix-comp
./usr/lib/libpci.a minix-comp
./usr/lib/libpci_pic.a minix-comp
./usr/lib/libprop.a minix-comp
@@ -1986,6 +2126,10 @@
./usr/lib/librmt.a minix-comp
./usr/lib/libsffs.a minix-comp
./usr/lib/libsffs_pic.a minix-comp
./usr/lib/libsockdriver.a minix-comp
./usr/lib/libsockdriver_pic.a minix-comp
./usr/lib/libsockevent.a minix-comp
./usr/lib/libsockevent_pic.a minix-comp
./usr/lib/libsqlite3.a minix-comp
./usr/lib/libsqlite3_pic.a minix-comp
./usr/lib/libstdc++.a minix-comp libstdcxx
@@ -2007,6 +2151,8 @@
./usr/lib/libutil_pic.a minix-comp
./usr/lib/libvtreefs.a minix-comp
./usr/lib/libvtreefs_pic.a minix-comp
./usr/lib/libwrap.a minix-comp
./usr/lib/libwrap_pic.a minix-comp
./usr/lib/libz.a minix-comp
./usr/lib/libz_pic.a minix-comp
./usr/libexec/cc1 minix-comp gcccmds

View File

@@ -0,0 +1,25 @@
#
# Sorted using sort_set.pl in releasetools.
# to add an entry simply add it at the end of the
# file and run
# ../../../../releasetools/sort_set.pl < mi > out
# mv out mi
#
./usr/lib/libclkconf_g.a minix-debug debuglib
./usr/lib/libgpio_g.a minix-debug debuglib
./usr/lib/libi2cdriver_g.a minix-debug debuglib
./usr/libdata/debug/service/bmp085.debug minix-debug debug
./usr/libdata/debug/service/cat24c256.debug minix-debug debug
./usr/libdata/debug/service/emmc.debug minix-debug debug
./usr/libdata/debug/service/fb.debug minix-debug debug
./usr/libdata/debug/service/gpio.debug minix-debug debug
./usr/libdata/debug/service/i2c.debug minix-debug debug
./usr/libdata/debug/service/lan8710a.debug minix-debug debug
./usr/libdata/debug/service/mmc.debug minix-debug debug
./usr/libdata/debug/service/sht21.debug minix-debug debug
./usr/libdata/debug/service/tda19988.debug minix-debug debug
./usr/libdata/debug/service/tps65217.debug minix-debug debug
./usr/libdata/debug/service/tps65950.debug minix-debug debug
./usr/libdata/debug/service/tsl2550.debug minix-debug debug
./usr/libdata/debug/service/usbd.debug minix-debug debug
./usr/libdata/debug/usr/bin/eepromread.debug minix-debug debug

View File

@@ -0,0 +1,52 @@
#
# Sorted using sort_set.pl in releasetools.
# to add an entry simply add it at the end of the
# file and run
# ../../../../releasetools/sort_set.pl < mi > out
# mv out mi
#
./usr/lib/libhgfs_g.a minix-debug debuglib
./usr/lib/libm387_g.a minix-debug debuglib
./usr/lib/libvassert_g.a minix-debug debuglib
./usr/lib/libvboxfs_g.a minix-debug debuglib
./usr/lib/libvirtio_g.a minix-debug debuglib
./usr/libdata/debug/service/3c90x.debug minix-debug debug
./usr/libdata/debug/service/acpi.debug minix-debug debug
./usr/libdata/debug/service/ahci.debug minix-debug debug
./usr/libdata/debug/service/als4000.debug minix-debug debug
./usr/libdata/debug/service/amddev.debug minix-debug debug
./usr/libdata/debug/service/at_wini.debug minix-debug debug
./usr/libdata/debug/service/atl2.debug minix-debug debug
./usr/libdata/debug/service/cmi8738.debug minix-debug debug
./usr/libdata/debug/service/cs4281.debug minix-debug debug
./usr/libdata/debug/service/dec21140A.debug minix-debug debug
./usr/libdata/debug/service/dp8390.debug minix-debug debug
./usr/libdata/debug/service/dpeth.debug minix-debug debug
./usr/libdata/debug/service/e1000.debug minix-debug debug
./usr/libdata/debug/service/es1370.debug minix-debug debug
./usr/libdata/debug/service/es1371.debug minix-debug debug
./usr/libdata/debug/service/fbd.debug minix-debug debug
./usr/libdata/debug/service/filter.debug minix-debug debug
./usr/libdata/debug/service/floppy.debug minix-debug debug
./usr/libdata/debug/service/fxp.debug minix-debug debug
./usr/libdata/debug/service/hgfs.debug minix-debug debug
./usr/libdata/debug/service/ip1000.debug minix-debug debug
./usr/libdata/debug/service/lance.debug minix-debug debug
./usr/libdata/debug/service/pci.debug minix-debug debug
./usr/libdata/debug/service/pckbd.debug minix-debug debug
./usr/libdata/debug/service/printer.debug minix-debug debug
./usr/libdata/debug/service/rtl8139.debug minix-debug debug
./usr/libdata/debug/service/rtl8169.debug minix-debug debug
./usr/libdata/debug/service/sb16.debug minix-debug debug
./usr/libdata/debug/service/ti1225.debug minix-debug debug
./usr/libdata/debug/service/trident.debug minix-debug debug
./usr/libdata/debug/service/vbfs.debug minix-debug debug
./usr/libdata/debug/service/vbox.debug minix-debug debug
./usr/libdata/debug/service/virtio_blk.debug minix-debug debug
./usr/libdata/debug/service/virtio_net.debug minix-debug debug
./usr/libdata/debug/service/vt6105.debug minix-debug debug
./usr/libdata/debug/usr/lib/libm387.so.0.1.debug minix-debug debug
./usr/libdata/debug/usr/tests/minix-posix/test47.debug minix-debug debug
./usr/libdata/debug/usr/tests/minix-posix/test51.debug minix-debug debug
./usr/libdata/debug/usr/tests/minix-posix/test57.debug minix-debug debug
./usr/libdata/debug/usr/tests/minix-posix/test62.debug minix-debug debug

File diff suppressed because it is too large Load Diff

View File

@@ -18,6 +18,7 @@
./usr/man/man1/alias.1 minix-man
./usr/man/man1/apropos.1 minix-man
./usr/man/man1/ar.1 minix-man binutils
./usr/man/man1/arpaname.1 minix-man
./usr/man/man1/as.1 minix-man binutils
./usr/man/man1/asa.1 minix-man
./usr/man/man1/ash.1 minix-man obsolete
@@ -78,10 +79,12 @@
./usr/man/man1/date.1 minix-man
./usr/man/man1/dd.1 minix-man
./usr/man/man1/decomp16.1 minix-man obsolete
./usr/man/man1/delv.1 minix-man
./usr/man/man1/deroff.1 minix-man
./usr/man/man1/df.1 minix-man
./usr/man/man1/dhrystone.1 minix-man
./usr/man/man1/diff.1 minix-man
./usr/man/man1/dig.1 minix-man
./usr/man/man1/dirname.1 minix-man
./usr/man/man1/dirs.1 minix-man
./usr/man/man1/domainname.1 minix-man
@@ -112,6 +115,7 @@
./usr/man/man1/flex.1 minix-man
./usr/man/man1/flexdoc.1 minix-man obsolete
./usr/man/man1/flock.1 minix-man
./usr/man/man1/fmt.1 minix-man
./usr/man/man1/fold.1 minix-man
./usr/man/man1/for.1 minix-man obsolete
./usr/man/man1/foreach.1 minix-man
@@ -122,6 +126,9 @@
./usr/man/man1/fsplit.1 minix-man
./usr/man/man1/ftp.1 minix-man
./usr/man/man1/genassym.1 minix-man
./usr/man/man1/gencat.1 minix-man
./usr/man/man1/getcap.1 minix-man
./usr/man/man1/getent.1 minix-man
./usr/man/man1/getopt.1 minix-man
./usr/man/man1/getopts.1 minix-man obsolete
./usr/man/man1/gprof.1 minix-man binutils
@@ -136,7 +143,7 @@
./usr/man/man1/hexdump.1 minix-man
./usr/man/man1/history.1 minix-man
./usr/man/man1/host.1 minix-man
./usr/man/man1/hostaddr.1 minix-man
./usr/man/man1/hostaddr.1 minix-man obsolete
./usr/man/man1/hostname.1 minix-man
./usr/man/man1/id.1 minix-man
./usr/man/man1/if.1 minix-man obsolete
@@ -187,6 +194,7 @@
./usr/man/man1/loadfont.1 minix-man
./usr/man/man1/loadkeys.1 minix-man
./usr/man/man1/local.1 minix-man obsolete
./usr/man/man1/locale.1 minix-man
./usr/man/man1/lock.1 minix-man
./usr/man/man1/logger.1 minix-man
./usr/man/man1/login.1 minix-man
@@ -220,6 +228,7 @@
./usr/man/man1/mkdir.1 minix-man
./usr/man/man1/mkfifo.1 minix-man
./usr/man/man1/mkfs.mfs.1 minix-man
./usr/man/man1/mklocale.1 minix-man
./usr/man/man1/mkproto.1 minix-man
./usr/man/man1/mkstr.1 minix-man
./usr/man/man1/mktemp.1 minix-man
@@ -232,15 +241,18 @@
./usr/man/man1/netpgp.1 minix-man crypto
./usr/man/man1/netpgpkeys.1 minix-man crypto
./usr/man/man1/netpgpverify.1 minix-man crypto
./usr/man/man1/netstat.1 minix-man
./usr/man/man1/newfs_mfs.1 minix-man
./usr/man/man1/newgrp.1 minix-man
./usr/man/man1/nice.1 minix-man
./usr/man/man1/nl.1 minix-man
./usr/man/man1/nm.1 minix-man binutils
./usr/man/man1/nohup.1 minix-man
./usr/man/man1/nsupdate.1 minix-man
./usr/man/man1/objcopy.1 minix-man binutils
./usr/man/man1/objdump.1 minix-man binutils
./usr/man/man1/od.1 minix-man
./usr/man/man1/omshell.1 minix-man
./usr/man/man1/openssl.1 minix-man crypto
./usr/man/man1/openssl_CA.pl.1 minix-man crypto
./usr/man/man1/openssl_asn1parse.1 minix-man crypto
@@ -286,6 +298,7 @@
./usr/man/man1/patch.1 minix-man
./usr/man/man1/pathchk.1 minix-man
./usr/man/man1/pax.1 minix-man
./usr/man/man1/pcap-config.1 minix-man
./usr/man/man1/ping.1 minix-man obsolete
./usr/man/man1/pkg_add.1 minix-man crypto
./usr/man/man1/pkg_admin.1 minix-man crypto
@@ -317,8 +330,8 @@
./usr/man/man1/repeat.1 minix-man
./usr/man/man1/return.1 minix-man obsolete
./usr/man/man1/rev.1 minix-man
./usr/man/man1/rget.1 minix-man
./usr/man/man1/rlogin.1 minix-man
./usr/man/man1/rget.1 minix-man obsolete
./usr/man/man1/rlogin.1 minix-man obsolete
./usr/man/man1/rm.1 minix-man
./usr/man/man1/rmd160.1 minix-man
./usr/man/man1/rmdir.1 minix-man
@@ -470,8 +483,8 @@
./usr/man/man2/fstatvfs1.2 minix-man
./usr/man/man2/getgid.2 minix-man
./usr/man/man2/getitimer.2 minix-man
./usr/man/man2/getnucred.2 minix-man
./usr/man/man2/getpeereid.2 minix-man
./usr/man/man2/getnucred.2 minix-man obsolete
./usr/man/man2/getpeereid.2 minix-man obsolete
./usr/man/man2/getpeername.2 minix-man
./usr/man/man2/getpid.2 minix-man
./usr/man/man2/getpriority.2 minix-man
@@ -1112,6 +1125,8 @@
./usr/man/man3/bcmp.3 minix-man
./usr/man/man3/bcopy.3 minix-man
./usr/man/man3/beep.3 minix-man
./usr/man/man3/bind_textdomain_codeset.3 minix-man
./usr/man/man3/bindtextdomain.3 minix-man
./usr/man/man3/bkgd.3 minix-man
./usr/man/man3/bkgdset.3 minix-man
./usr/man/man3/blacklist.3 minix-man
@@ -1351,6 +1366,8 @@
./usr/man/man3/dbm_open.3 minix-man
./usr/man/man3/dbm_store.3 minix-man
./usr/man/man3/dbopen.3 minix-man
./usr/man/man3/dcgettext.3 minix-man
./usr/man/man3/dcngettext.3 minix-man
./usr/man/man3/def_prog_mode.3 minix-man
./usr/man/man3/def_shell_mode.3 minix-man
./usr/man/man3/define_key.3 minix-man
@@ -1399,6 +1416,7 @@
./usr/man/man3/des_string_to_key.3 minix-man crypto
./usr/man/man3/des_xcbc_encrypt.3 minix-man crypto
./usr/man/man3/devname.3 minix-man
./usr/man/man3/dgettext.3 minix-man
./usr/man/man3/difftime.3 minix-man
./usr/man/man3/directory.3 minix-man
./usr/man/man3/dirfd.3 minix-man
@@ -1406,6 +1424,7 @@
./usr/man/man3/div.3 minix-man
./usr/man/man3/dn_comp.3 minix-man
./usr/man/man3/dn_expand.3 minix-man
./usr/man/man3/dngettext.3 minix-man
./usr/man/man3/doupdate.3 minix-man
./usr/man/man3/dprintf.3 minix-man
./usr/man/man3/drand48.3 minix-man
@@ -1866,6 +1885,7 @@
./usr/man/man3/getservent.3 minix-man
./usr/man/man3/getstr.3 minix-man
./usr/man/man3/getsubopt.3 minix-man
./usr/man/man3/gettext.3 minix-man
./usr/man/man3/gettmode.3 minix-man
./usr/man/man3/getttyent.3 minix-man
./usr/man/man3/getttynam.3 minix-man
@@ -1907,6 +1927,8 @@
./usr/man/man3/history_init.3 minix-man
./usr/man/man3/hline.3 minix-man
./usr/man/man3/hostalias.3 minix-man
./usr/man/man3/hosts_access.3 minix-man
./usr/man/man3/hosts_ctl.3 minix-man
./usr/man/man3/hsearch.3 minix-man
./usr/man/man3/hsearch_r.3 minix-man
./usr/man/man3/hstrerror.3 minix-man
@@ -2300,6 +2322,7 @@
./usr/man/man3/nexttoward.3 minix-man
./usr/man/man3/nexttowardf.3 minix-man
./usr/man/man3/nftw.3 minix-man
./usr/man/man3/ngettext.3 minix-man
./usr/man/man3/nice.3 minix-man
./usr/man/man3/nl.3 minix-man
./usr/man/man3/nl_langinfo.3 minix-man
@@ -2360,6 +2383,61 @@
./usr/man/man3/pair_content.3 minix-man
./usr/man/man3/parsedate.3 minix-man
./usr/man/man3/pause.3 minix-man
./usr/man/man3/pcap.3 minix-man
./usr/man/man3/pcap_activate.3 minix-man
./usr/man/man3/pcap_breakloop.3 minix-man
./usr/man/man3/pcap_can_set_rfmon.3 minix-man
./usr/man/man3/pcap_close.3 minix-man
./usr/man/man3/pcap_compile.3 minix-man
./usr/man/man3/pcap_create.3 minix-man
./usr/man/man3/pcap_datalink.3 minix-man
./usr/man/man3/pcap_datalink_name_to_val.3 minix-man
./usr/man/man3/pcap_datalink_val_to_name.3 minix-man
./usr/man/man3/pcap_dump.3 minix-man
./usr/man/man3/pcap_dump_close.3 minix-man
./usr/man/man3/pcap_dump_file.3 minix-man
./usr/man/man3/pcap_dump_flush.3 minix-man
./usr/man/man3/pcap_dump_ftell.3 minix-man
./usr/man/man3/pcap_dump_open.3 minix-man
./usr/man/man3/pcap_file.3 minix-man
./usr/man/man3/pcap_fileno.3 minix-man
./usr/man/man3/pcap_findalldevs.3 minix-man
./usr/man/man3/pcap_freecode.3 minix-man
./usr/man/man3/pcap_get_selectable_fd.3 minix-man
./usr/man/man3/pcap_get_tstamp_precision.3 minix-man
./usr/man/man3/pcap_geterr.3 minix-man
./usr/man/man3/pcap_inject.3 minix-man
./usr/man/man3/pcap_is_swapped.3 minix-man
./usr/man/man3/pcap_lib_version.3 minix-man
./usr/man/man3/pcap_list_datalinks.3 minix-man
./usr/man/man3/pcap_list_tstamp_types.3 minix-man
./usr/man/man3/pcap_lookupdev.3 minix-man
./usr/man/man3/pcap_lookupnet.3 minix-man
./usr/man/man3/pcap_loop.3 minix-man
./usr/man/man3/pcap_major_version.3 minix-man
./usr/man/man3/pcap_next_ex.3 minix-man
./usr/man/man3/pcap_offline_filter.3 minix-man
./usr/man/man3/pcap_open_dead.3 minix-man
./usr/man/man3/pcap_open_live.3 minix-man
./usr/man/man3/pcap_open_offline.3 minix-man
./usr/man/man3/pcap_set_buffer_size.3 minix-man
./usr/man/man3/pcap_set_datalink.3 minix-man
./usr/man/man3/pcap_set_immediate_mode.3 minix-man
./usr/man/man3/pcap_set_promisc.3 minix-man
./usr/man/man3/pcap_set_rfmon.3 minix-man
./usr/man/man3/pcap_set_snaplen.3 minix-man
./usr/man/man3/pcap_set_timeout.3 minix-man
./usr/man/man3/pcap_set_tstamp_precision.3 minix-man
./usr/man/man3/pcap_set_tstamp_type.3 minix-man
./usr/man/man3/pcap_setdirection.3 minix-man
./usr/man/man3/pcap_setfilter.3 minix-man
./usr/man/man3/pcap_setnonblock.3 minix-man
./usr/man/man3/pcap_snapshot.3 minix-man
./usr/man/man3/pcap_stats.3 minix-man
./usr/man/man3/pcap_statustostr.3 minix-man
./usr/man/man3/pcap_strerror.3 minix-man
./usr/man/man3/pcap_tstamp_type_name_to_val.3 minix-man
./usr/man/man3/pcap_tstamp_type_val_to_name.3 minix-man
./usr/man/man3/pci.3 minix-man
./usr/man/man3/pci_conf_print.3 minix-man
./usr/man/man3/pci_devinfo.3 minix-man
@@ -2657,6 +2735,8 @@
./usr/man/man3/remque.3 minix-man
./usr/man/man3/remquo.3 minix-man
./usr/man/man3/remquof.3 minix-man
./usr/man/man3/request_init.3 minix-man
./usr/man/man3/request_set.3 minix-man
./usr/man/man3/res_close.3 minix-man
./usr/man/man3/res_findzonecut.3 minix-man
./usr/man/man3/res_getservers.3 minix-man
@@ -2987,6 +3067,7 @@
./usr/man/man3/termcap.3 minix-man
./usr/man/man3/terminfo.3 minix-man
./usr/man/man3/termname.3 minix-man
./usr/man/man3/textdomain.3 minix-man
./usr/man/man3/tfind.3 minix-man
./usr/man/man3/tgamma.3 minix-man
./usr/man/man3/tgammaf.3 minix-man
@@ -3229,6 +3310,7 @@
./usr/man/man3/zlib.3 minix-man
./usr/man/man4 minix-man
./usr/man/man4/aha1540.4 minix-man
./usr/man/man4/arp.4 minix-man
./usr/man/man4/at.4 minix-man
./usr/man/man4/atf-test-case.4 minix-man atf
./usr/man/man4/bios.4 minix-man
@@ -3238,17 +3320,17 @@
./usr/man/man4/disk.4 minix-man
./usr/man/man4/dosfile.4 minix-man
./usr/man/man4/esdi.4 minix-man
./usr/man/man4/eth.4 minix-man
./usr/man/man4/eth.4 minix-man obsolete
./usr/man/man4/fd.4 minix-man
./usr/man/man4/ip.4 minix-man
./usr/man/man4/ip.4 minix-man obsolete
./usr/man/man4/keyboard.4 minix-man
./usr/man/man4/lp.4 minix-man
./usr/man/man4/mtio.4 minix-man
./usr/man/man4/ncr810.4 minix-man
./usr/man/man4/psip.4 minix-man
./usr/man/man4/psip.4 minix-man obsolete
./usr/man/man4/tape.4 minix-man
./usr/man/man4/tty.4 minix-man
./usr/man/man4/udp.4 minix-man
./usr/man/man4/udp.4 minix-man obsolete
./usr/man/man4/uds.4 minix-man obsolete
./usr/man/man5 minix-man
./usr/man/man5/TZ.5 minix-man
@@ -3259,10 +3341,17 @@
./usr/man/man5/configfile.5 minix-man
./usr/man/man5/cpio.5 minix-man
./usr/man/man5/crontab.5 minix-man
./usr/man/man5/dhcp.conf.5 minix-man
./usr/man/man5/dhclient.conf.5 minix-man
./usr/man/man5/dhclient.leases.5 minix-man
./usr/man/man5/dhcp-eval.5 minix-man
./usr/man/man5/dhcp-options.5 minix-man
./usr/man/man5/dhcp.conf.5 minix-man obsolete
./usr/man/man5/dhcpcd.conf.5 minix-man
./usr/man/man5/dhcpd.conf.5 minix-man
./usr/man/man5/dhcpd.leases.5 minix-man
./usr/man/man5/dir.5 minix-man obsolete
./usr/man/man5/editrc.5 minix-man
./usr/man/man5/ethers.5 minix-man
./usr/man/man5/ethers.5 minix-man obsolete
./usr/man/man5/fstab.5 minix-man
./usr/man/man5/ftpchroot.5 minix-man
./usr/man/man5/ftpd.conf.5 minix-man
@@ -3270,8 +3359,14 @@
./usr/man/man5/gettytab.5 minix-man
./usr/man/man5/group.5 minix-man
./usr/man/man5/hosts.5 minix-man
./usr/man/man5/hosts.allow.5 minix-man
./usr/man/man5/hosts.deny.5 minix-man
./usr/man/man5/hosts_access.5 minix-man
./usr/man/man5/hosts_options.5 minix-man
./usr/man/man5/http_status.5 minix-man obsolete
./usr/man/man5/httpd.conf.5 minix-man obsolete
./usr/man/man5/ifconfig.if.5 minix-man
./usr/man/man5/inetd.conf.5 minix-man
./usr/man/man5/info.5 minix-man
./usr/man/man5/keymap.5 minix-man
./usr/man/man5/kyua-tester-list.5 minix-man kyua
@@ -3279,17 +3374,26 @@
./usr/man/man5/kyua.conf.5 minix-man kyua
./usr/man/man5/kyuafile.5 minix-man kyua
./usr/man/man5/libarchive-formats.5 minix-man
./usr/man/man5/locale.alias.5 minix-man
./usr/man/man5/magic.5 minix-man
./usr/man/man5/man.conf.5 minix-man
./usr/man/man5/mtree.5 minix-man
./usr/man/man5/named.conf.5 minix-man
./usr/man/man5/nsswitch.conf.5 minix-man
./usr/man/man5/openssl.cnf.5 minix-man crypto
./usr/man/man5/passwd.5 minix-man
./usr/man/man5/pcap-savefile.5 minix-man
./usr/man/man5/pkg_install.conf.5 minix-man
./usr/man/man5/pkg_summary.5 minix-man
./usr/man/man5/rc.conf.5 minix-man
./usr/man/man5/resolv.conf.5 minix-man
./usr/man/man5/resolvconf.conf.5 minix-man
./usr/man/man5/resolver.5 minix-man
./usr/man/man5/rhosts.5 minix-man
./usr/man/man5/serv.access.5 minix-man
./usr/man/man5/rhosts.5 minix-man obsolete
./usr/man/man5/rndc.conf.5 minix-man
./usr/man/man5/route.conf.5 minix-man
./usr/man/man5/rtadvd.conf.5 minix-man use_inet6
./usr/man/man5/serv.access.5 minix-man obsolete
./usr/man/man5/statvfs.5 minix-man
./usr/man/man5/syslog.conf.5 minix-man
./usr/man/man5/system.conf.5 minix-man
@@ -3343,18 +3447,24 @@
./usr/man/man7/mandoc_mdoc.7 minix-man
./usr/man/man7/mandoc_roff.7 minix-man
./usr/man/man7/mandoc_tbl.7 minix-man
./usr/man/man7/nls.7 minix-man
./usr/man/man7/pcap-filter.7 minix-man
./usr/man/man7/pcap-linktype.7 minix-man
./usr/man/man7/pcap-tstamp.7 minix-man
./usr/man/man7/pkgsrc.7 minix-man
./usr/man/man7/re_format.7 minix-man
./usr/man/man8 minix-man
./usr/man/man8/MAKEDEV.8 minix-man
./usr/man/man8/add_route.8 minix-man
./usr/man/man8/add_route.8 minix-man obsolete
./usr/man/man8/adduser.8 minix-man
./usr/man/man8/arp.8 minix-man
./usr/man/man8/atnormalize.8 minix-man
./usr/man/man8/autopart.8 minix-man
./usr/man/man8/backup.8 minix-man
./usr/man/man8/blacklistctl.8 minix-man
./usr/man/man8/blacklistd.8 minix-man
./usr/man/man8/boot.8 minix-man
./usr/man/man8/bozohttpd.8 minix-man
./usr/man/man8/btrace.8 minix-man
./usr/man/man8/cdprobe.8 minix-man
./usr/man/man8/chown.8 minix-man
@@ -3362,10 +3472,24 @@
./usr/man/man8/cleantmp.8 minix-man
./usr/man/man8/config.8 minix-man
./usr/man/man8/cron.8 minix-man
./usr/man/man8/ddns-confgen.8 minix-man
./usr/man/man8/dev_mkdb.8 minix-man
./usr/man/man8/devsize.8 minix-man
./usr/man/man8/dhclient-script.8 minix-man
./usr/man/man8/dhclient.8 minix-man
./usr/man/man8/dhcpcd-run-hooks.8 minix-man
./usr/man/man8/dhcpcd.8 minix-man
./usr/man/man8/dhcpd.8 minix-man
./usr/man/man8/dhcrelay.8 minix-man
./usr/man/man8/diskctl.8 minix-man
./usr/man/man8/dnssec-dsfromkey.8 minix-man
./usr/man/man8/dnssec-importkey.8 minix-man
./usr/man/man8/dnssec-keyfromlabel.8 minix-man
./usr/man/man8/dnssec-keygen.8 minix-man
./usr/man/man8/dnssec-revoke.8 minix-man
./usr/man/man8/dnssec-settime.8 minix-man
./usr/man/man8/dnssec-signzone.8 minix-man
./usr/man/man8/dnssec-verify.8 minix-man
./usr/man/man8/fbdctl.8 minix-man
./usr/man/man8/fdisk.8 minix-man
./usr/man/man8/fingerd.8 minix-man
@@ -3380,21 +3504,30 @@
./usr/man/man8/groupinfo.8 minix-man
./usr/man/man8/groupmod.8 minix-man
./usr/man/man8/halt.8 minix-man
./usr/man/man8/httpd.8 minix-man obsolete
./usr/man/man8/httpd.8 minix-man
./usr/man/man8/i2cscan.8 minix-man
./usr/man/man8/ifconfig.8 minix-man
./usr/man/man8/in.httpd.8 minix-man obsolete
./usr/man/man8/inet.8 minix-man
./usr/man/man8/inet.8 minix-man obsolete
./usr/man/man8/inetd.8 minix-man
./usr/man/man8/init.8 minix-man
./usr/man/man8/installboot_nbsd.8 minix-man
./usr/man/man8/intr.8 minix-man
./usr/man/man8/irdpd.8 minix-man
./usr/man/man8/irdpd.8 minix-man obsolete
./usr/man/man8/link.8 minix-man
./usr/man/man8/loadramdisk.8 minix-man
./usr/man/man8/lwresd.8 minix-man
./usr/man/man8/makefs.8 minix-man
./usr/man/man8/makewhatis.8 minix-man
./usr/man/man8/minix-service.8 minix-man
./usr/man/man8/mknod.8 minix-man
./usr/man/man8/mtree.8 minix-man
./usr/man/man8/named-checkconf.8 minix-man
./usr/man/man8/named-checkzone.8 minix-man
./usr/man/man8/named-compilezone.8 minix-man
./usr/man/man8/named-journalprint.8 minix-man
./usr/man/man8/named.8 minix-man
./usr/man/man8/ndp.8 minix-man inet6
./usr/man/man8/netconf.8 minix-man
./usr/man/man8/newfs_ext2fs.8 minix-man
./usr/man/man8/newfs_msdos.8 minix-man
@@ -3402,29 +3535,44 @@
./usr/man/man8/newfs_v7fs.8 minix-man
./usr/man/man8/newroot.8 minix-man obsolete
./usr/man/man8/nologin.8 minix-man
./usr/man/man8/nonamed.8 minix-man
./usr/man/man8/nonamed.8 minix-man obsolete
./usr/man/man8/nsec3hash.8 minix-man
./usr/man/man8/nslookup.8 minix-man
./usr/man/man8/ossdevlinks.8 minix-man obsolete
./usr/man/man8/part.8 minix-man
./usr/man/man8/partition.8 minix-man
./usr/man/man8/ping.8 minix-man
./usr/man/man8/ping6.8 minix-man use_inet6
./usr/man/man8/postinstall.8 minix-man
./usr/man/man8/poweroff.8 minix-man
./usr/man/man8/pr_routes.8 minix-man
./usr/man/man8/pr_routes.8 minix-man obsolete
./usr/man/man8/printroot.8 minix-man
./usr/man/man8/pwd_mkdb.8 minix-man
./usr/man/man8/pwdauth.8 minix-man
./usr/man/man8/rarpd.8 minix-man
./usr/man/man8/pwdauth.8 minix-man obsolete
./usr/man/man8/rarpd.8 minix-man obsolete
./usr/man/man8/rawspeed.8 minix-man
./usr/man/man8/rc.8 minix-man
./usr/man/man8/rc.d.8 minix-man
./usr/man/man8/rc.local.8 minix-man
./usr/man/man8/rc.shutdown.8 minix-man
./usr/man/man8/rc.subr.8 minix-man
./usr/man/man8/rcorder.8 minix-man
./usr/man/man8/rdate.8 minix-man
./usr/man/man8/readclock.8 minix-man
./usr/man/man8/reboot.8 minix-man
./usr/man/man8/renice.8 minix-man
./usr/man/man8/repartition.8 minix-man
./usr/man/man8/resolvconf.8 minix-man
./usr/man/man8/rndc-confgen.8 minix-man
./usr/man/man8/rndc.8 minix-man
./usr/man/man8/rotate.8 minix-man
./usr/man/man8/route.8 minix-man
./usr/man/man8/rshd.8 minix-man
./usr/man/man8/rtadvd.8 minix-man use_inet6
./usr/man/man8/screendump.8 minix-man
./usr/man/man8/serial-ip.8 minix-man obsolete
./usr/man/man8/service.8 minix-man
./usr/man/man8/services_mkdb.8 minix-man
./usr/man/man8/setup.8 minix-man
./usr/man/man8/shutdown.8 minix-man
./usr/man/man8/slip.8 minix-man
@@ -3435,9 +3583,12 @@
./usr/man/man8/sync.8 minix-man
./usr/man/man8/sysctl.8 minix-man
./usr/man/man8/syslogd.8 minix-man
./usr/man/man8/tcpd.8 minix-man
./usr/man/man8/tcpd.8 minix-man obsolete
./usr/man/man8/tcpdump.8 minix-man
./usr/man/man8/telnetd.8 minix-man
./usr/man/man8/traceroute.8 minix-man
./usr/man/man8/uds.8 minix-man
./usr/man/man8/traceroute6.8 minix-man use_inet6
./usr/man/man8/uds.8 minix-man obsolete
./usr/man/man8/unix.8 minix-man
./usr/man/man8/unlink.8 minix-man
./usr/man/man8/unstr.8 minix-man

View File

@@ -0,0 +1,9 @@
#
# Sorted using sort_set.pl in releasetools.
# to add an entry simply add it at the end of the
# file and run
# ../../../../releasetools/sort_set.pl < mi > out
# mv out mi
#
./usr/tests/minix-posix/test_arm_segfault minix-tests
./usr/tests/minix-posix/test_arm_unaligned minix-tests

View File

@@ -84,6 +84,9 @@
./usr/tests/minix-posix/ddekit/ddekittest_driver minix-tests
./usr/tests/minix-posix/ddekit/system.conf minix-tests
./usr/tests/minix-posix/mod minix-tests pic
./usr/tests/minix-posix/rmibtest minix-tests
./usr/tests/minix-posix/rmibtest/rmibtest minix-tests
./usr/tests/minix-posix/rmibtest/rmibtest.conf minix-tests
./usr/tests/minix-posix/run minix-tests
./usr/tests/minix-posix/t10a minix-tests
./usr/tests/minix-posix/t11a minix-tests
@@ -190,11 +193,17 @@
./usr/tests/minix-posix/test88 minix-tests
./usr/tests/minix-posix/test89 minix-tests
./usr/tests/minix-posix/test9 minix-tests
./usr/tests/minix-posix/test90 minix-tests
./usr/tests/minix-posix/test91 minix-tests
./usr/tests/minix-posix/test92 minix-tests
./usr/tests/minix-posix/test93 minix-tests
./usr/tests/minix-posix/test94 minix-tests
./usr/tests/minix-posix/testinterp minix-tests
./usr/tests/minix-posix/testisofs minix-tests
./usr/tests/minix-posix/testkyua minix-tests
./usr/tests/minix-posix/testmfs minix-tests
./usr/tests/minix-posix/testrelpol minix-tests
./usr/tests/minix-posix/testrmib minix-tests
./usr/tests/minix-posix/testsh1 minix-tests
./usr/tests/minix-posix/testsh2 minix-tests
./usr/tests/minix-posix/testvm minix-tests

View File

@@ -43,27 +43,27 @@
./usr/X11R7/lib/modules/extensions/libGLcore_g.a -unknown- obsolete
./usr/X11R7/lib/modules/extensions/libcfb32_g.a -unknown- obsolete
./usr/X11R7/lib/modules/extensions/libcfb_g.a -unknown- obsolete
./usr/X11R7/lib/modules/extensions/libdbe_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/extensions/libdri2_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/extensions/libdri_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/extensions/libextmod_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/extensions/libglx_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/extensions/libdbe_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/extensions/libdri2_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/extensions/libdri_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/extensions/libextmod_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/extensions/libglx_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/extensions/libmfb_g.a -unknown- obsolete
./usr/X11R7/lib/modules/extensions/librecord_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/extensions/libshadow_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/extensions/librecord_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/extensions/libshadow_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/extensions/libxtrap_g.a -unknown- obsolete
./usr/X11R7/lib/modules/fonts/libfreetype_g.a -unknown- obsolete
./usr/X11R7/lib/modules/fonts/libtype1_g.a -unknown- obsolete
./usr/X11R7/lib/modules/libexa_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/libfb_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/libexa_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/libfb_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/libi2c_g.a -unknown- debuglib,xorg,obsolete
./usr/X11R7/lib/modules/libint10_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/libint10_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/libpcidata_g.a -unknown- obsolete
./usr/X11R7/lib/modules/libscanpci_g.a -unknown- obsolete
./usr/X11R7/lib/modules/libshadowfb_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/libvbe_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/libvgahw_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/libxaa_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/libshadowfb_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/libvbe_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/libvgahw_g.a -unknown- debuglib,xorg
#./usr/X11R7/lib/modules/libxaa_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/modules/libxf1bpp_g.a -unknown- obsolete
./usr/X11R7/lib/modules/libxf4bpp_g.a -unknown- obsolete
./usr/X11R7/lib/modules/libxf8_16bpp_g.a -unknown- obsolete
@@ -103,7 +103,7 @@
./usr/libdata/debug/usr/X11R7/lib/modules/dri/libr128_dri.so.0.debug obsolete xorg,obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/dri/libr200_dri.so.0.debug obsolete xorg,obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/dri/libr300_dri.so.0.debug obsolete xorg,obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/dri/libr600_dri.so.0.debug obsolete xorg,obsolete
#./usr/libdata/debug/usr/X11R7/lib/modules/dri/libr600_dri.so.0.debug obsolete xorg,obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/dri/libradeon_dri.so.0.debug obsolete xorg,obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/dri/libs3v_dri.so.0.debug obsolete obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/dri/libsavage_dri.so.0.debug obsolete xorg,obsolete
@@ -117,7 +117,7 @@
./usr/libdata/debug/usr/X11R7/lib/modules/dri/r128_dri.so.0.debug -unknown- obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/dri/r200_dri.so.0.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/dri/r300_dri.so.0.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/dri/r600_dri.so.0.debug -unknown- xorg,debug
#./usr/libdata/debug/usr/X11R7/lib/modules/dri/r600_dri.so.0.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/dri/radeon_dri.so.0.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/dri/s3v_dri.so.0.debug -unknown- obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/dri/savage_dri.so.0.debug -unknown- obsolete
@@ -187,8 +187,8 @@
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/libvmware_drv.so.11.debug obsolete xorg,obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/libvmwlegacy_drv.so.11.debug obsolete xorg,obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/libvoid_drv.so.1.debug obsolete obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/libws_drv.so.1.debug obsolete xorg,obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/libwsfb_drv.so.0.debug obsolete xorg,obsolete
#./usr/libdata/debug/usr/X11R7/lib/modules/drivers/libws_drv.so.1.debug obsolete xorg,obsolete
#./usr/libdata/debug/usr/X11R7/lib/modules/drivers/libwsfb_drv.so.0.debug obsolete xorg,obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/libxgi_drv.so.1.debug obsolete xorg,obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/mach64_drv.so.6.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/mga_drv.so.1.debug -unknown- xorg,debug
@@ -216,8 +216,8 @@
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/vmware_drv.so.13.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/vmwlegacy_drv.so.11.debug -unknown- obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/void_drv.so.1.debug -unknown- obsolete
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/ws_drv.so.1.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/wsfb_drv.so.0.debug -unknown- xorg,debug
#./usr/libdata/debug/usr/X11R7/lib/modules/drivers/ws_drv.so.1.debug -unknown- xorg,debug
#./usr/libdata/debug/usr/X11R7/lib/modules/drivers/wsfb_drv.so.0.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/xgi_drv.so.1.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/extensions/libdbe.so.0.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/extensions/libdri.so.0.debug -unknown- xorg,debug

View File

@@ -127,9 +127,9 @@
./usr/X11R7/lib/libxcb-property_g.a -unknown- debuglib,xorg,compatx11file
./usr/X11R7/lib/libxcb-randr_g.a -unknown- debuglib,xorg,compatx11file
./usr/X11R7/lib/libxcb-record_g.a -unknown- debuglib,xorg,compatx11file
./usr/X11R7/lib/libxcb-render-util_g.a -unknown- debuglib,xorg,compatx11file
#./usr/X11R7/lib/libxcb-render-util_g.a -unknown- debuglib,xorg,compatx11file
./usr/X11R7/lib/libxcb-render_g.a -unknown- debuglib,xorg,compatx11file
./usr/X11R7/lib/libxcb-reply_g.a -unknown- debuglib,xorg,compatx11file
#./usr/X11R7/lib/libxcb-reply_g.a -unknown- debuglib,xorg,compatx11file
./usr/X11R7/lib/libxcb-res_g.a -unknown- debuglib,xorg,compatx11file
./usr/X11R7/lib/libxcb-screensaver_g.a -unknown- debuglib,xorg,compatx11file
./usr/X11R7/lib/libxcb-shape_g.a -unknown- debuglib,xorg,compatx11file
@@ -410,5 +410,6 @@
./usr/libdata/debug/usr/X11R7/bin/xwd.debug -unknown- debug,xorg
./usr/libdata/debug/usr/X11R7/bin/xwininfo.debug -unknown- debug,xorg
./usr/libdata/debug/usr/X11R7/bin/xwud.debug -unknown- debug,xorg
./usr/libdata/debug/usr/X11R7/libexec/chooser.debug -unknown- debug,xorg
./usr/libdata/debug/usr/X11R7/lib/modules/dri/gallium_dri.so.0.debug -unknown- debug,xorg
#./usr/libdata/debug/usr/X11R7/libexec/chooser.debug -unknown- debug,xorg
#./usr/libdata/debug/usr/X11R7/lib/modules/dri/gallium_dri.so.0.debug -unknown- debug,xorg
./usr/libdata/debug/usr/X11R7/bin/makekeys.debug minix-debug debug,xorg

View File

@@ -128,9 +128,9 @@
./usr/libdata/debug/usr/X11R7/lib/libxcb-property.so.1.0.debug -unknown- xorg,debug,compatx11file
./usr/libdata/debug/usr/X11R7/lib/libxcb-randr.so.1.0.debug -unknown- xorg,debug,compatx11file
./usr/libdata/debug/usr/X11R7/lib/libxcb-record.so.0.1.debug -unknown- xorg,debug,compatx11file
./usr/libdata/debug/usr/X11R7/lib/libxcb-render-util.so.0.0.debug -unknown- xorg,debug,compatx11file
./usr/libdata/debug/usr/X11R7/lib/libxcb-render-util.so.0.0.debug -unknown- #xorg,debug,compatx11file
./usr/libdata/debug/usr/X11R7/lib/libxcb-render.so.0.1.debug -unknown- xorg,debug,compatx11file
./usr/libdata/debug/usr/X11R7/lib/libxcb-reply.so.1.0.debug -unknown- xorg,debug,compatx11file
#./usr/libdata/debug/usr/X11R7/lib/libxcb-reply.so.1.0.debug -unknown- xorg,debug,compatx11file
./usr/libdata/debug/usr/X11R7/lib/libxcb-res.so.0.1.debug -unknown- xorg,debug,compatx11file
./usr/libdata/debug/usr/X11R7/lib/libxcb-screensaver.so.0.1.debug -unknown- xorg,debug,compatx11file
./usr/libdata/debug/usr/X11R7/lib/libxcb-shape.so.0.1.debug -unknown- xorg,debug,compatx11file
@@ -147,10 +147,10 @@
./usr/libdata/debug/usr/X11R7/lib/libxcb.so.2.0.debug -unknown- xorg,debug,compatx11file
./usr/libdata/debug/usr/X11R7/lib/libxkbfile.so.2.0.debug -unknown- xorg,debug,compatx11file
./usr/libdata/debug/usr/X11R7/lib/libxkbui.so.2.0.debug -unknown- xorg,debug,compatx11file
./usr/libdata/debug/usr/X11R7/lib/modules/dri/gallium_dri.so.0.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/dri/kms_swrast_dri.so.0.debug -unknown- xorg,debug
#./usr/libdata/debug/usr/X11R7/lib/modules/dri/gallium_dri.so.0.debug -unknown- xorg,debug
#./usr/libdata/debug/usr/X11R7/lib/modules/dri/kms_swrast_dri.so.0.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/dri/libmesa_dri.so.0.debug -unknown- xorg,debug,machine=i386
./usr/libdata/debug/usr/X11R7/lib/modules/dri/libmesa_dri.so.0.debug -unknown- xorg,debug,machine=amd64
./usr/libdata/debug/usr/X11R7/lib/modules/dri/libmesa_dri.so.0.debug obsolete obsolete,xorg,debug,!machine=i386,!machine=amd64
./usr/libdata/debug/usr/X11R7/lib/modules/dri/libswrast_dri.so.0.debug obsolete obsolete,xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/dri/swrast_dri.so.0.debug -unknown- xorg,debug
#./usr/libdata/debug/usr/X11R7/lib/modules/dri/swrast_dri.so.0.debug -unknown- xorg,debug

View File

@@ -185,7 +185,7 @@ for setname in ${lists}; do
> "${SDIR}/flist.${setname}.full" \
|| exit 1
(
echo "/set uname=root gname=operator"
echo "/set uname=root gname=wheel"
${AWK} -f "${rundir}/join.awk" \
"${SDIR}/flist.${setname}.full" "${metalog}"
echo "./etc/mtree/set.${setname} type=file mode=0444"

View File

@@ -819,7 +819,7 @@ create_syspkg_tgz()
"${spec1}" "${metalog}"
${AWK} -f "${rundir}/join.awk" \
"${spec1}" /dev/stdin <<EOF
./etc/mtree/set.${pkgset} type=file mode=0444 uname=root gname=operator
./etc/mtree/set.${pkgset} type=file mode=0444 uname=root gname=wheel
EOF
else
cat "${spec1}"

View File

@@ -148,7 +148,7 @@ if [ "${MKDEBUG}" = "no" -a "${MKDEBUGLIB}" = "no" ]; then
debugset=""
xdebugset=""
else
debugset="debug"
debugset="minix-debug"
xdebugset="xdebug"
fi
# Determine lib type. Do this first so stlib also gets set.
@@ -163,7 +163,7 @@ if [ "${MKPIC}" = "no" ]; then
shlib=no
fi
# LSC for Minix
nlists="minix-base minix-comp minix-games minix-kernel minix-man $testset"
nlists="minix-base minix-comp minix-games minix-kernel minix-man $testset $debugset"
#nlists="base comp $debugset etc games man misc $modset $testset text"
xlists="xbase xcomp $xdebugset xetc xfont xserver"
extlists="extbase extcomp extetc"

View File

@@ -1,3 +1,135 @@
20170303:
The entire network stack has been replaced. This requires two updates.
First, BEFORE rebooting, either before or after rebuilding the system,
copy the following new configuration files from /usr/src/etc into /etc:
# cd /usr/src/etc
# cp hosts inetd.conf named.conf nsswitch.conf /etc
Second, AFTER rebooting, set up a new network configuration for your
system. Run netconf(8) and and follow its instructions:
# netconf
If you previously configured your network statically and you forgot its
settings, take a look at /etc/rc.network. That file and /etc/inet.conf
are no longer used now. See the ifconfig.if(5) manual page for more
information about how network settings are specified going forward.
20170223:
Edit your /etc/rc.conf to set rc_configured to YES. If you do not,
your system will refuse to enter multi-user mode after the next reboot.
You can then still make the same edit from single user mode, but that
is not as easy.
20170222:
Because of naming conflicts, the MINIX 3 service(8) utility has been
renamed to "minix-service". After successfully rebuilding the system
*and* rebooting (no earlier!), remove the old service utility:
# rm /bin/service
Better yet, use the postinstall(8) command to remove all files marked
as obsolete. It is not a bad idea to do this every now and then:
# postinstall fix obsolete
..but only ever after the reboot! Either way, deleting the old service
tool will avoid conflicts with the same-named NetBSD utility later on.
20170218:
Before starting a build, you will have to update your master.passwd and
group files in /etc. This is needed because we have switched over from
the old set of MINIX users and groups to the new set of NetBSD users
and groups, as needed by various imported tools. Follow these steps.
1. Make a back-up copy of your old master.passwd and group files:
# cp /etc/master.passwd /etc/master.passwd~
# cp /etc/group /etc/group~
2. Install /usr/src/etc/master.passwd to /etc/master.passwd, and
install /usr/src/etc/group to /etc/group. If you have NOT created
any local user accounts yourself, for example because you are
upgrading a fresh MINIX 3 installation right away, all you need to
do is copy over those two files:
# cp /usr/src/etc/master.passwd /etc/master.passwd
# cp /usr/src/etc/group /etc/group
If you DO have custom user accounts or groups, you need to merge
their lines (and only those!) into the new master.passwd and group
files manually. If you are unsure whether you have such custom
entries, you can use the following commands:
# cd /usr/src
# git show 68804c2:etc/master.passwd | diff -u - /etc/master.passwd
# git show 68804c2:etc/group | diff -u - /etc/group
This should show any changes compared to the old two templates. If
you have such changes, you need to reapply them after copying over
the new two templates. The following procedure shows one approach:
# cd /usr/src
# cp /etc/master.passwd /tmp/my-passwd
# vi /tmp/my-passwd
<remove any lines from /tmp/my-passwd that have no password>
# cp /usr/src/etc/master.passwd /etc/master.passwd
# cat /tmp/my-passwd >> /etc/master.passwd
# rm /tmp/my-passwd
..and follow a similar procedure for /etc/group.
3. Once the new files are in place, update all derived password files:
# pwd_mkdb -p /etc/master.passwd
If you did everything right so far, the following command:
# postinstall check uid gid
..should show "postinstall checks passed: uid gid" and no failures.
4. Now perform a full build as usual:
# cd /usr/src
# make build
As part of the build, all /dev files will get new proper ownership.
5. There may still be files that are owned by users and groups that now
have been renumbered. It is advisable to run at least the following
three commands to apply the renumbering to the most common files:
# find / -user 2 -exec chown bin \{\} \;
# find / -user 5 -exec chown uucp \{\} \;
# find / -user 9998 -exec chown games \{\} \;
If you have installed custom programs, you may want to check whether
they are not affected by the change. This should be rare, though.
Until a subsequent reboot, various running services will show up in
ps(1) output and /proc as owned by "postfix". This is no problem.
20170122:
MINIX 3 did not import NetBSD's passwd.conf file, which makes the
userland fall back by default to the old, broken UNIX password hashing
algorithm. Among other problems, it truncates passwords to the first
eight characters.
Please install /etc/passwd.conf and reset your passwords with passwd.
20160702:
Some tools are required to generate the locale resources which are
embedded into libintl, which is why you need to run the following:
for t in gencat locale mkcsmapper mkesdb mklocale
do
make -C /usr/src/usr.bin/${t} all install
done
Then the usual "make build".
20150623:
In order to use the new Unix98 PTYs, and to ensure that the test set
continues to pass, please add the following line to your /etc/fstab:

View File

@@ -91,15 +91,21 @@ INSTALLATION_DIRS= binary binary/sets binary/kernel installation
# -rw-r--r--
BINOWN= root
BINGRP= operator
BINGRP= wheel
UTMPGRP= utmp
.if defined(__MINIX)
BIN1+= boot.cfg.default \
BIN1+= \
\
gettytab \
man.conf \
\
passwd.conf \
protocols rc rc.cd rc.subr \
rc.daemons.dist rs.inet rs.single \
services shells syslog.conf \
termcap utmp gettytab rc.shutdown
rc.shutdown services shells \
syslog.conf
# MINIX-only files:
BIN1+= boot.cfg.default rc.minix \
rs.lwip rs.single termcap utmp
.else
BIN1+= bootptab changelist csh.cshrc csh.login \
csh.logout daily daily.conf dm.conf envsys.conf floppytab ftpchroot \
@@ -296,7 +302,7 @@ CONFIGSYMLINKS+= \
#
install-etc-files: .PHONY .MAKE check_DESTDIR MAKEDEV
${_MKMSG_INSTALL} ${DESTDIR}/etc/master.passwd
${ETC_INSTALL_FILE} -o root -g operator -m 600 \
${ETC_INSTALL_FILE} -o root -g wheel -m 600 \
master.passwd ${DESTDIR}/etc
${TOOL_PWD_MKDB} -p ${PWD_MKDB_ENDIAN} -d ${DESTDIR}/ \
${DESTDIR}/etc/master.passwd
@@ -304,7 +310,7 @@ install-etc-files: .PHONY .MAKE check_DESTDIR MAKEDEV
( \
mode=0600; \
for metaent in spwd.db passwd pwd.db; do \
echo "./etc/$${metaent} type=file mode=$${mode} uname=root gname=operator tags=etc_pkg"; \
echo "./etc/$${metaent} type=file mode=$${mode} uname=root gname=wheel tags=etc_pkg"; \
mode=0644; \
done; \
) | ${METALOG.add}
@@ -314,10 +320,12 @@ install-etc-files: .PHONY .MAKE check_DESTDIR MAKEDEV
.for owner group mode sdir tdir files in \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ group \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ hostname.file \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ inet.conf \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ hosts \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ inetd.conf \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ mk.conf \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ resolv.conf \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ motd \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ named.conf \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ nsswitch.conf \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ rc.conf \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ shrc \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ csh.cshrc \
@@ -351,7 +359,6 @@ install-etc-files: .PHONY .MAKE check_DESTDIR MAKEDEV
${MAKEDIRTARGET} . install-etc-files-safe
install-etc-files-safe: .PHONY .MAKE check_DESTDIR MAKEDEV
# LSC Minix administrator group is operator, not wheel
.endif # defined(__MINIX)
${_MKMSG_INSTALL} ${DESTDIR}/etc/ttys
.if !defined(__MINIX)
@@ -393,7 +400,6 @@ install-etc-files-safe: .PHONY .MAKE check_DESTDIR MAKEDEV
# TAC to the .for block above.
.if !defined(__MINIX)
.for owner group mode file in \
${BINOWN} operator 664 /etc/ttys \
${BINOWN} operator 664 /etc/dumpdates \
${BINOWN} operator 600 /etc/skeykeys \
root wheel 600 /var/at/at.deny \
@@ -456,7 +462,6 @@ install-etc-files-safe: .PHONY .MAKE check_DESTDIR MAKEDEV
.else # LSC Minix Specific
.for owner group mode sdir tdir files in \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/usr/ ${DESTDIR}/usr/etc/ daily \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/usr/ ${DESTDIR}/usr/etc/ dhcptags.conf \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/usr/ ${DESTDIR}/usr/etc/ rc \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/usr/lib/ crontab \
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ system.conf \
@@ -478,9 +483,10 @@ install-etc-files-safe: .PHONY .MAKE check_DESTDIR MAKEDEV
${INSTALL_FILE} -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} ${NETBSDSRCDIR}/etc/rc.capes/* ${DESTDIR}/etc/rc.capes
${INSTALL_FILE} -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} ${NETBSDSRCDIR}/minix/drivers/usb/usbd/usbd.conf ${DESTDIR}/etc/system.conf.d/usbd
.endif # Minix/earm specific
.for subdir in . defaults mtree root skel
.for subdir in . defaults mtree namedb rc.d root skel
${MAKEDIRTARGET} ${subdir} configinstall
.endfor
${MAKEDIRTARGET} ${NETBSDSRCDIR}/external/bsd/dhcpcd/sbin/dhcpcd configinstall
${_MKMSG_INSTALL} ${DESTDIR}/usr/lib/fonts
${INSTALL_DIR} ${DESTDIR}/usr/lib/fonts
${INSTALL_FILE} -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} ${NETBSDSRCDIR}/etc/fonts/*.fnt ${DESTDIR}/usr/lib/fonts/
@@ -497,7 +503,7 @@ OBSOLETE.files= base comp etc games man misc text
OBSOLETE.files= minix-base minix-comp minix-games minix-kernel minix-man
.endif # !defined(__MINIX)
.if ${MKDEBUG} != "no"
OBSOLETE.files+= debug
OBSOLETE.files+= minix-debug
.endif
.if ${MKKMOD} != "no"
OBSOLETE.files+= modules

View File

@@ -1,5 +1,9 @@
# Minix-specific rc.conf default values
# Override settings in NetBSD's default rc.conf with different default settings
# for MINIX here, typically to disable scripts that NetBSD enables by default.
#(nothing yet)
# Where to find servers/drivers binaries
PKG_SERVICE_DIR=/usr/pkg/service
SERVICES_DIRS="/service $PKG_SERVICE_DIR"

View File

@@ -1,4 +1,382 @@
# $NetBSD: rc.conf,v 1.133 2015/03/30 10:58:37 chopps Exp $
#
# /etc/defaults/rc.conf --
# default configuration of /etc/rc.conf
#
# see rc.conf(5) for more information.
#
# DO NOT EDIT THIS FILE DIRECTLY; IT MAY BE REPLACED DURING A SYSTEM UPGRADE.
# EDIT /etc/rc.conf INSTEAD.
#
#
# Use program=YES to enable program, NO to disable it. program_flags are
# passed to the program on the command line.
#
# Uncomment this if you want to use local paths in rc.
#
#export PATH=$PATH:/usr/pkg/sbin:/usr/pkg/bin:/usr/local/sbin:/usr/local/bin
# Uncomment the following to execute each /etc/rc.d script in
# the current shell rather than in a subshell. This may be
# faster on very slow machines that have an expensive fork(2).
# NOTE: USE THIS AT YOUR OWN RISK; A ROGUE COMMAND
# MAY INADVERTENTLY PREVENT BOOT TO MULTIUSER.
#
#rc_fast_and_loose=YES
# If rc_silent is true then /etc/rc will suppress most output to
# the console. The default is taken from the AB_SILENT flag passed
# from the boot loader to the kernel in the boothowto(9) variable.
#
# rc_silent_cmd is executed once for each suppressed line of output.
# Useful values are ":" and "twiddle".
#
rc_silent=$( [ "$(( $(/sbin/sysctl -n kern.boothowto 2>/dev/null || echo 0) \
& 0x40000 ))" != 0 ] && echo true || echo false )
rc_silent_cmd=twiddle
# Additional flags to the rcorder(8) that's run by /etc/rc.
#
rc_rcorder_flags=""
# The directories searched for rc scripts.
# These directories must be part of the root file system.
rc_directories=/etc/rc.d
# If this is set to NO, shutdown(8) will not run /etc/rc.shutdown.
#
do_rcshutdown=YES
# Additional flags to the rcorder(8) that's run by /etc/rc.shutdown.
#
rcshutdown_rcorder_flags=""
# If this is non-blank, use as the number of seconds to run a watchdog
# timer which will terminate /etc/rc.shutdown if the timeout expires.
#
rcshutdown_timeout=""
# Basic network configuration
#
# Fully Qualified Internet Domain Name (a.k.a. hostname, e.g. foo.baz.edu).
# If blank, use /etc/myname.
#
hostname=""
# If there's only one way out of your IPv4 network, set this to the hostname
# or the IPv4 address of the router that will get your packets off the LAN.
# If blank, use /etc/mygate.
#
defaultroute=""
# Same thing for IPv6. If blank, use /etc/mygate6.
#
defaultroute6=""
# The NIS domain name (formerly known as Yellow Pages); not in any way
# related to Internet domain names.
# If blank, use /etc/defaultdomain.
#
domainname=""
# Filesystems to mount early in boot-up.
# Note that `/var' is needed in $critical_filesystems_local (or
# implied as part of `/') as certain services that need /var (such as
# dhclient) may be needed to get the network operational enough to mount
# the $critical_filesystems_remote. Prepending "OPTIONAL:" means it
# will not be an error if that file system is not present in fstab(5).
#
critical_filesystems_local="OPTIONAL:/var"
critical_filesystems_remote="OPTIONAL:/usr"
# Swap device controls.
#
no_swap=NO # Set to YES if you have purposefully setup no swap
# partitions and don't want to be warned about it.
swapoff=YES # Remove block-type swap partitions upon shutdown
# This defaults to yes, so that raids shutdown cleanly
# Concatenated disk driver.
#
ccd=YES
# RAIDframe driver (manually configured devices).
#
raidframe=YES
# Crypto file system.
#
cgd=YES
# Logical Volume Manager
#
lvm=NO
# One-time actions and programs on boot-up.
#
savecore=YES savecore_flags="-z"
savecore_dir="/var/crash"
resize_root=NO # resize root to fill partition
per_user_tmp=NO # per-user /tmp directories
per_user_tmp_dir="/private/tmp" # real storage for /tmp
clear_tmp=YES # clear /tmp after reboot
update_motd=YES # updates /etc/motd
dmesg=YES dmesg_flags="" # write /var/run/dmesg.boot
accounting=NO # uses /var/account/acct
newsyslog=NO newsyslog_flags="" # trim log files
quota=YES # check and enable quotas
ldconfig=YES # rebuild a.out ldconfig cache
sysdb=YES # build system databases
rndctl=NO rndctl_flags="" # configure rndctl(8)
gpio=NO # configure GPIO devices
modules=YES # process /etc/modules.conf
# cope with other OSes using the real time clock at localtime on this
# machine (by adjusting kern.rtc_offset at boot)
rtclocaltime=NO
# NOTE: default coredump name now set in /etc/sysctl.conf
#
# File system check flags; default to preen mode, checking file systems
# that are listed in /etc/fstab in parallel as the fsck pass number
# permits. Fix minor faults automatically, and exit with non 0 only
# when major errors occur.
#
fsck_flags=-p
# Security setting. If $securelevel is non-empty, the system securelevel
# is set to this value early in the boot sequence. Otherwise the default
# action is taken (see init(8)).
#
securelevel="" # securelevel to set to
# To set the IP address of an interface either use
# ifconfig_xxN="IP-NO"
# where xxN is the interface. If this variable is not set then
# contents of the file /etc/ifconfig.xxN is used.
# Networking startup.
#
mdnsd=NO
npf=NO
ipfilter=NO ipfilter_flags="" # uses /etc/ipf.conf
ipnat=NO # uses /etc/ipnat.conf
ipfs=NO ipfs_flags="" # save/load ipnat and ipf states
ipsec=NO # uses /etc/ipsec.conf
ipmon=NO ipmon_flags="-Dns" # syslog ipfilter messages
pf=NO pf_rules="/etc/pf.conf" pf_flags=""
pflogd=NO
ftp_proxy=NO
racoon=NO # IKE daemon
auto_ifconfig=YES # config all avail. interfaces
net_interfaces="" # used only if above is NO
flushroutes=YES # flush routes in netstart
dhcpcd=NO
dhcpcd_flags="-qM" # For ifconfig_XXX=dhcp.
dhclient=NO # behave as a DHCP client
dhclient_flags="" # blank: config all interfaces
ntpdate=NO ntpdate_flags="-b -s" # May need '-u' thru firewall
ppp=YES ppp_peers="" # /etc/ppp/peers to call
ip6mode=host # host, autohost or router
ip6uniquelocal=NO # IPv6 unique-local forwarding
# Special treatment for interfaces that need to be downed on
# shutdown (because they might cause unnecessary costs or block resources
# on the peer). All pppoe* interfaces are automatically included in this
# list, add others here manually.
#force_down_interfaces=""
ifwatchd=NO # execute up/down scripts for in-kernel PPPoE interfaces
ifwatchd_flags="-u /etc/ppp/ip-up -d /etc/ppp/ip-down pppoe0"
# ALTQ configuration/monitoring daemon
altqd=NO altqd_flags=""
# Daemons required by servers. These are not needed for strictly client use.
#
# inetd is used to start the IP-based services enabled in /etc/inetd.conf
#
inetd=YES inetd_flags="-l" # -l logs libwrap
# identd
#
identd=NO identd_flags="-b -l -u nobody"
# rpcbind (formerly known as 'portmap') is used to look up RPC-based services.
#
rpcbind=NO rpcbind_flags="-l" # -l logs libwrap
# Commonly used daemons.
#
syslogd=YES syslogd_flags="-s" # -s "secure" unix domain only
cron=YES
named=NO named_flags="" # see below for named_chrootdir
timed=NO timed_flags=""
ntpd=NO ntpd_flags="" # see below for ntpd_chrootdir
# The default setting for postfix here is YES, but gets re-examined by
# the rc.d/postfix startup script when it runs. The script sets
# _rc_d_postfix to "check", and then causes all rc.conf settings to
# be re-evaluated. If the value of $postfix after this is "check",
# the script then checks to see if /etc/mailer.conf selects the system
# postfix. If not, it does print a warning and does not start postfix
# to avoid conflict with a different MTA.
postfix=${_rc_d_postfix:-YES}
lpd=NO lpd_flags="-s" # -s "secure" unix domain only
sshd=NO sshd_flags=""
ssh_keygen_flags=""
ftpd=NO ftpd_flags="-ll"
httpd=NO httpd_flags=""
httpd_wwwdir="/var/www"
httpd_wwwuser="_httpd"
# To run the named(8) DNS server as an unprivileged user under a
# chroot(2) cage, uncomment the following after migrating the contents
# of /etc/namedb to /var/chroot/named/etc/namedb
#
#named_chrootdir="/var/chroot/named"
# To run the ntpd(8) NTP server as an unprivileged user under a
# chroot(2) cage, uncomment the following, after ensuring that:
# - The kernel has "pseudo-device clockctl" compiled in
# - /dev/clockctl is present
#
#ntpd_chrootdir="/var/chroot/ntpd"
# Routing daemons.
#
routed=NO routed_flags="-q"
gated=NO
mrouted=NO mrouted_flags=""
route6d=NO route6d_flags=""
ldpd=NO
# Daemons used to boot other hosts over a network.
#
rarpd=NO rarpd_flags="-a"
bootparamd=NO bootparamd_flags=""
dhcpd=NO dhcpd_flags="-q"
dhcrelay=NO dhcrelay_flags=""
rbootd=NO rbootd_flags=""
mopd=NO mopd_flags="-a"
ndbootd=NO ndbootd_flags="-s /tftpboot /tftpboot/bootyy"
rtadvd=NO rtadvd_flags=""
isibootd=NO isibootd_flags=""
# X11 daemons.
#
xfs=NO xfs_flags="" # X11 font server
xdm=NO xdm_flags="" # X11 display manager; needs
# wscons=YES for local displays.
# Update fontconfig cache at boot
fccache=YES
# YP (NIS) daemons.
#
ypbind=NO ypbind_flags=""
ypserv=NO ypserv_flags="-d"
yppasswdd=NO yppasswdd_flags=""
# NFS daemons and parameters.
#
mountd=NO mountd_flags="" # NFS mount requests daemon
nfs_client=NO # enable client daemons
nfs_server=NO # enable server daemons
nfsd_flags=""
lockd=NO lockd_flags=""
statd=NO statd_flags=""
amd=NO amd_flags="-l syslog -x error,noinfo,nostats"
amd_dir=/amd # mount dir
# Heimdal Kerberos 5 KDC (with Kerberos IV compatibility)
kdc=NO kdc_flags="--detach"
# iSCSI target
iscsi_target=NO iscsi_target_flags=""
# iSCSI kernel initiator
iscsid=NO
# WPA daemons.
hostapd=NO hostapd_flags="-B /etc/hostapd.conf"
wpa_supplicant=NO wpa_supplicant_flags="" # -i<if> -c<file>
# ISDN daemon
isdnd=NO isdnd_flags=""
# Bluetooth configuration
bluetooth=NO
# and the following are used when bluetooth=YES
btconfig_devices="" # all
bthcid=YES bthcid_flags=""
sdpd=YES sdpd_flags=""
# Other daemons.
#
rwhod=NO rwhod_flags="-u _rwhod"
devpubd=NO devpubd_flags="" # autocreate nodes for new devs
envsys=NO # Set /etc/envsys.conf preferences
# Hardware daemons.
#
apmd=NO apmd_flags="" # APM power management daemon.
powerd=NO powerd_flags="" # power management daemon
screenblank=NO screenblank_flags="" # wscons and FBIO screenblanker
moused=NO # serial mouse handler
moused_flags="-p /dev/tty00"
wdogctl=NO # watchdog timer control
# wdogctl_flags="-k devicename"
irdaattach=NO # attach serial lines to IrDA
irdaattach_flags="tty00"
# Configuration of "wscons" console driver virtual screens.
#
wscons=NO wscons_flags="" # setup wscons from wscons.conf
# Configuration of "wsmoused" console driver cut-n-paste support
#
wsmoused=NO wsmoused_flags=""
# Configuration of "tpctl" touch panel calibration utility
#
tpctl=NO tpctl_flags=""
# Mixer setting
#
mixerctl=NO mixerctl_mixers="" # "mixer0 mixer1" means saving
# and restoring their settings
# Vi recovery notification. Vi(1)'s -r option can recover files which were
# accidentally closed. See vi(1) for more details.
#
virecover=YES
# Veriexec signature loading.
#
veriexec=NO
veriexec_strict=0
veriexec_verbose=0
veriexec_flags="-k"
# Entropy load/save to/from /dev/random at startup/shutdown
#
random_seed=YES
# Creating / updating of man page index on boot
makemandb=YES
# blacklist daemon, needs npf
blacklistd=NO
# Start of MINIX 3 specific settings block
if [ -r /etc/defaults/minix.rc.conf ]; then
. /etc/defaults/minix.rc.conf
fi
# End of MINIX 3 specific settings block

View File

@@ -1,18 +1,21 @@
operator:*:0:
daemon:*:1:
bin:*:2:
other:*:3:
tty:*:4:
uucp:*:5:
news:*:6:
ftp:*:7:
kmem:*:8:
www:*:9:
driver:*:10:
server:*:11:
wheel:*:0:root
daemon:*:1:daemon
kmem:*:2:root
sys:*:3:root
tty:*:4:root
operator:*:0:root
mail:*:6:
bin:*:7:
wsrc:*:9:
maildrop:*:11:
postfix:*:12:
games:*:13:
named:*:14:
ntpd:*:15:
sshd:*:16:
_pflogd:*:18:
_rwhod:*:19:
staff:*:20:root
_proxy:*:21:
_timedc:*:22:
_sdpd:*:23:
@@ -20,10 +23,13 @@ _httpd:*:24:
_mdnsd:*:25:
_tests:*:26:
_tcpdump:*:27:
smtpd:*:40:
postfix:*:41:
maildrop:*:42:
mail:*:43:
sshd:*:44:
nogroup:*:99:
_tss:*:28:
_gpio:*:29:
_rtadvd:*:30:
guest:*:31:root
nobody:*:39:
utmp:*:45:
authpf:*:72:
users:*:100:
dialer:*:117:
nogroup:*:32766:

19
etc/hosts Normal file
View File

@@ -0,0 +1,19 @@
# $NetBSD: hosts,v 1.9 2013/11/24 07:20:01 dholland Exp $
#
# Host name database.
#
# This file contains addresses and aliases for local hosts whose names
# need to be resolvable during system boot; typically this includes only
# the address and FQDN for this machine's hostname.
#
# By default this file is consulted before DNS, so adding additional
# material here that then becomes out of date can lead to confusion.
# See nsswitch.conf(5).
#
::1 localhost localhost.
127.0.0.1 localhost localhost.
#
# RFC 1918 specifies that these networks are "internal":
# 10.0.0.0 - 10.255.255.255 (10/8 prefix)
# 172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
# 192.168.0.0 - 192.168.255.255 (192.168/16 prefix)

86
etc/inetd.conf Normal file
View File

@@ -0,0 +1,86 @@
# $NetBSD: inetd.conf,v 1.58 2007/10/16 02:47:14 tls Exp $
#
# Internet server configuration database
#
# @(#)inetd.conf 8.2 (Berkeley) 3/18/94
#
#http stream tcp nowait:600 _httpd /usr/libexec/httpd httpd /var/www
#http stream tcp6 nowait:600 _httpd /usr/libexec/httpd httpd /var/www
#ftp stream tcp nowait root /usr/libexec/ftpd ftpd -ll
#ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
#telnet stream tcp nowait root /usr/libexec/telnetd telnetd -a valid
#telnet stream tcp6 nowait root /usr/libexec/telnetd telnetd -a valid
#shell stream tcp nowait root /usr/libexec/rshd rshd -L
#shell stream tcp6 nowait root /usr/libexec/rshd rshd -L
#login stream tcp nowait root /usr/libexec/rlogind rlogind -L
#login stream tcp6 nowait root /usr/libexec/rlogind rlogind -L
#exec stream tcp nowait root /usr/libexec/rexecd rexecd
#exec stream tcp6 nowait root /usr/libexec/rexecd rexecd
#finger stream tcp nowait nobody /usr/libexec/fingerd fingerd -lsmu
#finger stream tcp6 nowait nobody /usr/libexec/fingerd fingerd -lsmu
#ident stream tcp nowait nobody /usr/libexec/identd identd -l -o OTHER -e -N
#ident stream tcp6 nowait nobody /usr/libexec/identd identd -l -o OTHER -e -N
#tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot
#tftp dgram udp6 wait root /usr/libexec/tftpd tftpd -l -s /tftpboot
#comsat dgram udp wait root /usr/libexec/comsat comsat
#comsat dgram udp6 wait root /usr/libexec/comsat comsat
#ntalk dgram udp wait nobody:tty /usr/libexec/ntalkd ntalkd
#bootps dgram udp wait root /usr/sbin/bootpd bootpd
#
# Games
#
#hunt dgram udp wait nobody /usr/games/huntd huntd
#
# Internal services
#
#tcpmux stream tcp nowait root internal
#echo stream tcp nowait nobody internal
#echo stream tcp6 nowait nobody internal
#discard stream tcp nowait nobody internal
#discard stream tcp6 nowait nobody internal
#chargen stream tcp nowait nobody internal
#chargen stream tcp6 nowait nobody internal
#daytime stream tcp nowait nobody internal
#daytime stream tcp6 nowait nobody internal
#time stream tcp nowait nobody internal
#time stream tcp6 nowait nobody internal
#echo dgram udp wait nobody internal
#echo dgram udp6 wait nobody internal
#discard dgram udp wait nobody internal
#discard dgram udp6 wait nobody internal
#chargen dgram udp wait nobody internal
#chargen dgram udp6 wait nobody internal
#daytime dgram udp wait nobody internal
#daytime dgram udp6 wait nobody internal
#time dgram udp wait nobody internal
#time dgram udp6 wait nobody internal
#qotd stream tcp nowait nobody /usr/games/fortune fortune
#qotd stream tcp6 nowait nobody /usr/games/fortune fortune
#
# Kerberos authenticated services
#
#klogin stream tcp nowait root /usr/libexec/rlogind rlogind -k
#eklogin stream tcp nowait root /usr/libexec/rlogind rlogind -k -x
#kshell stream tcp nowait root /usr/libexec/rshd rshd -k
#
# Services run ONLY on the Kerberos server
#
#kerberos-adm stream tcp nowait root /usr/libexec/kadmind kadmind
#kerberos-adm stream tcp6 nowait root /usr/libexec/kadmind kadmind
#kpasswd dgram udp wait root /usr/libexec/kpasswdd kpasswdd
#kpasswd dgram udp6 wait root /usr/libexec/kpasswdd kpasswdd
#
# The hprop service is run on slave KDCs to receive the database from
# the master KDC.
#hprop stream tcp nowait root /usr/libexec/hpropd hpropd
#hprop stream tcp6 nowait root /usr/libexec/hpropd hpropd
#
# RPC based services
#
#rstatd/1-3 dgram rpc/udp wait:100 nobody:kmem /usr/libexec/rpc.rstatd rpc.rstatd
#rstatd/1-3 dgram rpc/udp6 wait:100 nobody:kmem /usr/libexec/rpc.rstatd rpc.rstatd
#rusersd/2-3 dgram rpc/udp wait:100 nobody /usr/libexec/rpc.rusersd rpc.rusersd
#rusersd/2-3 dgram rpc/udp6 wait:100 nobody /usr/libexec/rpc.rusersd rpc.rusersd
#walld/1 dgram rpc/udp wait nobody:tty /usr/libexec/rpc.rwalld rpc.rwalld
#sprayd/1 dgram rpc/udp wait nobody /usr/libexec/rpc.sprayd rpc.sprayd
#rquotad/1-2 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad

View File

@@ -1,16 +1,24 @@
root::0:0::0:0:Big Brother:/root:/bin/sh
daemon:*:1:1::0:0:The Deuce:/etc:/bin/sh
bin:*:2:0::0:0:Binaries Commands and Source:/nonexistent:/bin/sh
uucp:*:5:5::0:0:UNIX to UNIX copy:/usr/spool/uucp:/usr/bin/uucico
news:*:6:6::0:0:Usenet news:/usr/spool/news:/bin/sh
ftp:*:7:7::0:0:Anonymous FTP:/usr/ftp:/bin/sh
www:*:9:9::0:0:World Wide Web:/usr/www:/bin/sh
driver:*:10:10::0:0:Device Drivers:/:/bin/sh
server:*:11:11::0:0:OS Servers:/:/bin/sh
service:*:12:12::0:0:System Services:/:/bin/sh
sshd:*:22:22::0:0:sshd:/:/bin/sh
smtpd:*:25:25::0:0:smtpd:/:/bin/sh
postfix:*:27:27::0:0:postfix:/usr/var/spool/postfix:/usr/bin/false
postgres:*:30:30::0:0:postgresql:/:/usr/bin/false
games:*:9998:13::0:0:games:/:/bin/sh
nobody:*:9999:39::0:0:Unprivileged user:/tmp:/bin/sh
root::0:0::0:0:Charlie &:/root:/bin/sh
toor:*:0:0::0:0:Bourne-again Superuser:/root:/bin/sh
daemon:*:1:1::0:0:The devil himself:/:/sbin/nologin
operator:*:2:5::0:0:System &:/usr/guest/operator:/sbin/nologin
bin:*:3:7::0:0:Binaries Commands and Source:/:/bin/sh
games:*:7:13::0:0:& pseudo-user:/usr/games:/sbin/nologin
postfix:*:12:12::0:0:& pseudo-user:/var/spool/postfix:/sbin/nologin
named:*:14:14::0:0:& pseudo-user:/var/chroot/named:/sbin/nologin
ntpd:*:15:15::0:0:& pseudo-user:/var/chroot/ntpd:/sbin/nologin
sshd:*:16:16::0:0:& pseudo-user:/var/chroot/sshd:/sbin/nologin
_pflogd:*:18:18::0:0:& pseudo-user:/var/chroot/pflogd:/sbin/nologin
_rwhod:*:19:19::0:0:& pseudo-user:/var/rwho:/sbin/nologin
_proxy:*:21:21::0:0:Proxy Services:/nonexistent:/sbin/nologin
_timedc:*:22:22::0:0:& pseudo-user:/nonexistent:/sbin/nologin
_sdpd:*:23:23::0:0:& pseudo-user:/nonexistent:/sbin/nologin
_httpd:*:24:24::0:0:& pseudo-user:/var/www:/sbin/nologin
_mdnsd:*:25:25::0:0:& pseudo-user:/nonexistent:/sbin/nologin
_tests:*:26:26::0:0:& pseudo-user:/nonexistent:/sbin/nologin
_tcpdump:*:27:27::0:0:& pseudo-user:/var/chroot/tcpdump:/sbin/nologin
_tss:*:28:28::0:0:& pseudo-user:/var/tpm:/sbin/nologin
_rtadvd:*:30:30::0:0:& pseudo-user:/var/chroot/rtadvd:/sbin/nologin
uucp:*:66:1::0:0:UNIX-to-UNIX Copy:/nonexistent:/sbin/nologin
service:*:999:0::0:0:System Services:/:/sbin/nologin
nobody:*:32767:39::0:0:Unprivileged user:/nonexistent:/sbin/nologin

View File

@@ -1,5 +1,6 @@
/set type=dir uid=0 gid=0 mode=0755
./usr/lib/i18n/bc
./usr/tests/lib
./usr/tests/lib/csu
./usr/tests/lib/csu/bc

View File

@@ -42,6 +42,7 @@
./etc/fonts/conf.d
./etc/kyua
./etc/mtree
./etc/namedb
./etc/openssl
./etc/openssl/certs
./etc/openssl/misc
@@ -56,6 +57,9 @@
./etc/system.conf.d
./home
./lib
./libexec
./libexec/dhcpcd-hooks
./libexec/resolvconf
./mnt
./proc
./root
@@ -99,8 +103,14 @@
./usr/include/minix
./usr/include/msdosfs
./usr/include/net
./usr/include/net80211
./usr/include/netatalk
./usr/include/netinet
./usr/include/netinet6
./usr/include/netmpls
./usr/include/netpgp
./usr/include/openssl
./usr/include/pcap
./usr/include/ppath
./usr/include/prop
./usr/include/protocols
@@ -115,6 +125,7 @@
./usr/include/ufs/mfs
./usr/include/ufs/ufs
./usr/lib
./usr/lib/i18n
./usr/lib/bc
./usr/lib/cawf
./usr/lib/keymaps
@@ -128,13 +139,20 @@
./usr/libdata/debug/lib
./usr/libdata/debug/libexec
./usr/libdata/debug/sbin
./usr/libdata/debug/service
./usr/libdata/debug/usr
./usr/libdata/debug/usr/bin
./usr/libdata/debug/usr/games
./usr/libdata/debug/usr/lib
./usr/libdata/debug/usr/lib/i18n
./usr/libdata/debug/usr/libexec
./usr/libdata/debug/usr/mdec
./usr/libdata/debug/usr/sbin
./usr/libdata/debug/usr/tests
./usr/libdata/debug/usr/tests/minix-posix
./usr/libdata/debug/usr/tests/minix-posix/blocktest
./usr/libdata/debug/usr/tests/minix-posix/ddekit
./usr/libdata/debug/usr/tests/minix-posix/rmibtest
./usr/libexec
./usr/log
./usr/man
@@ -155,12 +173,13 @@
./usr/pkg/var/run
./usr/preserve
./usr/run
./usr/sbin
./usr/service
./usr/service/asr
./usr/sbin
./usr/share
./usr/share/atf
./usr/share/calendar
./usr/share/dhcpd
./usr/share/doc
./usr/share/doc/psd
./usr/share/doc/reference
@@ -171,10 +190,14 @@
./usr/share/doc/reference/ref1/kyua/kyua-atf-compat
./usr/share/doc/reference/ref1/kyua/kyua-cli
./usr/share/doc/reference/ref1/kyua/kyua-testers
./usr/share/doc/reference/ref8
./usr/share/doc/reference/ref8/bind9
./usr/share/doc/reference/ref8/bind9/arm
./usr/share/doc/usd
./usr/share/examples
./usr/share/examples/atf
./usr/share/examples/blacklist
./usr/share/examples/dhcp
./usr/share/examples/ftpd
./usr/share/examples/kyua-cli
./usr/share/examples/libsaslc
@@ -182,9 +205,49 @@
./usr/share/examples/lua
./usr/share/examples/lutok
./usr/share/examples/openssl
./usr/share/examples/rtadvd
./usr/share/examples/tmux
./usr/share/games
./usr/share/games/fortune
./usr/share/i18n
./usr/share/i18n/csmapper
./usr/share/i18n/csmapper/APPLE
./usr/share/i18n/csmapper/AST
./usr/share/i18n/csmapper/BIG5
./usr/share/i18n/csmapper/CBM
./usr/share/i18n/csmapper/CNS
./usr/share/i18n/csmapper/CP
./usr/share/i18n/csmapper/EBCDIC
./usr/share/i18n/csmapper/GB
./usr/share/i18n/csmapper/GEORGIAN
./usr/share/i18n/csmapper/ISO-8859
./usr/share/i18n/csmapper/ISO646
./usr/share/i18n/csmapper/JIS
./usr/share/i18n/csmapper/KAZAKH
./usr/share/i18n/csmapper/KOI
./usr/share/i18n/csmapper/KS
./usr/share/i18n/csmapper/MISC
./usr/share/i18n/csmapper/TCVN
./usr/share/i18n/esdb
./usr/share/i18n/esdb/APPLE
./usr/share/i18n/esdb/AST
./usr/share/i18n/esdb/BIG5
./usr/share/i18n/esdb/CBM
./usr/share/i18n/esdb/CP
./usr/share/i18n/esdb/DEC
./usr/share/i18n/esdb/EBCDIC
./usr/share/i18n/esdb/EUC
./usr/share/i18n/esdb/GB
./usr/share/i18n/esdb/GEORGIAN
./usr/share/i18n/esdb/ISO-2022
./usr/share/i18n/esdb/ISO-8859
./usr/share/i18n/esdb/ISO646
./usr/share/i18n/esdb/KAZAKH
./usr/share/i18n/esdb/KOI
./usr/share/i18n/esdb/MISC
./usr/share/i18n/esdb/TCVN
./usr/share/i18n/esdb/UTF
./usr/share/i18n/iconv
./usr/share/info
./usr/share/keymaps
./usr/share/kyua-atf-compat
@@ -192,10 +255,415 @@
./usr/share/kyua-cli/misc
./usr/share/kyua-cli/store
./usr/share/legal
./usr/share/locale
./usr/share/locale/af_ZA.ISO8859-1
./usr/share/locale/af_ZA.ISO8859-1/LC_MESSAGES
./usr/share/locale/af_ZA.ISO8859-15
./usr/share/locale/af_ZA.ISO8859-15/LC_MESSAGES
./usr/share/locale/af_ZA.UTF-8
./usr/share/locale/af_ZA.UTF-8/LC_MESSAGES
./usr/share/locale/be
./usr/share/locale/be/LC_MESSAGES
./usr/share/locale/be_BY.CP1251
./usr/share/locale/be_BY.CP1251/LC_MESSAGES
./usr/share/locale/be_BY.ISO8859-5
./usr/share/locale/be_BY.ISO8859-5/LC_MESSAGES
./usr/share/locale/be_BY.UTF-8
./usr/share/locale/be_BY.UTF-8/LC_MESSAGES
./usr/share/locale/bg_BG.CP1251
./usr/share/locale/bg_BG.CP1251/LC_MESSAGES
./usr/share/locale/bg_BG.UTF-8
./usr/share/locale/bg_BG.UTF-8/LC_MESSAGES
./usr/share/locale/ca
./usr/share/locale/ca/LC_MESSAGES
./usr/share/locale/ca_ES.ISO8859-1
./usr/share/locale/ca_ES.ISO8859-1/LC_MESSAGES
./usr/share/locale/ca_ES.ISO8859-15
./usr/share/locale/ca_ES.ISO8859-15/LC_MESSAGES
./usr/share/locale/ca_ES.UTF-8
./usr/share/locale/ca_ES.UTF-8/LC_MESSAGES
./usr/share/locale/cs
./usr/share/locale/cs/LC_MESSAGES
./usr/share/locale/cs_CZ.ISO8859-2
./usr/share/locale/cs_CZ.ISO8859-2/LC_MESSAGES
./usr/share/locale/cs_CZ.UTF-8
./usr/share/locale/cs_CZ.UTF-8/LC_MESSAGES
./usr/share/locale/da
./usr/share/locale/da/LC_MESSAGES
./usr/share/locale/da_DK.ISO8859-1
./usr/share/locale/da_DK.ISO8859-1/LC_MESSAGES
./usr/share/locale/da_DK.ISO8859-15
./usr/share/locale/da_DK.ISO8859-15/LC_MESSAGES
./usr/share/locale/da_DK.UTF-8
./usr/share/locale/da_DK.UTF-8/LC_MESSAGES
./usr/share/locale/de
./usr/share/locale/de/LC_MESSAGES
./usr/share/locale/de_AT
./usr/share/locale/de_AT.ISO8859-1
./usr/share/locale/de_AT.ISO8859-1/LC_MESSAGES
./usr/share/locale/de_AT.ISO8859-15
./usr/share/locale/de_AT.ISO8859-15/LC_MESSAGES
./usr/share/locale/de_AT.UTF-8
./usr/share/locale/de_AT.UTF-8/LC_MESSAGES
./usr/share/locale/de_AT/LC_MESSAGES
./usr/share/locale/de_CH.ISO8859-1
./usr/share/locale/de_CH.ISO8859-1/LC_MESSAGES
./usr/share/locale/de_CH.ISO8859-15
./usr/share/locale/de_CH.ISO8859-15/LC_MESSAGES
./usr/share/locale/de_CH.UTF-8
./usr/share/locale/de_CH.UTF-8/LC_MESSAGES
./usr/share/locale/de_DE.ISO8859-1
./usr/share/locale/de_DE.ISO8859-1/LC_MESSAGES
./usr/share/locale/de_DE.ISO8859-15
./usr/share/locale/de_DE.ISO8859-15/LC_MESSAGES
./usr/share/locale/de_DE.UTF-8
./usr/share/locale/de_DE.UTF-8/LC_MESSAGES
./usr/share/locale/el
./usr/share/locale/el/LC_MESSAGES
./usr/share/locale/el_GR.ISO8859-7
./usr/share/locale/el_GR.ISO8859-7/LC_MESSAGES
./usr/share/locale/el_GR.UTF-8
./usr/share/locale/el_GR.UTF-8/LC_MESSAGES
./usr/share/locale/en@boldquot
./usr/share/locale/en@boldquot/LC_MESSAGES
./usr/share/locale/en@quot
./usr/share/locale/en@quot/LC_MESSAGES
./usr/share/locale/en_AU.ISO8859-1
./usr/share/locale/en_AU.ISO8859-1/LC_MESSAGES
./usr/share/locale/en_AU.ISO8859-15
./usr/share/locale/en_AU.ISO8859-15/LC_MESSAGES
./usr/share/locale/en_AU.UTF-8
./usr/share/locale/en_AU.UTF-8/LC_MESSAGES
./usr/share/locale/en_CA.ISO8859-1
./usr/share/locale/en_CA.ISO8859-1/LC_MESSAGES
./usr/share/locale/en_CA.ISO8859-15
./usr/share/locale/en_CA.ISO8859-15/LC_MESSAGES
./usr/share/locale/en_CA.UTF-8
./usr/share/locale/en_CA.UTF-8/LC_MESSAGES
./usr/share/locale/en_GB.ISO8859-1
./usr/share/locale/en_GB.ISO8859-1/LC_MESSAGES
./usr/share/locale/en_GB.ISO8859-15
./usr/share/locale/en_GB.ISO8859-15/LC_MESSAGES
./usr/share/locale/en_GB.UTF-8
./usr/share/locale/en_GB.UTF-8/LC_MESSAGES
./usr/share/locale/en_NZ.ISO8859-1
./usr/share/locale/en_NZ.ISO8859-1/LC_MESSAGES
./usr/share/locale/en_NZ.ISO8859-15
./usr/share/locale/en_NZ.ISO8859-15/LC_MESSAGES
./usr/share/locale/en_NZ.UTF-8
./usr/share/locale/en_NZ.UTF-8/LC_MESSAGES
./usr/share/locale/en_US.ISO8859-1
./usr/share/locale/en_US.ISO8859-1/LC_MESSAGES
./usr/share/locale/en_US.ISO8859-15
./usr/share/locale/en_US.ISO8859-15/LC_MESSAGES
./usr/share/locale/en_US.US-ASCII
./usr/share/locale/en_US.US-ASCII/LC_MESSAGES
./usr/share/locale/en_US.UTF-8
./usr/share/locale/en_US.UTF-8/LC_MESSAGES
./usr/share/locale/eo
./usr/share/locale/eo/LC_MESSAGES
./usr/share/locale/es
./usr/share/locale/es/LC_MESSAGES
./usr/share/locale/es_ES.ISO8859-1
./usr/share/locale/es_ES.ISO8859-1/LC_MESSAGES
./usr/share/locale/es_ES.ISO8859-15
./usr/share/locale/es_ES.ISO8859-15/LC_MESSAGES
./usr/share/locale/es_ES.UTF-8
./usr/share/locale/es_ES.UTF-8/LC_MESSAGES
./usr/share/locale/et
./usr/share/locale/et/LC_MESSAGES
./usr/share/locale/et_EE.ISO8859-15
./usr/share/locale/et_EE.ISO8859-15/LC_MESSAGES
./usr/share/locale/et_EE.UTF-8
./usr/share/locale/et_EE.UTF-8/LC_MESSAGES
./usr/share/locale/eu_ES.ISO8859-1
./usr/share/locale/eu_ES.ISO8859-1/LC_MESSAGES
./usr/share/locale/eu_ES.ISO8859-15
./usr/share/locale/eu_ES.ISO8859-15/LC_MESSAGES
./usr/share/locale/eu_ES.UTF-8
./usr/share/locale/eu_ES.UTF-8/LC_MESSAGES
./usr/share/locale/fi
./usr/share/locale/fi/LC_MESSAGES
./usr/share/locale/fi_FI.ISO8859-1
./usr/share/locale/fi_FI.ISO8859-1/LC_MESSAGES
./usr/share/locale/fi_FI.ISO8859-15
./usr/share/locale/fi_FI.ISO8859-15/LC_MESSAGES
./usr/share/locale/fi_FI.UTF-8
./usr/share/locale/fi_FI.UTF-8/LC_MESSAGES
./usr/share/locale/fr
./usr/share/locale/fr/LC_MESSAGES
./usr/share/locale/fr_BE.ISO8859-1
./usr/share/locale/fr_BE.ISO8859-1/LC_MESSAGES
./usr/share/locale/fr_BE.ISO8859-15
./usr/share/locale/fr_BE.ISO8859-15/LC_MESSAGES
./usr/share/locale/fr_BE.UTF-8
./usr/share/locale/fr_BE.UTF-8/LC_MESSAGES
./usr/share/locale/fr_CA.ISO8859-1
./usr/share/locale/fr_CA.ISO8859-1/LC_MESSAGES
./usr/share/locale/fr_CA.ISO8859-15
./usr/share/locale/fr_CA.ISO8859-15/LC_MESSAGES
./usr/share/locale/fr_CA.UTF-8
./usr/share/locale/fr_CA.UTF-8/LC_MESSAGES
./usr/share/locale/fr_CH.ISO8859-1
./usr/share/locale/fr_CH.ISO8859-1/LC_MESSAGES
./usr/share/locale/fr_CH.ISO8859-15
./usr/share/locale/fr_CH.ISO8859-15/LC_MESSAGES
./usr/share/locale/fr_CH.UTF-8
./usr/share/locale/fr_CH.UTF-8/LC_MESSAGES
./usr/share/locale/fr_FR.ISO8859-1
./usr/share/locale/fr_FR.ISO8859-1/LC_MESSAGES
./usr/share/locale/fr_FR.ISO8859-15
./usr/share/locale/fr_FR.ISO8859-15/LC_MESSAGES
./usr/share/locale/fr_FR.UTF-8
./usr/share/locale/fr_FR.UTF-8/LC_MESSAGES
./usr/share/locale/gl
./usr/share/locale/gl/LC_MESSAGES
./usr/share/locale/he
./usr/share/locale/he/LC_MESSAGES
./usr/share/locale/hr
./usr/share/locale/hr/LC_MESSAGES
./usr/share/locale/hr_HR.ISO8859-2
./usr/share/locale/hr_HR.ISO8859-2/LC_MESSAGES
./usr/share/locale/hr_HR.UTF-8
./usr/share/locale/hr_HR.UTF-8/LC_MESSAGES
./usr/share/locale/hu_HU.ISO8859-2
./usr/share/locale/hu_HU.ISO8859-2/LC_MESSAGES
./usr/share/locale/hu_HU.UTF-8
./usr/share/locale/hu_HU.UTF-8/LC_MESSAGES
./usr/share/locale/hy_AM.ARMSCII-8
./usr/share/locale/hy_AM.ARMSCII-8/LC_MESSAGES
./usr/share/locale/hy_AM.UTF-8
./usr/share/locale/hy_AM.UTF-8/LC_MESSAGES
./usr/share/locale/id
./usr/share/locale/id/LC_MESSAGES
./usr/share/locale/is_IS.ISO8859-1
./usr/share/locale/is_IS.ISO8859-1/LC_MESSAGES
./usr/share/locale/is_IS.ISO8859-15
./usr/share/locale/is_IS.ISO8859-15/LC_MESSAGES
./usr/share/locale/is_IS.UTF-8
./usr/share/locale/is_IS.UTF-8/LC_MESSAGES
./usr/share/locale/it
./usr/share/locale/it/LC_MESSAGES
./usr/share/locale/it_CH.ISO8859-1
./usr/share/locale/it_CH.ISO8859-1/LC_MESSAGES
./usr/share/locale/it_CH.ISO8859-15
./usr/share/locale/it_CH.ISO8859-15/LC_MESSAGES
./usr/share/locale/it_CH.UTF-8
./usr/share/locale/it_CH.UTF-8/LC_MESSAGES
./usr/share/locale/it_IT.ISO8859-1
./usr/share/locale/it_IT.ISO8859-1/LC_MESSAGES
./usr/share/locale/it_IT.ISO8859-15
./usr/share/locale/it_IT.ISO8859-15/LC_MESSAGES
./usr/share/locale/it_IT.UTF-8
./usr/share/locale/it_IT.UTF-8/LC_MESSAGES
./usr/share/locale/ja
./usr/share/locale/ja/LC_MESSAGES
./usr/share/locale/ja_JP.ISO-2022-JP
./usr/share/locale/ja_JP.ISO-2022-JP-2
./usr/share/locale/ja_JP.ISO-2022-JP-2/LC_MESSAGES
./usr/share/locale/ja_JP.ISO-2022-JP/LC_MESSAGES
./usr/share/locale/ja_JP.SJIS
./usr/share/locale/ja_JP.SJIS/LC_MESSAGES
./usr/share/locale/ja_JP.UTF-8
./usr/share/locale/ja_JP.UTF-8/LC_MESSAGES
./usr/share/locale/ja_JP.ct
./usr/share/locale/ja_JP.ct/LC_MESSAGES
./usr/share/locale/ja_JP.eucJP
./usr/share/locale/ja_JP.eucJP/LC_MESSAGES
./usr/share/locale/kk_KZ.PT154
./usr/share/locale/kk_KZ.PT154/LC_MESSAGES
./usr/share/locale/kk_KZ.UTF-8
./usr/share/locale/kk_KZ.UTF-8/LC_MESSAGES
./usr/share/locale/ko
./usr/share/locale/ko/LC_MESSAGES
./usr/share/locale/ko_KR.UTF-8
./usr/share/locale/ko_KR.UTF-8/LC_MESSAGES
./usr/share/locale/ko_KR.eucKR
./usr/share/locale/ko_KR.eucKR/LC_MESSAGES
./usr/share/locale/lt_LT.ISO8859-13
./usr/share/locale/lt_LT.ISO8859-13/LC_MESSAGES
./usr/share/locale/lt_LT.ISO8859-4
./usr/share/locale/lt_LT.ISO8859-4/LC_MESSAGES
./usr/share/locale/lt_LT.UTF-8
./usr/share/locale/lt_LT.UTF-8/LC_MESSAGES
./usr/share/locale/nb
./usr/share/locale/nb/LC_MESSAGES
./usr/share/locale/nb_NO.ISO8859-1
./usr/share/locale/nb_NO.ISO8859-1/LC_MESSAGES
./usr/share/locale/nb_NO.ISO8859-15
./usr/share/locale/nb_NO.ISO8859-15/LC_MESSAGES
./usr/share/locale/nb_NO.UTF-8
./usr/share/locale/nb_NO.UTF-8/LC_MESSAGES
./usr/share/locale/nn_NO.ISO8859-1
./usr/share/locale/nn_NO.ISO8859-1/LC_MESSAGES
./usr/share/locale/nn_NO.ISO8859-15
./usr/share/locale/nn_NO.ISO8859-15/LC_MESSAGES
./usr/share/locale/nn_NO.UTF-8
./usr/share/locale/nn_NO.UTF-8/LC_MESSAGES
./usr/share/locale/nl
./usr/share/locale/nl/LC_MESSAGES
./usr/share/locale/nl_BE.ISO8859-1
./usr/share/locale/nl_BE.ISO8859-1/LC_MESSAGES
./usr/share/locale/nl_BE.ISO8859-15
./usr/share/locale/nl_BE.ISO8859-15/LC_MESSAGES
./usr/share/locale/nl_BE.UTF-8
./usr/share/locale/nl_BE.UTF-8/LC_MESSAGES
./usr/share/locale/nl_NL.ISO8859-1
./usr/share/locale/nl_NL.ISO8859-1/LC_MESSAGES
./usr/share/locale/nl_NL.ISO8859-15
./usr/share/locale/nl_NL.ISO8859-15/LC_MESSAGES
./usr/share/locale/nl_NL.UTF-8
./usr/share/locale/nl_NL.UTF-8/LC_MESSAGES
./usr/share/locale/nn
./usr/share/locale/nn/LC_MESSAGES
./usr/share/locale/no
./usr/share/locale/no/LC_MESSAGES
./usr/share/locale/no@nynorsk
./usr/share/locale/no@nynorsk/LC_MESSAGES
./usr/share/locale/pl
./usr/share/locale/pl/LC_MESSAGES
./usr/share/locale/pl_PL.ISO8859-2
./usr/share/locale/pl_PL.ISO8859-2/LC_MESSAGES
./usr/share/locale/pl_PL.UTF-8
./usr/share/locale/pl_PL.UTF-8/LC_MESSAGES
./usr/share/locale/pt
./usr/share/locale/pt/LC_MESSAGES
./usr/share/locale/pt_BR
./usr/share/locale/pt_BR.ISO8859-1
./usr/share/locale/pt_BR.ISO8859-1/LC_MESSAGES
./usr/share/locale/pt_BR.UTF-8
./usr/share/locale/pt_BR.UTF-8/LC_MESSAGES
./usr/share/locale/pt_BR/LC_MESSAGES
./usr/share/locale/pt_PT.ISO8859-1
./usr/share/locale/pt_PT.ISO8859-1/LC_MESSAGES
./usr/share/locale/pt_PT.ISO8859-15
./usr/share/locale/pt_PT.ISO8859-15/LC_MESSAGES
./usr/share/locale/pt_PT.UTF-8
./usr/share/locale/pt_PT.UTF-8/LC_MESSAGES
./usr/share/locale/ro
./usr/share/locale/ro/LC_MESSAGES
./usr/share/locale/ro_RO.ISO8859-2
./usr/share/locale/ro_RO.ISO8859-2/LC_MESSAGES
./usr/share/locale/ro_RO.UTF-8
./usr/share/locale/ro_RO.UTF-8/LC_MESSAGES
./usr/share/locale/ru
./usr/share/locale/ru/LC_MESSAGES
./usr/share/locale/ru_BY.CP1251
./usr/share/locale/ru_BY.CP1251/LC_MESSAGES
./usr/share/locale/ru_BY.UTF-8
./usr/share/locale/ru_BY.UTF-8/LC_MESSAGES
./usr/share/locale/ru_RU.CP1251
./usr/share/locale/ru_RU.CP1251/LC_MESSAGES
./usr/share/locale/ru_RU.CP866
./usr/share/locale/ru_RU.CP866/LC_MESSAGES
./usr/share/locale/ru_RU.ISO8859-5
./usr/share/locale/ru_RU.ISO8859-5/LC_MESSAGES
./usr/share/locale/ru_RU.KOI8-R
./usr/share/locale/ru_RU.KOI8-R/LC_MESSAGES
./usr/share/locale/ru_RU.UTF-8
./usr/share/locale/ru_RU.UTF-8/LC_MESSAGES
./usr/share/locale/sk
./usr/share/locale/sk/LC_MESSAGES
./usr/share/locale/sk_SK.ISO8859-2
./usr/share/locale/sk_SK.ISO8859-2/LC_MESSAGES
./usr/share/locale/sk_SK.UTF-8
./usr/share/locale/sk_SK.UTF-8/LC_MESSAGES
./usr/share/locale/sl
./usr/share/locale/sl/LC_MESSAGES
./usr/share/locale/sl_SI.ISO8859-2
./usr/share/locale/sl_SI.ISO8859-2/LC_MESSAGES
./usr/share/locale/sl_SI.UTF-8
./usr/share/locale/sl_SI.UTF-8/LC_MESSAGES
./usr/share/locale/sr
./usr/share/locale/sr/LC_MESSAGES
./usr/share/locale/sr_Cyrl_ME.ISO8859-5
./usr/share/locale/sr_Cyrl_ME.ISO8859-5/LC_MESSAGES
./usr/share/locale/sr_Cyrl_ME.UTF-8
./usr/share/locale/sr_Cyrl_ME.UTF-8/LC_MESSAGES
./usr/share/locale/sr_Latn_ME.ISO8859-2
./usr/share/locale/sr_Latn_ME.ISO8859-2/LC_MESSAGES
./usr/share/locale/sr_Latn_ME.UTF-8
./usr/share/locale/sr_Cyrl_RS.ISO8859-5
./usr/share/locale/sr_Cyrl_RS.ISO8859-5/LC_MESSAGES
./usr/share/locale/sr_Cyrl_RS.UTF-8
./usr/share/locale/sr_Cyrl_RS.UTF-8/LC_MESSAGES
./usr/share/locale/sr_Latn_ME.UTF-8/LC_MESSAGES
./usr/share/locale/sr_Latn_RS.ISO8859-2
./usr/share/locale/sr_Latn_RS.ISO8859-2/LC_MESSAGES
./usr/share/locale/sr_Latn_RS.UTF-8
./usr/share/locale/sr_Latn_RS.UTF-8/LC_MESSAGES
./usr/share/locale/sv
./usr/share/locale/sv/LC_MESSAGES
./usr/share/locale/sv_SE.ISO8859-1
./usr/share/locale/sv_SE.ISO8859-1/LC_MESSAGES
./usr/share/locale/sv_SE.ISO8859-15
./usr/share/locale/sv_SE.ISO8859-15/LC_MESSAGES
./usr/share/locale/sv_SE.UTF-8
./usr/share/locale/sv_SE.UTF-8/LC_MESSAGES
./usr/share/locale/tr
./usr/share/locale/tr/LC_MESSAGES
./usr/share/locale/tr_TR.ISO8859-9
./usr/share/locale/tr_TR.ISO8859-9/LC_MESSAGES
./usr/share/locale/tr_TR.UTF-8
./usr/share/locale/tr_TR.UTF-8/LC_MESSAGES
./usr/share/locale/uk
./usr/share/locale/uk/LC_MESSAGES
./usr/share/locale/uk_UA.CP1251
./usr/share/locale/uk_UA.CP1251/LC_MESSAGES
./usr/share/locale/uk_UA.ISO8859-5
./usr/share/locale/uk_UA.ISO8859-5/LC_MESSAGES
./usr/share/locale/uk_UA.KOI8-U
./usr/share/locale/uk_UA.KOI8-U/LC_MESSAGES
./usr/share/locale/uk_UA.UTF-8
./usr/share/locale/uk_UA.UTF-8/LC_MESSAGES
./usr/share/locale/zh_CN
./usr/share/locale/zh_CN.GB18030
./usr/share/locale/zh_CN.GB18030/LC_MESSAGES
./usr/share/locale/zh_CN.UTF-8
./usr/share/locale/zh_CN.UTF-8/LC_MESSAGES
./usr/share/locale/zh_CN.eucCN
./usr/share/locale/zh_CN.eucCN/LC_MESSAGES
./usr/share/locale/zh_CN/LC_MESSAGES
./usr/share/locale/zh_HK.Big5hkscs
./usr/share/locale/zh_HK.Big5hkscs/LC_MESSAGES
./usr/share/locale/zh_HK.UTF-8
./usr/share/locale/zh_HK.UTF-8/LC_MESSAGES
./usr/share/locale/zh_TW
./usr/share/locale/zh_TW.Big5
./usr/share/locale/zh_TW.Big5/LC_MESSAGES
./usr/share/locale/zh_TW.UTF-8
./usr/share/locale/zh_TW.UTF-8/LC_MESSAGES
./usr/share/locale/zh_TW.eucTW
./usr/share/locale/zh_TW.eucTW/LC_MESSAGES
./usr/share/locale/zh_TW/LC_MESSAGES
./usr/share/lua
./usr/share/lua/5.3
./usr/share/misc
./usr/share/mk
./usr/share/nls
./usr/share/nls/C
./usr/share/nls/Pig
./usr/share/nls/ca
./usr/share/nls/cs
./usr/share/nls/de
./usr/share/nls/es
./usr/share/nls/es_ES.ISO8859-1
./usr/share/nls/fi
./usr/share/nls/fr
./usr/share/nls/gl_ES.ISO8859-1
./usr/share/nls/hu_HU.ISO8859-2
./usr/share/nls/ja_JP.SJIS
./usr/share/nls/ja_JP.UTF-8
./usr/share/nls/ja_JP.eucJP
./usr/share/nls/nl
./usr/share/nls/no
./usr/share/nls/pl
./usr/share/nls/pt_BR.ISO8859-1
./usr/share/nls/ru_RU.KOI8-R
./usr/share/nls/sk
./usr/share/nls/sv
./usr/share/nls/uk_UA.UTF-8
./usr/share/nls/zh_CN.UTF-8
./usr/share/nvi
./usr/share/nvi/catalog
./usr/share/terminfo
@@ -233,6 +701,25 @@
./usr/var/db/pkg
./usr/var/run
./var
./var/chroot
./var/chroot/named
./var/chroot/named/dev
./var/chroot/named/etc
./var/chroot/named/etc/namedb
./var/chroot/named/etc/namedb/cache mode=0775 uname=named gname=named
./var/chroot/named/etc/namedb/keys type=dir mode=0775 uname=named gname=named
./var/chroot/named/usr
./var/chroot/named/usr/libexec
./var/chroot/named/var
./var/chroot/named/var/run mode=0775 gname=named
./var/chroot/named/var/run/lwresd mode=0775 gname=named
./var/chroot/named/var/run/named mode=0775 gname=named
./var/chroot/named/var/tmp mode=01775 gname=named
./var/chroot/rtadvd type=dir mode=0755
./var/chroot/rtadvd/etc type=dir mode=0755
./var/chroot/rtadvd/var type=dir mode=0755
./var/chroot/rtadvd/var/run type=dir mode=0775 gname=_rtadvd
./var/chroot/tcpdump mode=0755
./var/db
./var/db/obsolete
./var/db/xdm
@@ -241,11 +728,14 @@
./var/heimdal
./var/mail mode=1777
./var/run
./var/run/lwresd mode=0775 gname=named
./var/run/named mode=0775 gname=named
./var/spool
./var/spool/ftp
./var/spool/ftp/bin
./var/spool/ftp/etc
./var/spool/ftp/hidden #breaks cd image generation with non-root users: mode=0111
./var/www
# Directories with special access rights
/set type=dir uid=0 gid=0 mode=1777
@@ -256,6 +746,7 @@
./usr/tests/minix-posix
./usr/tests/minix-posix/blocktest
./usr/tests/minix-posix/ddekit
./usr/tests/minix-posix/rmibtest
# this one is for term(1)
/set type=dir uid=0 gid=5 mode=775

View File

@@ -13,8 +13,7 @@
# with diff(1)s if $check_changelist is enabled.
#
#__MINIX: gname is not wheel
/set uname=root gname=operator
/set uname=root gname=wheel
. type=dir mode=0755

78
etc/named.conf Normal file
View File

@@ -0,0 +1,78 @@
# $NetBSD: named.conf,v 1.7 2013/04/25 20:28:05 christos Exp $
# boot file for secondary name server
# Note that there should be one primary entry for each SOA record.
# If you cannot get DNSSEC to work, and you see the following message:
# DNSKEY: verify failed due to bad signature (keyid=19036): \
# RRSIG validity period has not begun
# Fix your clock. You can comment out the dnssec entries temporarily to
# get to an ntp server.
options {
directory "/etc/namedb";
dnssec-enable yes;
dnssec-validation auto;
dnssec-lookaside auto;
managed-keys-directory "keys";
bindkeys-file "bind.keys";
allow-recursion { localhost; localnets; };
#
# This forces all queries to come from port 53; might be
# needed for firewall traversals but should be avoided if
# at all possible because of the risk of spoofing attacks.
#
#query-source address * port 53;
};
zone "." {
type hint;
file "root.cache";
};
zone "localhost" {
type master;
file "localhost";
};
zone "127.IN-ADDR.ARPA" {
type master;
file "127";
};
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" {
type master;
file "loopback.v6";
};
# example secondary server config:
#
# zone "Berkeley.EDU" {
# type slave;
# file "berkeley.edu.cache";
# masters {
# 128.32.130.11;
# 128.32.133.1;
# };
# };
# zone "32.128.IN-ADDR.ARPA" {
# type slave;
# file "128.32.cache";
# masters {
# 128.32.130.11;
# 128.32.133.1;
# };
# };
# example primary server config:
#
# zone "Berkeley.EDU" {
# type master;
# file "berkeley.edu";
# };
# zone "32.128.IN-ADDR.ARPA" {
# type master;
# file "128.32";
# };

11
etc/namedb/127 Normal file
View File

@@ -0,0 +1,11 @@
; $NetBSD: 127,v 1.4 2001/01/28 06:59:31 itojun Exp $
$TTL 3600
@ IN SOA netbsd.org. hostmaster.netbsd.org. (
1999012100 ; Serial
3600 ; Refresh
300 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS localhost.
1.0.0 IN PTR localhost.

7
etc/namedb/Makefile Normal file
View File

@@ -0,0 +1,7 @@
# $NetBSD: Makefile,v 1.3 2013/04/25 17:02:29 christos Exp $
CONFIGFILES= 127 root.cache localhost loopback.v6 bind.keys
FILESDIR= /etc/namedb
FILESMODE= 644
.include <bsd.prog.mk>

47
etc/namedb/bind.keys Normal file
View File

@@ -0,0 +1,47 @@
/* $NetBSD: bind.keys,v 1.1 2013/04/25 17:02:29 christos Exp $ */
/* Id: bind.keys,v 1.7 2011-01-03 23:45:07 each Exp */
# The bind.keys file is used to override the built-in DNSSEC trust anchors
# which are included as part of BIND 9. As of the current release, the only
# trust anchors it contains are those for the DNS root zone ("."), and for
# the ISC DNSSEC Lookaside Validation zone ("dlv.isc.org"). Trust anchors
# for any other zones MUST be configured elsewhere; if they are configured
# here, they will not be recognized or used by named.
#
# The built-in trust anchors are provided for convenience of configuration.
# They are not activated within named.conf unless specifically switched on.
# To use the built-in root key, set "dnssec-validation auto;" in
# named.conf options. To use the built-in DLV key, set
# "dnssec-lookaside auto;". Without these options being set,
# the keys in this file are ignored.
#
# This file is NOT expected to be user-configured.
#
# These keys are current as of January 2011. If any key fails to
# initialize correctly, it may have expired. In that event you should
# replace this file with a current version. The latest version of
# bind.keys can always be obtained from ISC at https://www.isc.org/bind-keys.
managed-keys {
# ISC DLV: See https://www.isc.org/solutions/dlv for details.
# NOTE: This key is activated by setting "dnssec-lookaside auto;"
# in named.conf.
dlv.isc.org. initial-key 257 3 5 "BEAAAAPHMu/5onzrEE7z1egmhg/WPO0+juoZrW3euWEn4MxDCE1+lLy2
brhQv5rN32RKtMzX6Mj70jdzeND4XknW58dnJNPCxn8+jAGl2FZLK8t+
1uq4W+nnA3qO2+DL+k6BD4mewMLbIYFwe0PG73Te9fZ2kJb56dhgMde5
ymX4BI/oQ+cAK50/xvJv00Frf8kw6ucMTwFlgPe+jnGxPPEmHAte/URk
Y62ZfkLoBAADLHQ9IrS2tryAe7mbBZVcOwIeU/Rw/mRx/vwwMCTgNboM
QKtUdvNXDrYJDSHZws3xiRXF1Rf+al9UmZfSav/4NWLKjHzpT59k/VSt
TDN0YUuWrBNh";
# ROOT KEY: See https://data.iana.org/root-anchors/root-anchors.xml
# for current trust anchor information.
# NOTE: This key is activated by setting "dnssec-validation auto;"
# in named.conf.
. initial-key 257 3 8 "AwEAAagAIKlVZrpC6Ia7gEzahOR+9W29euxhJhVVLOyQbSEW0O8gcCjF
FVQUTf6v58fLjwBd0YI0EzrAcQqBGCzh/RStIoO8g0NfnfL2MTJRkxoX
bfDaUeVPQuYEhg37NZWAJQ9VnMVDxP/VHL496M/QZxkjf5/Efucp2gaD
X6RS6CXpoY68LsvPVjR0ZSwzz1apAzvN9dlzEheX7ICJBBtuA6G3LQpz
W5hOA2hzCTMjJPJ8LbqF6dsV6DoBQzgul0sGIcGOYl7OyQdXfZ57relS
Qageu+ipAdTTJ25AsRTAoub8ONGcLmqrAmRLKBP1dfwhYB4N7knNnulq
QxA+Uk1ihz0=";
};

12
etc/namedb/localhost Normal file
View File

@@ -0,0 +1,12 @@
; $NetBSD: localhost,v 1.2 2000/05/19 13:07:37 sommerfeld Exp $
$TTL 3600
@ IN SOA netbsd.org. hostmaster.netbsd.org. (
1999012100 ; Serial
3600 ; Refresh
300 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS localhost.
localhost. IN A 127.0.0.1
IN AAAA ::1

11
etc/namedb/loopback.v6 Normal file
View File

@@ -0,0 +1,11 @@
; $NetBSD: loopback.v6,v 1.3 2002/01/22 03:27:24 itojun Exp $
$TTL 3600
@ IN SOA netbsd.org. hostmaster.netbsd.org. (
1999012100 ; Serial
3600 ; Refresh
300 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS localhost.
IN PTR localhost.

91
etc/namedb/root.cache Normal file
View File

@@ -0,0 +1,91 @@
; $NetBSD: root.cache,v 1.18 2014/07/01 03:33:28 taca Exp $
; This file holds the information on root name servers needed to
; initialize cache of Internet domain name servers
; (e.g. reference this file in the "cache . <file>"
; configuration file of BIND domain name servers).
;
; This file is made available by InterNIC
; under anonymous FTP as
; file /domain/named.cache
; on server FTP.INTERNIC.NET
; -OR- RS.INTERNIC.NET
;
; last update: June 2, 2014
; related version of root zone: 2014060201
;
; formerly NS.INTERNIC.NET
;
. 3600000 IN NS A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
A.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:BA3E::2:30
;
; FORMERLY NS1.ISI.EDU
;
. 3600000 NS B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET. 3600000 A 192.228.79.201
B.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:84::B
;
; FORMERLY C.PSI.NET
;
. 3600000 NS C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
C.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2::C
;
; FORMERLY TERP.UMD.EDU
;
. 3600000 NS D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET. 3600000 A 199.7.91.13
D.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2D::D
;
; FORMERLY NS.NASA.GOV
;
. 3600000 NS E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
;
; FORMERLY NS.ISC.ORG
;
. 3600000 NS F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
F.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2F::F
;
; FORMERLY NS.NIC.DDN.MIL
;
. 3600000 NS G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
;
; FORMERLY AOS.ARL.ARMY.MIL
;
. 3600000 NS H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
H.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:1::803F:235
;
; FORMERLY NIC.NORDU.NET
;
. 3600000 NS I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
I.ROOT-SERVERS.NET. 3600000 AAAA 2001:7FE::53
;
; OPERATED BY VERISIGN, INC.
;
. 3600000 NS J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30
J.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:C27::2:30
;
; OPERATED BY RIPE NCC
;
. 3600000 NS K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
K.ROOT-SERVERS.NET. 3600000 AAAA 2001:7FD::1
;
; OPERATED BY ICANN
;
. 3600000 NS L.ROOT-SERVERS.NET.
L.ROOT-SERVERS.NET. 3600000 A 199.7.83.42
L.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:3::42
;
; OPERATED BY WIDE
;
. 3600000 NS M.ROOT-SERVERS.NET.
M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
M.ROOT-SERVERS.NET. 3600000 AAAA 2001:DC3::35
; End of File

29
etc/nsswitch.conf Normal file
View File

@@ -0,0 +1,29 @@
# $NetBSD: nsswitch.conf,v 1.6 2009/10/25 00:17:06 tsarna Exp $
#
# nsswitch.conf(5) -
# name service switch configuration file
#
# These are the defaults in libc
#
group: compat
group_compat: nis
hosts: files dns
netgroup: files [notfound=return] nis
networks: files
passwd: compat
passwd_compat: nis
shells: files
# List of supported sources for each database
#
# group: compat, dns, files, nis
# group_compat: dns, nis
# hosts: dns, files, nis, mdnsd, multicast_dns
# netgroup: files, nis
# networks: dns, files, nis
# passwd: compat, dns, files, nis
# passwd_compat: dns, nis
# shells: dns, files, nis

9
etc/passwd.conf Normal file
View File

@@ -0,0 +1,9 @@
# $NetBSD: passwd.conf,v 1.3 2010/12/03 21:40:04 jmmv Exp $
#
# passwd.conf(5) -
# password configuration file
#
default:
localcipher = sha1
ypcipher = old

696
etc/rc Executable file → Normal file
View File

@@ -1,246 +1,468 @@
# /etc/rc - System startup script run by init before going multiuser.
#!/bin/sh
#
# $NetBSD: rc,v 1.170 2014/07/29 20:39:16 apb Exp $
#
# rc --
# Run the scripts in /etc/rc.d with rcorder, and log output
# to /var/run/rc.log.
if sysenv bootramdisk >/dev/null
then
/bin/sh /etc/rc.ramdisk
fi
# Are we booting from CD?
bootcd="`/bin/sysenv bootcd`"
exec >/dev/log
exec 2>/dev/log
exec </dev/null
# System startup script run by init(8) on autoboot or after single-user.
# Output and error are redirected to console by init, and the console
# is the controlling terminal.
export HOME=/
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
umask 022
# Same settings as in the default /etc/profile. We do not source this file
# as the system administrator may decide to change those values for his users.
RC_TZ=/etc/rc.timezone
PATH=/usr/local/sbin:/usr/pkg/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/pkg/bin:/usr/bin:/bin
if [ -e ./rc.subr ] ; then
. ./rc.subr # for testing
else
. /etc/rc.subr
fi
. /etc/rc.conf
_rc_conf_loaded=true
# Set TERM to minix if not present.
TERM="${TERM-minix}"
: ${RC_LOG_FILE:="/var/run/rc.log"}
export TERM PATH
# rc.subr redefines echo and printf. Undo that here.
unset echo ; unalias echo
unset printf ; unalias printf
# Local variables
ARCH="`sysenv arch`"
usage()
{
echo >&2 "Usage: $0 [-saf] autoboot|start|stop|down"
exec intr sh
}
up()
{
# Function to dynamically start a system service
opt=""
prefix=$(expr "$1 " : '\(-\)')
if [ "$prefix" = "-" ];
then
opt=$1
shift
fi
service=$1
shift
service $opt up /service/$service "$@"
}
edit()
{
# Function to dynamically edit system service settings
opt=""
prefix=$(expr "$1 " : '\(-\)')
if [ "$prefix" = "-" ];
then
opt=$1
shift
fi
service=$1
shift
# Assume binaries are always in /service or /usr/pkg/service
binlocation=/service/$service
if [ ! -x $binlocation ]
then binlocation=/usr/pkg/service/$service
fi
# Mostly to find init...
if [ ! -x $binlocation ]
then binlocation=/sbin/$service
fi
service $opt edit $binlocation -label $service "$@"
}
while getopts 'saf' opt
do
case $opt in
s) sflag=t ;; # Single user
a) aflag=t ;; # Ask for /usr
f) fflag=-f ;; # Force a full file system check
*) usage
esac
done
shift `expr $OPTIND - 1`
case "$#:$1" in
1:start|1:stop|1:down|1:autoboot)
action=$1
;;
*) usage
esac
case $action in
autoboot|start)
# If booting from CD, we want some directories to be ramdisks
if [ ! -z "$bootcd" ]
then
. /etc/rc.cd
fi
# National keyboard?
test -f /etc/keymap && loadkeys /etc/keymap
# options for fsck. default is -r, which prompts the user for repairs.
optname=fsckopts
fsckopts=-p
if sysenv $optname >/dev/null
then fsckopts="`sysenv $optname`"
fi
if [ "`sysenv debug_fkeys`" != 0 ]
then
up -n is -period 5HZ
fi
# Set timezone.
export TZ=GMT0
if [ -f "$RC_TZ" ]
then
. "$RC_TZ"
fi
# Start real time clock driver & set system time, otherwise default date.
up readclock.drv
readclock -q || date 201301010000
# We are not shutting down.
if [ -f /etc/nologin ]
then
rm -f /etc/nologin
fi
# Use MFS binary only from kernel image?
if [ "`sysenv bin_img`" = 1 ]
then
bin_img="-i "
fi
# fsck + mount using /etc/fstab.
fsck -x / $fflag $fsckopts
mount -a
if [ -z "`sysenv bootramdisk`" ]
then
# Unmount and free now defunct ramdisk
umount /dev/imgrd > /dev/null || echo "Failed to unmount boot ramdisk"
ramdisk 0 /dev/imgrd || echo "Failed to free boot ramdisk"
fi
# Initialize files.
>/var/run/utmp # /etc/utmp keeps track of logins
>/var/run/utmpx # /etc/utmpx keeps track of logins
# Edit settings for boot system services
if [ "`sysenv skip_boot_config`" != 1 ]
then
edit rs
edit vm
edit pm
edit sched
edit vfs
edit ds
edit tty
edit memory
edit mib
edit pfs
edit init
#
# Keep a copy around to recover the root FS from crashes
#
rootline=`cat /etc/mtab | grep "on / "`
rootfs=fs_`echo "$rootline" | cut -d' ' -f1 | cut -d'/' -f3`
roottype=`echo "$rootline" | cut -d' ' -f5`
service -c edit /service/$roottype -label $rootfs
fi
if [ "$sflag" ]
then
echo "Single user. Press ^D to resume multiuser startup."
intr sh
echo
fi
echo "Multiuser startup in progress ..."
case "`printroot -r`":$bootcd in
/dev/ram:)
# Remove boot-only things to make space,
# unless booting from CD, in which case we need them.
rm -rf /boot
# put the compiler on ram
cp /usr/lib/em* /usr/lib/cpp* /lib
esac
echo -n "Starting hotplugging infrastructure... "
rm -f /var/run/devmand.pid
devmand -d /etc/devmand -d /usr/pkg/etc/devmand &
echo "done."
# Things should be alright now.
;;
down|stop)
sync
if [ -f /var/run/devmand.pid ]
then
kill -INT `cat /var/run/devmand.pid`
# without this delay the following will
# be printed in the console
# RS: devman not running?
sleep 1
fi
#
# usbd needs to be stopped exactly
# at this stage(before stopping devman
# and after stopping the services
# stated by devmand)
if [ -x /usr/pkg/etc/rc.d/usbd ]
then
/usr/pkg/etc/rc.d/usbd stop
fi
if [ -x /service/usbd ]
then
service down usbd
fi
# Tell RS server we're going down.
service shutdown
;;
esac
# Further initialization.
test -f /usr/etc/rc && sh /usr/etc/rc $action
test -f /usr/local/etc/rc && sh /usr/local/etc/rc $action
# Any messages?
if [ "$action" = start -o "$action" = autoboot ]
then if [ -f /etc/issue ]
then cat /etc/issue
fi
if ! checkyesno rc_configured; then
echo "/etc/rc.conf is not configured. Multiuser boot aborted."
exit 1
fi
exit 0
if [ "$1" = autoboot ]; then
autoboot=yes
rc_fast=yes # run_rc_command(): do fast booting
fi
#
# Completely ignore INT and QUIT at the outer level. The rc_real_work()
# function should do something different.
#
trap '' INT QUIT
#
# This string will be used to mark lines of meta-data sent over the pipe
# from the rc_real_work() function to the rc_postprocess() function. Lines
# not so marked are assumed to be output from rc.d scripts.
#
# This string is long and unique to ensure that it does not accidentally
# appear in output from any rc.d script. It must not contain any
# characters that are special to glob expansion ('*', '?', '[', or ']').
#
rc_metadata_prefix="$0:$$:metadata:";
# Child scripts may sometimes want to print directly to the original
# stdout and stderr, bypassing the pipe to the postprocessor. These
# _rc_*_fd variables are private, shared with /etc/rc.subr, but not
# intended to be used directly by child scripts. (Child scripts
# may use rc.subr's no_rc_postprocess function.)
#
_rc_original_stdout_fd=7; export _rc_original_stdout_fd
_rc_original_stderr_fd=8; export _rc_original_stderr_fd
eval "exec ${_rc_original_stdout_fd}>&1"
eval "exec ${_rc_original_stderr_fd}>&2"
#
# rc_real_work
# Do the real work. Output from this function will be piped into
# rc_postprocess(), and some of the output will be marked as
# metadata.
#
# The body of this function is defined using (...), not {...}, to force
# it to run in a subshell.
#
rc_real_work()
(
stty status '^T'
# print_rc_metadata() wants to be able to print to the pipe
# that goes to our postprocessor, even if its in a context
# with redirected output.
#
_rc_postprocessor_fd=9 ; export _rc_postprocessor_fd
_rc_pid=$$ ; export _rc_pid
eval "exec ${_rc_postprocessor_fd}>&1"
# Print a metadata line when we exit
#
trap 'es=$?; print_rc_metadata "exit:$es"; trap "" 0; exit $es' 0
# Set shell to ignore SIGINT, but children will not ignore it.
# Shell catches SIGQUIT and returns to single user.
#
trap : INT
trap '_msg="Boot interrupted at $(date)";
print_rc_metadata "interrupted:${_msg}";
exit 1' QUIT
print_rc_metadata "start:$(date)"
#
# The stop_boot() function in rc.subr may kill $RC_PID. We want
# it to kill the subshell running this rc_real_work() function,
# rather than killing the parent shell, because we want the
# rc_postprocess() function to be able to log the error
# without being killed itself.
#
# "$$" is the pid of the top-level shell, not the pid of the
# subshell that's executing this function. The command below
# tentatively assumes that the parent of the "/bin/sh -c ..."
# process will be the current subshell, and then uses "kill -0
# ..." to check the result. If the "/bin/sh -c ..." process
# fails, or returns the pid of an ephemeral process that exits
# before the "kill" command, then we fall back to using "$$".
#
RC_PID=$(/bin/sh -c 'ps -p $$ -o ppid=') || RC_PID=$$
kill -0 $RC_PID >/dev/null 2>&1 || RC_PID=$$
#
# As long as process $RC_PID is still running, send a "nop"
# metadata message to the postprocessor every few seconds.
# This should help flush partial lines that may appear when
# rc.d scripts that are NOT marked with "KEYWORD: interactive"
# nevertheless attempt to print prompts and wait for input.
#
(
# First detach from tty, to avoid intercepting SIGINFO.
eval "exec ${_rc_original_stdout_fd}<&-"
eval "exec ${_rc_original_stderr_fd}<&-"
exec </dev/null >/dev/null 2>&1
while kill -0 $RC_PID ; do
print_rc_metadata "nop"
sleep 3
done
) &
#
# Get a list of all rc.d scripts, and use rcorder to choose
# what order to execute them.
#
# For testing, allow RC_FILES_OVERRIDE from the environment to
# override this.
#
print_rc_metadata "cmd-name:rcorder"
scripts=$(for rcd in ${rc_directories:-/etc/rc.d}; do
test -d ${rcd} && echo ${rcd}/*;
done)
files=$(rcorder -s nostart ${rc_rcorder_flags} ${scripts})
print_rc_metadata "cmd-status:rcorder:$?"
if [ -n "${RC_FILES_OVERRIDE}" ]; then
files="${RC_FILES_OVERRIDE}"
fi
#
# Run the scripts in order.
#
for _rc_elem in $files; do
print_rc_metadata "cmd-name:$_rc_elem"
run_rc_script $_rc_elem start
print_rc_metadata "cmd-status:$_rc_elem:$?"
done
print_rc_metadata "end:$(date)"
exit 0
)
#
# rc_postprocess
# Post-process the output from the rc_real_work() function. For
# each line of input, we have to decide whether to print the line
# to the console, print a twiddle on the console, print a line to
# the log, or some combination of these.
#
# If rc_silent is true, then suppress most output, instead running
# rc_silent_cmd (typically "twiddle") for each line.
#
# The body of this function is defined using (...), not {...}, to force
# it to run in a subshell.
#
# We have to deal with the following constraints:
#
# * There may be no writable file systems early in the boot, so
# any use of temporary files would be problematic.
#
# * Scripts run during the boot may clear /tmp and/var/run, so even
# if they are writable, using those directories too early may be
# problematic. We assume that it's safe to write to our log file
# after the mountcritlocal script has run.
#
# * /usr/bin/tee cannot be used because the /usr file system may not
# be mounted early in the boot.
#
# * All calls to the rc_log_message and rc_log_flush functions must be
# from the same subshell, otherwise the use of a shell variable to
# buffer log messages will fail.
#
rc_postprocess()
(
local line
local before after
local IFS=''
# Try quite hard to flush the log to disk when we exit.
trap 'es=$?; rc_log_flush FORCE; trap "" 0; exit $es' 0
yesno_to_truefalse rc_silent 2>/dev/null
while read -r line ; do
case "$line" in
"${rc_metadata_prefix}"*)
after="${line#*"${rc_metadata_prefix}"}"
rc_postprocess_metadata "${after}"
;;
*"${rc_metadata_prefix}"*)
# magic string is present, but not at the start of
# the line. Treat it as a partial line of
# ordinary data, followed by a line of metadata.
before="${line%"${rc_metadata_prefix}"*}"
rc_postprocess_partial_line "${before}"
after="${line#*"${rc_metadata_prefix}"}"
rc_postprocess_metadata "${after}"
;;
*)
rc_postprocess_plain_line "${line}"
;;
esac
done
# If we get here, then the rc_real_work() function must have
# exited uncleanly. A clean exit would have been accompanied by
# a line of metadata that would have prevented us from getting
# here.
#
exit 1
)
#
# rc_postprocess_plain_line string
# $1 is a string representing a line of output from one of the
# rc.d scripts. Append the line to the log, and also either
# display the line on the console, or run $rc_silent_cmd,
# depending on the value of $rc_silent.
#
rc_postprocess_plain_line()
{
local line="$1"
rc_log_message "${line}"
if $rc_silent; then
eval "$rc_silent_cmd"
else
printf "%s\n" "${line}"
fi
}
#
# rc_postprocess_partial_line string
# This is just like rc_postprocess_plain_line, except that
# a newline is not appended to the string.
#
rc_postprocess_partial_line()
{
local line="$1"
rc_log_message_n "${line}"
if $rc_silent; then
eval "$rc_silent_cmd"
else
printf "%s" "${line}"
fi
}
#
# rc_postprocess_metadata string
# $1 is a string containing metadata from the rc_real_work()
# function. The rc_metadata_prefix marker should already
# have been removed before the string is passed to this function.
# Take appropriate action depending on the content of the string.
#
rc_postprocess_metadata()
{
local metadata="$1"
local keyword args
local msg
local IFS=':'
# given metadata="bleep:foo bar:baz",
# set keyword="bleep", args="foo bar:baz",
# $1="foo bar", $2="baz"
#
keyword="${metadata%%:*}"
args="${metadata#*:}"
set -- $args
case "$keyword" in
start)
# Marks the start of the entire /etc/rc script.
# $args contains a date/time.
rc_log_message "[$0 starting at $args]"
if ! $rc_silent; then
# MINIX 3: the clock has not been set yet!
#printf "%s\n" "$args"
# MINIX 3: end
fi
;;
cmd-name)
# Marks the start of a child script (usually one of
# the /etc/rc.d/* scripts).
rc_log_message "[running $1]"
;;
cmd-status)
# Marks the end of a child script.
# $1 is a command name, $2 is the command's exit status.
# If the command failed, report it, and add it to a list.
if [ "$2" != 0 ]; then
rc_failures="${rc_failures}${rc_failures:+ }$1"
msg="$1 $(human_exit_code $2)"
rc_log_message "$msg"
if ! $rc_silent; then
printf "%s\n" "$msg"
fi
fi
# After the mountcritlocal script has finished, it's
# OK to flush the log to disk
case "$1" in
*/mountcritlocal)
rc_log_flush OK
;;
esac
;;
nop)
# Do nothing.
# This has the side effect of flushing partial lines,
# and the echo() and printf() functions in rc.subr take
# advantage of this.
;;
note)
# Unlike most metadata messages, which should be used
# only by /etc/rc and rc.subr, the "note" message may be
# used directly by /etc.rc.d/* and similar scripts.
# It adds a note to the log file, without displaying
# it to stdout.
rc_log_message "[NOTE: $args]"
;;
end)
# Marks the end of processing, after the last child script.
# If any child scripts (or other commands) failed, report them.
#
if [ -n "$rc_failures" ]; then
rc_log_message "[failures]"
msg="The following components reported failures:"
msg="${msg}${nl}$( echo " ${rc_failures}" | fmt )"
msg="${msg}${nl}See ${RC_LOG_FILE} for more information."
rc_log_message "${msg}"
printf "%s\n" "${msg}"
fi
#
# Report the end date/time, even in silent mode
#
rc_log_message "[$0 finished at $args]"
printf "%s\n" "$args"
;;
exit)
# Marks an exit from the rc_real_work() function.
# This may be a normal or abnormal exit.
#
rc_log_message "[$0 exiting with status $1]"
exit $1
;;
interrupted)
# Marks an interrupt trapped by the rc_real_work() function.
# $args is a human-readable message.
rc_log_message "$args"
printf "%s\n" "$args"
;;
*)
# an unrecognised line of metadata
rc_log_message "[metadata:${metadata}]"
;;
esac
}
#
# rc_log_message string [...]
# Write a message to the log file, or buffer it for later.
# This function appends a newline to the message.
#
rc_log_message()
{
_rc_log_buffer="${_rc_log_buffer}${*}${nl}"
rc_log_flush
}
#
# rc_log_message_n string [...]
# Just like rc_log_message, except without appending a newline.
#
rc_log_message_n()
{
_rc_log_buffer="${_rc_log_buffer}${*}"
rc_log_flush
}
#
# rc_log_flush [OK|FORCE]
# save outstanding messages from $_rc_log_buffer to $RC_LOG_FILE.
#
# The log file is expected to reside in the /var/run directory, which
# may not be writable very early in the boot sequence, and which is
# erased a little later in the boot sequence. We therefore avoid
# writing to the file until we believe it's safe to do so. We also
# assume that it's reasonable to always append to the file, never
# truncating it.
#
# Optional argument $1 may be "OK" to report that writing to the log
# file is expected to be safe from now on, or "FORCE" to force writing
# to the log file even if it may be unsafe.
#
# Returns a non-zero status if messages could not be written to the
# file.
#
rc_log_flush()
{
#
# If $_rc_log_flush_ok is false, then it's probably too early to
# write to the log file, so don't do it, unless $1 is "FORCE".
#
: ${_rc_log_flush_ok=false}
case "$1:$_rc_log_flush_ok" in
OK:*)
_rc_log_flush_ok=true
;;
FORCE:*)
: OK just this once
;;
*:true)
: OK
;;
*)
# it's too early in the boot sequence, so don't flush
return 1
;;
esac
#
# Now append the buffer to the file. The buffer should already
# contain a trailing newline, so don't add an extra newline.
#
if [ -n "$_rc_log_buffer" ]; then
if { printf "%s" "${_rc_log_buffer}" >>"${RC_LOG_FILE}" ; } \
2>/dev/null
then
_rc_log_buffer=""
else
return 1
fi
fi
return 0
}
#
# Most of the action is in the rc_real_work() and rc_postprocess()
# functions.
#
rc_real_work "$@" 2>&1 | rc_postprocess
exit $?

View File

@@ -4,17 +4,18 @@
# TSL2550 Ambient Light Sensor
test -e /dev/tsl2550b3s39 || (cd /dev && MAKEDEV tsl2550b3s39)
/bin/service up /service/tsl2550 -dev /dev/tsl2550b3s39 \
/sbin/minix-service up /service/tsl2550 -dev /dev/tsl2550b3s39 \
-label tsl2550.3.39 -args 'bus=3 address=0x39' && echo -n " tsl2550"
# SHT21 Temperature and Humidity Sensor
test -e /dev/sht21b3s40 || (cd /dev && MAKEDEV sht21b3s40)
/bin/service up /service/sht21 -dev /dev/sht21b3s40 \
/sbin/minix-service up /service/sht21 -dev /dev/sht21b3s40 \
-label sht21.3.40 -args 'bus=3 address=0x40' && echo -n " sht21"
# BMP085 Temperature and Pressure Sensor
test -e /dev/bmp085b3s77 || (cd /dev && MAKEDEV bmp085b3s77)
/bin/service up /service/bmp085 -dev /dev/bmp085b3s77 \
/sbin/minix-service up /service/bmp085 -dev /dev/bmp085b3s77 \
-label bmp085.3.77 -args 'bus=3 address=0x77' && echo -n " bmp085"
daemonize tcpd http /usr/share/beaglebone/weather/weatherstation.lua
# FIXME: replace this with proper commands for inetd(8)
#daemonize tcpd http /usr/share/beaglebone/weather/weatherstation.lua

View File

@@ -23,7 +23,7 @@ create_ramdisk()
}
# Create /var ramdisk
create_ramdisk ram0 /var 256
create_ramdisk ram0 /var 768
create_ramdisk ram1 /tmp 128
create_ramdisk ram2 /usr/run 64
create_ramdisk ram3 /root 512

View File

@@ -14,8 +14,9 @@ if [ -r /etc/defaults/rc.conf ]; then
fi
# If this is not set to YES, the system will drop into single-user mode.
# MINIX 3: for now, this setting is enabled by default.
#
rc_configured=NO
rc_configured=YES
# Add local overrides below.
#

10
etc/rc.d/DAEMON Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
#
# $NetBSD: DAEMON,v 1.8 2002/03/22 04:33:57 thorpej Exp $
#
# PROVIDE: DAEMON
# REQUIRE: NETWORKING SERVERS
# This is a dummy dependency, to ensure that general purpose daemons
# are run _after_ the above are.

11
etc/rc.d/DISKS Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
#
# $NetBSD: DISKS,v 1.1 2009/04/21 16:08:57 joerg Exp $
#
# PROVIDE: DISKS
#
# This is a dummy dependency, to ensure that all disk devices are
# accessible for fsck and mountcritlocal.
#

13
etc/rc.d/LOGIN Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
#
# $NetBSD: LOGIN,v 1.7 2002/03/22 04:33:57 thorpej Exp $
#
# PROVIDE: LOGIN
# REQUIRE: DAEMON
# This is a dummy dependency to ensure user services such as xdm,
# inetd, cron and kerberos are started after everything else, incase
# the administrator has increased the system security level and
# wants to delay user logins until the system is (almost) fully
# operational.

79
etc/rc.d/Makefile Executable file
View File

@@ -0,0 +1,79 @@
# $NetBSD: Makefile,v 1.93 2015/03/30 10:58:37 chopps Exp $
.include <bsd.own.mk>
#
# NOTE:
#
# If you're adding new scripts, don't forget to update following:
# src/distrib/sets/lists/etc/mi
# src/etc/mtree/special
# src/usr.sbin/postinstall/postinstall
#
# You can find a script to visualize the dependency graph in
# src/sbin/rcorder.
# MINIX: the idea for importing rc.d scripts is basically:
# - in principle, import only the scripts for functionality that we support;
# - do not change dependencies ("REQUIRE", "BEFORE") in such scripts; rather,
# satisfy the dependencies, recursively, with the following rules;
# - for each such dependency, if it can be disabled (= it has a "rcvar"), then
# import its script as is, even if we do not support its functionality;
# - if such an unsupported dependency is enabled by default as per
# etc/defaults/rc.conf, then disable it by overriding it explicitly in
# etc/defaults/minix.rc.conf;
# - for unsupported dependencies that can not be disabled, create a stub for it
# (examples: fsck, root, mountcritlocal) but whenever relevant do try to keep
# its dependency listing intact so as not to disturb the regular ordering.
CONFIGFILES=\
DAEMON DISKS LOGIN NETWORKING SERVERS \
\
bootconf.sh \
\
dhclient dhcpcd dhcpd dhcrelay downinterfaces \
fsck ftpd \
\
\
inetd ipfilter ipsec \
\
\
local \
\
mountcritlocal mountcritremote \
named network npf \
\
pwcheck \
\
\
root rtadvd \
\
\
staticroute sysctl sysdb syslogd \
ttys \
wscons \
.if defined(__MINIX)
# MINIX: we will gradually switch over to the NetBSD rc system. For conflict
# avoidance, all MINIX-specific scripts should have "minix" in their name.
CONFIGFILES+= minixrc
.endif
FILESDIR= /etc/rc.d
FILESMODE= ${BINMODE}
.if !defined(__MINIX) # XXX needs testing first
.if ${MKX11} != "no"
CONFIGFILES+= xdm xfs fccache
FILESBUILD_xdm= yes
FILESBUILD_xfs= yes
FILESBUILD_fccache= yes
.endif # !defined(__MINIX)
.SUFFIXES: .in
.in:
${_MKTARGET_CREATE}
${TOOL_SED} -e 's,@X11ROOTDIR@,${X11ROOTDIR},g' < ${.IMPSRC} > ${.TARGET}
.endif
.include <bsd.prog.mk>

9
etc/rc.d/NETWORKING Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
#
# $NetBSD: NETWORKING,v 1.2 2002/03/22 04:33:57 thorpej Exp $
#
# PROVIDE: NETWORKING NETWORK
# This is a dummy dependency, for services which require networking
# to be operational before starting.

10
etc/rc.d/SERVERS Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
#
# $NetBSD: SERVERS,v 1.9 2002/03/22 04:33:57 thorpej Exp $
#
# PROVIDE: SERVERS
# REQUIRE: mountcritremote
# This is a dummy dependency, for early-start servers relying on
# some basic configuration.

87
etc/rc.d/bootconf.sh Executable file
View File

@@ -0,0 +1,87 @@
#!/bin/sh
#
# $NetBSD: bootconf.sh,v 1.15 2012/12/31 23:21:27 christos Exp $
#
# PROVIDE: bootconf
# REQUIRE: mountcritlocal
# KEYWORD: interactive
$_rc_subr_loaded . /etc/rc.subr
name="bootconf"
start_cmd="bootconf_start"
stop_cmd=":"
bootconf_start()
{
# Refer to newbtconf(8) for more information
#
if [ ! -e /etc/etc.current ]; then
return 0
fi
if [ -h /etc/etc.default ]; then
def=$(ls -ld /etc/etc.default 2>&1)
default="${def##*-> *etc.}"
else
default=current
fi
if [ "$default" = "current" ]; then
def=$(ls -ld /etc/etc.current 2>&1)
default="${def##*-> *etc.}"
fi
spc=""
for i in /etc/etc.*; do
name="${i##/etc/etc.}"
case $name in
current|default|\*)
continue
;;
*)
if [ "$name" = "$default" ]; then
echo -n "${spc}[${name}]"
else
echo -n "${spc}${name}"
fi
spc=" "
;;
esac
done
echo
_DUMMY=/etc/passwd
conf=${_DUMMY}
while [ ! -d /etc/etc.$conf/. ]; do
trap "conf=$default; echo; echo Using default of $default" ALRM
echo -n "Which configuration [$default] ? "
(sleep 30 && kill -ALRM $RC_PID) >/dev/null 2>&1 &
read conf
trap : ALRM
if [ -z $conf ] ; then
conf=$default
fi
if [ ! -d /etc/etc.$conf/. ]; then
conf=${_DUMMY}
fi
done
print_rc_metadata "note:Using configuration \"${conf}\""
case $conf in
current|default)
;;
*)
rm -f /etc/etc.current
ln -s etc.$conf /etc/etc.current
sync
;;
esac
if [ -f /etc/rc.conf ] ; then
. /etc/rc.conf
fi
}
load_rc_config $name
run_rc_command "$1"

22
etc/rc.d/dhclient Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/sh
#
# $NetBSD: dhclient,v 1.9 2004/08/13 18:08:03 mycroft Exp $
#
# PROVIDE: dhclient
# REQUIRE: network mountcritlocal
# BEFORE: NETWORKING
#
# Note that there no syslog logging of dhclient messages at boot because
# dhclient needs to start before services that syslog depends upon do.
#
$_rc_subr_loaded . /etc/rc.subr
name="dhclient"
rcvar=$name
command="/sbin/${name}"
pidfile="/var/run/${name}.pid"
load_rc_config $name
run_rc_command "$1"

36
etc/rc.d/dhcpcd Executable file
View File

@@ -0,0 +1,36 @@
#!/bin/sh
# PROVIDE: dhcpcd
# REQUIRE: network mountcritlocal
# BEFORE: NETWORKING
$_rc_subr_loaded . /etc/rc.subr
name=dhcpcd
rcvar=$name
command=/sbin/$name
extra_commands="reload"
load_rc_config $name
# If the last argument to dhcpcd is a valid interface and the prior argument
# is not then dhcpcd will start on one interface only and create a pidfile
# based on the interface name. See PR bin/43490.
if [ -n "$flags" ]; then
myflags=$flags
else
eval myflags=\$${name}_flags
fi
ifname="${myflags##* }"
myflags="${myflags%% $ifname}"
last_flag="${myflags##* }"
if /sbin/ifconfig "$ifname" >/dev/null 2>&1 &&
! /sbin/ifconfig "$last_flag" >/dev/null 2>&1
then
pidfile=/var/run/$name-"$ifname".pid
else
pidfile=/var/run/$name.pid
fi
unset myflags ifname last_flag
run_rc_command "$1"

28
etc/rc.d/dhcpd Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/sh
#
# $NetBSD: dhcpd,v 1.7 2014/07/17 07:17:03 spz Exp $
#
# PROVIDE: dhcpd
# REQUIRE: DAEMON
# BEFORE: LOGIN
$_rc_subr_loaded . /etc/rc.subr
name="dhcpd"
rcvar=$name
command="/usr/sbin/${name}"
start_precmd="dhcpd_precmd"
pidfile="/var/run/${name}.pid"
required_files="/etc/${name}.conf"
dhcpd_precmd()
{
if [ ! -e "/var/db/${name}.leases" ]; then
echo "Creating /var/db/${name}.leases"
touch /var/db/${name}.leases
fi
}
load_rc_config $name
run_rc_command "$1"

18
etc/rc.d/dhcrelay Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
#
# $NetBSD: dhcrelay,v 1.6 2004/08/13 18:08:03 mycroft Exp $
#
# PROVIDE: dhcrelay
# REQUIRE: DAEMON
# BEFORE: LOGIN
$_rc_subr_loaded . /etc/rc.subr
name="dhcrelay"
rcvar=$name
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
load_rc_config $name
run_rc_command "$1"

37
etc/rc.d/downinterfaces Normal file
View File

@@ -0,0 +1,37 @@
#!/bin/sh
#
# $NetBSD: downinterfaces,v 1.6 2009/09/05 16:26:07 apb Exp $
#
# PROVIDE: downinterfaces
# KEYWORD: nostart shutdown
$_rc_subr_loaded . /etc/rc.subr
name="downinterfaces"
start_cmd=":"
stop_cmd="downinterfaces_stop"
downinterfaces_stop()
{
tmp=$(ifconfig -lu)
iflist=""
for int in $tmp; do
case $int in
pppoe*) iflist="$iflist $int"
;;
esac
done
iflist="$iflist $force_down_interfaces"
if [ "$iflist" != "" ] && [ "$iflist" != " " ]
then
echo "Shutting down interfaces:$iflist"
for int in $iflist; do
ifconfig $int down
done
fi
}
load_rc_config $name
run_rc_command "$1"

5
etc/rc.d/fsck Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
# MINIX 3 stub.
# PROVIDE: fsck
# REQUIRE: DISKS

19
etc/rc.d/ftpd Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/sh
#
# $NetBSD: ftpd,v 1.3 2005/08/09 14:59:33 peter Exp $
#
# PROVIDE: ftpd
# REQUIRE: LOGIN
# KEYWORD: shutdown
$_rc_subr_loaded . /etc/rc.subr
name="ftpd"
rcvar=$name
command="/usr/libexec/${name}"
command_args="-D"
pidfile="/var/run/${name}.pid"
load_rc_config $name
run_rc_command "$1"

20
etc/rc.d/inetd Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
#
# $NetBSD: inetd,v 1.7 2004/08/13 18:08:03 mycroft Exp $
#
# PROVIDE: inetd
# REQUIRE: DAEMON LOGIN
# KEYWORD: shutdown
$_rc_subr_loaded . /etc/rc.subr
name="inetd"
rcvar=$name
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="/etc/${name}.conf"
extra_commands="reload"
load_rc_config $name
run_rc_command "$1"

104
etc/rc.d/ipfilter Executable file
View File

@@ -0,0 +1,104 @@
#!/bin/sh
#
# $NetBSD: ipfilter,v 1.18 2009/03/23 18:52:02 hannken Exp $
#
# PROVIDE: ipfilter
# REQUIRE: root bootconf mountcritlocal tty
$_rc_subr_loaded . /etc/rc.subr
name="ipfilter"
rcvar=$name
start_precmd="ipfilter_prestart"
start_cmd="ipfilter_start"
stop_precmd="test -f /etc/ipf.conf -o -f /etc/ipf6.conf"
stop_cmd="ipfilter_stop"
reload_precmd="$stop_precmd"
reload_cmd="ipfilter_reload"
resync_precmd="$stop_precmd"
resync_cmd="ipfilter_resync"
status_precmd="$stop_precmd"
status_cmd="ipfilter_status"
extra_commands="reload resync status"
ipfilter_prestart()
{
if [ ! -f /etc/ipf.conf ] && [ ! -f /etc/ipf6.conf ]; then
warn "/etc/ipf*.conf not readable; ipfilter start aborted."
stop_boot
return 1
fi
return 0
}
ipfilter_start()
{
echo "Enabling ipfilter."
/sbin/ipf ${rc_flags} -E
# Do the flush first; since older ipf has different semantics.
#
if [ -f /etc/ipf.conf ]; then
/sbin/ipf -Fa
fi
if [ -f /etc/ipf6.conf ]; then
/sbin/ipf -6 -Fa
fi
# Now load the config files
#
if [ -f /etc/ipf.conf ]; then
/sbin/ipf -f /etc/ipf.conf
fi
if [ -f /etc/ipf6.conf ]; then
/sbin/ipf -6 -f /etc/ipf6.conf
fi
}
ipfilter_stop()
{
echo "Disabling ipfilter."
/sbin/ipf -D
}
ipfilter_reload()
{
echo "Reloading ipfilter rules."
# Do the flush first; since older ipf has different semantics.
#
if [ -f /etc/ipf.conf ]; then
/sbin/ipf -I -Fa
fi
if [ -f /etc/ipf6.conf ]; then
/sbin/ipf -6 -I -Fa
fi
# Now load the config files into the Inactive set
#
if [ -f /etc/ipf.conf ] && ! /sbin/ipf -I -f /etc/ipf.conf; then
err 1 "reload of ipf.conf failed; not swapping to new ruleset."
fi
if [ -f /etc/ipf6.conf ] && ! /sbin/ipf -I -6 -f /etc/ipf6.conf; then
err 1 "reload of ipf6.conf failed; not swapping to new ruleset."
fi
# Swap in the new rules
#
/sbin/ipf -s
}
ipfilter_resync()
{
/sbin/ipf -y
}
ipfilter_status()
{
/sbin/ipf -V
}
load_rc_config $name
run_rc_command "$1"

90
etc/rc.d/ipsec Executable file
View File

@@ -0,0 +1,90 @@
#!/bin/sh
#
# $NetBSD: ipsec,v 1.13 2013/09/12 19:52:50 christos Exp $
#
# PROVIDE: ipsec
# REQUIRE: root bootconf mountcritlocal tty
# BEFORE: DAEMON
$_rc_subr_loaded . /etc/rc.subr
name="ipsec"
rcvar=$name
start_precmd="ipsec_prestart"
start_cmd="ipsec_start"
stop_precmd="test -f /etc/ipsec.conf"
stop_cmd="ipsec_stop"
reload_cmd="ipsec_reload"
extra_commands="reload"
ipsec_prestart()
{
if [ ! -f /etc/ipsec.conf ]; then
warn "/etc/ipsec.conf not readable; ipsec start aborted."
stop_boot
return 1
fi
return 0
}
ipsec_getip() {
ifconfig $1 | while read what address rest; do
case "$what" in
inet) echo "$address";;
esac
done
}
ipsec_load() {
if [ -z "$1" ]; then
/sbin/setkey -f /etc/ipsec.conf
else
sed -e "s/@LOCAL_ADDR@/$1/" < /etc/ipsec.conf | \
/sbin/setkey -f -
fi
}
ipsec_configure() {
while true; do
local addr="$(ipsec_getip "$ipsec_flags")"
case "$addr" in
'') sleep 1;;
"0.0.0.0") sleep 1;;
*) ipsec_load "$addr"; return;;
esac
done &
}
ipsec_start()
{
echo "Installing ipsec manual keys/policies."
if [ -n "$ipsec_flags" ]; then
ipsec_configure
else
ipsec_load
fi
}
ipsec_stop()
{
echo "Clearing ipsec manual keys/policies."
# still not 100% sure if we would like to do this.
# it is very questionable to do this during shutdown session, since
# it can hang any of remaining IPv4/v6 session.
#
/sbin/setkey -F
/sbin/setkey -FP
}
ipsec_reload()
{
echo "Reloading ipsec manual keys/policies."
ipsec_stop
ipsec_start
}
load_rc_config $name
run_rc_command "$1"

32
etc/rc.d/local Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/sh
#
# $NetBSD: local,v 1.7 2004/08/13 18:08:03 mycroft Exp $
#
# REQUIRE: DAEMON
# PROVIDE: local
# BEFORE: LOGIN
# KEYWORD: shutdown
$_rc_subr_loaded . /etc/rc.subr
name="local"
start_cmd="local_start"
stop_cmd="local_stop"
local_start()
{
if [ -f /etc/rc.local ]; then
. /etc/rc.local
fi
}
local_stop()
{
if [ -f /etc/rc.shutdown.local ]; then
. /etc/rc.shutdown.local
fi
}
load_rc_config $name
run_rc_command "$1"

17
etc/rc.d/minixrc Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
# MINIX 3 bridge from NetBSD rc to MINIX rc. Must be called as the very first
# script at startup (hence the current 'before'). Ideally the MINIX rc would
# be decomposed into a number of small rc scripts, though.
# PROVIDE: minixrc
# BEFORE: DISKS
# KEYWORD: shutdown
$_rc_subr_loaded . /etc/rc.subr
name="minixrc"
start_cmd="sh /etc/rc.minix start"
stop_cmd="sh /etc/rc.minix stop"
load_rc_config $name
run_rc_command "$1"

5
etc/rc.d/mountcritlocal Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
# MINIX 3 stub.
# PROVIDE: mountcritlocal
# REQUIRE: fsck

7
etc/rc.d/mountcritremote Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
# MINIX 3 stub.
# Even though this script does not appear to do much, it will in some cases
# invoke the mount command with a syntax that we do not support.
# PROVIDE: mountcritremote
# REQUIRE: NETWORKING root mountcritlocal

146
etc/rc.d/named Executable file
View File

@@ -0,0 +1,146 @@
#!/bin/sh
#
# $NetBSD: named,v 1.25 2014/07/13 22:06:56 tls Exp $
#
# PROVIDE: named
# REQUIRE: NETWORKING mountcritremote syslogd
# BEFORE: DAEMON
# KEYWORD: chrootdir
$_rc_subr_loaded . /etc/rc.subr
name="named"
rcvar=$name
command="/usr/sbin/${name}"
pidfile="/var/run/${name}/${name}.pid"
start_precmd="named_precmd"
extra_commands="reload"
required_dirs="$named_chrootdir" # if it is set, it must exist
named_migrate()
{
local src="$1"
local dst="$2$1"
echo "Migrating $src to $dst"
(
diff=false
cd "$src"
mkdir -p "$dst"
for f in $(find . -type f)
do
f="${f##./}"
case "$f" in
*/*)
ds="$(dirname "$f")"
dd="$dst/$ds"
mkdir -p "$dd"
chmod "$(stat -f "%p" "$ds" |
sed -e 's/.*\([0-7][0-7][0-7][0-7]\)$/\1/g')" "$dd"
chown "$(stat -f %u:%g "$ds")" "$dd"
;;
*)
;;
esac
if [ -r "$dst/$f" ]
then
if ! cmp "$f" "$dst/$f"; then
diff=true
fi
else
cp -p "$f" "$dst/$f"
fi
done
if $diff; then
echo "Cannot complete migration because files are different"
echo "Run 'diff -r $src $dst' resolve the differences"
else
rm -fr "$src"
ln -s "$dst" "$src"
fi
)
}
named_precmd()
{
if [ ! -e "/etc/rndc.key" ]; then
echo "Generating rndc.key"
/usr/sbin/rndc-confgen -a
fi
if [ -z "$named_chrootdir" ]; then
if [ ! -d "/etc/namedb/keys" ]; then
mkdir -m 775 "/etc/namedb/keys"
chown named:named "/etc/namedb/keys"
fi
return 0;
fi
# If running in a chroot cage, ensure that the appropriate files
# exist inside the cage, as well as helper symlinks into the cage
# from outside.
#
# As this is called after the is_running and required_dir checks
# are made in run_rc_command(), we can safely assume ${named_chrootdir}
# exists and named isn't running at this point (unless forcestart
# is used).
#
case "$($command -v)" in
BIND*) # 9 no group, named-xfer, or ndc
;;
named*) # 4 and 8
rc_flags="-g named $rc_flags"
if [ ! -x "${named_chrootdir}/usr/libexec/named-xfer" -o \
"${named_chrootdir}/usr/libexec/named-xfer" -ot \
/usr/libexec/named-xfer ]; then
rm -f "${named_chrootdir}/usr/libexec/named-xfer"
cp -p /usr/libexec/named-xfer \
"${named_chrootdir}/usr/libexec"
fi
ln -fs "${named_chrootdir}/var/run/ndc" /var/run/ndc
;;
esac
for i in null random urandom; do
if [ ! -c "${named_chrootdir}/dev/$i" ]; then
rm -f "${named_chrootdir}/dev/$i"
(cd /dev &&
/bin/pax -rw -pe "$i" "${named_chrootdir}/dev")
fi
done
if [ ! -h /etc/namedb ]; then
named_migrate /etc/namedb ${named_chrootdir}
fi
for i in named.conf rndc.key; do
if [ \( -r "/etc/$i" \) -a \( ! -h "/etc/$i" \) -a \
\( ! -r "${named_chrootdir}/etc/$i" \) ]; then
mv "/etc/$i" "${named_chrootdir}/etc/$i"
ln -s "${named_chrootdir}/etc/$i" "/etc/$i"
fi
done
if [ \( ! -r ${named_chrootdir}/etc/named.conf \) -a \
\( -r ${named_chrootdir}/etc/namedb/named.conf \) ]; then
ln -s namedb/named.conf ${named_chrootdir}/etc
fi
if [ -f /etc/localtime ]; then
cmp -s /etc/localtime "${named_chrootdir}/etc/localtime" || \
cp -p /etc/localtime "${named_chrootdir}/etc/localtime"
fi
local piddir="$(dirname "${pidfile}")"
mkdir -p "${named_chrootdir}${piddir}" "${piddir}"
chmod 755 "${named_chrootdir}${piddir}" "${piddir}"
chown named:named "${named_chrootdir}${piddir}" "${piddir}"
ln -fs "${named_chrootdir}${pidfile}" "${pidfile}"
# Change run_rc_commands()'s internal copy of $named_flags
#
rc_flags="-u named -t ${named_chrootdir} $rc_flags"
}
load_rc_config $name
run_rc_command "$1"

546
etc/rc.d/network Executable file
View File

@@ -0,0 +1,546 @@
#!/bin/sh
#
# $NetBSD: network,v 1.69 2014/10/14 20:49:47 christos Exp $
#
# PROVIDE: network
# REQUIRE: ipfilter ipsec mountcritlocal root tty sysctl
# BEFORE: NETWORKING
$_rc_subr_loaded . /etc/rc.subr
name="network"
start_cmd="network_start"
stop_cmd="network_stop"
nl='
' # a newline
intmissing()
{
local int="$1"
shift
for i; do
if [ "$int" = "$i" ]; then
return 1
fi
done
return 0
}
have_inet6()
{
/sbin/ifconfig lo0 inet6 >/dev/null 2>&1
}
network_start()
{
# set hostname, turn on network
#
echo "Starting network."
network_start_hostname
network_start_domainname
network_start_loopback
have_inet6 &&
network_start_ipv6_route
[ "$net_interfaces" != NO ] &&
network_start_interfaces
network_start_aliases
network_start_defaultroute
network_start_defaultroute6
have_inet6 &&
network_start_ipv6_autoconf
network_start_local
}
network_start_hostname()
{
# If $hostname is set, use it for my Internet name,
# otherwise use /etc/myname
#
if [ -z "$hostname" ] && [ -f /etc/myname ]; then
hostname=$(cat /etc/myname)
fi
if [ -n "$hostname" ]; then
echo "Hostname: $hostname"
hostname $hostname
else
# Don't warn about it if we're going to run
# DHCP later, as we will probably get the
# hostname at that time.
#
if ! checkyesno dhclient && ! checkyesno dhcpcd && \
[ -z "$(hostname)" ]
then
warn "\$hostname not set."
fi
fi
}
network_start_domainname()
{
# Check $domainname first, then /etc/defaultdomain,
# for NIS/YP domain name
#
if [ -z "$domainname" ] && [ -f /etc/defaultdomain ]; then
domainname=$(cat /etc/defaultdomain)
fi
if [ -n "$domainname" ]; then
echo "NIS domainname: $domainname"
domainname $domainname
fi
# Flush all routes just to make sure it is clean
if checkyesno flushroutes; then
/sbin/route -qn flush
fi
}
network_start_loopback()
{
# Set the address for the first loopback interface, so that the
# auto-route from a newly configured interface's address to lo0
# works correctly.
#
# NOTE: obscure networking problems will occur if lo0 isn't configured.
#
/sbin/ifconfig lo0 inet 127.0.0.1
# According to RFC1122, 127.0.0.0/8 must not leave the node.
#
/sbin/route -q add -inet 127.0.0.0 -netmask 0xff000000 127.0.0.1 -reject
}
network_start_ipv6_route()
{
# IPv6 routing setups, and host/router mode selection.
#
# We have IPv6 support in kernel.
# disallow link-local unicast dest without outgoing scope
# identifiers.
#
/sbin/route -q add -inet6 fe80:: -prefixlen 10 ::1 -reject
# disallow the use of the RFC3849 documentation address
#
/sbin/route -q add -inet6 2001:db8:: -prefixlen 32 ::1 -reject
# IPv6 site-local scoped address prefix (fec0::/10)
# has been deprecated by RFC3879.
#
if [ -n "$ip6sitelocal" ]; then
warn "\$ip6sitelocal is no longer valid"
fi
# disallow "internal" addresses to appear on the wire.
#
/sbin/route -q add -inet6 ::ffff:0.0.0.0 -prefixlen 96 ::1 -reject
# disallow packets to malicious IPv4 compatible prefix
#
/sbin/route -q add -inet6 ::224.0.0.0 -prefixlen 100 ::1 -reject
/sbin/route -q add -inet6 ::127.0.0.0 -prefixlen 104 ::1 -reject
/sbin/route -q add -inet6 ::0.0.0.0 -prefixlen 104 ::1 -reject
/sbin/route -q add -inet6 ::255.0.0.0 -prefixlen 104 ::1 -reject
# disallow packets to malicious 6to4 prefix
#
/sbin/route -q add -inet6 2002:e000:: -prefixlen 20 ::1 -reject
/sbin/route -q add -inet6 2002:7f00:: -prefixlen 24 ::1 -reject
/sbin/route -q add -inet6 2002:0000:: -prefixlen 24 ::1 -reject
/sbin/route -q add -inet6 2002:ff00:: -prefixlen 24 ::1 -reject
# Completely disallow packets to IPv4 compatible prefix.
# This may conflict with RFC1933 under following circumstances:
# (1) An IPv6-only KAME node tries to originate packets to IPv4
# compatible destination. The KAME node has no IPv4
# compatible support. Under RFC1933, it should transmit
# native IPv6 packets toward IPv4 compatible destination,
# hoping it would reach a router that forwards the packet
# toward auto-tunnel interface.
# (2) An IPv6-only node originates a packet to IPv4 compatible
# destination. A KAME node is acting as an IPv6 router, and
# asked to forward it.
# Due to rare use of IPv4 compatible address, and security
# issues with it, we disable it by default.
#
/sbin/route -q add -inet6 ::0.0.0.0 -prefixlen 96 ::1 -reject
/sbin/sysctl -qw net.inet6.ip6.forwarding=0
/sbin/sysctl -qw net.inet6.ip6.accept_rtadv=0
case $ip6mode in
router)
echo 'IPv6 mode: router'
/sbin/sysctl -qw net.inet6.ip6.forwarding=1
# disallow unique-local unicast forwarding without
# explicit configuration.
if ! checkyesno ip6uniquelocal; then
/sbin/route -q add -inet6 fc00:: -prefixlen 7 \
::1 -reject
fi
;;
autohost)
echo 'IPv6 mode: autoconfigured host'
/sbin/sysctl -qw net.inet6.ip6.accept_rtadv=1
;;
host)
echo 'IPv6 mode: host'
;;
*) warn "invalid \$ip6mode value "\"$ip6mode\"
;;
esac
}
network_start_interfaces()
{
# Configure all of the network interfaces listed in $net_interfaces;
# if $auto_ifconfig is YES, grab all interfaces from ifconfig.
# In the following, "xxN" stands in for interface names, like "le0".
#
# For any interfaces that has an $ifconfig_xxN variable
# associated, we break it into lines using ';' as a separator,
# then process it just like the contents of an /etc/ifconfig.xxN
# file.
#
# For each line from the $ifconfig_xxN variable or the
# /etc/ifconfig.xxN file, we ignore comments and blank lines,
# treat lines beginning with "!" as commands to execute, treat
# "dhcp" as a special case to invoke dhcpcd, and for any other
# line we run "ifconfig xxN", using each line of the file as the
# arguments for a separate "ifconfig" invocation.
#
# In order to configure an interface reasonably, you at the very least
# need to specify "[addr_family] [hostname]" (e.g "inet my.domain.org"),
# and probably a netmask (as in "netmask 0xffffffe0"). You will
# frequently need to specify a media type, as in "media UTP", for
# interface cards with multiple media connections that do not
# autoconfigure. See the ifconfig manual page for details.
#
# Note that /etc/ifconfig.xxN takes multiple lines. The following
# configuration is possible:
# inet 10.1.1.1 netmask 0xffffff00
# inet 10.1.1.2 netmask 0xffffff00 alias
# inet6 2001:db8::1 prefixlen 64 alias
#
# You can put shell script fragment into /etc/ifconfig.xxN by
# starting a line with "!". Refer to ifconfig.if(5) for details.
#
ifaces="$(/sbin/ifconfig -l)"
if checkyesno auto_ifconfig; then
tmp="$ifaces"
for cloner in $(/sbin/ifconfig -C); do
for int in /etc/ifconfig.${cloner}[0-9]*; do
[ ! -f $int ] && break
tmp="$tmp ${int##*.}"
done
done
else
tmp="$net_interfaces"
fi
echo -n 'Configuring network interfaces:'
for int in $tmp; do
eval argslist=\$ifconfig_$int
# Skip interfaces that do not have explicit
# configuration information. If auto_ifconfig is
# false then also warn about such interfaces.
#
if [ -z "$argslist" ] && ! [ -f /etc/ifconfig.$int ]
then
if ! checkyesno auto_ifconfig; then
echo
warn \
"/etc/ifconfig.$int missing and ifconfig_$int not set;"
warn "interface $int not configured."
fi
continue
fi
echo -n " $int"
# Create the interface if necessary.
# If the interface did not exist before,
# then also resync ipf(4).
#
if intmissing $int $ifaces; then
if /sbin/ifconfig $int create && \
checkyesno ipfilter; then
/sbin/ipf -y >/dev/null
fi
fi
# If $ifconfig_xxN is empty, then use
# /etc/ifconfig.xxN, which we know exists due to
# an earlier test.
#
# If $ifconfig_xxN is non-empty and contains a
# newline, then just use it as is. (This allows
# semicolons through unmolested.)
#
# If $ifconfig_xxN is non-empty and does not
# contain a newline, then convert all semicolons
# to newlines.
#
case "$argslist" in
'')
cat /etc/ifconfig.$int
;;
*"${nl}"*)
echo "$argslist"
;;
*)
(
set -o noglob
IFS=';'; set -- $argslist
#echo >&2 "[$#] [$1] [$2] [$3] [$4]"
IFS="$nl"; echo "$*"
)
;;
esac |
collapse_backslash_newline |
while read -r args; do
case "$args" in
''|"#"*|create)
;;
"!"*)
# Run arbitrary command in a subshell.
( eval "${args#*!}" )
;;
dhcp)
if ! checkyesno dhcpcd; then
/sbin/dhcpcd -n \
${dhcpcd_flags} $int
fi
;;
*)
# Pass args to ifconfig. Note
# that args may contain embedded
# shell metacharacters, such as
# "ssid 'foo;*>bar'". We eval
# one more time so that things
# like ssid "Columbia University" work.
(
set -o noglob
eval set -- $args
#echo >&2 "[$#] [$1] [$2] [$3]"
/sbin/ifconfig $int "$@"
)
;;
esac
done
configured_interfaces="$configured_interfaces $int"
done
echo "."
}
network_start_aliases()
{
echo -n "Adding interface aliases:"
# Check if each configured interface xxN has an $ifaliases_xxN variable
# associated, then configure additional IP addresses for that interface.
# The variable contains a list of "address netmask" pairs, with
# "netmask" set to "-" if the interface default netmask is to be used.
#
# Note that $ifaliases_xxN works only in certain cases and its
# use is not recommended. Use /etc/ifconfig.xxN or multiple
# commands in $ifconfig_xxN instead.
#
for int in lo0 $configured_interfaces; do
eval args=\$ifaliases_$int
if [ -n "$args" ]; then
set -- $args
while [ $# -ge 2 ]; do
addr=$1 ; net=$2 ; shift 2
if [ "$net" = "-" ]; then
# for compatibility only, obsolete
/sbin/ifconfig $int inet alias $addr
else
/sbin/ifconfig $int inet alias $addr \
netmask $net
fi
echo -n " $int:$addr"
done
fi
done
# /etc/ifaliases, if it exists, contains the names of additional IP
# addresses for each interface. It is formatted as a series of lines
# that contain
# address interface netmask
#
# Note that /etc/ifaliases works only in certain cases and its
# use is not recommended. Use /etc/ifconfig.xxN or multiple
# commands in $ifconfig_xxN instead.
#
if [ -f /etc/ifaliases ]; then
while read addr int net; do
if [ -z "$net" ]; then
# for compatibility only, obsolete
/sbin/ifconfig $int inet alias $addr
else
/sbin/ifconfig $int inet alias $addr netmask $net
fi
done < /etc/ifaliases
fi
echo "." # for "Adding interface aliases:"
}
network_start_defaultroute()
{
# Check $defaultroute, then /etc/mygate, for the name or address
# of my IPv4 gateway host. If using a name, that name must be in
# /etc/hosts.
#
if [ -z "$defaultroute" ] && [ -f /etc/mygate ]; then
defaultroute=$(cat /etc/mygate)
fi
if [ -n "$defaultroute" ]; then
/sbin/route add default $defaultroute
fi
}
network_start_defaultroute6()
{
# Check $defaultroute6, then /etc/mygate6, for the name or address
# of my IPv6 gateway host. If using a name, that name must be in
# /etc/hosts. Note that the gateway host address must be a link-local
# address if it is not using an stf* interface.
#
if [ -z "$defaultroute6" ] && [ -f /etc/mygate6 ]; then
defaultroute6=$(cat /etc/mygate6)
fi
if [ -n "$defaultroute6" ]; then
if [ "$ip6mode" = "autohost" ]; then
echo
warn \
"ip6mode is set to 'autohost' and a v6 default route is also set."
fi
/sbin/route add -inet6 default $defaultroute6
fi
}
network_start_ipv6_autoconf()
{
# IPv6 interface autoconfiguration.
dadcount=$(/sbin/sysctl -n net.inet6.ip6.dad_count 2>/dev/null)
if [ -n "$dadcount" -a "$dadcount" != 0 ]; then
# wait till DAD is completed
echo 'Waiting for DAD to complete for' \
'statically configured addresses...'
# Add 1 for MAX_RTR_SOLICITATION_DELAY and another
# to give time for the last DAD packet to respond and
# a few more for luck.
waitsecs=$((dadcount + 4))
/sbin/ifconfig -w $waitsecs
fi
# dhcpcd will ensure DAD completes before forking
if checkyesnox rtsol && ! checkyesno dhcpcd; then
if [ "$ip6mode" = "autohost" ]; then
echo
warn "rtsol has been removed, " \
"please configure dhcpcd in its place."
fi
fi
}
network_start_local()
{
# XXX this must die
if [ -s /etc/netstart.local ]; then
sh /etc/netstart.local start
fi
}
network_stop()
{
echo "Stopping network."
network_stop_local
network_stop_aliases
[ "$net_interfaces" != NO ] &&
network_stop_interfaces
network_stop_route
}
network_stop_local()
{
# XXX this must die
if [ -s /etc/netstart.local ]; then
sh /etc/netstart.local stop
fi
}
network_stop_aliases()
{
echo "Deleting aliases."
if [ -f /etc/ifaliases ]; then
while read addr int net; do
/sbin/ifconfig $int inet delete $addr
done < /etc/ifaliases
fi
for int in $(/sbin/ifconfig -lu); do
eval args=\$ifaliases_$int
if [ -n "$args" ]; then
set -- $args
while [ $# -ge 2 ]; do
addr=$1 ; net=$2 ; shift 2
/sbin/ifconfig $int inet delete $addr
done
fi
done
}
network_stop_interfaces()
{
# down interfaces
#
echo -n 'Downing network interfaces:'
if checkyesno auto_ifconfig; then
tmp=$(/sbin/ifconfig -l)
else
tmp="$net_interfaces"
fi
for int in $tmp; do
eval args=\$ifconfig_$int
if [ -n "$args" ] || [ -f /etc/ifconfig.$int ]; then
echo -n " $int"
if [ -f /var/run/dhcpcd-$int.pid ]; then
/sbin/dhcpcd -k $int 2> /dev/null
fi
/sbin/ifconfig $int down
if /sbin/ifconfig $int destroy 2>/dev/null && \
checkyesno ipfilter; then
# resync ipf(4)
/sbin/ipf -y >/dev/null
fi
fi
done
echo "."
}
network_stop_route()
{
# flush routes
#
/sbin/route -qn flush
}
load_rc_config $name
load_rc_config_var dhclient dhclient
load_rc_config_var dhcpcd dhcpcd
load_rc_config_var ipfilter ipfilter
run_rc_command "$1"

62
etc/rc.d/npf Normal file
View File

@@ -0,0 +1,62 @@
#!/bin/sh
#
# $NetBSD: npf,v 1.3 2012/11/01 06:06:14 mrg Exp $
#
# Public Domain.
#
# PROVIDE: npf
# REQUIRE: root bootconf mountcritlocal tty network
# BEFORE: NETWORKING
$_rc_subr_loaded . /etc/rc.subr
name="npf"
rcvar=$name
config="/etc/npf.conf"
start_cmd="npf_start"
stop_cmd="npf_stop"
reload_cmd="npf_reload"
status_cmd="npf_status"
extra_commands="reload status"
npf_cfg_check()
{
if [ ! -f ${config} ]; then
warn "${config} is not readable; failed."
exit 1
fi
}
npf_start()
{
echo "Enabling NPF."
npf_cfg_check
/sbin/npfctl reload
/sbin/npfctl start
}
npf_stop()
{
echo "Disabling NPF."
/sbin/npfctl stop
/sbin/npfctl flush
}
npf_reload()
{
echo "Reloading NPF ruleset."
npf_cfg_check
/sbin/npfctl reload
}
npf_status()
{
:
}
load_rc_config $name
run_rc_command "$1"

27
etc/rc.d/pwcheck Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/sh
#
# $NetBSD: pwcheck,v 1.5 2004/08/13 18:08:03 mycroft Exp $
#
# PROVIDE: pwcheck
# REQUIRE: mountcritremote syslogd
# BEFORE: DAEMON
$_rc_subr_loaded . /etc/rc.subr
name="pwcheck"
start_cmd="pwcheck_start"
stop_cmd=":"
pwcheck_start()
{
# check the password temp/lock file
#
if [ -f /etc/ptmp ]; then
logger -s -p auth.err \
"password file may be incorrect -- /etc/ptmp exists"
fi
}
load_rc_config $name
run_rc_command "$1"

4
etc/rc.d/root Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
# MINIX 3 stub.
# PROVIDE: root

60
etc/rc.d/rtadvd Executable file
View File

@@ -0,0 +1,60 @@
#!/bin/sh
#
# $NetBSD: rtadvd,v 1.8 2013/07/09 09:34:58 roy Exp $
#
# PROVIDE: rtadvd
# REQUIRE: DAEMON
# BEFORE: LOGIN
$_rc_subr_loaded . /etc/rc.subr
name=rtadvd
rcvar=$name
command="/usr/sbin/$name"
pidfile="/var/run/$name.pid"
extra_commands=reload
start_precmd=rtadvd_prestart
reload_precmd=rtadvd_prereload
rtadvd_prereload()
{
local chdir="$(getent passwd _rtadvd | cut -d: -f6)"
local conf=/etc/rtadvd.conf myflags o confdir
[ -z "$chdir" -o "$chdir" = / ] && return 0
if [ -n "$flags" ]; then
myflags=$flags
else
eval myflags=\$${name}_flags
fi
set -- ${myflags}
while getopts c:dDfM:Rs o; do
case "$1" in
-c) conf="$OPTARG";;
esac
shift
done
confdir=$(dirname "$conf")
echo "$name: copying $conf to $chdir$conf"
cp "$conf" "$chdir$conf"
# Provide a link to the chrooted dump file
ln -snf "$chdir/var/run/$name.dump" /var/run
}
rtadvd_prestart()
{
if [ "$ip6mode" != router ]; then
warn \
"${name} cannot be used on IPv6 host, only on an IPv6 router."
return 1
fi
rtadvd_prereload
}
load_rc_config $name
run_rc_command "$1"

52
etc/rc.d/staticroute Executable file
View File

@@ -0,0 +1,52 @@
#!/bin/sh
#
# $NetBSD: staticroute,v 1.6 2012/05/02 15:57:15 gendalia Exp $
#
# PROVIDE: staticroute
# REQUIRE: network
# BEFORE: NETWORKING
# See the route.conf(5) manual page for details.
$_rc_subr_loaded . /etc/rc.subr
name="staticroute"
start_cmd="staticroute_doit Adding add"
stop_cmd="staticroute_doit Deleting delete"
staticroute_doit() {
retval=0
if [ -s /etc/route.conf ]; then
echo "$1 static routes."
( while read args; do
[ -z "$args" ] && continue
case "$args" in
"#"*)
;;
"+"*)
if [ $2 = "add" ]; then
eval "${args#*+}" || retval=1
fi
;;
"-"*)
if [ $2 = "delete" ]; then
eval "${args#*-}" || retval=1
fi
;;
"!"*)
eval "${args#*!}" || retval=1
;;
*)
eval "route -q $2 -$args" || retval=1
;;
esac
done < /etc/route.conf )
fi
return $retval
}
load_rc_config $name
run_rc_command "$1"

25
etc/rc.d/sysctl Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
#
# $NetBSD: sysctl,v 1.13 2004/08/13 18:08:03 mycroft Exp $
#
# PROVIDE: sysctl
# REQUIRE: root ipfilter ipsec
# BEFORE: DAEMON
$_rc_subr_loaded . /etc/rc.subr
name="sysctl"
start_cmd="sysctl_start"
stop_cmd=":"
sysctl_start()
{
if [ -r /etc/sysctl.conf ]; then
echo "Setting sysctl variables:"
sysctl -f /etc/sysctl.conf
fi
}
load_rc_config $name
run_rc_command "$1"

93
etc/rc.d/sysdb Executable file
View File

@@ -0,0 +1,93 @@
#!/bin/sh
#
# $NetBSD: sysdb,v 1.24 2012/06/03 21:42:45 joerg Exp $
#
# PROVIDE: sysdb
# REQUIRE: mountcritremote
# BEFORE: DAEMON
$_rc_subr_loaded . /etc/rc.subr
name="sysdb"
rcvar=$name
start_cmd="sysdb_start"
stop_cmd=":"
extra_commands="devdb utmp services netgroup password"
devdb_cmd="build_devdb"
utmp_cmd="build_utmp"
services_cmd="build_services"
netgroup_cmd="build_netgroup"
password_cmd="build_password"
echo=:
sysdb_start()
{
echo -n "Building databases:"
echo=echo
comma=" "
$devdb_cmd
$utmp_cmd
$services_cmd
$netgroup_cmd
$password_cmd
echo "."
}
check_file()
{
local src="$1"
local db="$2"
shift 2
if [ ! -e "$src" ]; then
return
fi
if [ \( ! -f "$db" \) -o \( "$src" -nt "$db" \) ]; then
$echo -n "$comma$(basename "$src")"
comma=", "
"$@"
fi
}
build_services()
{
check_file /etc/services /var/db/services.cdb services_mkdb -q
}
build_netgroup()
{
check_file /etc/netgroup /var/db/netgroup.db netgroup_mkdb
}
build_devdb()
{
check_file /dev /var/run/dev.db dev_mkdb
check_file /dev /var/run/dev.cdb dev_mkdb
}
build_password()
{
local p=/etc/master.passwd
check_file $p /etc/spwd.db pwd_mkdb -w $p
}
build_utmp()
{
# Re-create /var/run/utmp and /var/run/utmpx, which are
# deleted by mountcritlocal but can't be recreated by it
# because install and chown may not be available then
# (possibly no /usr).
#
local i
for i in "" x; do
if [ ! -f /var/run/utmp$i ]; then
$echo -n "${comma}utmp$i"
comma=", "
install -c -m 664 -g utmp /dev/null /var/run/utmp$i
fi
done
}
load_rc_config $name
run_rc_command "$1"

64
etc/rc.d/syslogd Executable file
View File

@@ -0,0 +1,64 @@
#!/bin/sh
#
# $NetBSD: syslogd,v 1.15 2004/10/11 13:29:52 lukem Exp $
#
# PROVIDE: syslogd
# REQUIRE: mountcritremote sysdb wscons
# BEFORE: SERVERS
$_rc_subr_loaded . /etc/rc.subr
name="syslogd"
rcvar=$name
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="/etc/syslog.conf"
start_precmd="syslogd_precmd"
extra_commands="reload"
_sockfile="/var/run/syslogd.sockets"
syslogd_precmd()
{
# Transitional symlink for old binaries
#
# MINIX 3: unsupported, disabled
#if [ ! -h /dev/log ]; then
# ln -sf /var/run/log /dev/log
#fi
# MINIX 3: end
# Create default list of syslog sockets to watch
#
( umask 022 ; > $_sockfile )
# Find /etc/rc.d scripts with "chrootdir" rcorder(8) keyword,
# and if $${app}_chrootdir is a directory, add appropriate
# syslog socket to list of sockets to watch.
#
for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
(
_l=${_lr##*/}
load_rc_config ${_l}
eval _ldir=\$${_l}_chrootdir
if checkyesno $_l && [ -n "$_ldir" ]; then
echo "${_ldir}/var/run/log" >> $_sockfile
fi
)
done
# If other sockets have been provided, change run_rc_command()'s
# internal copy of $syslogd_flags to force use of specific
# syslogd sockets.
#
if [ -s $_sockfile ]; then
echo "/var/run/log" >> $_sockfile
rc_flags="-P $_sockfile $rc_flags"
fi
return 0
}
load_rc_config $name
run_rc_command "$1"

8
etc/rc.d/ttys Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
# MINIX 3 stub.
# There is currently nothing in the NetBSD script that we want: setting tty
# flags is not yet a supported concept, and changing /dev/tty permissions does
# not work from the installation CD with its read-only /dev directory.
# PROVIDE: tty
# REQUIRE: root bootconf

186
etc/rc.d/wscons Executable file
View File

@@ -0,0 +1,186 @@
#!/bin/sh
#
# $NetBSD: wscons,v 1.13 2011/08/09 08:08:10 mbalmer Exp $
#
# PROVIDE: wscons
# REQUIRE: mountcritremote
# BEFORE: LOGIN
$_rc_subr_loaded . /etc/rc.subr
name="wscons"
rcvar=$name
start_cmd="wscons_start"
stop_cmd=":"
wscons_start()
{
wscfg=/usr/sbin/wsconscfg
wsfld=/usr/sbin/wsfontload
wsctl=/sbin/wsconsctl
config=/etc/wscons.conf
usage="Usage: wsconfig [-n] [-f configfile] [-font fontpgm] [-screen screenpgm]"
DOIT=
while [ $# -gt 0 ]; do
case $1 in
-n)
DOIT=echo
;;
-f)
config=$2
shift
;;
-font)
wsfld=$2
shift
;;
-screen)
wscfg=$2
shift
;;
*)
echo $usage
exit 1
;;
esac
shift
done
# args mean:
# screen idx scr emul
# font name width height enc file
( while read type arg1 arg2 arg3 arg4 arg5; do
case "$type" in
\#*|"")
continue
;;
font)
name=$arg1
width=$arg2
height=$arg3
enc=$arg4
file=$arg5
cmd=$wsfld
case $width in
-)
;;
*)
cmd="$cmd -w $width"
;;
esac
case $height in
-)
;;
*)
cmd="$cmd -h $height"
;;
esac
case $enc in
-)
;;
*)
cmd="$cmd -e $enc"
;;
esac
cmd="$cmd -N $name $file"
eval $DOIT $cmd
;;
screen)
idx=$arg1
scr=$arg2
emul=$arg3
cmd=$wscfg
case $scr in
-)
;;
*)
cmd="$cmd -t $scr"
;;
esac
case $emul in
-)
;;
*)
cmd="$cmd -e $emul"
;;
esac
cmd="$cmd $idx"
eval $DOIT $cmd
;;
keyboard)
kbd=$arg1
cmd=$wscfg
case $kbd in
-|auto)
cmd="$cmd -k"
;;
*)
cmd="$cmd -k $kbd"
;;
esac
eval $DOIT $cmd
;;
encoding)
map=$arg1
cmd="$wsctl -w \"encoding=$map\""
echo -n 'Keyboard '
eval $DOIT $cmd
;;
mapfile)
mapfile=$arg1
( while read entry; do
case "$entry" in
\#*|"")
continue
;;
*)
cmd="$wsctl -w \"map+=$entry\""
cmd="$cmd >/dev/null"
eval $DOIT $cmd
;;
esac
done ) < $mapfile
;;
mux)
cmd="$wscfg -m $arg1"
eval $DOIT $cmd
;;
setvar)
dev=$arg1
var=$arg2
val=$arg3
case $dev in
ttyE*)
cmdmod="-d"
;;
wskbd*)
cmdmod="-k"
;;
wsmouse*)
cmdmod="-m"
;;
esac
echo -n "$dev: "
cmd="$wsctl -f /dev/$dev $cmdmod -w $var=$val"
eval $DOIT $cmd
;;
esac
done ) < $config
}
load_rc_config $name
run_rc_command "$1"

Some files were not shown because too many files have changed in this diff Show More