getprogname(3) manpage fix

2015-05-04 Thread Kaspars Bankovskis
Index: getprogname.3 === RCS file: /cvs/src/lib/libc/gen/getprogname.3,v retrieving revision 1.4 diff -u -p -r1.4 getprogname.3 --- getprogname.3 31 Jul 2013 16:43:27 - 1.4 +++ getprogname.3 4 May 2015 20:34:35

Re: Rewording mbstowcs(3), wcrtomb(3) and wcstombs(3)

2015-03-19 Thread Kaspars Bankovskis
On Thu, Mar 19, 2015 at 03:58:16PM +0100, Stefan Sperling wrote: Perhaps the following diff would make everyone happy again? Thanks Stefan, it looks good for me. Index: mbstowcs.3 === RCS file:

Re: Rewording mbstowcs(3), wcrtomb(3) and wcstombs(3)

2015-03-19 Thread Kaspars Bankovskis
Is that really accurate to say that elements are stored in a pointer? On Thu, Mar 19, 2015 at 12:41:48PM +0001, Jason McIntyre wrote: On Wed, Mar 18, 2015 at 03:32:40PM -0400, Andre Smagin wrote: Hello. mbstowcs(3), wcrtomb(3) and wcstombs(3) use a bit awkward wording - the first at

Re: Rewording mbstowcs(3), wcrtomb(3) and wcstombs(3)

2015-03-19 Thread Kaspars Bankovskis
On Thu, Mar 19, 2015 at 01:36:45PM +0001, Jason McIntyre wrote: On Thu, Mar 19, 2015 at 03:32:52PM +0200, Kaspars Bankovskis wrote: Is that really accurate to say that elements are stored in a pointer? no idea. it's why i asked stsp to look it over. jmc It's just that the previous

mg(1) segfaults on scroll-down

2015-03-18 Thread Kaspars Bankovskis
Hi, to reproduce the issue: (1) start mg and press Enter, until you fill up the screen and it goes on to the next screen. (2) type in at least one character (3) press M-v (or execute command scroll-down) (4) mg core dumps. (gdb) bt #0 0x16b305e0e014 in update (modelinecolor=2) at

mg(1): typo in manpage

2015-03-17 Thread Kaspars Bankovskis
Index: mg.1 === RCS file: /cvs/src/usr.bin/mg/mg.1,v retrieving revision 1.89 diff -u -p -r1.89 mg.1 --- mg.13 Nov 2014 14:53:22 - 1.89 +++ mg.117 Mar 2015 13:27:17 - @@ -86,7 +86,7 @@ Backup files have a

arithmetic(6) range patch

2015-01-10 Thread Kaspars Bankovskis
Using better tool for the job. Index: arithmetic.c === RCS file: /cvs/src/games/arithmetic/arithmetic.c,v retrieving revision 1.18 diff -u -p -r1.18 arithmetic.c --- arithmetic.c29 Aug 2013 20:22:09 - 1.18 +++

comment fix for mg

2015-01-04 Thread Kaspars Bankovskis
There's no ifdef for STARTUP. Index: Makefile === RCS file: /cvs/src/usr.bin/mg/Makefile,v retrieving revision 1.28 diff -u -p -r1.28 Makefile --- Makefile31 May 2013 18:03:43 - 1.28 +++ Makefile4 Jan 2015 19:08:47

mail(1) and chdir command

2015-01-03 Thread Kaspars Bankovskis
Due to the order in commands table, c maps to copy, not chdir as man page says. cd and ch work instead. Two alternative fixes: either man page or the order of commands - leaving for you to decide. IMHO better to update man page than muscle memory of old time users. Index: mail.1

Re: wc(1) and -m flag

2015-01-02 Thread Kaspars Bankovskis
I agree, it's better this way - with the prospect that the locale support might be added some day. On Fri, Jan 02, 2015 at 12:03:31PM +0100, Ingo Schwarze wrote: Hi, i'm certainly not known for enthusiasm with respect to multibyte character support, but wc(1) is one example of a program

Re: wc(1) and -m flag

2015-01-01 Thread Kaspars Bankovskis
On Thu, Jan 01, 2015 at 10:28:44PM +0001, Jason McIntyre wrote: it's not exactly that we updated wc knowing that it was not posix conformant. i think the general explanation is that the current implementation of obsd treats characters and bytes the same, but they might not on other systems,

wc(1) and -m flag

2015-01-01 Thread Kaspars Bankovskis
Correct me if I'm wrong, but it seems to me that the manual for wc(1) has been updated to be compliant with the standard but implementation not. -m and -c both set dochar=1 and I can't see any difference in further execution. They're not mutually exclusive either (opposed to manual) as it's the

intro(2) update regarding file names

2014-12-15 Thread Kaspars Bankovskis
As there are no file name restrictions for ASCII characters, I assume this requirement might be outdated. Is that correct? Index: intro.2 === RCS file: /cvs/src/lib/libc/sys/intro.2,v retrieving revision 1.53 diff -u -p -r1.53

Re: intro(2) update regarding file names

2014-12-15 Thread Kaspars Bankovskis
Forgot to mention - the sentence I changed is based on FreeBSD version of the same manpage. On Mon, Dec 15, 2014 at 01:22:21PM +0200, Kaspars Bankovskis wrote: As there are no file name restrictions for ASCII characters, I assume this requirement might be outdated. Is that correct? Index

pcap(3) manpage fixes

2014-12-12 Thread Kaspars Bankovskis
Function arguments in synopsis for pcap_inject and pcap_sendpacket are a bit messed up by comma. Types updated from actual code. And some .An and .In macro fixes while there. Index: pcap.3 === RCS file: /cvs/src/lib/libpcap/pcap.3,v

swapctl(2) manpage cleanup

2014-12-12 Thread Kaspars Bankovskis
The last sentence in HISTORY perhaps made sense before forking from Nx, but imho it's not relevant afterwards, especially since it mentions a header file which didn't come to Ox. .In and .An macro fixes, while there. Index: swapctl.2

Re: no allocbuf in buffercache

2014-12-11 Thread Kaspars Bankovskis
On Thu, Dec 11, 2014 at 02:31:32PM +, Jason McIntyre wrote: fixed, but couple of comments inline: OK, thanks for corrections, will keep in mind.

typos

2014-12-10 Thread Kaspars Bankovskis
Index: vfs_bio.c === RCS file: /cvs/src/sys/kern/vfs_bio.c,v retrieving revision 1.163 diff -u -p -r1.163 vfs_bio.c --- vfs_bio.c 8 Oct 2014 07:33:14 - 1.163 +++ vfs_bio.c 9 Dec 2014 21:25:27 - @@ -86,7 +86,7 @@ long

cleanup of return values in section 2 manpages

2014-12-10 Thread Kaspars Bankovskis
On Wed, Dec 10, 2014 at 12:18:44AM -0700, Philip Guenther wrote: CVSROOT: /cvs Module name: src Changes by: guent...@cvs.openbsd.org2014/12/10 00:18:44 Modified files: lib/libc/sys : bind.2 intro.2 kill.2 Log message: Prefer .In and .Rv -std More of this sort.

dup(2) manpage fix

2014-12-10 Thread Kaspars Bankovskis
Index: dup.2 === RCS file: /cvs/src/lib/libc/sys/dup.2,v retrieving revision 1.17 diff -u -p -r1.17 dup.2 --- dup.2 31 Aug 2014 01:42:36 - 1.17 +++ dup.2 10 Dec 2014 12:20:09 - @@ -129,6 +129,7 @@ is zero then

Re: cleanup of return values in section 2 manpages

2014-12-10 Thread Kaspars Bankovskis
I think these two are good for the change as well: Index: getrlimit.2 === RCS file: /cvs/src/lib/libc/sys/getrlimit.2,v retrieving revision 1.24 diff -u -p -r1.24 getrlimit.2 --- getrlimit.2 20 Nov 2014 03:19:23 - 1.24 +++

no allocbuf in buffercache

2014-12-10 Thread Kaspars Bankovskis
allocbuf was removed in 1.88 of sys/kern/vfs_bio.c but not from manpages Index: distrib/sets/lists/comp/mi === RCS file: /cvs/src/distrib/sets/lists/comp/mi,v retrieving revision 1.1117 diff -u -p -r1.1117 mi ---

Re: assert(3) manpage tweaks

2014-12-07 Thread Kaspars Bankovskis
On Sun, Dec 07, 2014 at 02:33:29AM +0100, Ingo Schwarze wrote: By the way, i just grepped v6 for assert and came up empty-handed. Anybody knows whether the statement is even correct? Didn't it rather first appear in v7? If we can rely on the files that we get from tuhs, yes - it's not in v6,

stdarg(3) manpage tweaks

2014-12-06 Thread Kaspars Bankovskis
Hi, I'm proposing the following changes to stdarg(3). Moved description of return values to its own section + macro cleanup. Index: stdarg.3 === RCS file: /cvs/src/share/man/man3/stdarg.3,v retrieving revision 1.18 diff -u -p -r1.18

assert(3) manpage tweaks

2014-12-06 Thread Kaspars Bankovskis
Hi, macro fixes, mostly. Index: assert.3 === RCS file: /cvs/src/share/man/man3/assert.3,v retrieving revision 1.8 diff -u -p -r1.8 assert.3 --- assert.35 Jun 2013 03:42:03 - 1.8 +++ assert.36 Dec 2014 19:23:45

typo

2014-12-06 Thread Kaspars Bankovskis
Small typo fix, for the sake of correctness. Index: kern_time.c === RCS file: /cvs/src/sys/kern/kern_time.c,v retrieving revision 1.88 diff -u -p -r1.88 kern_time.c --- kern_time.c 15 May 2014 04:36:33 - 1.88 +++ kern_time.c

getrusage(2) manpage update

2014-12-06 Thread Kaspars Bankovskis
One flag was undocumented + some cleanup. Index: getrusage.2 === RCS file: /cvs/src/lib/libc/sys/getrusage.2,v retrieving revision 1.15 diff -u -p -r1.15 getrusage.2 --- getrusage.2 17 Jul 2013 05:42:11 - 1.15 +++

Re: assert(3) manpage tweaks

2014-12-06 Thread Kaspars Bankovskis
: Hi Kaspars, Kaspars Bankovskis wrote on Sat, Dec 06, 2014 at 11:07:50PM +0200: macro fixes, mostly. Committed with the following exception. Thanks, Ingo Index: assert.3 === RCS file: /cvs/src/share/man/man3

Re: em(4) fix for Intel I218 chip

2014-10-19 Thread Kaspars Bankovskis
spotted a small typo in a comment. 1Gpbs - 1Gbps On Sun, Oct 12, 2014 at 09:53:28PM +0200, Claudio Jeker wrote: This seems to be enough to help em(4) in modern laptops like the X240 to no longer generate watchdog timeouts on high throughput. This should only affect I218 but tests on different