Commit Graph

11344 Commits

Author SHA1 Message Date
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
christos 1c3e92696a npftest needs to disable mprotect because it uses bpfjit 2016-05-29 02:28:07 +00:00
abhinav 40d75a907b Bring man pages in sync with reality.
Remove man pages run_query_html.3 and run_query_pager.3 as the corresponding
functions have been removed from apropos-utils.c
Ok by wiz@
2016-05-24 18:06:42 +00:00
wiz 70ceaf5cff Fix typo. From Michael Scherer in PR 51162. 2016-05-24 05:46:57 +00:00
abhinav e92872065a Add options to whatis and apropos to accept custom man.conf.
makemandb(8), man(1) already use -C as an option to take man.conf path,
	so use the same option for whatis(1) and apropos(1) for consitency.
	apropos was using -C/-c to disable/enable context of the search
	matches, change that to -M/-m respectively.
2016-05-22 19:26:04 +00:00
abhinav a9a3a72028 Remove a trailing white space after .Nm (mandoc -Tlint was complaining about it) 2016-05-22 05:03:17 +00:00
msaitoh cbd48b4fa7 Add some name from the latest Intel SDM.
- Quark X1000, Xeon E5 v4 and the future processors.
2016-04-27 08:53:28 +00:00
msaitoh 50eab7c968 - Add structure extended feature registers into ci_feat_val[]. The locations
are the same as x86/include/cpu.h. Curreltly those values are not used yet.
- KNF.
2016-04-27 06:58:06 +00:00
knakahara 4da67da0b7 fix ATF net/npf/t_npf failure 2016-04-25 02:01:32 +00:00
christos 2c6689d2dc CID 1358675: Wrong variable test 2016-04-24 18:11:43 +00:00
christos d8ea5c36d1 add a newline 2016-04-23 14:15:36 +00:00
christos 5e64704ab9 PR/51062: Abhinav Upadhyay: Allow non numeric sections to be indexed and
searched by apropos(1).
Fold long lines.
2016-04-13 11:48:29 +00:00
christos 0fc86a7786 PR/51040: Abhinav Upadhyay: Fix memory leak 2016-04-13 01:41:18 +00:00
christos b3b58d82a5 PR/51039: Abhinav Upadhyay: Check for return value of chdir(2) 2016-04-13 01:40:09 +00:00
christos 90f8d04e63 PR/51038: Abhinav Upadhyay: check for access permissions to the sqlite database 2016-04-13 01:37:50 +00:00
christos 88453a2aaf PR/51034: Abhinav Upadhyay: Close database connection when failed to commit 2016-04-13 01:32:00 +00:00
wiz e3ed9c4909 Sort sections. Use more markup. 2016-04-10 09:49:14 +00:00
martin 0e449e1bfb Cosmetic tweaks to vncfonfig -l output, from Robert Elz (with minor tweaks
[and all bugs] by me). This should restore compatibility for old scripts
trying to find free vnodes in the new cloning world order.
2016-04-10 09:04:09 +00:00
bouyer 16b5bc5ec8 Fix pasto for GPIO_PIN_EVENTS/GPIO_PIN_LEVEL/GPIO_PIN_FALLING
(not used at this time)
2016-04-05 10:58:04 +00:00
wiz 4120986a4e Sort sections. 2016-04-04 13:29:12 +00:00
ozaki-r 09973b35ac Separate nexthop caches from the routing table
By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.

Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
  - sysctl(NET_RT_DUMP) doesn't return them
  - If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
  - RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
  - It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
  - -[no]cloning remains because it seems there are users
  - -[no]connected is introduced and recommended
    to be used instead of -[no]cloning
- route show/netstat -r drops some flags
  - 'L' and 'c' are not seen anymore
  - 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
  a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route

You can know details of behavior changes by seeing diffs under tests/.

Proposed on tech-net and tech-kern:
  http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html
2016-04-04 07:37:07 +00:00
christos 8896183565 PR/51034: Abhinav Upadhyay: makemandb(8): Close database connection when
failed to commit
2016-03-31 20:17:58 +00:00
christos b7d6e6d52a PR/51025: Abhinav Upadhyay: Remove unused includes from apropos-utils.c 2016-03-31 20:16:58 +00:00
christos c97f735da9 update with the final list 2016-03-31 20:15:49 +00:00
christos 79f5688eb8 PR/51018: Abhinav Upadhyay: Update stopwords list for apropos(1) 2016-03-31 20:14:36 +00:00
christos 041c892aee PR/51007: Abhinav Upadhyay: apropos.c: Remove unused includes 2016-03-31 20:13:37 +00:00
christos 8fb426c83c PR/51006: Abhinav Upadhyay: makemandb(8) should parse escape sequences
in the NAME section
2016-03-24 17:28:03 +00:00
christos 751d5fc660 PR/51004: Abhinav Upadhyay: apropos html mode doesn't handle especial
characters in the short description
2016-03-24 16:07:13 +00:00
christos 533b5973e2 PR/50460: Abhinav Upadhyay: Fix legacy apropos query to match both the name
and the one line description and delete extra args.
2016-03-20 17:31:09 +00:00
christos 5cbe00119b Expose debugging 2016-03-17 15:25:46 +00:00
christos 60a7af113b PR/50966: David Binderman: Use all 3 of b, p, n to determine if route changed 2016-03-13 19:47:59 +00:00
dholland cb7768eac3 Close file on error path. PR 50925 from David Binderman. 2016-03-12 02:27:31 +00:00
dholland 5a1d7e46f3 Don't cast malloc. 2016-03-12 02:26:40 +00:00
dholland 666bec36a3 Fix another conditional with wrong (missing) parens. 2016-03-12 02:07:44 +00:00
dholland 5488f4aae3 Clean up gcc warnings. 2016-03-12 02:06:32 +00:00
dholland 48fa59d156 Remove trailing whitespace 2016-03-12 02:02:00 +00:00
dholland 49f907c597 Fix operator precedence in complex conditional by separating out the
assignment part. PR 50954 from David Binderman. While here, separate
out the assignment in all the other similar conditionals too.
2016-03-12 02:01:23 +00:00
christos f2ec6c66ac PR/50911: David Binderman: Optimize memset 2016-03-07 15:58:05 +00:00
christos 42418d20f1 fix indent 2016-03-02 19:28:56 +00:00
martin 04a908fefc David Binderman in PR bin/50884: simplify boolean expression 2016-03-02 19:03:31 +00:00
christos 73a99c19aa PR/50867: David Binderman: Fix parsing loop.
While here, modernize error handling, merge copy and pasted code.
2016-02-29 18:59:52 +00:00
christos bdb04d1c84 CID 1354301, 1354302, 1354303: Fix uninitialized variable. 2016-02-27 16:40:22 +00:00
christos 2e158c8994 PR/50860: David Binderman: Remove redundant code. 2016-02-26 18:20:44 +00:00
christos 6dcfeeec3b PR/50860: David Binderman: Remove redundant code. 2016-02-26 18:20:00 +00:00
ozaki-r ed89e004b6 Kill confusable use of SIN_PROXY 2016-02-24 08:01:09 +00:00
christos 3b8b3a1c95 PR/50821: David Binderman: remove "i <" i < 2016-02-17 19:57:01 +00:00
christos d6c5440ef4 PR/50824: David Binderman: Limit scanf width 2016-02-17 19:51:29 +00:00
wiz da22e8d742 Document file format better. From Travis Paul and Matthew Bauer.
Bump date.
Addresses PR 50787.
2016-02-09 14:14:02 +00:00
mlelstv bbd8666d0f Split case folding table into separate source file and add full
copyright and permission notice from http://www.unicode.org/copyright.html
2016-02-06 10:40:58 +00:00
christos e612b1d7f8 PR/50751: David Binderman: check bounds before dereferencing. 2016-02-03 05:34:21 +00:00
christos 2c345cb425 PR/50741: David Binderman: Fix assignment in assert. 2016-02-01 17:46:22 +00:00
christos b5a97f534d Add ip6addrctl 2016-01-30 23:45:37 +00:00
mlelstv 223c7df5b3 Add support to msdosfs and makefs to generate correct Unicode (UCS-2) directory
entries from UTF8 encoded file names.
2016-01-30 09:59:27 +00:00
christos 91708124b8 Don't crash if we have a missing section. 2016-01-28 03:32:29 +00:00
riastradh 8248001c7f Use unsigned, not signed, int for shifting 1 left until zero.
Signed shift into sign bit and beyond is undefined behaviour.

From Michael McConville.
2016-01-27 18:55:51 +00:00
martin 1ef77d7e7c David Binderman in PR bin/50714: fix memory leak 2016-01-26 14:08:58 +00:00
martin 4d3ac9f239 David Binderman in PR bin/50713: fix memory leaks 2016-01-26 14:05:29 +00:00
pooka 76f0658b35 include proplib.h if you're going to useuseitit 2016-01-25 12:24:41 +00:00
christos ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
christos 068fc977ee handle v4 mapped addresses 2016-01-22 22:03:54 +00:00
christos bf07f60056 PR/50666: David Binderman:
He's out of jail and out of bail and that's the way it goes:
    free(base);
2016-01-17 14:50:31 +00:00
msaitoh 0f62afa17e From the latest Intel SDM:
- Add Xeon E3-1200 v5
- Change 0x1c from "Atom Family" to "45nm Atom Family"
2016-01-08 02:28:44 +00:00
khorben 201849b330 Typo 2016-01-05 00:41:30 +00:00
martin 2793d78f76 From Jim Bernard in PR install/50615: install_checksum expects a path
relative to ${DESTDIR}, and most callers did pass it that way - fix the
one place where it eroneously was called with a ${DESTDIR} path.
2016-01-03 08:44:59 +00:00
pgoyette f6b47a4477 Add missing $NetBSD$ tag, and copy License/Copyright from mountd.c
OK christos@
2015-12-29 04:30:43 +00:00
joerg 4bd09a48ba usage is dead 2015-12-27 12:42:52 +00:00