Commit Graph

12896 Commits

Author SHA1 Message Date
uwe f9113856a8 wsmoused: support absolute mouse position events
Tested with VirtualBox Guest Addtions.
2021-11-24 14:34:51 +00:00
reinoud 2e7f29dcb8 Explain cd9660 and udf exceptions on the rule that the default sectorsize is
512.
2021-11-12 07:41:55 +00:00
msaitoh 2b17502d19 s/funtion/function/ in comment. 2021-11-10 16:19:48 +00:00
msaitoh 54914f4034 s/streror/strerror/ in comment. 2021-11-10 15:49:42 +00:00
nia 34bdb82372 edquota(8): convert realloc(x * y) to reallocarr 2021-11-09 09:21:31 +00:00
skrll f1a526204c acpi_print_gicc_flags: print {en,dis}abled 2021-11-08 10:19:42 +00:00
andvar 369abe069b fix various typos, mainly s/prefered/preferred/ 2021-11-07 20:31:09 +00:00
msaitoh f81569c702 s/writting/writing/ 2021-11-06 06:40:33 +00:00
christos 987f284e0a Put the NOAOUT in one place 2021-10-31 18:06:42 +00:00
christos b83f5063e9 USE CPPFLAGS instead of CFLAGS for -D ! 2021-10-31 17:50:35 +00:00
nia dc6d60f228 timed(8): avoid hand-rolling arc4random_uniform 2021-10-31 10:47:18 +00:00
nia 25b32e0991 rpcbind(8): restore previous behaviour. Wait instead of breaking from
the loop if svc_fdset_getmax fails.

thanks rin.
2021-10-30 11:41:45 +00:00
nia 43d0286d06 rpcbind(8): Use reallocarr, fix reallocation logic.
In my_svc_run(), only update the fd count _after_ the allocation
succeeds (which may be after waiting in the loop). This function
previously tried to go to a label that doesn't exist. I wonder why
GCC didn't catch this before but does now.
2021-10-30 11:04:48 +00:00
nia 1ef2e3bf13 ndbootd(8): Rework allocation macros to add integer overflow checking. 2021-10-30 10:44:25 +00:00
nia 7dd9eb1a0e traceroute(8): Convert realloc usage to reallocarr.
Eliminate a temporary variable.
2021-10-30 09:26:11 +00:00
mrg d626ccb00f decode SMT parts for AMD family >= 0x17, not just 0x17.
now zen3 systems are properly identified by cpu topology for the
scheduler and cpuctl identify.
2021-10-27 04:15:41 +00:00
andvar fb817dab52 fix various typos in comments, mainly copypasta. 2021-10-24 20:00:11 +00:00
thorpej 8086f46e37 Sanitize the symbol namespace. NFC. 2021-10-23 16:58:17 +00:00
hannken 25fae635e5 Factor out the lookup results from struct denode.
No functional change.
2021-10-23 07:38:33 +00:00
andvar 6f8dc1509f fix various typos, mainly in comments, but also in man pages and log messages. 2021-10-21 13:21:53 +00:00
christos f229892ff8 Explicitly cast the long->float conversion since it is value-changing and
produces clang warnings.
2021-10-18 14:16:49 +00:00
ryo 223f9ca45a To an alias address, or in a multihoming environment, the internal dgram
server may respond from a different address than the destination address
sent by the client.
To solve this problem, I introduce sendfromto() and recvfromto() so that
the server can reply from the correct address, i.e., the destination address
used in the request.

This change also has the aspect of a reference implementation using the
RECVDSTADDR and PKTINFO socket options.
2021-10-17 04:14:49 +00:00
skrll 3064404475 Output alignement - give lwp 6 characters 2021-10-14 09:52:40 +00:00
rillig 8b3967e586 inetd: remove trailing whitespace, add space after 'if' and 'for'
No functional change.
2021-10-12 22:51:28 +00:00
rillig d6e8de267e inetd.8: remove trailing whitespace 2021-10-12 22:47:18 +00:00
rillig 429d53e02c inetd.8: new sentence, new line; minor formatting issues 2021-10-12 22:42:01 +00:00
christos b19025f3ec PR/56448: Solomon Ritzow: Various improvements.
Rate limiting code has been moved to ratelimit.c. I renamed
clear_ip_list to rl_clear_ip_list and broke the code up into more
functions. I have also made the per-IP rate limiting allocation more
efficient. IP addresses are now stored in their network format instead
of a string from getnameinfo (see inetd.h struct rl_ip_node). malloc
calls use only the space needed by the structure by using offsetof on
union members (I suppose this can be a bit dangerous if not done
correctly...). Per-IP rate limiting still supports textual comparison
using getnameinfo for address families other than AF_INET and AF_INET6, but I
don't think there are any that are actually compatible or used by inetd (I
haven't tested UNIX sockets with a remote bound to another file, but I did test
using IPv6 with the textual format by commenting out the IPv6 specific
code, and it works properly). Still potentially handy for the future.
The IP node list (se_rl_ip_list) now uses the <sys/queue.h> SLIST macros
instead of a custom list. I've broken rl_process up into helper functions
for each type of rate limiting and created a separate function for
address stringification, for use with printouts from the -d flag. I
tried to reduce stack memory use by moving printing code involving
string buffers into separate functions. I haven't tested rl_ipv6_eq on
a 32-bit system.

The code for the positional syntax has also been moved to parse.c.
Function try_biltin has been added to remove parse.c:parse_server's
dependency on the biltin structure definition.

File inetd.h has been updated with the proper function prototypes, and
the servtab structure has been update with the new IP node SLIST. I also
moved things around a bit. The way we (a peer and myself)
formatted inetd.h previously was somewhat confusing. Function and global
variable prototypes are now organized by the source file they are
defined in.

I also added a -f flag that I saw in another problem report
(https://gnats.netbsd.org/12823) that I thought could be useful. It
runs inetd in the foreground but without debug printouts or SO_DEBUG.
I'm not completely sure about the line "if (foreground) setsid()" that
I changed from "if (debug) setsid()".
2021-10-12 19:08:04 +00:00
rillig 24db90bb18 sysinst: fix typo in comment 2021-10-11 18:46:34 +00:00
rillig 587f7f989c sysinst: proofread German entropy translation 2021-10-11 17:23:28 +00:00
martin 40c1074537 Consistent #if for static helper function add_entropy 2021-10-09 09:06:28 +00:00
martin 2a566a5853 Disable some installer options to shrink the ramdisk image 2021-10-09 08:21:03 +00:00
nia 9ddbd658d4 Fix accidental word duplication 2021-10-08 22:07:11 +00:00
martin 03af0822f9 Re-enable the entropy handling code in sysinst (only visible on machines
that do not have full entropy), but move it to the config menu
instead of enforcing it as mandatory step.

This menu is shown at the end of the setup, or if explicitly invoked
from the main menu.

Some of the input options are complex but useful in some situations
and code to support them is tiny. Most users will use the manual input
(first + default option) but some might prefer to connect a USB TRNG
or have easy setups to transfer entropy from another machine (while
copy & paste on a serial console sometimes is tricky).
2021-10-08 15:59:55 +00:00
msaitoh fae021bceb Move some common functions into x86/identcpu_subr.c. No functional change. 2021-10-07 13:04:18 +00:00
msaitoh a79b797b99 Improve variable sized TLB's output.
- Fix a bug that STLB is printed as DTLB.
 - If a TLB is variable sized, print the max size instead of error message.
   XXX This is temporary solution.
2021-09-27 17:05:58 +00:00
msaitoh 5bad7a59b6 Add Load Only TLB and Store Only TLB. 2021-09-27 16:52:15 +00:00
msaitoh ec1888b4e2 Fix a bug that some TLB related lines were not printed. 2021-09-27 16:47:15 +00:00
msaitoh bdd55414af Add ':' for readability. 2021-09-27 16:22:58 +00:00
maya f9d97969cb Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional
Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html
2021-09-26 15:52:40 +00:00
maya f54624bd74 Move DRM-driver firmware from base to its own set, gpufw
This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.
2021-09-25 08:54:29 +00:00
andvar c1d86c1466 fix few more typos in comments, messages and documentation. 2021-09-19 11:37:00 +00:00
andvar a136e22ab6 fix various typos in comments, messages and documentation. 2021-09-19 10:34:06 +00:00
christos 292aad7505 Change the default for ACLs to be posix1e instead of nfsv4 to match FreeBSD.
Requested by chuq.
2021-09-18 03:05:19 +00:00
christos ce58ffd338 remove lint hacks now that lint supports _Static_assert 2021-09-17 21:06:35 +00:00
christos 707cb24578 XXX: Teach lint about _Static_assert... 2021-09-17 14:49:03 +00:00
christos 76d4fad60d Use CPPFLAGS for -D and -I so that lint works. 2021-09-17 14:48:31 +00:00
andvar b58602814f fix typos in word "successful". 2021-09-16 22:19:10 +00:00
andvar 72e44f84cb fix typos in word "successfully", mainly s/succesfully/successfully/. 2021-09-16 21:29:41 +00:00
rillig eff0250e6d sysinst: fix lint error about empty compound literal
In C99, a compound literal must have at least one expression between the
braces.  Empty structs and compound literals are a GNU extension.

The first member of struct part_entry has type size_t, therefore 0 fits
well.

No functional change.
2021-09-14 21:45:20 +00:00
rillig 8e69325a35 bta2dpd: fix lint build 2021-09-14 20:45:19 +00:00