Commit Graph

11344 Commits

Author SHA1 Message Date
abhinav e108642273 We don't need to parse the sections we don't index, so stop early. Saves few
instructions.
2016-10-03 16:11:11 +00:00
abhinav 150a47b73e With the latest release of mandoc, makemandb(8) started to parse some
sections multiple times. This started to happen because, pmdoc_Sh(), the handler function
responsible for parsing the Sh macros, used to recursively go through all the child
nodes and then the next nodes starting from top level Sh block node.
Now, once it has processed all the child nodes of the top level block node,
it moves to the next node, which is the top level block node of the next section and
in this way one call to pmdoc_Sh() was causing a complete pass through the
man page. Since, mandoc(3) calls pmdoc_Sh() for each .Sh macro in the man
page, it would result in parsing some of the sections multiple times.
This never happened with the previous versions of mandoc, so we never noticed.

I've fixed this by starting the parse sequence of the Sh macro from its body, which gurantees
that we will stop once that section ends.

ok christos@
2016-10-03 13:53:39 +00:00
abhinav 1c4ff59f37 Mark the section and md5_hash columns as unindexed in the FTS table, as they are not used for search 2016-10-03 13:36:35 +00:00
roy 06a737b41a Sprinkle some RCSID loving. 2016-09-29 15:25:28 +00:00
roy 18cd17b80a Now that sppp announces address additions and removals with state
flags, we no longer need the custom sppp code to detect if we are
connected or not.

Add commentary on if we really need to handle RTM_DELADDR only when
detached.
2016-09-29 15:21:09 +00:00
roy 547a909ccc Don't invoke scripts for INADDR_ANY or INADDR_BROADCAST addresses. 2016-09-29 13:36:30 +00:00
mrg cf3fd92536 apply the previous typo in another place as well. 2016-09-27 16:44:04 +00:00
wiz c0666de355 Sort sections. Formatting nitpicks. Fix typo. 2016-09-27 11:13:57 +00:00
mrg c47bfd7d3e add some examples: "pcictl pci0 list" and "pcictl pci0 list -N".
inspired by PR 51243.
2016-09-25 00:06:49 +00:00
mrg 62ee7dc27b introduce a better pci_drvname() and PCI_IOC_DRVNAME as pciio_drvnameonbus()
and PCI_IOC_DRVNAMEONBUS.  the new ones also take a (autoconf) PCI bus
number, which allows lookups for any device on any pci bus node.  use this
in pcictl which current reports the wrong values sometimes.

up next: use these in libpciaccess.
2016-09-24 23:12:54 +00:00
mlelstv d40f84ecec cast to intmax_t for machine-independent printing. 2016-09-22 08:43:26 +00:00
christos 6c0bd55ee3 moved to /usr/src/external/gpl3/binutils/usr.sbin/mdsetimage 2016-09-21 21:53:03 +00:00
roy ebe6b5a845 Check address is not tentative, duplicated or detached before running
scripts.

XXX Do we want new script actions for detached or duplicated addresses?
2016-09-21 21:07:29 +00:00
roy f095b6732c We should always know the interface the address message was for. 2016-09-21 20:31:31 +00:00
roy 3281aec338 Add some consistency for dispatching .... always send the whole message. 2016-09-21 18:18:10 +00:00
roy 4ed3a4f995 Sprinkle some const. 2016-09-21 16:47:35 +00:00
christos 8fcc68317d fix usage. 2016-09-21 16:29:48 +00:00
christos 753ee5437d ansify. 2016-09-21 16:27:55 +00:00
christos e49db1a5f5 merge copies... 2016-09-21 16:25:41 +00:00
roy 4862748bc4 Skip message if not our RTM_VERSION and silently ignore old message types. 2016-09-21 14:50:48 +00:00
roy af543597d1 Use recvmsg to ensure we get every message rather than potentially overflowing our buffer. 2016-09-21 14:46:55 +00:00
christos c66fd1e19a remove unused ancient code and widen v6 address so that columns are aligned. 2016-09-19 19:13:14 +00:00
ryo eb2d7ca7b4 "intrctl list" auto fit to minimum columns
Reviewed by nonaka@ and knakahara@
2016-09-19 18:46:39 +00:00
wiz fd9dd2812d Sort SEE ALSO. 2016-09-17 20:48:04 +00:00
jdolecek 2c0412b4a8 link back to intrctl(8), it xrefs cpuctl(8) 2016-09-17 19:35:21 +00:00
skrll 643b0f021f Fix previous... handle hub ports 2016-09-07 08:09:59 +00:00
skrll acf2328b3d Don't read beyond the end of the array when given a overly large number
of ports on a hub.
2016-09-07 08:05:02 +00:00
kre 0c18754f1b PR toolchain/51457 -- be more posix compat with sort usage, though it
(currently anyway) makes no difference on NetBSD.
2016-09-02 20:25:14 +00:00
skrll 7c0631bd92 Add __RCDIS 2016-09-02 05:59:04 +00:00
kre 7ca5a8c97c PR toolchain/51457 -- use sort correctly 2016-09-02 05:38:44 +00:00
christos dd41e8f2d0 Don't exit if we have udp only sockets, instead wait for all the workers
to terminate.
2016-08-23 13:10:12 +00:00
christos e405703132 PR/51437: Hauke Fath: write a byte to the socket so that nfsd -u does not die. 2016-08-22 16:08:51 +00:00
christos c90b9921a5 unbound additions 2016-08-20 11:21:50 +00:00
uwe e4498e4903 Use .An -nosplit to avoid unwanted line breaks in the middle of a sentence. 2016-08-16 02:04:01 +00:00
dholland a8308178f6 If the number of inodes per block is zero, bail instead of using
uninitialized stack trash as a dinode pointer. Fixes PR 51409 where
"dumplfs /dev/zero" receives SIGSEGV.
2016-08-12 08:22:13 +00:00
kre 999560307b Yet another -lrumpdev 2016-08-08 16:31:53 +00:00
knakahara a5c3fa9748 fix CID 1364766: Resource leaks 2016-08-05 06:58:55 +00:00
knakahara 8a1a4ef250 intrctl(8): pretty printing intrctl list.
e.g.
========== before ==========
interrupt id	  CPU#00	  CPU#01	device name(s)
irq 9	       0*	       0 	pq3pcie1
irq 10	       0*	       0 	pq3pcie0
irq 12	      30*	       0 	usb1
irq 13	      79*	       0 	etsec1-tx
irq 14	     268*	       0 	etsec1-rx
irq 15	       0*	       0 	etsec3-tx
irq 16	       0*	       0 	etsec3-rx
irq 17	       0*	       0 	etsec3-err
irq 18	       0*	       0 	etsec1-err
irq 26	    1030*	       0 	duart
irq 27	       0*	       0 	i2c
irq 56	  680437*	       0 	esdhc
msigroup 0	       0*	       0 	msi 0-31
========== before ==========

========== after ==========
interrupt id                 CPU0                  CPU1  device name(s)
irq 9                           0*                    0  pq3pcie1
irq 10                          0*                    0  pq3pcie0
irq 12                         30*                    0  usb1
irq 13                         79*                    0  etsec1-tx
irq 14                        310*                    0  etsec1-rx
irq 15                          0*                    0  etsec3-tx
irq 16                          0*                    0  etsec3-rx
irq 17                          0*                    0  etsec3-err
irq 18                          0*                    0  etsec1-err
irq 26                       1629*                    0  duart
irq 27                          0*                    0  i2c
irq 56                     730617*                    0  esdhc
msigroup 0                      0                    18* msi 0-31
========== after ==========

This patch is implemented by nonaka@n.o. Thanks.
2016-08-03 08:34:21 +00:00
knakahara 2c577ca608 fix: incorrect sysctlbyname(3) error handling.
pointed out by nonaka@n.o
2016-08-03 08:28:09 +00:00
pgoyette e8022dfde6 Include rump-vs-host ops files 2016-07-31 02:15:54 +00:00
pgoyette d5966167a4 Add rump.fssconfig 2016-07-31 02:13:26 +00:00
pgoyette 8628665eb6 Update command line parsing to match reality. Only one of -c, -u, or
-l can be specified, and the -x option is available only for -c.
2016-07-30 12:33:27 +00:00
pgoyette b3610864a5 Improve wording, enhance the example 2016-07-29 05:20:33 +00:00
martin f0b8f9c13b From Michael Plass:
The superblock field that distinguishes between 4.2BSD and 4.4BSD
inodes is really only relevant on a UFS1 file system. Make sure that
it is a UFS1 fs before using fs_old_inodefmt.

Note that the NetBSD newfs and mkfs utilities initialize fs_old_inodefmt
even for UFS2, so problems were apparent only on file systems created
by other operating systems, for example, FreeBSD.
2016-07-28 08:24:58 +00:00
christos 330a03324f Add -lz to makefile to fix the build. 2016-07-21 12:24:54 +00:00
msaitoh 3ee664bbf4 Update processor families from the latest Intel SDM:
- 06_4FH: Add Xeon E7 v4 and Core i7-69xx Extreme Edition
- 06_57H: Xeon Phi [357]200
2016-07-21 08:37:18 +00:00
christos 434e55df7c PR/51353: Patrick Mackey: mld6query "-r" option is not recognised
XXX: pullup 7
2016-07-20 23:19:18 +00:00
abhinav ee829d24f5 Use deroff() from mandoc(3) to directly parse the Nd macro rather
than parsing it by hand.

With the latest mandoc(3), the .Nd macro was getting parsed twice. This fixes
that problem and cleans up the code as well.

ok christos@
2016-07-17 15:56:14 +00:00
abhinav 19584ea1f8 Fix extraction of section number and machine architecture from man pages.
With the latest API, mdoc_validate()/man_validate() needs to be called before
reading the roff_man.meta field, otherwise it is NULL.

Also, if a man page doesn't specify machine architecture, don't default to '?'
, let it be stored as null in the db. Otherwise, the output of apropos(1) shows
the names of the results as \?/<title>
2016-07-17 12:18:12 +00:00
christos 00e4117929 Sync with API changes. 2016-07-15 19:41:33 +00:00