NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/49429: Import strtonum(3)



Hello,

1. Imported strtonum(3)
2. Adapted for NetBSD (libnbcompat...), man-page..
3. Dropped all occurrences of strtonum.c in our code-base
4. "Improved" strtonum(3) by changing its prototype to:
intmax_t strtonum(char*,intmax_t,intmax_t,char**);

With this improvement we will remain almost fully source code compatible with OpenBSD, next inclusions of OpenBSD or FreeBSD code will be straight-forward.

5. Exported strtonum(3) to user-space programs and making room for pkgsrc \o/

Please review and accept. Some things could be done probably cleaner like tmux.. but it's chicken-egg problem (import through pkgsrc to base...).

My changes were tested to build and produce valid sets, they are against NetBSD-current.

Cheers!

Attachment: patch-src-crypto
Description: Binary data

Attachment: patch-src-distrib
Description: Binary data

Attachment: patch-src-doc
Description: Binary data

Attachment: patch-src-external
Description: Binary data

Attachment: patch-src-include
Description: Binary data

Attachment: patch-src-lib
Description: Binary data

Attachment: patch-src-sbin
Description: Binary data

Attachment: patch-src-tools
Description: Binary data

Attachment: patch-src-usr.bin
Description: Binary data

Attachment: patch-src-usr.sbin
Description: Binary data



Home | Main Index | Thread Index | Old Index