Re: bktr(4) (again): tsleep(9) -> tsleep_nsec(9)

2020-01-10 Thread Alexandre Ratchov
On Fri, Jan 10, 2020 at 08:23:14PM -0600, Scott Cheloha wrote: > Whoops, missed one last time. > > ok? ok > > Index: pci/bktr/bktr_tuner.c > === > RCS file: /cvs/src/sys/dev/pci/bktr/bktr_tuner.c,v > retrieving revision 1.8 > diff

Re: pcmcia(4): malo(4): tsleep(9) -> tsleep_nsec(9)

2020-01-10 Thread Claudio Jeker
On Fri, Jan 10, 2020 at 08:33:43PM -0600, Scott Cheloha wrote: > This sleep has no unit, though most architectures are 100hz. > > Is it fair to assume 500 ticks -> 5 seconds and move on? I think this is actually an error and should be 500ms, I doubt it takes more than a second for a command to co

pcmcia(4): malo(4): tsleep(9) -> tsleep_nsec(9)

2020-01-10 Thread Scott Cheloha
This sleep has no unit, though most architectures are 100hz. Is it fair to assume 500 ticks -> 5 seconds and move on? Index: pcmcia/if_malo.c === RCS file: /cvs/src/sys/dev/pcmcia/if_malo.c,v retrieving revision 1.94 diff -u -p -r1.9

bktr(4) (again): tsleep(9) -> tsleep_nsec(9)

2020-01-10 Thread Scott Cheloha
Whoops, missed one last time. ok? Index: pci/bktr/bktr_tuner.c === RCS file: /cvs/src/sys/dev/pci/bktr/bktr_tuner.c,v retrieving revision 1.8 diff -u -p -r1.8 bktr_tuner.c --- pci/bktr/bktr_tuner.c 14 Mar 2015 03:38:49 -

pcmcia(4): i82365.c: tsleep(9) -> tsleep_nsec(9)

2020-01-10 Thread Scott Cheloha
Ticks to milliseconds. ok? Index: ic/i82365.c === RCS file: /cvs/src/sys/dev/ic/i82365.c,v retrieving revision 1.37 diff -u -p -r1.37 i82365.c --- ic/i82365.c 31 Dec 2019 10:05:32 - 1.37 +++ ic/i82365.c 11 Jan 2020 01:27:44

imxesdhc(4): tsleep(9) -> tsleep_nsec(9)

2020-01-10 Thread Scott Cheloha
This pattern is starting to look very familiar :) Convert the TIMEOUT constants from ticks to seconds, change the unit for imxesdhc_wait_intr() from ticks to seconds, then change tsleep(9) to tsleep_nsec(9). ok? Index: fdt/imxesdhc.c ==

dwiic(4): tsleep(9) -> tsleep_nsec(9)

2020-01-10 Thread Scott Cheloha
Ticks to milliseconds. ok? Index: ic/dwiic.c === RCS file: /cvs/src/sys/dev/ic/dwiic.c,v retrieving revision 1.8 diff -u -p -r1.8 dwiic.c --- ic/dwiic.c 18 Aug 2019 15:52:45 - 1.8 +++ ic/dwiic.c 11 Jan 2020 00:31:51 -

acx(4): tsleep(9) -> tsleep_nsec(9)

2020-01-10 Thread Scott Cheloha
Ticks to milliseconds. ok? Index: ic/acx.c === RCS file: /cvs/src/sys/dev/ic/acx.c,v retrieving revision 1.121 diff -u -p -r1.121 acx.c --- ic/acx.c26 Oct 2017 15:00:28 - 1.121 +++ ic/acx.c11 Jan 2020 00:26:50 -

ommmc(4): tsleep(9) -> tsleep_nsec(9)

2020-01-10 Thread Scott Cheloha
Change the TIMEOUT constants from ticks to seconds, change the input unit of ommmc_wait_intr() from ticks to seconds, and change tsleep(9) to tsleep_nsec(9). ok? Index: arch/armv7/omap/ommmc.c === RCS file: /cvs/src/sys/arch/armv7/om

xenstore: *sleep(9) -> *sleep_nsec(9)

2020-01-10 Thread Scott Cheloha
The unit here is seconds. Just convert and use the appropriate interface. The >> operator is of a lower precedence than the * operator in C, so this doesn't change the duration though I had to double-check that. ok? Index: pv/xenstore.c ==

sdhc(4): tsleep(9) -> tsleep_nsec(9)

2020-01-10 Thread Scott Cheloha
Here the timeout constants are all in terms of seconds. We can change the input unit of the wait functions from hz to seconds and then convert as needed. sdhc_wait_intr_cold() uses delay(9), so convert to microseconds. sdhc_wait_intr() (now) uses tsleep_nsec(9), so convert to nanoseconds. I've

cz(4): timeout_add(9) -> timeout_add_msec(9), tsleep(9) -> tsleep_nsec(9)

2020-01-10 Thread Scott Cheloha
cz(4) is apparently not compiled, but it keeps showing up in my symbol searches, so I'll just convert it to reduce noise. Here the code is converting CZ_POLL_MS to ticks. We can just use that constant directly with timeout_add_msec(9). We then don't need the cz_timeout_ticks variable at all. Th

hifn(4): timeout_add(9) -> timeout_add_msec(9)

2020-01-10 Thread Scott Cheloha
Basically the same diff as yesterday's ubsec(4) conversion. The code caps the interval at 10ms, so rename "sc_rnghz" to "sc_rngms" and set it to 10ms, then replace timeout_add(9) with timeout_add_msec(9). ok? Index: pci/hifn7751.c =

Re: MAKE: redux patch

2020-01-10 Thread Alexander Bluhm
On Fri, Jan 10, 2020 at 01:58:47PM +0100, Marc Espie wrote: > Bleh, I forgot to synch two patches I already committed. Here's a patch > that applies cleanly. I did run this make through a full regress. It seems that make regress in /usr/src/regress/usr.sbin/ldapd/ exits with an error. http://blu

kern: timeout_add -> timeout_add_msec

2020-01-10 Thread jes
Hello, this diff changes timeout_add(9) to timeout_add_msec(9). Since the changes are fairly short, I took the liberty to put all diffs of sys/kern/ into this mail. If you want me to send indiviual mails please say so. While there I zapped two whitespaces. There are a couple multiplications by 1

Re: man.cgi(8): turn off HTML5 autocomplete for the query input field

2020-01-10 Thread Philipp Buehler
Am 10.01.2020 15:58 schrieb Tim Baumgard: I found out that Apple requires nonstandard [1] attributes to fully The other day nonstandard "gave" us javascript around the globe... Cheers for putting this one in, was really kinda PITA and I didn't know about this attribute. -- pb

Re: man.cgi(8): turn off HTML5 autocomplete for the query input field

2020-01-10 Thread Ingo Schwarze
Hi Tim, Tim Baumgard wrote on Fri, Jan 10, 2020 at 10:16:40AM -0600: > Thank you for getting these changes in and so quickly. I will no longer > get as agitated when I'm looking at man pages away from my desk. :) You are welcome, enjoy. :-) Also note that the search form often isn't needed: i

Re: man.cgi(8): turn off HTML5 autocomplete for the query input field

2020-01-10 Thread Tim Baumgard
On Fri, Jan 10, 2020 at 9:41 AM Ingo Schwarze wrote: > > > I found out that Apple requires nonstandard [1] attributes to fully > > "fix" this. I don't know if using nonstandard attributes is the right > > way to go, but Apple, Google, and DuckDuckGo are using these attributes > > on their search f

Re: man.cgi(8): turn off HTML5 autocomplete for the query input field

2020-01-10 Thread Ingo Schwarze
Hi Tim, Tim Baumgard wrote on Fri, Jan 10, 2020 at 08:58:31AM -0600: > I found out that Apple requires nonstandard [1] attributes to fully > "fix" this. I don't know if using nonstandard attributes is the right > way to go, but Apple, Google, and DuckDuckGo are using these attributes > on their s

Re: man.cgi(8): turn off HTML5 autocomplete for the query input field

2020-01-10 Thread Tim Baumgard
I found out that Apple requires nonstandard [1] attributes to fully "fix" this. I don't know if using nonstandard attributes is the right way to go, but Apple, Google, and DuckDuckGo are using these attributes on their search fields. According to Apple's own documentation, the "autocapitalize" att

Re: ubsec(4): timeout_add(9) -> timeout_add_msec(9)

2020-01-10 Thread Alexander Bluhm
On Thu, Jan 09, 2020 at 10:05:37PM -0600, Scott Cheloha wrote: > The intent here is to poll no faster than 100 times a second, > so change sc_rnghz to sc_rngms and set it to 10 milliseconds, > then call timeout_add_msec() instead of timeout_add(). > > ok? OK bluhm@ > Index: ubsec.c >

ntpd and 2036

2020-01-10 Thread Otto Moerbeek
Hi, THe ntp protocol uses 32-bit unsigned timestamps counting seconds since 1900. That means that in 2036 the timestamp field will wrap. This difff makes sure ntpd handles that correctly by assuming we are in era 0 unless we see "small" timestamps. tested in the future (incuding wrapping form era

Re: Infinite tsleeps in sys/kern

2020-01-10 Thread Alexander Bluhm
On Fri, Jan 10, 2020 at 01:21:39PM +0100, Martin Pieuchot wrote: > Convert them to tsleep_nsec(9), ok? OK bluhm@ > Index: kern/subr_extent.c > === > RCS file: /cvs/src/sys/kern/subr_extent.c,v > retrieving revision 1.62 > diff -u -p

Re: man.cgi(8): turn off HTML5 autocomplete for the query input field

2020-01-10 Thread Ingo Schwarze
Hi Tim & Landry, Landry Breuil wrote on Fri, Jan 10, 2020 at 07:34:47AM +0100: > On Thu, Jan 09, 2020 at 09:18:25PM -0600, Tim Baumgard wrote: >> This turns off HTML5 autocomplete for the query input field for >> man.cgi(8). This essentially makes smartphones and tablets behave >> the same as PCs

Re: MAKE: redux patch

2020-01-10 Thread Marc Espie
On Thu, Jan 09, 2020 at 01:09:59PM +0100, Marc Espie wrote: > So my development branch is getting a bit too far > ahead compared to what's committed. > > Here's a big diff to test. Comments as to what's going on > and the changes this contains: > > - buffer changes: add support for "permanent st

Infinite tsleeps in sys/kern

2020-01-10 Thread Martin Pieuchot
Convert them to tsleep_nsec(9), ok? Index: kern/subr_extent.c === RCS file: /cvs/src/sys/kern/subr_extent.c,v retrieving revision 1.62 diff -u -p -r1.62 subr_extent.c --- kern/subr_extent.c 11 Sep 2019 12:30:34 - 1.62 +++ ke

Re: dwiic(4) improvements

2020-01-10 Thread Claudio Jeker
On Sun, Dec 22, 2019 at 04:55:59PM +0100, Mark Kettenis wrote: > The diff below contains a couple of improvements to dwiic(4). They're > mostly for making ipmi(4) on the Ampere/Lenovo arm64 boxes work > better. But they need testing on x86 machines with > keyboards.touchpads/touchscreens connecte

Re: man.cgi(8): turn off HTML5 autocomplete for the query input field

2020-01-10 Thread Florian Obser
Yes please, this has been annoying me for ages. I'm not setup to test this, but if it works: OK florian On Thu, Jan 09, 2020 at 09:18:25PM -0600, Tim Baumgard wrote: > This turns off HTML5 autocomplete for the query input field for > man.cgi(8). This essentially makes smartphones and tablets behav