Commit Graph

14121 Commits

Author SHA1 Message Date
gutteridge c8a27b6c18 audioplay.1: generalize a reference to web browsers 2020-04-10 21:33:27 +00:00
sevan 219fc162e3 Add history section 2020-04-07 17:57:33 +00:00
maya b0f199cb12 Exit successfully after printing the search path, stop further processing.
Continuing to process had the unintended effect that `man` failed to find
a matching manual page for {EMPTY LIST OF REQUESTED MANUAL PAGES}, and
exited with 1.

Prompted by a fish shell snippet that tried and failed to distinguish between
FreeBSD man (-p takes argument) and NetBSD man (-p no argument) by comparing
`man -p` exit code.

ok riastradh, logix (which also pointed out the manual page SYNOPSIS is
saying man -p should be used this way).
2020-04-06 19:53:22 +00:00
joerg 9d91b80ed9 Avoid depending on common symbols. 2020-04-03 19:53:41 +00:00
christos 92aab12c02 remove unused 2020-04-03 16:41:59 +00:00
martin af2ed9cf6e Make route and netstat share the same struct progops (and initialization
code)
2020-04-03 16:20:51 +00:00
wiz c1ffb7d597 Update usage for ioctlprint. 2020-04-03 06:13:07 +00:00
wiz 232ae71526 Increase column widths. Improve -l description wording to match ioctl(2).
Fix Xr.
2020-04-03 06:12:48 +00:00
sjg f48d69a4a4 Revert arraycount 2020-04-03 03:35:16 +00:00
sjg 8953c85736 CHECK_VALID_META is too agressive for CMD check.
An empty CMD is perfectly valid.
So using CHECK_VALID_META results in too much rebuilding.
2020-04-03 03:32:28 +00:00
christos 2433f541c2 remove debugging 2020-04-02 21:36:03 +00:00
christos 4ea9b97786 Add the ability to:
1. list all ioctls (-l)
2. print the internal definition symbolically
3. search by name

$ ioctlprint -f "%n %E %e\n" TIOCGETA
TIOCGETA _IOR('t', 19, struct termios) _IOR('t',0x13,0x2c)
2020-04-02 17:41:33 +00:00
christos e30be371ac *** empty log message *** 2020-04-02 17:40:33 +00:00
sevan 07b0c9f241 just spaces 2020-04-02 11:34:33 +00:00
sevan 6c11760453 align 2020-04-02 11:32:31 +00:00
sevan a1cccef3bb Add NetBSD 9.0 & 8.2
Heads up by Harold Gutch
2020-04-02 11:27:55 +00:00
wiz 8ec0a7f9b1 Remove superfluous Pp. Add comma in enumeration. Add RCS Id. 2020-04-02 08:38:22 +00:00
wiz 49e3bec9e0 Add comma in enumeration. 2020-04-02 08:35:12 +00:00
kamil 090d46375e Note ioctlprint(1) in SEE ALSO 2020-04-02 03:35:48 +00:00
kamil bf4492493d Add ioctlprint - descriptive ioctl value printer
ioctlprint(1) is embedded in the kdump(1) program.
2020-04-02 03:32:46 +00:00
christos befd78930e improve error messages, minor cleanups. 2020-04-01 21:04:34 +00:00
roy 721f832e4d infocmp: don't crash when a terminfo description does not have an alias 2020-03-31 12:44:15 +00:00
sjg a899a18fa4 make: fix -fno-common build
debug was declared extern, but debug_file was not; correct this and define
debug_file in main.c (as debug is) to fix the -fno-common build.

-fno-common will become the default with GCC10/LLVM11.

Patch from kevans at freebsd
2020-03-30 02:41:06 +00:00
roy 15455edc23 infocmp: strip versioning from aliases as well 2020-03-30 00:22:18 +00:00
roy 7f0204b5ec terminfo: v3 records should create v3 aliases 2020-03-30 00:09:06 +00:00
roy 7acb561444 tic: Duplicate and promote v1 records when merging a v3 record
When this occurs, tic merges the matching v1 record into the original v1.

The screen-256color record by itself doesn't have any numerics bigger
than a short, but the xterm+256setaf record does.

The screen-256color record is now as it was before the recent terminfo2.cdb
merge into terminfo.cdb.
2020-03-29 21:54:03 +00:00
roy 7d80d661b8 infocmp: Strip versioning from terminfo name 2020-03-29 19:10:08 +00:00
sevan 1374c74081 tense 2020-03-29 17:50:23 +00:00
sevan 76f7101b9e Document ktrace history 2020-03-29 17:48:18 +00:00
christos 6a8abee637 Deal with both .db and .cdb extensions... 2020-03-28 15:50:25 +00:00
roy 53fb7b3384 tic: free the old buffer after promoting the record type 2020-03-28 15:37:04 +00:00
roy d58481db06 tic: use EXIT_FAILURE rather than magic numbers 2020-03-28 15:22:27 +00:00
roy cd91284921 Whitespace 2020-03-28 15:20:30 +00:00
roy f15baa5b00 tic: promote record type when merging newer into older 2020-03-28 15:19:56 +00:00
sevan 4f3f7bbf42 Add higher state of consciousness
https://twitter.com/joshwink1/status/1243360644042113024
2020-03-27 21:03:17 +00:00
christos f73231da8b Use the new functions and add more error checking. 2020-03-27 17:42:36 +00:00
christos 3958d16a96 As described in tech-userlevel:
- Modify the writing code to only write entries in the new
  format for the terminal descriptions that require it.
- Store new format entries as <name>@v3
- Store old format entries with clamped values as <name> for
  backwards compatibility
- Lookup first <name>@v3 and then <name> if that is not found.
- Don't create terminfo2 anymore; old programs keep working with
  clamped entries, and new programs be able to use the wide
  fields with using the original db file.
2020-03-27 15:11:57 +00:00
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