Commit Graph

20209 Commits

Author SHA1 Message Date
dholland
7e9db02257 Clarify use of open flags in open(2).
(Avoid using values of three that are equal to four.)
2021-03-17 08:04:39 +00:00
nia
53793f01c2 ossv4 mixer API: be extra careful with the inputs to AUDIO_MIXER_READ.
some drivers (not hdaudio(4), but uaudio(4), eap(4), sb(4), various other
old cards) will return error if a AUDIO_MIXER_VALUE is requested and the
number of channels is not specified as input. this is not documented as
well as it should be, unfortunately.
2021-03-15 10:58:05 +00:00
christos
9c2966c186 record the libblocklist dependency 2021-03-13 16:46:49 +00:00
christos
d48a1fa0b9 Underscore is a word character (thanks uwe@) 2021-03-11 18:49:18 +00:00
wiz
4481672ffb Remove trailing whitespace. 2021-03-11 17:13:29 +00:00
christos
be8d4886f8 improve wording. 2021-03-11 16:36:41 +00:00
christos
0ad4def4b8 Document the "C" language escapes supported in GNU mode. 2021-03-11 15:12:51 +00:00
christos
259eea82c4 recognize the "C" language backslash escapes like gnu does (except b which
is already taken)
2021-03-11 15:00:29 +00:00
msaitoh
44f4353477 s/skiping/skipping/ 2021-03-11 01:13:11 +00:00
christos
9c2964a923 Use __pthread_volatile for ptc_waiters (Greg A. Woods) 2021-03-10 15:05:11 +00:00
simonb
b2de856f1a Add manpage links for asysctl(3) and asysctlbyname(3), already described
in sysctl(3).
2021-03-10 13:30:34 +00:00
christos
e24596a734 cast to the proper enums for lint 2021-03-08 17:34:10 +00:00
christos
b7a595bc61 fix missing chars 2021-03-07 20:54:41 +00:00
christos
d54a6e0c5d Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)
2021-03-07 15:09:12 +00:00
christos
234ed2b238 Merge tzcode-2021a
- No comments in the changelog about the code changes.
2021-03-01 04:42:14 +00:00
christos
02b62279a7 arrange for tools build 2021-02-26 19:25:12 +00:00
christos
f09b31947c Arrange for tools build 2021-02-26 19:24:47 +00:00
wiz
e607de02f4 Fix xref, add missing word. 2021-02-26 06:39:14 +00:00
rin
e0b51b0024 Add missing endutent.3 to MAN. 2021-02-26 04:28:14 +00:00
christos
af5f2d14c6 put back line accidentally removed. 2021-02-26 03:19:34 +00:00
christos
64f644717c PR/56012: Kouichi Hashikawa: getutent(3) man page is missing 2021-02-26 03:05:01 +00:00
christos
67f076ea41 add missing _ 2021-02-25 21:59:27 +00:00
christos
6bde3cc411 fix NLS compilation 2021-02-25 21:47:46 +00:00
christos
e37fce9162 Add glue to disable locale code in order to be smaller. 2021-02-25 21:28:40 +00:00
christos
ccd77ba5a7 protect MIN from re-definition 2021-02-25 13:42:16 +00:00
christos
2cf99de680 reduce casts 2021-02-24 18:13:21 +00:00
wiz
2b21efb927 Restore NetBSD RCS Ids. 2021-02-24 09:10:12 +00:00
christos
1ee269c3a2 sync with FreeBSD:
- NLS support
    - GNU extensions
    - bug fixes
2021-02-23 22:14:59 +00:00
rillig
0249cb139b isascii.3: fix typo 2021-02-21 16:33:22 +00:00
simonb
0728b0ad24 Remove the incorrect register shuffle - we pass SYS___syscall as the
syscall number in v0 and pass all the original __syscall() args in their
original slots/regs.
2021-02-19 08:33:02 +00:00
dholland
33b1043c4f Document that rewinddir(3) might either reopen or just lseek the dir.
(Currently it depends on the underlying directory, but documenting the
exact details seems inadvisable.)

Also, Someone(TM) should check if POSIX permits this or if we ought to
improve the implementation.
2021-02-17 23:51:04 +00:00
dholland
7a305b1ba6 Fix some typos/malapropisms in directory(3). 2021-02-17 23:39:46 +00:00
wiz
5d6017335b Merge EINVAL descriptions; replace Xr to itself with Nm. 2021-02-17 22:55:20 +00:00
dholland
394b9005c2 Document more EINVAL cases for fsync_range.
Corresponds to previous code fix.
2021-02-17 17:43:09 +00:00
riastradh
14efb762fe Correct floating-point terminology.
Might want to harmonize the printf(3) and wprintf(3) descriptions of
`%a'.
2021-02-16 14:44:25 +00:00
wiz
026eaf4d13 Remove reference to multibyte(3) and trailing commas. 2021-02-15 15:38:43 +00:00
christos
53b5b1c0c5 Remove FreeBSD portions that are not relevant to our implementation (pointed
out by joerg@)
2021-02-15 15:36:53 +00:00
christos
da3ff69781 Add missing man pages (from FreeBSD) 2021-02-15 14:35:04 +00:00
rillig
609d11bc47 libcurses: fix wrong tab width for addch
In sysinst, the installation screen is indented with tabs.  Sysinst uses
msgc, which brings its own text layout engine.  This engine does not use
addbytes but addch.  In addch, the x position for each tab was advanced
twice as much as needed.  The menu items were thus not indented by 8
spaces but by 16, which caused an ugly line break in the German
translation.

This bug largely went unnoticed because most other applications use
addbytes instead, which worked fine all the time.  It had been
introduced somewhere between NetBSD 8.0 and NetBSD 9.0.

The code around this bug used aliased variables for win->curx and
win->cury a lot.  Getting this right is difficult and needs a thorough
test suite.  Even though libcurses has 201 tests, that is not nearly
enough to cover all the relations between the various functions in
libcurses that call each other, crossing API boundaries from internal
to external, doing character conversions on the way and juggling around
4 different types of characters (char, wchar_t, chtype, cchar_t).

The simplest fix was to remove all this aliasing, while keeping the
API the same.  If _cursesi_waddbytes is not considered part of the API,
it would be possible to replace px with win->curx in all places, same
for py and win->cury.

The complicated code with the aliasing may have been meant for
performance reasons, but it's hard to see any advantage if both points
of truth need to be synchronized all the time.

Libcurses can be built in 2 modes: with wide character support or
without (-DDISABLE_WCHAR).  The test suite only covers the variant with
wide characters.  The single-byte variant has to be tested manually.
Running sysinst with the single-byte libcurses produces the correct
layout.
2021-02-13 14:30:37 +00:00
rillig
76716cd400 curses.h: proofread, indent a bit more consistently 2021-02-13 10:37:00 +00:00
dholland
aad6139743 Document EINVAL for invalid flags given to fsync_range(). 2021-02-13 06:24:08 +00:00
wiz
d2560851e3 Try improving readability in wrt negations.
Use Nx.  Remove trailing whitespace.  Fix some typos.
2021-02-09 09:01:29 +00:00
dholland
d4c3ba45a9 Document in poll(2) that poll first appeared in NetBSD in NetBSD 1.3. 2021-02-09 01:12:01 +00:00
dholland
800d267b53 typo in previous. 2021-02-09 01:01:31 +00:00
dholland
cf51226d61 Rework the text of poll(2) for clarity. Bump date. 2021-02-09 00:50:47 +00:00
nia
1b135bd341 clarify what happens when kill(-1, ...) does nothing 2021-02-08 01:00:49 +00:00
rillig
a9a73810b2 curses_screen.3: fix typo 2021-02-07 23:00:57 +00:00
rillig
efd7ce1838 poll.2: fix typo in manual page 2021-02-07 18:22:51 +00:00
jdolecek
f0c6c300fa restore change from rev 1.23 "Avoid undefined behavior in fread(3)", mistakely
removed as part __SNBF optimization
2021-02-07 15:54:09 +00:00
rillig
ae30211ba7 libcurses: fix spelling in comment 2021-02-06 19:41:14 +00:00