Commit Graph

11309 Commits

Author SHA1 Message Date
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
shm 3d9e7389b4 Add USE_FORT support. 2016-07-13 13:10:04 +00:00
abhinav e4c681d955 Fix an off by one issue when concatenating strings. 2016-07-06 18:03:27 +00:00
abhinav d5630c9cd6 Avoid possible buffer overflow while parsing NAME section of man(7) pages.
Also, simplify copyging of strings, use estrdupn instead of emalloc + memcpy.

Patch from christos@, XXX comment by me
2016-07-06 08:52:01 +00:00
abhinav 84549e3f9b Fix possible buffer overflow when concatenating strings.
Patch from christos@
2016-07-06 06:57:40 +00:00
abhinav 168510ab07 Reuse variable from previous line. 2016-07-05 16:24:18 +00:00
christos eb3e8383b5 use sha1 from libc 2016-06-29 21:40:20 +00:00
christos fe909ecd47 remove libcrypto dependency, fix other dependencies. 2016-06-29 21:40:10 +00:00
mlelstv b66056e8a0 Print release also in hex.
Print device class information if -v is used twice.
2016-06-26 07:10:24 +00:00
christos 6125bf59b0 tidy up error messages 2016-06-24 19:24:11 +00:00
alnsn ff92ad9fb1 Fix a typo: s/can be use/can be used/ 2016-06-21 21:53:55 +00:00
abhinav 5646f914ca Improve wording, and add reference to mandoc(3)
Ok from wiz@
2016-06-18 06:36:18 +00:00
abhinav 3dbd2466c0 Fix grammar/spelling at few places. 2016-06-17 18:48:07 +00:00
abhinav 77fd34aa9f Add man.conf(5) and man(1) in the SEE ALSO section. 2016-06-16 14:07:16 +00:00
riastradh 08df494e80 Kill another -fno-strict-aliasing.
Generated code is same with/without.
2016-06-15 14:08:24 +00:00
riastradh 17e0569b61 <stdbool.h> for true and false. 2016-06-15 14:07:54 +00:00
riastradh ebd94f1f29 Omit needless casts. 2016-06-15 13:57:39 +00:00
riastradh 7554812ac2 No more obvious strict aliasing violations here. 2016-06-15 13:57:26 +00:00
riastradh 356b70489c Kill another strict aliasing violation. 2016-06-15 13:47:26 +00:00
christos 069fe2afa8 PR/51234: Onno van der Linden: syslogd sometimes incorrectly handles iso to
bsd time conversion
2016-06-11 16:55:10 +00:00
christos 3e135a8eaf delete generated file 2016-06-08 02:58:19 +00:00
christos da3d868a6d elide stack protector warning 2016-06-08 02:00:40 +00:00
christos 56eb3ad46e Port to linux 2016-06-08 01:19:05 +00:00
christos 7a9cbcee88 port to linux 2016-06-08 01:17:54 +00:00
christos a8c503e1c4 Port to linux 2016-06-08 01:16:35 +00:00
christos 3af7e55f48 compile on linux 2016-06-08 01:15:26 +00:00
christos 32c5e1062b portability macros. 2016-06-08 01:13:14 +00:00
christos cdd21bd307 Quick+Dirty port to linux 2016-06-08 01:11:49 +00:00
abhinav 4647c1ec31 Refactor the function for executing the search SQL query into two parts.
One part is responsible for generating the SQL query
The other part is responsible for executing the generated query.

While there, also remove a comment which is not valid anymore.
And, don't call the snippet function when doing legacy mode search as we are
not using the full text feature there.
2016-06-01 15:59:18 +00:00
dholland f8610727d2 Disable the code that tries to prepare a new partition table (but doesn't
do anything with it...) because it's zooming off the end of the array it's
trying to use.

It looks to me as if NEW_MAP_SIZE has been accidentally used as both
the number of blocks occupied by the new partition table and also the
number of entries in it. Or something. This needs platform knowledge
to sort out. XXX.

Workaround for PR 50757.
2016-05-31 02:49:50 +00:00
abhinav c995cb6b03 Add 'a' to the stopwords list. Ok from christos 2016-05-30 19:35:29 +00:00
dholland d9a33fbe91 Explicitly ignore errors in the hack for mucking with wedges; mark it XXX
for future attention. Other part of PR 50886 from David Binderman.
2016-05-30 17:03:21 +00:00
dholland ccc5db6204 #if out some unreachable code that's apparently not yet supported.
PR 50886 from David Binderman.
2016-05-30 17:00:38 +00:00
dholland 2e499a79d1 Call the path for makewhatis _PATH_MAKEWHATIS instead of _PATH_WHATIS,
for clarity.
2016-05-29 22:33:39 +00:00
dholland 5f3c7438e2 Add notes on how to lift the BUGS entry in the man page (about not
supporting hardlinks) in case anyone thinks it's worth doing sometime.
2016-05-29 22:32:03 +00:00
dholland db0374af17 Add missing rcsid. 2016-05-29 22:09:51 +00:00