glibc/nss
Wilco Dijkstra 32c7acd464 Replace rawmemchr (s, '\0') with strchr
Almost all uses of rawmemchr find the end of a string.  Since most targets use
a generic implementation, replacing it with strchr is better since that is
optimized by compilers into strlen (s) + s.  Also fix the generic rawmemchr
implementation to use a cast to unsigned char in the if statement.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2023-02-06 16:16:19 +00:00
..
nss_compat Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_db Replace rawmemchr (s, '\0') with strchr 2023-02-06 16:16:19 +00:00
nss_files Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-compat1.root
tst-nss-db-endgrent.root/etc
tst-nss-db-endpwent.root
tst-nss-files-hosts-long.root/etc
tst-nss-gai-actions.root/etc Simplify allocations and fix merge and continue actions [BZ #28931] 2022-03-22 19:38:36 +05:30
tst-nss-test3.root
tst-reload1.root
tst-reload2.root
alias-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
bug17079.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
bug-erange.c
compat-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
databases.def Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
db-Makefile Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Depend
digits_dots.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ethers-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
function.def Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getent.c Update copyright dates not handled by scripts/update-copyrights 2023-01-06 21:45:36 +00:00
getnssent_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getnssent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getXXbyYY_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getXXbyYY.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getXXent_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getXXent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
grp-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
hosts-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
key-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
makedb.c Update copyright dates not handled by scripts/update-copyrights 2023-01-06 21:45:36 +00:00
Makefile Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
netgrp-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
network-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_action_parse.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_action.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_action.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_database.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_database.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_fgetent_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_files_data.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_files_fopen.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_files_functions.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_hash.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_module.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_module.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_parse_line_result.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_readline.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_test1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_test2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_test_errno.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_test.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nss_test.ver
nss.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nsswitch.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nsswitch.conf
nsswitch.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
proto-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pwd-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
rewrite_field.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
rpc-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
service-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sgrp-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
simple-nss-hash.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
spwd-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-digits-dots.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-netdb.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cancel-getpwuid_r.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-field.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-compat1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-db-endgrent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-db-endpwent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-files-alias-leak.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-files-alias-truncated.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-files-hosts-erange.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-files-hosts-getent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-files-hosts-long.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-files-hosts-multi.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-gai-actions.c Simplify allocations and fix merge and continue actions [BZ #28931] 2022-03-22 19:38:36 +05:30
tst-nss-getpwent.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-hash.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-static.c
tst-nss-test1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-test2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-test3.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-test4.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-test5.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-nss-test_errno.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-reload1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-reload2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
valid_field.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
valid_list_field.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Versions
XXX-lookup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00