On Fri, Nov 14, 2014 at 11:51:14PM +0100, Kamil Rytarowski wrote: > In downstream (except FreeBSD and libbsd consumers) there is missing > strtonum(3). To enhance mg(1) and catch its bugs in general I need to > start with improvement of its portability to other unsupported systems > (as I'm a consumer of few pkgsrc platforms). > > Please point appropriate way to do it, preferably without floating > patches around. > > Best regards,
As you said, mg(1) is maintained in OpenBSD's tree. It has been for 15+ years, it makes use of fuctionality provided by the system. In this case an OpenBSD invention, strtonum(3). If you want to port it to systems without that API, you can copy OpenBSD's implementation, or if you consider this a burden.. try convincing systems like NetBSD? to support strtonum(3). :-) -Bryan.
