Commit Graph

19592 Commits

Author SHA1 Message Date
mgorny 3f42a56a4c Fix thinko: syscalls -> signals 2019-07-11 03:30:01 +00:00
mgorny 5428c4a258 Improve/fix doc of PT_SETSTEP and PT_CLEARSTEP.
Reviewed by kamil.
2019-07-10 19:51:14 +00:00
mgorny d79e8eeec8 Fix typo: SIGRAP -> SIGTRAP 2019-07-10 19:03:47 +00:00
mlelstv 37d9a541e0 The correct fix for lib/51000 is not to remove the apparently dead assignment
but to add the missing usage.

From https://bitbucket.org/tnozaki/netbsd/commits/24b35fdce250
Thanks to Takehiko Nozaki
2019-07-08 06:45:01 +00:00
dholland c2e7ae765c Fix up mangled logic, hopefully. PR 54323 from David Binderman.
XXX: This code is pretty dodgy in general and would benefit from a
XXX: workover by someone who knows what it's supposed to be doing.
XXX: E.g. it appears that a read error will cause an infinite loop...
2019-07-03 18:40:33 +00:00
christos 7005738d9a Sync with 2019b:
zic's new -b option supports a way to control data bloat and to
    test for year-2038 bugs in software that reads TZif files.
    'zic -b fat' and 'zic -b slim' generate larger and smaller output;
    for example, changing from fat to slim shrinks the Europe/London
    file from 3648 to 1599 bytes, saving about 56%.  Fat and slim
    files represent the same set of timestamps and use the same TZif
    format as documented in tzfile(5) and in Internet RFC 8536.
    Fat format attempts to work around bugs or incompatibilities in
    older software, notably software that mishandles 64-bit TZif data
    or uses obsolete TZ strings like "EET-2EEST" that lack DST rules.
    Slim format is more efficient and does not work around 64-bit bugs
    or obsolete TZ strings.  Currently zic defaults to fat format
    unless you compile with -DZIC_BLOAT_DEFAULT=\"slim\"; this
    out-of-the-box default is intended to change in future releases
    as the buggy software often mishandles timestamps anyway.

    zic no longer treats a set of rules ending in 2037 specially.
    Previously, zic assumed that such a ruleset meant that future
    timestamps could not be predicted, and therefore omitted a
    POSIX-like TZ string in the TZif output.  The old behavior is no
    longer needed for current tzdata, and caused problems with newlib
    when used with older tzdata (reported by David Gauchard).

    zic no longer generates some artifact transitions.  For example,
    Europe/London no longer has a no-op transition in January 1996.
2019-07-03 15:50:16 +00:00
wiz f3a84d0dfb Improve formatting, fix a typo, bump date for previous. 2019-07-01 07:16:25 +00:00
blymn 4aba88d186 Bump major number due to libcurses major bump 2019-06-30 22:17:22 +00:00
blymn cb5c29f5ae Fix return for mvscanw to return ERR/OK instead of the number of
elements scanned, now matches SUSv2 specification

Bump lib major due to return change.
2019-06-30 22:16:20 +00:00
christos ac94b724c0 Add a comment explaining why we don't use DO here. Correct the attribution
on the previous patch: The patch was from Jordan Lewis and the report from
Raphael Poss.
2019-06-30 13:30:15 +00:00
christos 0d31660187 PR/54329: Raphael Ross: According to https://www.gnu.org/software/termutils/\
manual/termcap-1.3/html_chapter/termcap_4.html#SEC23 the cursor move multiple
escapes have undefined results when moving out of the screen. Stop using DO
to move down multiple lines and use a loop of newlines instead.
2019-06-29 21:35:09 +00:00
wiz cb2bfe58e7 Use Vt for variable types. New sentence, new line. Add a missing ')'.
Add/remove some articles or other missing words.
2019-06-26 13:31:48 +00:00
mgorny c2ad96ff63 Implement PT_GETXSTATE and PT_SETXSTATE
Introduce two new ptrace() requests: PT_GETXSTATE and PT_SETXSTATE,
that provide access to the extended (and extensible) set of FPU
registers on amd64 and i386.  At the moment, this covers AVX (YMM)
and AVX-512 (ZMM, opmask) registers.  It can be easily extended
to cover further register types without breaking backwards
compatibility.

PT_GETXSTATE issues the XSAVE instruction with all kernel-supported
extended components enabled.  The data is copied into 'struct xstate'
(which -- unlike the XSAVE area itself -- has stable format
and offsets).

PT_SETXSTATE issues the XRSTOR instruction to restore the register
values from user-provided 'struct xstate'.  The function replaces only
the specific XSAVE components that are listed in 'xs_rfbm' field,
making it possible to issue partial updates.

Both syscalls take a 'struct iovec' pointer rather than a direct
argument.  This requires the caller to explicitly specify the buffer
size.  As a result, existing code will continue to work correctly
when the structure is extended (performing partial reads/updates).
2019-06-26 12:30:12 +00:00
wiz e92fdad11f fifo -> FIFO. Sort errors. 2019-06-20 06:59:32 +00:00
kamil 177438b064 Add mkfifo{,at}(2) mode in mknod{,at}(2) as requested by POSIX
mknod with mode & S_IFIFO and dev=0 shall behave like mkfifo.

Update the documentation to reflect this state.

Add ATF tests.

This is an in-kernel implementation as typically user-space programs use
mkfifo(2) directly, however whenever there is need to bypass libc (like in
valgrind) then portable POSIX software calls the mknod syscall.

Noted on tech-kern@ by Greg Troxel.
2019-06-20 03:31:53 +00:00
uwe b84ea9c460 Small markup fixes. 2019-06-19 20:20:52 +00:00
kamil a04979c2ea Fix warning message for mknod symbol linkage
The correct reference for mknod(2) is in <sys/stat.h>
2019-06-18 14:25:04 +00:00
wiz f525fbd105 Fix typo. 2019-06-12 12:32:54 +00:00
kamil 3fa4aee840 Try to make posix_spawn(3) note in ptrace(2) less confusing 2019-06-12 12:30:42 +00:00
kamil 212f28ad56 Rephrase sentence about vfork+exec in posix_spawn(3)
Try to make it less confusing.

Requested by <joerg>
2019-06-12 12:26:24 +00:00
wiz 10cd7be093 Use Xr. 2019-06-12 10:09:26 +00:00
kamil a2bdb35ead Document that posix_spawn(3) uses a dedicated syscall
vfork+exec operations are done in one go. This is important information for
programs that wrap posix_spawn(3).
2019-06-12 00:05:48 +00:00
kamil b57d087b4c Document PTRACE_POSIX_SPAWN in man-page 2019-06-11 23:27:46 +00:00
wiz afa9490a07 Quote the name "Ed" to avoid confusion with the macro "Ed". 2019-06-11 12:49:21 +00:00
kamil 93e6f7a330 Correct outdated note that posix_spawn(3) is implemented with vfork(2)
The original FreeBSD libc code uses vfork(2), it's not the case for NetBSD
as there is a dedicated kernel syscall.
2019-06-11 12:47:34 +00:00
blymn febeea01e0 Fix typo for unknown key keyname return. 2019-06-11 10:17:24 +00:00
blymn 2a780e62ed Rework previous fix for getch cursor position when cursor is moved
without refresh.  If the window is not dirty but the window cursor
position does not match curscr then move the cursor.  This fixes
the issues seen in PR lib/54263.
2019-06-09 07:40:14 +00:00
maxv d1002cd7eb Change the NVMM API to reduce data movements. Sent to tech-kern@. 2019-06-08 07:27:44 +00:00
christos 037284caf7 PR/54281: Jonathan Perkins: NUL terminate rl_line_buffer on modification
to avoid completion leak.
2019-06-07 15:21:48 +00:00
christos 72dd3db662 PR/54280: rl_completer_quote_characters should be const for readline compat 2019-06-07 15:19:29 +00:00
christos b8c4664f83 PR/54279: Jonathan Perkins: Ignore adjacent start/end prompt ignore. 2019-06-07 15:18:20 +00:00
hannken 6f60c4f99e Move the basic part of XDR to common/include/rpc and common/lib/libc/rpc.
No functional change intended.
2019-06-04 15:07:55 +00:00
hannken 25da6a6235 Implement xdrmem_control(), used as xdr_control(xdr, XDR_GET_BYTES_AVAIL ...
and bump libc minor number.

Final goal is to remove the unmaintained XDR implementation
at external/cddl/osnet/dist/uts/common/rpc.
2019-06-04 08:44:08 +00:00
mlelstv 8137552a24 Fix key loading logic and add log message when rejecting an unencrypted key. 2019-06-01 07:15:39 +00:00
msaitoh a582b4ae9f Fix typo(s/suppport/support/) in comment. From FreeBSD. 2019-05-29 02:30:42 +00:00
christos 2f3bda949c Add GLOB_TILDE_CHECK (from GNU) 2019-05-29 01:21:33 +00:00
abhinav e1cf3640ab Fix typo: s/then/the 2019-05-26 06:18:13 +00:00
kamil 7be13601f3 Update the ptrace(2) documentation
Document that TRAP_EXEC can be returned for PT_SYSCALL.
Document truncated byte transfers.
2019-05-25 04:25:14 +00:00
blymn e2cfd49c61 Back out incorrect fix for PR 53617 and fix it in a different way.
Keep track of the cursor location, if getch is called without a refresh
and without pending updates (dirty windows) then move the cursor to the
correct location directly.  Doing this prevents unnecessary refreshes.
2019-05-20 22:17:41 +00:00
tpaul 0b7d2ee43d Prevent Lua from crashing if clear_bindings() is called on a statement
that failed to prepare().

ok mbalmer@
2019-05-16 12:42:35 +00:00
blymn 652cdcd214 Fix _cursesi_addwchar so that it performs line wrap. SUSv2 says
add_wch line wraps and updates position.  Since wrap is done we are
not past EOL.
2019-05-12 02:29:00 +00:00
blymn d63c9d29fb Add more debug to _wnoutrefresh 2019-05-12 02:19:23 +00:00
maxv c32e3374f1 Replace "VMM" by "emulator", clearer. 2019-05-11 07:44:00 +00:00
maxv 113821f1a2 Sync with reality. 2019-05-11 07:40:38 +00:00
maxv bfb4017486 Rework the machine configuration interface.
Provide three ranges in the conf space: <libnvmm:0-100>, <MI:100-200> and
<MD:200-...>. Remove nvmm_callbacks_register(), and replace it by the conf
op NVMM_MACH_CONF_CALLBACKS, handled by libnvmm. The callbacks are now
per-machine, and the emulators should now do:

-	nvmm_callbacks_register(&cbs);
+	nvmm_machine_configure(&mach, NVMM_MACH_CONF_CALLBACKS, &cbs);

This provides more granularity, for example if the process runs two VMs
and wants different callbacks for each.
2019-05-11 07:31:56 +00:00
nakayama 063ec26a98 Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no". 2019-05-10 09:42:46 +00:00
wiz 220b9b32b9 Remove trailing whitespace. 2019-05-09 09:09:38 +00:00
bad a057d46c24 Clarify that strunvisx() and strnunvisx() take the same flags as unvis().
Document VIS_NOESCAPE for unvis().
Bump date.
2019-05-08 15:37:41 +00:00
christos 9beb52efed mention truncation of the result if the size in optlen is less that the
size of the option to be returned in optval.
2019-05-08 14:10:42 +00:00
maya 07975b2231 Make CLEANFILES actually work. .TARGET is not defined when not in a target
rule.

Thanks xtos for the heads up.
2019-05-07 18:45:37 +00:00