sort --version-sort

2025-02-17 Thread Thomas Klausner
Hi! I recently used software that wanted to use "sort --version-sort". I looked around and noticed that even though our sort(1) doesn't support this, both FreeBSD and OpenBSD's do. It seems that in 2009, FreeBSD sort was majorly rewritten, and in 2015 imported to OpenBSD. Has anyone look at add

How to get __lwp_getprivate_fast()?

2025-02-03 Thread Thomas Klausner
On Fri, Nov 29, 2024 at 08:04:18PM -0500, Christos Zoulas wrote: > Module Name: src > Committed By: christos > Date: Sat Nov 30 01:04:16 UTC 2024 ... > Log Message: > Create a new header lwp_private.h to contain _lwp_getprivate_fast, > _lwp_gettcb_fast, _lwp_settcb and remove them from mco

Re: sh(1) and NUL

2024-10-11 Thread Thomas Klausner
On Wed, Sep 25, 2024 at 10:49:20PM +0700, Robert Elz wrote: > Date:Wed, 25 Sep 2024 16:44:12 +0200 > From: Thomas Klausner > Message-ID: > > | Since we're talking about sh(1) so much - OpenBSD just changed their > | ksh to abort on readi

sh(1) and NUL

2024-09-25 Thread Thomas Klausner
Hi! Since we're talking about sh(1) so much - OpenBSD just changed their ksh to abort on reading NUL in shell scripts. Perhaps we want something similar? Commit message with all the details here: https://marc.info/?l=openbsd-cvs&m=172712621620348&w=2 Thomas

install -v

2024-05-09 Thread Thomas Klausner
Hi! Some install(1) tools have a -v (verbose) option that describes what they did, and some software uses it. FreeBSD supports it too. I'd like to add this to NetBSD's install(1). I based the changes on FreeBSD's version. Please review & comment! Thanks, Thomas Index: install.1 ===

Re: CVS commit: src/bin/csh

2024-04-24 Thread Thomas Klausner
On Wed, Apr 24, 2024 at 03:46:20PM +, Nia Alarie wrote: > Module Name: src > Committed By: nia > Date: Wed Apr 24 15:46:20 UTC 2024 > > Modified Files: > src/bin/csh: alloc.c extern.h > > Log Message: > csh: add a reallocarray function for using inside csh Why not use realloca

log2l() missing

2023-03-13 Thread Thomas Klausner
Hi! py-numpy can't be updated to 1.24.x because it wants to use log2l() but NetBSD doesn't provide it. Even worse, the definition even exists in /usr/include/math.h, so a configure check that only looks in the headers might find that. I found http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?nu

SHA3 implementation problem

2023-03-07 Thread Thomas Klausner
Hi! https://eprint.iacr.org/2023/331 says "This paper describes a vulnerability in several implementations of the Secure Hash Algorithm 3 (SHA-3) that have been released by its designers. The vulnerability has been present since the final-round update of Keccak [...] It affects all software pro

Re: unhide reallocarray

2022-10-28 Thread Thomas Klausner
On Tue, Aug 30, 2022 at 10:13:51PM +, RVP wrote: > On Tue, 30 Aug 2022, Thomas Klausner wrote: > > > So I'd like to put it outside of the _OPENBSD_SOURCE #ifdef so it is > > available without _OPENBSD_SOURCE being defined. > > > > Comments? > >

Re: grep -r: add default "."

2022-09-03 Thread Thomas Klausner
On Sat, Sep 03, 2022 at 01:51:57PM +0200, Martin Husemann wrote: > How about fixing the bsd version we have in tree instead? Maybe FreeBSD or > OpenBSD already did that and we can borrwo? At least OpenBSD has this behaviour. But I'm not volunteeering to evaluating what changes there are between o

Re: grep -r: add default "."

2022-09-03 Thread Thomas Klausner
On Sat, Sep 03, 2022 at 11:26:18AM +0200, Roland Illig wrote: > Am 03.09.2022 um 11:06 schrieb Thomas Klausner: > > On Fri, Sep 02, 2022 at 07:08:23PM +0200, Thomas Klausner wrote: > > > I'd like the change the behaviour to match what GNU grep does. > > > >

Re: grep -r: add default "."

2022-09-03 Thread Thomas Klausner
On Fri, Sep 02, 2022 at 07:08:23PM +0200, Thomas Klausner wrote: > I'd like the change the behaviour to match what GNU grep does. Since I saw only positive feedback, here's my proposed patch. Comments? Cheers, Thomas ? bin/.gdbinit ? bin/grep ? bin/grep.html1 ? bin/grep.info In

grep -r: add default "."

2022-09-02 Thread Thomas Klausner
Hi! I often forget the "." at the end of my 'grep -r'. GNU grep automatically adds it, i.e.: # grep -r foo # is the same as # grep -r foo . # The grep we have in NetBSD recognizes that something is wrong, but is not that helpful: # grep -r foo grep: warning: recursive search of stdin (stops h

unhide reallocarray

2022-08-30 Thread Thomas Klausner
hi! Some years ago, NetBSD got reallocarray. But it is hidden in an ifdef. (from stdlib.h) #ifdef _OPENBSD_SOURCE ... void*reallocarray(void *, size_t, size_t); #endif reallocarray() will now be part of the next POSIX release: https://austingroupbugs.net/view.php?id=1218 So I'd like to pu

crypt_r()?

2022-02-07 Thread Thomas Klausner
Hi! I've been asked by the filezilla software developer if NetBSD will add crypt_r() as a thread-safe crypt() replacement. Is anyone interested in working on this? Thomas

Re: vndconfig vs mount_cd9660

2020-12-29 Thread Thomas Klausner
On Tue, Dec 29, 2020 at 08:02:19AM +0100, Martin Husemann wrote: > On Mon, Dec 28, 2020 at 10:43:10PM +0100, Thomas Klausner wrote: > > I wanted to mount an ISO image (on 9.99.77/amd64), so I did, following the > > guide: > > > > # vnconfig -c vnd0 file.iso > >

vndconfig vs mount_cd9660

2020-12-28 Thread Thomas Klausner
Hi! I wanted to mount an ISO image (on 9.99.77/amd64), so I did, following the guide: # vnconfig -c vnd0 file.iso # mount -t cd9660 /dev/vnd0a /mnt mount_cd9660: /dev/vnd0a on /mnt: Invalid argument # mount -t cd9660 /dev/vnd0d /mnt mount_cd9660: /dev/vnd0d on /mnt: Invalid argument but that di

Re: ftp -q 60 not working (well)

2020-11-30 Thread Thomas Klausner
On Mon, Nov 30, 2020 at 08:19:00AM -0500, Mouse wrote: > > The hangs from the last two weeks look like this (in ps): > > > pkgmastr 18764 0.0 0.0 33012 4748 ? I15Nov200:00.02 > > /usr/bin/ftp -q 60 -o tzinfo-2.0.3.gem > > https://rubygems.org/gems/tzinfo-2.0.3.gem

ftp -q 60 not working (well)

2020-11-30 Thread Thomas Klausner
Hi! There is a weekly script on ftp.NetBSD.org that downloads mirrors all distfiles currently used by pkgsrc. In the past few weeks I've seen regular hangs, always when fetching ruby gems. The hangs from the last two weeks look like this (in ps): pkgmastr 18764 0.0 0.0 33012 4748 ?

Re: catman (Was: CVS commit: src/games/fortune/datfiles)

2020-11-09 Thread Thomas Klausner
On Mon, Nov 09, 2020 at 04:55:14AM +0300, Valeriy E. Ushakov wrote: > Hold your horses! This started with MKCATPAGES which is ability to > pre-generate cat pages as part of the build. > > Now it's suddenly about eliminatiing support for cat pages entirely?! > > Like, do you plan to remove suppor

Re: catman (Was: CVS commit: src/games/fortune/datfiles)

2020-11-08 Thread Thomas Klausner
On Mon, Nov 09, 2020 at 12:46:42AM +0300, Valeriy E. Ushakov wrote: > Also, come to think of it... Removing catman (i.e. user's ability to > generate cat pages) is rather different from removing MKCATPAGES, > what's going on here? I asked kamil about something else on this topic and he mentioned c

perl with -Duselongdouble needs more libm support

2019-09-22 Thread Thomas Klausner
Hi! When compiling perl on NetBSD with -Duselongdouble, some functions are missing. The perl people found that out themselves: https://rt.perl.org/Public/Bug/Display.html?id=134376 here's the smoke test on NetBSD 8.1: http://perl5.test-smoke.org/report/93329 Reading the output, there seems to

Re: Leak Sanitizer - how to suppress leaks

2019-09-12 Thread Thomas Klausner
I'm sorry, I totally do not get it the problem with -- in general -- writing the code in such a way that it properly frees any allocations it made. I suspect there will be corner cases where it will be really hard, and we can discuss those separately. But discussing about adding a free() in ps? (I

Re: UTF-8 capable fmt(1)

2019-07-25 Thread Thomas Klausner
On Thu, Jul 25, 2019 at 08:32:10AM +, i...@netbsd.org wrote: > On Thu, Jul 25, 2019 at 10:28:55AM +0200, Thomas Klausner wrote: > > On Thu, Jul 25, 2019 at 08:02:26AM +, i...@netbsd.org wrote: > > > I investigated the fmt code to find out where it breaks for me. > &g

Re: UTF-8 capable fmt(1)

2019-07-25 Thread Thomas Klausner
On Thu, Jul 25, 2019 at 08:02:26AM +, i...@netbsd.org wrote: > I investigated the fmt code to find out where it breaks for me. > I found this thread when I checked whether my problem was already > discussed. After this discussion, the fmt code was updated in -current. Can you try again if this

Re: kqueue: intptr vs void *

2018-08-17 Thread Thomas Klausner
On Fri, Aug 17, 2018 at 03:26:23PM +0200, Kamil Rytarowski wrote: > On 17.08.2018 15:16, Thomas Klausner wrote: > > Hi! > > > > Does anyone know why NetBSD has udata defined as intptr_t in kqueue(3)? > > > > I.e.: > > > > EV_SET(&a

kqueue: intptr vs void *

2018-08-17 Thread Thomas Klausner
Hi! Does anyone know why NetBSD has udata defined as intptr_t in kqueue(3)? I.e.: EV_SET(&kev, ident, filter, flags, fflags, data, udata); where the values are defined as: struct kevent { uintptr_t ident;/* identifier for this event */ uint32_t filt

curses: create panel from stdscr?

2017-11-06 Thread Thomas Klausner
There seems to be a difference in libpanel compared to ncurses: A panel cannot be created from stdscr. At least that's what a python bug report says: "The NetBSD curses library in NetBSD 8 provides the panel extension. compatible with ncurses. But a panel can not be created from stdscr. This caus

Re: Removal of "ancient HTML generation"

2017-07-14 Thread Thomas Klausner
On Fri, Jul 14, 2017 at 09:23:14AM -0700, Alistair Crooks wrote: > The reason I'm asking is that for many years, and until these changes, > I used to use lynx, locally, as a very quick, cheap and effective man > page viewer. Lynx can't handle style.css, which is what we have now. > > So for me, I'v

Re: make: order-only prerequisites?

2017-01-22 Thread Thomas Klausner
On Sun, Jan 22, 2017 at 08:23:31PM +, David Holland wrote: > > GNU make's '|' means that everything after the | needs to exist, but > > the target does not need to be rebuilt if anything to the right of | > > changes (IIUC). > > which is what .ORDER is for. Reading the man page, I don't th

Re: make: order-only prerequisites?

2017-01-22 Thread Thomas Klausner
On Sun, Jan 22, 2017 at 07:12:22PM +, Christos Zoulas wrote: > In article <20170122174627.yjcvgdvn653wvt5d@danbala>, > Thomas Klausner wrote: > >Hi! > > > >GNU make supports order-only prerequisites. For details, see > >https://www.gnu.org/softwar

make: order-only prerequisites?

2017-01-22 Thread Thomas Klausner
Hi! GNU make supports order-only prerequisites. For details, see https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html Is there an equivalent in BSD make? Thomas

Re: Replacing __BEGIN_DECLS in curses

2017-01-04 Thread Thomas Klausner
On Wed, Jan 04, 2017 at 01:56:21PM +0100, Joerg Sonnenberger wrote: > On Wed, Jan 04, 2017 at 11:44:03AM +, Roy Marples wrote: > > One such change is replacing __BEGIN_DECLS and __END_DECLS with expanded > > macros like > > #ifdef cplusplus > > extern "C" { > > #endif > > > > Which is a lot mo

Re: List of Keywords for apropos(1) Which Should Not be Stemmed

2016-07-11 Thread Thomas Klausner
On Mon, Jul 11, 2016 at 06:59:25PM +0530, Abhinav Upadhyay wrote: > 1. If a word is not in /usr/share/dict/words, don't stem. > 2. Look for .Tn macros (and probably other similar macros) and don't stem > those. 3. Don't stem the file names? cd /usr/share/man && find . -name *.[0-9] | sed -e "s

Re: Possible enhancement to find(1)

2016-06-10 Thread Thomas Klausner
On Fri, Jun 10, 2016 at 02:18:16PM +0800, Paul Goyette wrote: > I often find myself (no pun intended!) wanting to determine which files were > accessed before/since a particular timestamp. There currently exist the > -{a,c}{newer,min,time} primitives, but none of these allow me to say "since > tod

Re: typo fix for vis.3

2016-06-08 Thread Thomas Klausner
On Wed, Jun 08, 2016 at 01:19:47PM +, Brooks Davis wrote: > Kurt Jaeger submitted the following patch to vis.3 which we import into > FreeBSD from NetBSD. Thanks, fixed! Thomas

Re: refine of the GSOC project

2016-05-08 Thread Thomas Klausner
On Mon, May 09, 2016 at 03:05:11AM +0700, Robert Elz wrote: > Date:Sun, 8 May 2016 12:14:57 -0700 > From:Charles Cui > Message-ID: > > > | One more thing, I still need to install kernel and userland together, > | then reboot. > | If I installed kernel and rebo

Re: CVS commit: pkgsrc/devel/atkmm

2016-04-21 Thread Thomas Klausner
On Thu, Apr 21, 2016 at 09:48:36AM +0100, Jonathan Perkin wrote: > * On 2016-04-13 at 11:10 BST, Thomas Klausner wrote: > > > Module Name:pkgsrc > > Committed By: wiz > > Date: Wed Apr 13 10:10:25 UTC 2016 > > > > Modified Files: