Sascha Wildner [Tue, 23 Feb 2021 07:23:13 +0000 (08:23 +0100)]
grdc.6: Fix .Dd typo.
Aaron LI [Mon, 22 Feb 2021 14:22:53 +0000 (22:22 +0800)]
cgram(6): Don't move over the last char and fix an assertion
The maximum value of cursor_x was the text length and thus also
*equaled* to extent_x, which broke the assertion in substitute()
and caused crashes.
In addition, the cursor could move just beyond the last character
on a line, which didn't make much sense.
So only allow the cursor move to the last char but not over it.
This also properly fix the above assertion issue.
Aaron LI [Mon, 22 Feb 2021 13:51:58 +0000 (21:51 +0800)]
cgram(6): Sync the rewritten version from NetBSD
Fixes:
* Do not consider the puzzle solved if all letters in the visible area
are substituted correctly. To be properly solved, the whole puzzle
must be solved, even those parts that are currently off-screen.
* Never place the cursor at the very right edge of the screen since that
does not work well with some terminals. The maximum valid x
coordinate is COLS - 1.
* Add horizontal scrolling. Make all coordinate handling symmetric in
regard to the horizontal and vertical axes. Previously, lines longer
than 80 characters could not be seen on the screen.
* Fix undefined behavior when pressing function keys, which was
resulting parts of the screen being cleaned.
Improvements:
* Remove the arbitrary limit of 128 characters per line. Even if
fortune(6) may never generate such long lines, the code is easy
enough to adapt to other sources.
* Properly clean up the allocated memory. Previously, only the string
arrays were freed but not the strings themselves.
* Allow navigation with page up/down keys.
* Consistently use char for characters, avoiding converting back and
forth between char, unsigned char and int.
Sascha Wildner [Sun, 21 Feb 2021 18:05:23 +0000 (19:05 +0100)]
bmake: Remove unneeded .PATH from the Makefile.
Antonio Huete Jimenez [Sun, 21 Feb 2021 15:33:27 +0000 (16:33 +0100)]
libaura: Improve fspred test a bit
Aaron LI [Sun, 21 Feb 2021 08:12:49 +0000 (16:12 +0800)]
grdc(6): Add '-t' option to show time in 12-hour format
Partially based on FreeBSD's implementation (revision 112749). But I
moved the AM/PM mark to the upper-left corner instead of the
bottom-right corner as in FreeBSD, because the mark in the bottom-right
corner would be flushed by scrolling.
In addition, improve the determination of AM/PM mark, including:
00:mm -> 12:mm AM
12:mm -> 12:mm PM
Aaron LI [Sun, 21 Feb 2021 07:48:46 +0000 (15:48 +0800)]
grdc(6): Improve scrolling timestamp precisions
Use clock_gettime() to obtain the current time with higher precision,
which is used to improve the scrolling timestamp, trying to make the
scrolling end on the integral seconds.
Inspired by OpenBSD's implementation.
Aaron LI [Sun, 21 Feb 2021 07:04:55 +0000 (15:04 +0800)]
grdc(6): Allow 'q' to quit immediately
Add support to allow pressing 'q' to quit immediately.
Partially based on OpenBSD's implementation:
https://github.com/openbsd/src/commit/
8ca82b000914eb1e6f45d22092c9358df4233247
Aaron LI [Sun, 21 Feb 2021 05:05:42 +0000 (13:05 +0800)]
grdc(6): Improve handling of long scroll delays
Add the scroll delay to the current time, so that the finally showed
time matches the real current time.
In addition, skip nanosleep() if the sleep interval is negative.
Aaron LI [Sun, 21 Feb 2021 04:23:19 +0000 (12:23 +0800)]
grdc(6): Various code cleanups
* Staticize various variables and functions.
* Reduce file-global variables.
* Minor style updates.
* Add a copyright header (as did by OpenBSD).
Aaron LI [Sun, 21 Feb 2021 04:02:19 +0000 (12:02 +0800)]
grdc(6): Fix 100% CPU usage and make timeout work again
grdc(6) was passing a timespec with tv_nsec = 1000000*1000, which is
invalid. So every nanosleep() call just returns with EINVAL error.
This causes grdc(6) to loop hard and uses 100% CPU. It also brreaks
the optional timeout argument; grdc(6) just exits immediately.
Fix the above issue by correctly setting the timespec argument.
This fix also makes the optional timeout argument work again.
Aaron LI [Sat, 20 Feb 2021 14:47:08 +0000 (22:47 +0800)]
ching(6): More minor code cleanups
Aaron LI [Sun, 21 Feb 2021 01:28:25 +0000 (09:28 +0800)]
ching(6): Fix HOME key to move to the beginning of line
Aaron LI [Sat, 20 Feb 2021 14:43:17 +0000 (22:43 +0800)]
cgram.6: Mention that cursor keys can also be used
Aaron LI [Sat, 20 Feb 2021 11:03:49 +0000 (19:03 +0800)]
cgram(6): Reformat code styles
Apply indent(1) and then manually adjust a bit.
Aaron LI [Sat, 20 Feb 2021 10:41:17 +0000 (18:41 +0800)]
games: Bring in cgram(6) from NetBSD
cgram is a curses-based widget for solving Sunday-paper-type cryptograms
based on substitution ciphers. A random cleartext is chosen using
fortune(6) and a random substitution key is generated.
Aaron LI [Sat, 20 Feb 2021 10:39:42 +0000 (18:39 +0800)]
games: Bring in monop(6) from NetBSD
monop is reminiscent of the Parker Brother's game Monopoly, and monitors
a game between 2 to 9 users. It is assumed that the rules of Monopoly
are known. The game follows the standard rules, with the exception that,
if a property goes up for auction and there are only two solvent players,
no auction is held and the property remains unowned.
Aaron LI [Sat, 20 Feb 2021 10:37:34 +0000 (18:37 +0800)]
games: Bring in gomoku(6) from NetBSD
gomoku is a two player game where the object is to get 5 in a row
horizontally, vertically or diagonally on a 19 by 19 grid.
Aaron LI [Sat, 20 Feb 2021 06:51:09 +0000 (14:51 +0800)]
ching.6: Mention mandoc(1) together with nroff(1)
Aaron LI [Sat, 20 Feb 2021 06:50:50 +0000 (14:50 +0800)]
ching(6): Simplify the sed expression
No functional/style changes.
Sascha Wildner [Sun, 21 Feb 2021 01:37:55 +0000 (02:37 +0100)]
<sys/sysent.h>: Remove the old SCARG() macro, de-SCARG() the mqueue code.
Sascha Wildner [Sat, 20 Feb 2021 23:04:26 +0000 (00:04 +0100)]
nrelease: Fix typo.
Antonio Huete Jimenez [Sat, 20 Feb 2021 18:55:23 +0000 (19:55 +0100)]
libaura: Do not initialize va_list args twice
- Fixes a segfault in the installer right after
"Begin Installing files".
Reported-by: @swildner
Antonio Huete Jimenez [Sat, 20 Feb 2021 15:16:05 +0000 (16:16 +0100)]
make(1): Bring in some overlooked local modifications.
- Bring back the following global variables and document them
a bit. Also bring back the manpage information about them.
.MAKE.BUILT.BY
.MAKE.DF.VERSION
.MAKE.DF.OSREL
- Bring back some manpage fixes (partially
cf7697c28d)
This should fix any DPorts build problems where those variables are
used.
Reported-by: @swildner
Aaron LI [Wed, 17 Feb 2021 13:47:03 +0000 (21:47 +0800)]
fexecve(2): Return ENOENT if exec a script opened with O_CLOEXEC
If a script (i.e., interpreter file) is opened with the O_CLOEXEC flag,
it would be closed by the time the interpreter is executed, and then the
executation would fail. So just return ENOENT from fexecve(2). This
behavior aligns with Linux's.
See Linux's fexecve(2) man page.
See also: https://bugzilla.kernel.org/show_bug.cgi?id=74481
Thank dillon for implementing the holdvnode2() function to obtain the
fileflags together with the fp from fd.
Aaron LI [Wed, 17 Feb 2021 12:29:36 +0000 (20:29 +0800)]
Implement the fexecve(2) system call
The fexecve(2) function is equivalent to execve(2), except that the file
to be executed is determined by the file descriptor fd instead of a
pathname.
The purpose of fexecve(2) is to enable executing a file which has been
verified to be the intended file. It is possible to actively check the
file by reading from the file descriptor and be sure that the file is
not exchanged for another between the reading and the execution.
See https://pubs.opengroup.org/onlinepubs/
9699919799/functions/fexecve.html
This work is partially based on swildner's patch and FreeBSD's
implementation (revisions 177787, 182191, 238220).
XXX: We're missing O_EXEC support in open(2).
Reviewed-by: dillon
Aaron LI [Wed, 17 Feb 2021 12:02:58 +0000 (20:02 +0800)]
kern: Clean error paths in kern_execve()
Merge the original 'exec_fail_dealloc' and 'exec_fail' to a single
'failed' error path. In addition, introduce the 'nch' variable to
clean some expressions a bit. These will help the following fexecve()
implementation.
While there, adjust the styles a bit.
Reviewed-by: dillon
Aaron LI [Wed, 17 Feb 2021 12:23:25 +0000 (20:23 +0800)]
kern: Return error from exec_copyin_strings() if fname copy failed
Aaron LI [Wed, 17 Feb 2021 12:18:42 +0000 (20:18 +0800)]
kern: Staticize several functions and variables in kern_exec.c
Staticize exec_copyin_args(), exec_free_args() and print_execve_args()
functions, and move the related prototypes and exec_path_segflg enum
from <sys/imgact.h> here.
In addition, staticize the 'debug_execve_args' variable.
Aaron LI [Wed, 17 Feb 2021 13:52:14 +0000 (21:52 +0800)]
execve(2): Minor markup improvements
Aaron LI [Sat, 23 Jan 2021 07:30:47 +0000 (15:30 +0800)]
execve.2: Document reopening of standard descriptors
Meanwhile, add the STANDARDS section and document the current standard
status. The reopening of standard descriptors is specified in
IEEE Std 1003.1-2001/Cor 1-2002, item XSH/TC1/D6/15.
Obtained-from: FreeBSD (r101480)
Antonio Huete Jimenez [Fri, 19 Feb 2021 15:34:58 +0000 (16:34 +0100)]
Upgrade make(1). 2/2
- Update README.DRAGONFLY
- Adapt Makefile
- Regenerate config.h
Antonio Huete Jimenez [Fri, 19 Feb 2021 18:02:04 +0000 (19:02 +0100)]
Upgrade make(1). 1/2
Merge branch 'vendor/BMAKE'
Antonio Huete Jimenez [Fri, 19 Feb 2021 17:49:01 +0000 (18:49 +0100)]
dsynth: Oops, parameters were reversed
Aaron LI [Fri, 19 Feb 2021 10:51:44 +0000 (18:51 +0800)]
ching(6): Support to format with mandoc(1)
We don't ship nroff(1) anymore, so adapt ching(6) to support to use
mandoc(1) to format its output. Mandoc(1) only implements part of
roff(7) language, but it's enough for ching(6), although minor
adjustments to the mandoc(1) output are needed to make it similar to
the nroff(1) output.
Prefer nroff(1) if it's available (provided by groff package).
Aaron LI [Fri, 19 Feb 2021 10:07:59 +0000 (18:07 +0800)]
ching(6): Tweak roff(7) macros to properly format with mandoc(1)
The '\t' sequence (or the literal tab between two arguments) is ignored
by mandoc(1), so change it to spaces, which displays well with mandoc(1).
Quote the last argument of the .LX macro to fix warnings:
"whitespace at end of input line"
Change '.rm LH' to '.ds LH' in the .L macro to fix warnings:
"undefined string, using "": LH"
Aaron LI [Fri, 19 Feb 2021 01:43:16 +0000 (09:43 +0800)]
games: Bring in ching(6) -- The Book of Changes -- from NetBSD
The ching(6) game/utility was nuked from FreeBSD in 1994 ...
(see revision 2563)
It has been added back to NetBSD in June 30, 2005:
-----------------------------------------------------------------------
ching(6) -- The Book of Changes, not seen in BSD since 4.4BSD.
The C code is a complete rewrite done by Guy Harris for 4.4BSD and is
not the original from v7 at all. Unfortunately, the data file itself,
without which the rest isn't useful, was not freed until Caldera
released all of 32v a few years ago, so it was not in 4.4lite.
The data file, the ching nroff macros, and the driver script are under
Caldera or Caldera+Berkeley copyright.
I've partially redone the driver script from 4.4 (there was no point
in using a temporary file for the hexagram), which was already
partially redone from 32v. (As an aside, it is nutty that the script
needs a copyright so many times longer than the code.)
I've renamed "cno" to "castching", "phx" to "printching", (the
traditional names were opaque), and put them in /usr/libexec/ching
instead of the v7 /usr/games/ching.d. The data file and nroff macros
are in /usr/share/games/ching
-----------------------------------------------------------------------
(see https: //github.com/NetBSD/src/commit/
5175ead765ed41e9db0f9f59d83ddf8966f6568a)
Aaron LI [Thu, 18 Feb 2021 10:31:50 +0000 (18:31 +0800)]
libthread_xu: Add clock_nanosleep symbols to pthread.map
Although pthread.map is currently unused (commented in the Makefile),
add 'clock_nanosleep' and '_clock_nanosleep' symbols to it anyway.
Antonio Huete Jimenez [Fri, 19 Feb 2021 11:54:15 +0000 (12:54 +0100)]
vendor/bmake: upgrade from
20200710 to
20210206
Summary of notable changes:
o meta.c: target flagged .META is out-of-date if meta file missing
o var.c: each flag type gets its own prefix.
o optimize some buffer operations - avoid strlen
o parse.c: remove VARE_WANTRES for LINT, we just want to check
parsing (for now).
o cond.c: make CondGetString easier to debug
o var.c: support for read-only variables eg .SHELL being the shell
used to run scripts.
o enum.c: distinguish between bitsets containing flags and ordinary enums
o main.c: do not attempt to read .MAKE.DEPENFILE if set to /dev/null or
anything starting with "no"
o parse.c: remove unused, undocumented .NOEXPORT
o rename VAR_CMD to VAR_CMDLINE
o .MAKE.{UID,GID} represent uid and gid running make.
o fix error handling for .BEGIN and .END dependency in -k mode
o compat.c: fix .ERROR_TARGET in compat -k mode
For detailed list see ChangeLog.
Daniel Fojt [Fri, 19 Feb 2021 10:59:41 +0000 (11:59 +0100)]
Upgrade libressl. 2/2
Update README.DRAGONFLY.
Daniel Fojt [Fri, 19 Feb 2021 10:58:10 +0000 (11:58 +0100)]
Upgrade libressl. 1/2
Merge branch 'vendor/LIBRESSL' into master.
Daniel Fojt [Wed, 17 Feb 2021 18:29:12 +0000 (19:29 +0100)]
vendor/libressl: upgrade from 3.2.3 to 3.2.4
Bug and interoperability fixes:
* Switch back to certificate verification code from LibreSSL 3.1.x. The
new verifier is not bug compatible with the old verifier causing issues
with applications expecting behavior of the old verifier.
* Unbreak DTLS retransmissions for flights that include a CCS
* Only check BIO_should_read() on read and BIO_should_write() on write
* Implement autochain for the TLSv1.3 server
* Use the legacy verifier for autochain
* Implement exporter for TLSv1.3
* Free alert_data and phh_data in tls13_record_layer_free()
* Plug leak in x509_verify_chain_dup()
* Free the policy tree in x509_vfy_check_policy()
Sascha Wildner [Fri, 19 Feb 2021 10:03:47 +0000 (11:03 +0100)]
kernel: Move sys_{get,set}rlimit() to where their kern_* functions are.
Sascha Wildner [Thu, 18 Feb 2021 10:50:21 +0000 (11:50 +0100)]
libthread_xu: Remove some unused declarations from thr_private.h.
Daniel Fojt [Wed, 13 Jan 2021 20:35:26 +0000 (21:35 +0100)]
sys/vfs/hammer: modify inode's ctime after successful chmod()
On successful completion of chmod() (ie. the call is gonna return 0),
modify inode's ctime.
Issue: https://bugs.dragonflybsd.org/issues/3251
Link: https://pubs.opengroup.org/onlinepubs/9699919799/functions/chmod.html
Daniel Fojt [Wed, 13 Jan 2021 20:29:39 +0000 (21:29 +0100)]
sys/vfs/hammer2: modify inode's ctime after successful chmod()
On successful completion of chmod() (ie. the call is gonna return 0),
modify inode's ctime.
Issue: https://bugs.dragonflybsd.org/issues/3251
Link: https://pubs.opengroup.org/onlinepubs/9699919799/functions/chmod.html
Antonio Huete Jimenez [Thu, 18 Feb 2021 00:04:03 +0000 (01:04 +0100)]
dsynth: Make the mount process a bit more portable
Sascha Wildner [Wed, 17 Feb 2021 19:43:26 +0000 (20:43 +0100)]
<utmpx.h>: Small whitespace fix.
Sascha Wildner [Wed, 17 Feb 2021 19:23:53 +0000 (20:23 +0100)]
<net/if.h>: Preparation for removing <sys/types.h> from <sys/socket.h>.
* Include <sys/types.h> for the non-standard parts.
Sascha Wildner [Wed, 17 Feb 2021 19:20:55 +0000 (20:20 +0100)]
<utmpx.h>: Preparation for removing <sys/types.h> from <sys/socket.h>.
* Define pid_t as POSIX specifies.
* Use internal integer types for some non-standard struct utmpx members.
Sascha Wildner [Wed, 17 Feb 2021 18:40:04 +0000 (19:40 +0100)]
libc: Change microseconds args of ualarm() and usleep() to useconds_t.
It's a standard type and more expressive.
No functional change, unsigned int becomes uint32_t.
Tomohiro Kusumi [Wed, 17 Feb 2021 15:20:11 +0000 (00:20 +0900)]
usr.sbin/autofs: Fix absolute path when creating a mountpoint
from freebsd
63640b2f552c0476f50484635eb9888eafcd22dc
FreeBSD finally fixed a bug I reported in 2017,
in a bit different way from a workaround in DragonFly and NetBSD.
Apply FreeBSD fix in place of
108ed43a1e5e7ff8f890085e206d970562bf4a7c.
Sascha Wildner [Tue, 16 Feb 2021 06:11:39 +0000 (07:11 +0100)]
nanosleep.2: Mark up defines with .Dv
Sascha Wildner [Mon, 15 Feb 2021 18:39:39 +0000 (19:39 +0100)]
Update the pciconf(8) database.
February 12, 2021 snapshot from https://pci-ids.ucw.cz
Sascha Wildner [Mon, 15 Feb 2021 09:07:56 +0000 (10:07 +0100)]
kernel/nfs: Initialize a sometimes uninitialized variable.
Just for style reasons. In the case where it was passed uninitialized,
it was not used by the called function.
Sascha Wildner [Mon, 15 Feb 2021 07:53:05 +0000 (08:53 +0100)]
kernel: Comment out some two unused functions.
Sascha Wildner [Sun, 14 Feb 2021 19:26:32 +0000 (20:26 +0100)]
<sys/stdint.h>: Add missing typedef guards for uint*_t.
Sascha Wildner [Sun, 14 Feb 2021 19:25:49 +0000 (20:25 +0100)]
kernel/drm: Remove duplicate type definitions.
* <linux/spinlock.h>: A definition of 'spinlock_t' is already present
from <linux/spinlock_types.h>.
* <linux/types.h>: A definition of 'bool' is already present from
<sys/types.h>. Also, the defined() check was just wrong because
it can only check for preprocessor macros, not for typedefs.
Aaron LI [Sun, 14 Feb 2021 14:45:13 +0000 (22:45 +0800)]
rc.d/mounttmpfs: Avoid duplicate tmpfs mount at /tmp
Newer DragonFly installation already mounts a tmpfs at /tmp, as
configured in /etc/fstab. So check whether /tmp is already a mount
point before mounting a tmpfs there to prevent the duplicate mounts.
Reported-by: swildner
Matthew Dillon [Sun, 14 Feb 2021 05:24:56 +0000 (21:24 -0800)]
kernel - Remove the #define AF_MAX from sys/mount.h
* Not sure how that managed to wind up in sys/mount.h but
it doesn't belong there. Bye bye.
Antonio Huete Jimenez [Thu, 11 Feb 2021 23:53:32 +0000 (00:53 +0100)]
dsynth: Add phase string for the new phases
Sascha Wildner [Fri, 12 Feb 2021 19:44:22 +0000 (20:44 +0100)]
<sys/iconv.h>: Add <sys/types.h> for u_char and fix a comment.
Sascha Wildner [Tue, 9 Feb 2021 18:16:12 +0000 (19:16 +0100)]
Fix several typos in calendars, READMEs and other files.
Sascha Wildner [Tue, 9 Feb 2021 18:15:15 +0000 (19:15 +0100)]
regdomain.xml: Correct various country names.
Sascha Wildner [Tue, 9 Feb 2021 04:48:46 +0000 (05:48 +0100)]
<sys/iconv.h>: Include <sys/cdefs.h> for __{BEGIN,END}_DECLS.
Sascha Wildner [Mon, 8 Feb 2021 07:31:29 +0000 (08:31 +0100)]
kernel/vm: Fix a wrong check in vm_fault_page().
It was calling pmam_remove() more often than intended because of
wrong COW detection (the if() was always true).
Approved-by: dillon
Sascha Wildner [Sat, 6 Feb 2021 17:02:40 +0000 (18:02 +0100)]
tic: Fix wrong path in the Makefile.
It doesn't change the contents of term.h, though.
Sascha Wildner [Sat, 6 Feb 2021 15:31:21 +0000 (16:31 +0100)]
libkinfo/Makefile: Oops, fix typo in the MLINKS.
Sascha Wildner [Sat, 6 Feb 2021 07:24:30 +0000 (08:24 +0100)]
Use %U for URIs within reference blocks in various manual pages.
Sascha Wildner [Fri, 5 Feb 2021 05:31:53 +0000 (06:31 +0100)]
kinfo.3: Mention cputime_pcpu_statistics() and route_pcpu_statistics().
Antonio Huete Jimenez [Fri, 5 Feb 2021 00:30:12 +0000 (01:30 +0100)]
libaura: Limit device/mount point comparison to PATH_MAX
Antonio Huete Jimenez [Fri, 5 Feb 2021 00:07:59 +0000 (01:07 +0100)]
libaura: Restore local variable name 'args'.
- For consistency's sake across the tree where 'args' or 'ap'
are widely used.
Antonio Huete Jimenez [Fri, 5 Feb 2021 00:05:21 +0000 (01:05 +0100)]
libaura: Restore fspred CVD Id.
- It is still important for some people.
Antonio Huete Jimenez [Thu, 4 Feb 2021 09:15:24 +0000 (10:15 +0100)]
libaura: Remove unused variable
Reported-by: daftaupe
Antonio Huete Jimenez [Thu, 4 Feb 2021 00:14:30 +0000 (01:14 +0100)]
libaura: Several fixes to fs predicates
- Make is_program() a bit more precise.
- Fix is_device()
- Simplify the code a bit.
- Regression tests now pass.
Test case Result
--------------------------------------------------------------------------------
usr.sbin/installer/libaura/dict1/dict1 PASS
usr.sbin/installer/libaura/dict2/dict2 PASS
usr.sbin/installer/libaura/dict3/dict3 PASS
usr.sbin/installer/libaura/fspred1/fspred1 PASS
Antonio Huete Jimenez [Thu, 4 Feb 2021 00:12:29 +0000 (01:12 +0100)]
libaura: Fix fspred test
Sascha Wildner [Tue, 2 Feb 2021 11:45:57 +0000 (12:45 +0100)]
kernel/bpf: Put a struct declaration (netmsg_bpf_output) into the NBPF check.
Sascha Wildner [Tue, 2 Feb 2021 11:44:11 +0000 (12:44 +0100)]
kernel/rtsock: Remove no longer needed ns_count in struct route_cb.
This is a leftover from the XEROX Network Systems (NS) protocol removal
(
62b5ec1d702a90f4c4f06347b3ad258a29ff8929 and later commits).
Sascha Wildner [Tue, 2 Feb 2021 11:41:30 +0000 (12:41 +0100)]
kernel: Remove two unused declarations.
Antonio Huete Jimenez [Mon, 1 Feb 2021 01:16:44 +0000 (02:16 +0100)]
regression: Initial runlist for the regression tests
Antonio Huete Jimenez [Mon, 1 Feb 2021 01:15:40 +0000 (02:15 +0100)]
libaura: Regression test for fspred
Antonio Huete Jimenez [Mon, 1 Feb 2021 01:11:04 +0000 (02:11 +0100)]
regression: Force rm to avoid dfregress to hang in stdin
Antonio Huete Jimenez [Mon, 1 Feb 2021 00:52:08 +0000 (01:52 +0100)]
dsynth: Add extra information to the build output
- Sort of bring what marino's synth used to output before
starting the build of a port. Environment, some make
variables and /etc/make.conf
Antonio Huete Jimenez [Mon, 1 Feb 2021 00:02:29 +0000 (01:02 +0100)]
dsynth: Warn the user about world/kernel being out of sync
Antonio Huete Jimenez [Sun, 31 Jan 2021 17:51:00 +0000 (18:51 +0100)]
dsynth: Set OPSYS according to the detection or profile config
Sascha Wildner [Sun, 31 Jan 2021 08:36:13 +0000 (09:36 +0100)]
kernel: Fix two typos in comments.
Sascha Wildner [Sat, 30 Jan 2021 19:06:21 +0000 (20:06 +0100)]
Sync zoneinfo database with tzdata2021a from ftp://ftp.iana.org/tz/releases
* South Sudan changes from +03 to +02 on 2021-02-01 at 00:00.
* Also update leap second info.
For a detailed list of changes, see share/zoneinfo/NEWS.
Tomohiro Kusumi [Sat, 30 Jan 2021 17:31:46 +0000 (02:31 +0900)]
sbin/hammer2: Fix compilation on Linux
Sascha Wildner [Fri, 29 Jan 2021 20:33:50 +0000 (21:33 +0100)]
kernel: Move the flags for kern_dup() to <sys/filedesc.h>.
Sascha Wildner [Fri, 29 Jan 2021 11:28:47 +0000 (12:28 +0100)]
kernel/acpi: Remove bogus checks for < 0 of unsigned variables.
Sascha Wildner [Fri, 29 Jan 2021 11:28:07 +0000 (12:28 +0100)]
kernel/acpi: Fix some implementation specific shifting of signed ints.
All these are stored as unsigned.
Sascha Wildner [Fri, 29 Jan 2021 10:41:55 +0000 (11:41 +0100)]
kernel/acpi: Remove an unused struct definition.
Sascha Wildner [Fri, 29 Jan 2021 10:29:22 +0000 (11:29 +0100)]
kernel/acpi: Remove unneeded bus number check.
pcib_get_bus() never fails. Parent is pcib, so the bus number will be
valid.
Sascha Wildner [Fri, 29 Jan 2021 10:11:31 +0000 (11:11 +0100)]
kernel/acpi: Remove two redundant initializations.
Sascha Wildner [Fri, 29 Jan 2021 09:56:55 +0000 (10:56 +0100)]
kernel/acpi: Remove redundant NULL check.
AcpiGetObjectInfo() returned AE_OK and adinfo has already been
dereferenced at this point.
Antonio Huete Jimenez [Thu, 28 Jan 2021 12:23:07 +0000 (13:23 +0100)]
dsynth: Use semantic versioning-ish numbering for version
Matthew Dillon [Thu, 28 Jan 2021 01:31:40 +0000 (17:31 -0800)]
kernel - Separate XSAVE support from AVX support
* XSAVE may be supported without AVX, on certain CPUs and also under
hypervisors that expose XSAVEOPT without AVX.
* Always use XSAVE, when supported, regardless of whether AVX is supported
or not.
Submitted-by: chicken
Bug-ID: #3264
Matthew Dillon [Thu, 28 Jan 2021 01:20:03 +0000 (17:20 -0800)]
kernel - Add memory barriers to more __asm functions.
* Add memory barriers to more __asm functions that have memory
side-effects. This should help prevent any unexpected instruction
reordering around these functions.
Submitted-by: chicken
Bug-ID: #3263
Krzysztof Piecuch [Wed, 27 Jan 2021 23:38:33 +0000 (23:38 +0000)]
msdosfs: fix #3237 where reading the last sector of a file returned 0s
cluster_readx would load the correct data to cache except for the last
sector of a file, where the cache was filled with zeroes.
On small files (2 clusters) cluster_readx wouldn't even call
msdosfs_bmap, correctly read first cluster and return zeroes for the
second cluster.
Fix this by telling cluster_readx that the file is bigger than it
is. cluster_readx's `nblk` will then include the last sector.
Antonio Huete Jimenez [Tue, 26 Jan 2021 11:13:17 +0000 (12:13 +0100)]
dsynth.1: Several fixes
- Add some options and directives that were missing.
- Rearrange the manpage to match the output of 'dsynth help'
- Fix some new sentence, new line warnings from lint.