NetBSD/lib/libc/gen
christos 66ae8c4557 More fixes from: J.R. Oldroyd
- The input loop control that I changed yesterday to:
	while (mbslength >= 0) {
  There are circumstances where this causes an extra \000 to
  be added at the end of some tests.  This error was showing
  in my own tests here, but I did not notice it yesterday.
  (I really need to add my tests to the test suite, catching
  every error by eye is hard.)  To fix, I've now changed the
  code to increment mbslength only if mbslength == 1 to start
  with.  (Note that this check for "== 1" is why the arg to
  strvisx() in vis(1) must be 1, not mbilen.)

- The cast sequence when manually inserting bytes after a
  multibyte conversion error:
	*src = (wint_t)(u_char)*mbsrc;
  is wrong.  This is causing problems in the case when an
  8859-1 input string is processed in the UTF-8 locale.
  It needs to be:
	*src = (wint_t)*mbsrc;
  Without the (u_char) all the locale mismatch combinations
  then work.

- The code:
	if (mblength < len)
		len = mblength;
  needs to be there.  It resets len for the single character
  input case after we've actually processed two input
  characters (c and nextc) because we incremented mbslength
  at the start of the loop.  Without this code, single
  character conversions end up with a \000 or other byte
  appended.
2013-02-15 00:28:10 +00:00
..
_err.c
_errno.c
_errx.c
_lwp_makecontext.3
_sysconf.c
_verr.c
_verrx.c
_vwarn.c
_vwarnx.c
_warn.c
_warnx.c
alarm.3
alarm.c
alphasort.c
arc4random.3
arc4random.c
assert.c
basename.3
basename.c
bswap.3
cgetcap.3
clock.3
clock.c
closedir.c
closefrom.3
closefrom.c
confstr.3
confstr.c
cpuset.3
ctermid.3
ctermid.c
ctype_.c
ctype.3
daemon.3
daemon.c
dehumanize_number.c
devname.3
devname.c
directory.3
dirent_private.h
dirname.3
dirname.c
disklabel.c
endutxent.3
err.3
err.c
errlist.awk
errno.c
errx.c
exec.3 - Correct macro usage; 2012-11-22 16:19:49 +00:00
execl.c
execle.c
execlp.c
execv.c
execvp.c
extattr_copy_file.3
extattr_namespace_to_string.3
extattr.c
fabs_ieee754.c
fixunsdfsi_ieee754.c
fixunsgen64_ieee754.c
fixunsgen_ieee754.c
fixunssfsi_ieee754.c
fixunstfdi_ieee754.c
fixunstfsi_ieee754.c
fmtcheck.3
fmtcheck.c
fmtmsg.3
fmtmsg.c
fnmatch.3
fnmatch.c
fpclassify.3
fpclassifyd_ieee754.c
fpclassifyf_ieee754.c
fpclassifyl_ieee754.c
fpgetmask.3
fstab.c
ftok.3
ftok.c
fts.3
fts.c
ftw.3
ftw.c
getbsize.3
getbsize.c
getcap.c
getcwd.3
getcwd.c
getdevmajor.3
getdevmajor.c
getdiskbyname.3
getdomainname.3
getdomainname.c
getfsent.3
getgrent.3
getgrent.c
getgrouplist.3
getgrouplist.c
getgroupmembership.c
gethostname.3
gethostname.c
getlastlogx.3
getloadavg.3
getloadavg.c
getlogin.c
getmntinfo.3
getmntinfo.c
getnetgrent.3
getnetgrent.c
getpagesize.3
getpagesize.c
getpass.3
getpass.c
getprogname.3
getprogname.c
getpwent.3
getpwent.c
getttyent.3
getttyent.c
getusershell.3
getusershell.c
glob.3 Instead of changing the code to match the documentation, change the documentation 2012-12-27 21:17:47 +00:00
glob.c Instead of changing the code to match the documentation, change the documentation 2012-12-27 21:17:47 +00:00
gr_private.h
humanize_number.3
humanize_number.c
infinity_ieee754.c
infinityf_ieee754.c
infinityl_dbl_ieee754.c
infinityl_ieee754.c
initdir.c
initgroups.3
initgroups.c
isalnum.3
isalpha.3
isascii.3
isascii.c
isatty.c
isblank.3
iscntrl.3
isctype.c
isdigit.3
isfinite.3
isfinited_ieee754.c
isfinitef_ieee754.c
isfinitel_ieee754.c
isgraph.3
isgreater.3
isinf.3
isinfd_ieee754.c
isinff_ieee754.c
isinfl_ieee754.c
islower.3
isnan.3
isnand_ieee754.c
isnanf_ieee754.c
isnanl_ieee754.c
isnormal.3
isprint.3
ispunct.3
isspace.3
isupper.3
isxdigit.3
ldexp_ieee754.c
Lint___setjmp14.c
Lint___sigsetjmp14.c
Lint__setjmp.c
Lint_alloca.c
Lint_bswap16.c
Lint_bswap32.c
Lint_bswap64.c
Lint_fabs.c
Lint_flt_rounds.c
Lint_fpgetmask.c
Lint_fpgetround.c
Lint_fpgetsticky.c
Lint_fpsetmask.c
Lint_fpsetround.c
Lint_fpsetsticky.c
Lint_frexp.c
Lint_ldexp.c
Lint_modf.c
Lint_resumecontext.c
Lint_swapcontext.c
lockf.3
lockf.c
makecontext.3
Makefile.inc add utimens and lutimens wrappers using utimensat. 2012-11-03 19:39:21 +00:00
modf_ieee754.c
nftw.c
nice.3
nice.c
nlist_aout.c
nlist_coff.c
nlist_ecoff.c
nlist_elf32.c
nlist_elf64.c
nlist_private.h
nlist.3
nlist.c
opendir.c
pause.3
pause.c
popen.3
popen.c
posix_spawn_file_actions_addopen.3
posix_spawn_file_actions_init.3
posix_spawn_fileactions.c
posix_spawn_sched.c
posix_spawn.3
posix_spawnattr_getflags.3
posix_spawnattr_getpgroup.3
posix_spawnattr_getschedparam.3
posix_spawnattr_getschedpolicy.3
posix_spawnattr_getsigdefault.3
posix_spawnattr_getsigmask.3
posix_spawnattr_init.3
posix_spawnp.c
psignal.3
psignal.c
pthread_atfork.3
pthread_atfork.c
pw_private.h
pw_scan.c
pwcache.3
pwcache.c
pwcache.h
raise.3
raise.c
randomid.3
randomid.c
readdir.c
realpath.3
rewinddir.c
scandir.3
scandir.c
seekdir.c
setdomainname.c
sethostname.c
setjmp.3
setjmperr.c
setmode.3
setmode.c
setproctitle.3
setproctitle.c
setprogname.c
shquote.3
shquote.c
shquotev.c
sighold.3
sighold.c
sigignore.3
sigignore.c
siginterrupt.3
siginterrupt.c
siglist.c
signal.3
signal.c
signame.c
signbit.3
signbitd_ieee754.c
signbitf_ieee754.c
signbitl_ieee754.c
sigrelse.3
sigrelse.c
sigset.3
sigset.c
sigsetops.3
sigsetops.c
sleep.3
sleep.c
stringlist.3
stringlist.c
sysconf.3 Remove trailing whitespace. 2012-11-03 00:52:41 +00:00
sysconf.c Add _SC_PHYS_PAGES 2012-11-02 21:43:07 +00:00
sysctl.3
sysctl.c
sysctlbyname.c
sysctlgetmibinfo.c
sysctlnametomib.c
syslog.3
syslog.c
telldir.c
time.3
time.c
times.3
times.c
timezone.3
toascii.3
toascii.c
tolower_.c
tolower.3
toupper_.c
toupper.3
ttyname.3
ttyname.c
ttyslot.c
ualarm.3
ualarm.c
ulimit.3
ulimit.c
uname.3
uname.c
unvis.3 Add article. Remove trailing whitespace. 2012-12-15 07:34:36 +00:00
unvis.c Since the struct is const, no reason for the name member to be const. 2012-12-15 04:29:53 +00:00
usleep.3
usleep.c
utime.3
utime.c
utimens.c add utimens and lutimens wrappers using utimensat. 2012-11-03 19:39:21 +00:00
utmp.c
utmpx.c
valloc.3
valloc.c
verr.c
verrx.c
vis.3 Mark up LC_CTYPE as environment variable. 2013-02-13 22:19:48 +00:00
vis.c More fixes from: J.R. Oldroyd 2013-02-15 00:28:10 +00:00
vwarn.c
vwarnx.c
wait3.c
wait.c
waitpid.c
warn.c
warnx.c
wordexp.3
wordexp.c