Up to [local] / src / usr.bin / spell
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.16 / (download) - annotate - [select for diffs], Mon Dec 26 19:16:03 2022 UTC (17 months, 2 weeks ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
HEAD
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.1 (colored)
spelling fixes; from paul tagliamonte amendments to his diff are noted on tech
Revision 1.15 / (download) - annotate - [select for diffs], Sun Oct 24 21:24:17 2021 UTC (2 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored) to selected 1.1 (colored)
For open/openat, if the flags parameter does not contain O_CREAT, the 3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert
Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 10 20:45:11 2019 UTC (5 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5
Changes since 1.13: +5 -8 lines
Diff to previous 1.13 (colored) to selected 1.1 (colored)
Delete useless call to setlocale(3): Spell uses nothing locale-dependent, and it will never need support for non-English characters because the basic algorithms used are specific to the English language in the first place. While here, make usage() static and return from main() rather than exit(3). Minimially tweaked diff originally from Jan Stary. OK tedu@
Revision 1.13 / (download) - annotate - [select for diffs], Fri Jul 28 17:16:35 2017 UTC (6 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.12: +7 -7 lines
Diff to previous 1.12 (colored) to selected 1.1 (colored)
Fix some warnings: p1() and p2() are only declared without arguments so that nop() can be nop(void), so just change nop() to have the same arguments as all the other functions and make p1() and p2() proper prototypes; and do not use '\0' as a pointer constant. ok florian deraadt
Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 10 19:11:04 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1,
OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.11: +4 -1 lines
Diff to previous 1.11 (colored) to selected 1.1 (colored)
pledge "stdio rpath wpath cpath" ok doug
Revision 1.11 / (download) - annotate - [select for diffs], Sun Feb 8 23:40:34 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored) to selected 1.1 (colored)
in getopt() blocks, stop incrementing flag variable which are supposed to just be 0/1 ok miod florian
Revision 1.10 / (download) - annotate - [select for diffs], Fri Feb 6 23:21:59 2015 UTC (9 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored) to selected 1.1 (colored)
SIZE_MAX is standard, we should be using it in preference to the obsolete SIZE_T_MAX. OK miod@ beck@
Revision 1.9 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:12 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +1 -2 lines
Diff to previous 1.8 (colored) to selected 1.1 (colored)
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
Revision 1.8 / (download) - annotate - [select for diffs], Tue May 20 01:25:23 2014 UTC (10 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) to selected 1.1 (colored)
Use errc/warnc to simplify code. Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
Revision 1.7 / (download) - annotate - [select for diffs], Thu Nov 28 18:24:55 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.6: +10 -10 lines
Diff to previous 1.6 (colored) to selected 1.1 (colored)
unsigned char for ctype ok krw okan
Revision 1.6 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:43 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3,
OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.5: +1 -15 lines
Diff to previous 1.5 (colored) to selected 1.1 (colored)
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 2 15:19:34 2007 UTC (16 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored) to selected 1.1 (colored)
use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg
Revision 1.4 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:16 2003 UTC (21 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9,
OPENBSD_3_8_BASE,
OPENBSD_3_8,
OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6,
OPENBSD_3_5_BASE,
OPENBSD_3_5,
OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.3: +3 -7 lines
Diff to previous 1.3 (colored) to selected 1.1 (colored)
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 3 17:53:32 2002 UTC (22 years ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3,
OPENBSD_3_2_BASE,
OPENBSD_3_2
Changes since 1.2: +55 -55 lines
Diff to previous 1.2 (colored) to selected 1.1 (colored)
KNF [return(foo) -> return (foo)]. ok millert@
Revision 1.2 / (download) - annotate - [select for diffs], Sat Mar 2 16:20:33 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE,
OPENBSD_3_1
Changes since 1.1: +29 -9 lines
Diff to previous 1.1 (colored)
No more writable strings in -b mode.
Revision 1.1 / (download) - annotate - [selected], Fri Mar 1 22:01:11 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
spell command from 4.4BSD, now freed by Caldera. I have made some significant changes: o spell no longer uses hashed files. The algorithm for generating the hashed files breaks down for large files. Instead, I use the same approach as look(1) and do binary searches of mmap(2)ed files which has acceptable performance. A side effect of this is that spell can now search multiple word lists. o The spell binary has been renamed to "spellprog" so as to not conflict with the spell shell script. This is consistent with other operating systems. o The putsuf() and putword() functions have been renamed to trypref() and tryword() respectively for consistency with modern versions and for general sanity. o the spell front-end shell script has been completely rewritten o The code has been ANSIfied and re-style(9)d spell currently must be compiled with -fwriteable-strings to make the -b option work. This should be fixed.