| #
1.35 |
|
05-Oct-2025 |
riastradh |
ctype(3): Fix versions and clarify what LIBC_ALLOWCTYPEABUSE does.
Both the extra diagnostics _and_ LIBC_ALLOWCTYPEABUSE are new in 11. The extra diagnostics were not added in 10 (unless someone went ahead and pulled them up while I wasn't looking!).
LIBC_ALLOWCTYPEABUSE doesn't guarantee that the program won't crash; it just makes that depend on factors such as address space layout randomization -- where the ctype tables appear in memory relative to non-readable pages.
PR lib/58208: ctype(3) provides poor runtime feedback of abuse
|
| #
1.34 |
|
05-Oct-2025 |
riastradh |
ctype(3): Clarify test program output. Update compiler warning.
Should be a little easier to read. The fact that isprint returns _any_ nonzero value, not necessarily 1, isn't germane to the point here, so showing it return 5 or 2 doesn't really help to illustrate anything.
|
| #
1.33 |
|
01-Oct-2025 |
martin |
Tweak version numbers, the LIBC_ALLOWCTYPEABUSE env support has been pulled up.
|
| #
1.32 |
|
15-Sep-2025 |
riastradh |
ctype(3): Document LIBC_ALLOWCTYPEABUSE.
If this is pulled up to netbsd-11, we should tweak the text to make it apply to 11 too.
PR lib/58208: ctype(3) provides poor runtime feedback of abuse
|
|
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-9-4-RELEASE netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base netbsd-9-3-RELEASE cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
|
| #
1.31 |
|
15-Jan-2019 |
wiz |
branches: 1.31.14; Use \- for minus.
|
| #
1.30 |
|
15-Jan-2019 |
uwe |
Fly, nasal demons, fly away...
|
| #
1.29 |
|
15-Jan-2019 |
riastradh |
Use the same variable for the locale example.
|
| #
1.28 |
|
15-Jan-2019 |
uwe |
Don't talk about "the first argument" when there's only one.
|
| #
1.27 |
|
15-Jan-2019 |
uwe |
Fix markup pasto.
|
| #
1.26 |
|
15-Jan-2019 |
uwe |
Remove the extra cast to int in the CAVEATS example. We removed it from EXAMPLES a few releases ago.
|
| #
1.25 |
|
15-Jan-2019 |
uwe |
Fix typo in macro flag.
|
| #
1.24 |
|
15-Jan-2019 |
riastradh |
Expand on correct and incorrect usage, and on compiler warnings.
Give an example program with the warning, and some example nonsense outputs. Also note why glibc's approach doesn't solve the problem.
|
|
Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
|
| #
1.23 |
|
12-Dec-2017 |
abhinav |
branches: 1.23.2; 1.23.4; Add ctype to the NAME section (as this is a man page for ctype) Remove rest of the names from the NAME section (These names have their own individual man pages, as such it doesn't make sense to have their names in the NAME section in this man page as well. Moreover, we have been trying to fix such man pages so that apropos(1)/whatis(1) are able to search these man pages. Other examples of such fixed man pages include memory(3), string(3) etc.)
ok wiz@
|
|
Revision tags: netbsd-8-3-RELEASE netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
|
| #
1.22 |
|
25-Feb-2015 |
wiz |
Remove sentence about casting to int (also from example). Bump date.
ok joerg@
|
|
Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-7-base yamt-pagecache-base9 yamt-pagecache-tag8 netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 tls-maxphys-base matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
|
| #
1.21 |
|
06-May-2010 |
jruoho |
Note POSIX compliance. Reword a little around the example.
|
| #
1.20 |
|
05-Apr-2010 |
joerg |
\\ -> \e
|
|
Revision tags: matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
|
| #
1.19 |
|
11-Mar-2009 |
joerg |
Give the full prototype for all ctype functions/macros. Remove redundant .br.
|
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 christos-time_t-nbase christos-time_t-base netbsd-5-base matt-mips64-base2 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base
|
| #
1.18 |
|
17-Apr-2008 |
apb |
branches: 1.18.10; 1.18.12; * Expand the CAVEATS section with a lot more detail on how to safely use the ctype functions. * Use toupper((int)(unsigned char)*s)) instead of just toupper((unsigned char)*s) in an example.
|
|
Revision tags: keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
|
| #
1.17 |
|
20-Jan-2007 |
wiz |
Sort sections.
|
| #
1.16 |
|
18-Jan-2007 |
cbiere |
isascii() and toascii() are defined for all integers unlike the other functions. Explicitely mention "undefined behavior".
|
| #
1.15 |
|
18-Jan-2007 |
rillig |
Added a warning about a wrong usage, which is nevertheless often found in real code, and an example code that does it correctly.
|
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base abandoned-netbsd-4-base netbsd-4-base
|
| #
1.14 |
|
04-Feb-2006 |
wiz |
Serial comma; bump date for previous.
|
| #
1.13 |
|
26-Jan-2006 |
rillig |
.St -ansiC doesn't know about isascii().
|
| #
1.12 |
|
26-Jan-2006 |
rillig |
s/macro/function/g
|
|
Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
|
| #
1.11 |
|
07-Aug-2003 |
agc |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
|
| #
1.10 |
|
16-Apr-2003 |
wiz |
Use .In header.h instead of .Fd #include \*[Lt]header.h\*[Gt] Much easier to read and write, and supported by groff for ages. Okayed by ross.
|
|
Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 nathanw_sa_before_merge fvdl_fs64_base nathanw_sa_base netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
|
| #
1.9 |
|
07-Feb-2002 |
ross |
Generate <>& symbolically.
|
| #
1.8 |
|
16-Sep-2001 |
wiz |
Standardize section headers, sort sections, sort SEE ALSO, punctuation and misc. fixes.
|
|
Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-4-PATCH003 netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base netbsd-1-4-PATCH002 wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
|
| #
1.7 |
|
05-Feb-1998 |
perry |
branches: 1.7.12; add LIBRARY section to man page
|
|
Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
|
| #
1.6 |
|
25-Feb-1995 |
cgd |
merge with Lite, keep local changes. clean up id usage
|
|
Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
|
| #
1.5 |
|
01-Dec-1993 |
jtc |
Manpage formatting tweaks.
|
| #
1.4 |
|
25-Nov-1993 |
jtc |
Misc manpage fixes.
|
| #
1.3 |
|
14-Sep-1993 |
jtc |
Document isblank().
|
| #
1.2 |
|
30-Jul-1993 |
mycroft |
Add RCS identifiers.
|
| #
1.1 |
|
21-Mar-1993 |
cgd |
branches: 1.1.1; Initial revision
|