Commit Graph

14084 Commits

Author SHA1 Message Date
ad fdd120904c ncs_collisions is gone. 2020-03-23 18:44:17 +00:00
ad 1d7848ad43 Process concurrent page faults on individual uvm_objects / vm_amaps in
parallel, where the relevant pages are already in-core.  Proposed on
tech-kern.

Temporarily disabled on MP architectures with __HAVE_UNLOCKED_PMAP until
adjustments are made to their pmaps.
2020-03-22 18:32:41 +00:00
ad b840e629cd - Don't copy the entire namecache only to look up a few names. Walk the
data structures like cache_revlookup().

- nchash and mb_map are gone.  module_map replaced lkm_map.
2020-03-22 14:41:32 +00:00
ad 134d380e04 - nchash is gone.
- Report new namecache stats.
2020-03-22 14:39:28 +00:00
sevan 5cc2594b75 Note the birthday of Symbolics.com 2020-03-19 07:20:36 +00:00
sjg 9b28b4b74d Check for meta file corruption earlier and more often. 2020-03-18 23:53:02 +00:00
wiz 1ae1945310 Sort sections. Fix date. 2020-03-14 09:01:11 +00:00
mrg b933b1f158 add an example of using midirecord(1) to learn about how device
specific MIDI messages are formed, allowing their use from MIDI
input files, not just the device controls.

using this method, i can now control the voice mode type on my
new synth.
2020-03-14 08:09:55 +00:00
roy aadfdb111b terminfo: promote numeric parameters from short to int
POSIX mandates implementations must support upto a short but may exceed it.
When NetBSD terminfo was implemented, no terminfo description used over
a short, but because ncurses has supported ints for some time, some now do.

Infact, such a terminfo description was imported where colour pairs for
screen-256color went up to 65536 which exposed a bug in the existing
implementation where it set to zero. Because the number might mean
something more than a range, we need to be able to store it accurately.

This requires a version bump because whilst the API hasn't changed thanks
to C int promotion, the ABI has. Also the underlying database structure
has changed as well - we now store the numeric paramter inside a uint32_t
field rather than a uint16_t one.
Whilst this change can still read the old style database, the old one
cannot read the new one and thus we now maintain the database as
terminfo2.cdb, leaving the old library and database alone so old programs
still work fine.

libcurses, libfrom, libmenu and libpanel have also been bumped to
accomoate this change.
2020-03-13 15:19:24 +00:00
christos 180ab6e0aa Add an enabled bit to keep track of the parent state (if we are ignoring
or parsing). Idea from uwe.
2020-03-09 17:27:03 +00:00
christos eb23c9a273 Add debugging, no functional change. 2020-03-08 17:38:37 +00:00
christos 782c9b9101 Recognize {if{,n}def,elfif{,n}def,else,endif} only at the beginning of the
line or after whitespace.
2020-03-08 00:04:11 +00:00
christos c2ac5ba400 PR/55057: Paul Goyette: Don't use % 6 arithmetic that hurts the brain for
the ifdef state machine, use bits and shifts instead. Also don't forget to
restore the state once an include file ends.
2020-03-07 22:35:16 +00:00
christos 202553924e Keep track where more objects are declared so that we can print where things
have been redefined.
2020-03-07 19:26:13 +00:00
wiz 80e58ff06c genric -> generic 2020-03-05 22:44:19 +00:00
mrg befa44380d increase slot slop space from 100 to 1000 before giving up.
from Paul Ripke on current-users.  thanks!
2020-03-02 09:50:12 +00:00
christos 6627000f9f Fix sun2 2020-03-01 18:30:05 +00:00
sevan be3361ecf3 RIPE definition no longer exists in source 2020-03-01 02:45:04 +00:00
sevan 41abadd1d8 Order caps first 2020-03-01 02:26:16 +00:00
sevan c3f3ca568f Merge in changes from OpenBSD 6.6 whois(1).
This improves recursion support and querying whois servers.
2020-03-01 02:19:43 +00:00
lukem b310c98c56 update ftp version to 20190622 2020-02-26 05:55:27 +00:00
sevan dcde438ba5 Add K&R publish date
https://twitter.com/MIT_CSAIL/status/1231263883303645184
2020-02-24 00:02:55 +00:00
sevan ee58edef94 Add The KLF's Chill Out 2020-02-23 23:56:15 +00:00
sevan 501ef0a86e Add Ken Kesey 2020-02-22 23:17:59 +00:00
sevan 6f6ff1436b Add Ivan Sutherland's birthday 2020-02-22 19:25:25 +00:00
sevan 36d50de63d Add Bert Sutherland
https://twitter.com/ComputerHistory/status/1230200277141250050
2020-02-22 19:23:09 +00:00
sevan 2f0786204f Add Larry Tesler
https://www.nytimes.com/2020/02/20/technology/lawrence-tesler-dead.html
2020-02-22 19:21:40 +00:00
sevan cf86490505 Add Andrew Weatherall
https://www.bbc.co.uk/news/entertainment-arts-51535685
http://www.rottersgolfclub.com/
2020-02-17 21:47:33 +00:00
sjg b8cb226cc6 meta_compat_parent check for USE_FILEMON
patch from Soeren Tempel
2020-02-12 16:50:37 +00:00
christos b6b0a28bae use asprintf(). 2020-02-10 04:54:01 +00:00
fox 126c439986 usr.bin/xlint: Fix -Werror=format-overflow= error.
Replace sprintf(3) with snprintf(3).

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
2020-02-09 08:10:25 +00:00
kamil df9cced477 Avoid use-after-free bug in PAM environment
Traditional BSD putenv(3) was creating an internal copy of the passed
argument. Unfortunately this was causing memory leaks and was changed by
POSIX to not allocate.

Adapt the putenv(3) usage to modern POSIX (and NetBSD) semantics.
2020-02-08 13:44:35 +00:00
fox 171529808d user.bin/tftp: Suppress -Werror=format-overflow error.
Add -Wno-error=format-overflow tftp.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
2020-02-08 13:33:56 +00:00
ryo 04dc727438 arm64_image_header->image_size must be included size of arm64_image_header.
with -u option, image_size should be binary (file) size (header included).
without -u option, image_size should be binary (file) size + header size.
2020-02-08 13:27:00 +00:00
fox a31bab7fbe usr.bin/talk: Suppress -Werror=stringop-truncation error.
Add GCC_NO_STRINGOP_TRUNCATION to get_names.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
2020-02-08 12:53:29 +00:00
leot 53a1bd1628 Fix a typo (extra `s') 2020-02-08 11:10:08 +00:00
kamil f342178338 Implement env(1) -0
-0      End each output line with NUL, not newline.

FreeBSD and GNU env(1) implement -0 which is used in 3rd party scripts.

This change is based on the FreeBSD code.
2020-02-08 11:02:07 +00:00
kamil 1b5d8d2ce0 Add CVS Id tag and switch __attribute__ to __dead. 2020-02-08 10:36:02 +00:00
kamil 08a9e8064e Implement env(1) -u
The option '-u name' causes removal of the name environment variable if
it is in the environment.  This is similar to the unset command in sh(1).
The value for name must not include the '=' character.

Add HISTORY section in the man page.

The -u argument is implemented by Linux, FreeBSD and Darwin.
The lack of -u in NetBSD is a cause for a frequent fallout in the LLVM
toolchain test-suite.
2020-02-08 10:30:22 +00:00
sevan 195c14775d Apple buys NeXT 2020-02-08 00:41:42 +00:00
fox 8d874901c0 usr.bin/config: Suppress -Werror=stringop-truncation error.
Add GCC_NO_STRINGOP_TRUNCATION to scan.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.
gcc version 8.3.0

Reviewed by: kamil@
2020-02-07 20:17:48 +00:00
simonb 882a370dc0 Add support for specifying an alternate locate.updatedb config file. 2020-02-06 08:45:44 +00:00
sjg ee757927d0 Fix meta_compat mode.
We need to call meta_job_output() from meta_compat_parent()
Also, the need for extra fds for meta mode only applies when
using filemon_ktrace.c.
Since we hope to see more interfaces like that, test for
USE_FILEMON_DEV being not defined.

Reviewed by: riastradh
2020-02-06 01:13:19 +00:00
wiz 658916dfa6 Remove trailing whitespace. 2020-02-04 16:28:29 +00:00
uwe bef663a135 Make delimiters in <file> and "file" literal. 2020-02-03 22:25:17 +00:00
kamil eff97f353a Fix usage of angle-brackets and quotes in make(1) manpage
make(1) has commands .include <file> and .include "file",
but the manpage was (inconsistently) rendering <file> with
angle-brackets (e.g. in UTF8  ) and "file" with curly-quotes
in HTML output (but not text).

This is an attempt to fix that and output only literal <file>
and "file" as is actually required in the makefile.fileoutput,

https://reviews.freebsd.org/D21470

Submitted by Mateusz Piotrowski (FreeBSD)
2020-02-03 15:47:03 +00:00
kamil 771c425869 Port realpath(1) from FreeBSD
realpath(1) wraps realpath(3) and returns resolved physical path.

This utility shipped with GNU and FreeBSD is sometimes
used in scripts in the wild.
2020-02-02 21:49:43 +00:00
thorpej af11cf9023 Update for per-cpu interface statistics. 2020-02-02 03:41:12 +00:00
sevan 0374e60ed5 audioamd is in the SPARC port 2020-01-31 00:21:53 +00:00
sevan 98402c6d84 new sentence, new line 2020-01-31 00:15:38 +00:00