In 32 bits sqrt(val) + 1 can overflow, so some big primes stillaren't recognized as such, for example 18446744073709551577 givenin the commit message of factor.c r1.7 from NetBSD. Move thereturn
In 32 bits sqrt(val) + 1 can overflow, so some big primes stillaren't recognized as such, for example 18446744073709551577 givenin the commit message of factor.c r1.7 from NetBSD. Move thereturn type of usqrt() from u_int32_t to u_int64_t.ok guenther, tom, otto
show more ...
Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.Fix a type mismatch in ftp's "page" command and could make transfers restartat the wrong position.ok and a ull->ll tweak fr
Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.Fix a type mismatch in ftp's "page" command and could make transfers restartat the wrong position.ok and a ull->ll tweak from natano@, ok tedu@
Instead of using the floating point square root, use an integer versionof the Newton method from ping.c. Fixes a rounding issue that causedfailure to factor numbers close to 2^64, e.g. 18446744030
Instead of using the floating point square root, use an integer versionof the Newton method from ping.c. Fixes a rounding issue that causedfailure to factor numbers close to 2^64, e.g. 18446744030759878681.While there, fix an off by one error that caused 4295360521 to bereported as a prime. Issues reported by Paul Stoeber and Michael Bozon.ok tedu, deraadt
for some time now mandoc has not required MLINKS to functioncorrectly - logically complete that now by removing MLINKS from base;authors need only to ensure there is an entry in NAME for any funct
for some time now mandoc has not required MLINKS to functioncorrectly - logically complete that now by removing MLINKS from base;authors need only to ensure there is an entry in NAME for any function/util being added. MLINKS will still work, and remain for perl to easeupgrades;ok nicm (curses) bcook (ssl)ok schwarze, who provided a lot of feedback and assistanceok tb natano jung
- General changes:- Remove -? from getopt(3) options, but still keep (or add) -h where applicable- Replace hardcoded program strings by getprogname(3)- Specific changes:- atc(6): this used -? an
- General changes:- Remove -? from getopt(3) options, but still keep (or add) -h where applicable- Replace hardcoded program strings by getprogname(3)- Specific changes:- atc(6): this used -? and -u for usage(), remove both from game and manpage- bcd(6): use __progname instead of getprogname(3), no need to include stdlib.h- hunt(6): replace fputs(3) by fprintf(3)OK tb@ after his suggestions
Some basic code maintenance in games/- in main() replace exit with return- drop some /* NOTREACHED */ lint comments along the way.- make more use of standard CFLAGS, esp. -Wimplicit-function-decl
Some basic code maintenance in games/- in main() replace exit with return- drop some /* NOTREACHED */ lint comments along the way.- make more use of standard CFLAGS, esp. -Wimplicit-function-declaration- add and sort some headers when needed- add straightforward pledges to some programs used at compile timediscussed with and ok mestre@
More headers removal and sorted the remaining alphabetically.Most noticeable that were removed are sys/types.h which will be included fromstdlib.h and in turn also brings along sys/cdefs.h. The ot
More headers removal and sorted the remaining alphabetically.Most noticeable that were removed are sys/types.h which will be included fromstdlib.h and in turn also brings along sys/cdefs.h. The other one is limits.hthat was used with the old idiom (denom * random() / LONG_MAX), although it wasonly removed were applicable (some files still need that header).OK tb@
Michal Mazurek pointed out on tech@ that the factor.6 manual needs a bitof clarification. Thus, express the description both more concisely andmore precisely. Drop details about spaces in the out
Michal Mazurek pointed out on tech@ that the factor.6 manual needs a bitof clarification. Thus, express the description both more concisely andmore precisely. Drop details about spaces in the output formatting.While there, update the corresponding comment in the source code.With input from jmc@ and mestre@; detailed discussion with sobrado@.ok sobrado@
Declare usage() functions as __dead void, if they don't return, on games section.Found another one in arithmetic(6) which also didn't return, and removed a function from number(6) which is not used
Declare usage() functions as __dead void, if they don't return, on games section.Found another one in arithmetic(6) which also didn't return, and removed a function from number(6) which is not used anymore.OK tb@
Cast isblank()'s argument to unsigned char.ok guenther@
Pledge "stdio" for simple games.ok semarie@
cosmetic fixes
In roff, the escape sequence \: is an optional line break,so escape a literal non-punctuation colon correctly as \&:.Required for correct formatting with groff-1.20.1 and Heirloom troff;strangely,
In roff, the escape sequence \: is an optional line break,so escape a literal non-punctuation colon correctly as \&:.Required for correct formatting with groff-1.20.1 and Heirloom troff;strangely, groff-1.15 and mandoc have the same bug here, hiding the error."fine" jmc@While here, change .Dq to .Sq which looks better for single-characterquoting, as suggested by jmc@.
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andunmaintainable). these days, people use source. these id's do not provideany benefit, and do hurt the small install media(th
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andunmaintainable). these days, people use source. these id's do not provideany benefit, and do hurt the small install media(the 33,000 line diff is essentially mechanical)ok with the idea millert, ok dms
synchronization between usage and synopsis; add some missing "usage:"'sok jmc@
use strcspn to properly overwrite '\n' in fgets returned bufferok moritz@ ray@
convert to new .Dd format;
exit code 1 on usage; adobriyan@gmail
ansi; khalek@linuxgamers.net
.br workaround no longer necessary;
Remove the advertising clause in the UCB license which Berkeleyrescinded 22 July 1999. Proofed by myself and Theo.
No dm -> no need to revoke setegid.
Add missing libraries to bsd.prog.mk (mostly kerberosV)Use them in DPADD throughout the tree.Fix a few mispells (LIBMATH -> LIBM...)Wipe obsolete lib (LIBRESOLV)Sort added missing libraries, move
Add missing libraries to bsd.prog.mk (mostly kerberosV)Use them in DPADD throughout the tree.Fix a few mispells (LIBMATH -> LIBM...)Wipe obsolete lib (LIBRESOLV)Sort added missing libraries, move obsolete stuff apart.Synch documentation in bsd.READMEok deraadt@
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be don
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
typo; ericyu@mail2000.com.tw
12