NetBSD/usr.bin
joerg aad599979d Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
2011-03-09 23:10:05 +00:00
..
apply Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
apropos Add support for -S and -s option, which limit the results to a specific 2009-05-08 12:48:43 +00:00
asa Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
at PR/44147: Henning Petersen: Add missing closedir calls. 2010-11-24 17:40:41 +00:00
audio Sort usage. 2010-12-29 18:49:41 +00:00
audiocfg return an error if testing fails, and dump the device info before running tests 2010-09-03 19:20:37 +00:00
awk Make this build as part of the dist/miniroot build, where it's still 2010-12-15 08:09:23 +00:00
banner Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
basename Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
bdes Use .%U instead of .%O for URLs. 2010-01-15 19:39:10 +00:00
biff Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
bthset update to use the new service discovery API 2009-05-12 18:39:55 +00:00
btkey accept uppercase hex digits when parsing a provided key 2009-12-10 18:57:31 +00:00
btpin add a -P flag to attempt immediate pairing 2009-05-16 07:18:42 +00:00
bzip2
bzip2recover
cal Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
calendar Ahem. "Battle" of Wounded Knee? How about "massacre"? 2010-12-02 08:36:02 +00:00
cap_mkdb Fix trailing whitespace 2010-05-14 01:53:28 +00:00
cdplay Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
checknr Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
chflags Missing -width for .Bl -tag 2010-05-14 16:48:02 +00:00
chpass
cksum Use plain \* not \\*. Fix trailing whitespace 2010-05-14 01:57:21 +00:00
cmp Compare size_t vs off_t by casting both to uintmax_t 2009-04-18 06:24:05 +00:00
col Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
colcrt Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
colrm Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
column Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
comm Don't include newlines when comparing to prevent errors when lines have 2009-11-28 03:56:38 +00:00
compile_et Typo: s/ a a/ as a/ 2010-04-05 21:33:09 +00:00
compress
config Fix build on Solaris 10. 2011-03-03 14:53:01 +00:00
crontab
crunch pass LDSTATIC to recursive makes. 2010-04-24 17:58:40 +00:00
csplit Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
ctags Reorder to canonical order. 2010-05-14 16:48:36 +00:00
cut Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
db Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
deroff Remove superfluous parenthesis in #ifdef DEBUG. 2009-08-07 14:05:58 +00:00
dirname Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
du Add #include <sys/param.h> 2010-07-08 20:52:22 +00:00
eject don't bother to connect to amd unless necessary. PR/42207 2010-06-23 18:07:59 +00:00
elf2aout build elf2aout and fdformat on macppc64 (for now, it's a lot easier than 2010-03-30 07:26:23 +00:00
elf2ecoff Use %zu for size_t, not %zd. 2009-12-19 10:27:13 +00:00
env minor KNF nits. 2010-11-16 02:53:49 +00:00
error \\ -> \e 2010-04-05 21:16:21 +00:00
expand Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
extattr Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
false
fdformat build elf2aout and fdformat on macppc64 (for now, it's a lot easier than 2010-03-30 07:26:23 +00:00
fgen Some bugfixes and enhancements. Support for case .. of and fix calculation 2010-02-08 20:14:55 +00:00
find Don't error out while searching for empty directories, from FreeBSD: 2011-02-24 02:55:18 +00:00
finger
fmt Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
fold Fix section order. Use .Ex -std 2010-05-14 16:54:48 +00:00
fpr
from
fsplit Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
fstat move _KMEMUSER higher! 2009-07-13 21:44:32 +00:00
ftp In ftpvis(), prevent incomplete escape sequences at end of dst, 2010-06-05 13:59:39 +00:00
gcore
genassym Split overly large paragraph. 2010-04-13 09:01:10 +00:00
gencat Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
getconf Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
getent Sort SEE ALSO. New sentence, new line. Whitespace fix. 2010-02-04 09:48:35 +00:00
getopt punctuation 2010-01-24 20:13:28 +00:00
gprof
grep If transforming patterns with \<...\> to implicit word bounaries, don't 2011-02-27 17:33:37 +00:00
gss Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
gzip pull across a few changes from the freebsd folks: 2010-11-06 21:42:32 +00:00
head Just ignore the errno of strtoimax, it doesn't provide much value. 2010-03-31 21:55:23 +00:00
hesinfo
hexdump Replace "\t" with Ta in table. 2010-12-18 14:22:42 +00:00
hxtool Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
iconv fix typo, from Ryo HAYASAKA in PR 44332. 2011-01-06 08:30:09 +00:00
id Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
indent Spell out parenthesis. From Ryo HAYASAKA in PR 44372. 2011-01-12 06:17:52 +00:00
infocmp Fix spelling, mark up NULL. Closes PR 44381 by Ryo HAYASAKA. 2011-01-14 14:21:36 +00:00
innetgr
ipcrm Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ipcs Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
join
jot Add an example of generating a list of integers; make it the first 2011-01-05 19:59:48 +00:00
kdestroy Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
kdump format SI_QUEUE properly. 2011-01-10 05:15:17 +00:00
kgetcred Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
kinit Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
klist Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
krb5-config Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ktrace update usage 2011-02-05 15:22:17 +00:00
ktruss merge the bouyer-quota2 branch. This adds a new on-disk format 2011-03-06 17:08:10 +00:00
lam \\ -> \e 2010-04-05 21:16:21 +00:00
last Avoid SIGSEGV on out-of-range time_t. 2010-06-05 03:24:01 +00:00
lastcomm
ldd Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports 2011-03-09 23:10:05 +00:00
leave
less Fix typo, from Henning Petersen in PR 44510. 2011-02-04 07:26:17 +00:00
lex Conditionalize the yyinput/input() function definition the same way 2009-12-15 22:46:04 +00:00
locale Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
locate Reorder sections to canonical order. 2010-05-14 17:06:40 +00:00
lock
logger RETURN VALUES -> EXIT STATUS. 2010-05-14 16:58:32 +00:00
login don't repeat the word login twice (syslog prepends the program name login:) 2009-12-29 20:15:15 +00:00
logname
look Reorder sections to canonical order. 2010-05-14 17:06:40 +00:00
lorder
m4 Revert previous, to fix build on Mac OS X again. 2011-03-08 23:55:19 +00:00
machine
mail Rename sigqueue to sigq to avoid clashing with sigqueue(2). Now this 2011-01-10 17:14:38 +00:00
make Only need to getcwd() once 2011-03-06 17:41:11 +00:00
man get the value of the entry for the class not the key. 2010-07-07 21:24:34 +00:00
menuc option noinput 2009-10-29 14:35:25 +00:00
mesg Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
midiplay fix wording: 2010-01-16 08:50:29 +00:00
mixerctl Resort sections to canonical order 2010-05-14 17:20:06 +00:00
mk_cmds Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
mkcsmapper option noinput nounput 2009-10-29 14:37:16 +00:00
mkdep Per PR 19359 note that mkdep doesn't handle all make metacharacters 2010-10-15 05:46:48 +00:00
mkesdb use %option instead of #define YY_NO_... 2009-10-29 14:49:02 +00:00
mkfifo
mklocale 1. split runetype_local.h -> runetype_file.h 2010-06-13 04:14:56 +00:00
mkstr ANSIfy, sprinkle "const" in some obvious cases 2009-11-17 18:31:12 +00:00
mktemp Fix typo. 2009-08-15 20:44:56 +00:00
mkubootimage Add the -O option to set the OS type, which defaults to NetBSD when missing. 2011-02-26 20:03:09 +00:00
moduli Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
msgc Simplify markup. 2010-05-14 17:24:38 +00:00
msgs Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
nbperf Add a check for duplicate keys. The check is run once and quadratic in 2010-03-03 01:55:04 +00:00
nbsvtool
netgroup
netstat Use __arraycount() and PRIu64. Delete unnecessary casts to unsigned 2011-03-02 19:52:03 +00:00
newgrp Resort sections to canonical order. 2010-05-14 17:28:23 +00:00
newsyslog Reset ziptype on each line. Failure to do this caused any log file to 2009-08-21 08:20:19 +00:00
nfsstat Remove no longer used -DNFS. 2010-03-05 19:53:37 +00:00
nice
nl Fix -Wextra and -Wsign-compare issues 2009-04-12 23:34:11 +00:00
nohup Resort sections to canonical order. 2010-05-14 17:28:23 +00:00
nvi When using -lcurses, you also need -lterminfo. 2010-02-06 23:45:24 +00:00
pagesize
passwd KNF, make error messages consistent. 2010-09-08 13:58:46 +00:00
paste Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
patch Print version string to stdout instead of stderr; 2010-10-02 19:31:14 +00:00
pathchk Fix Dd argument. 2010-11-16 23:59:02 +00:00
pkill Fix SYNOPSIS; pkill accepts -l options since 3 years ago. `pattern' is 2010-12-07 09:00:23 +00:00
pmap Explicitly close quote. 2010-05-14 17:31:26 +00:00
pmc Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
pr Fix -Wcast-qual issues 2009-04-13 00:37:05 +00:00
printenv de-__P() and ANSIfy; no functional change 2009-07-25 08:20:24 +00:00
printf \\*(Pm -> \*(Pm 2010-04-05 21:24:14 +00:00
progress Fix argument handling of the "-b" option on 64bit platforms. Using 2010-07-17 10:51:03 +00:00
pwhash Reflow to < 80 chars. 2009-10-16 08:09:12 +00:00
qsubst Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
quota Properly evaluate the space needed to print "unlimited" in an human-readable 2011-03-07 11:46:55 +00:00
radioctl Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 04:24:29 +00:00
rdist Nesting displays is not valid groff syntax. 2009-08-19 14:54:35 +00:00
renice
rev Apply some ANSI and KNF. 2009-07-21 01:25:14 +00:00
revoke Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
rfcomm_sppd Sort sections. 2010-11-03 12:21:50 +00:00
rlogin Fix sign-compare issues 2009-04-13 04:37:53 +00:00
rpcgen Add support for hyper and quad keywords. (See Sun ONC+ Developer's Guide 2009-05-06 14:30:51 +00:00
rpcinfo simplify 2011-02-10 00:05:52 +00:00
rs Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
rsh putenv() no longer accepts a const string 2010-10-02 09:24:16 +00:00
rump_allserver adjust wording in previous 2011-03-04 09:13:23 +00:00
rump_dhcpclient remove a decidedly illogical statement 2011-02-14 17:30:54 +00:00
rump_halt Check sys_reboot() return value now that it's possible. 2011-01-22 13:43:07 +00:00
rump_server Allow to specify -d hostpath offset,size with disklabel. 2011-02-04 20:06:23 +00:00
rup Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ruptime Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 07:10:25 +00:00
rusers
rwall Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
rwho fix -Wsign-compare issue 2009-04-13 07:11:37 +00:00
script use system to parse args 2009-10-17 22:36:23 +00:00
sdiff Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
sdpquery use built-in macro ___STRING() rather than rolling our own 2011-02-08 18:14:00 +00:00
sed Merge the following revisions from OpenBSD to let sed(1) handle 2010-02-19 16:35:27 +00:00
seq Rerun valid_format() both before and after unescaping the format 2010-05-27 08:40:19 +00:00
shar
shlock Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
shmif_dumpbus print processing details only if we've not outputting a pcap file 2011-03-09 12:56:08 +00:00
showmount Don't use 'bool' as variable name. No binary changes. 2011-02-27 10:11:27 +00:00
shuffle fix sign-compare issue 2009-04-13 07:31:36 +00:00
skey
skeyinfo ANSIfy and sort includes 2009-09-05 06:15:24 +00:00
skeyinit Fix -Wsign-compare issue 2009-04-14 09:53:08 +00:00
sockstat support rump.sockstat 2011-01-28 18:52:48 +00:00
soelim Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
sort Sort sections. 2010-12-18 23:36:23 +00:00
spell Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
split Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
stat Add verbose mode for readlink. 2011-02-16 23:08:29 +00:00
string2key Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
su Don't free memory that was succesfully passed to putenv(3) which takes 2010-10-02 10:55:36 +00:00
systat Add per process cache values to the total name translations count. 2010-04-30 16:21:05 +00:00
tabs Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
tail Fix WARNS=4 issues (-Wcast-qual -Wshadow -Wsign-compare) 2009-04-13 23:33:25 +00:00
talk When using -lcurses, you also need -lterminfo. 2010-02-06 23:45:24 +00:00
tcopy Fix -Wcast-qual issue 2009-04-13 23:44:49 +00:00
tee Fix -Wcast-qual issues 2009-04-13 23:45:50 +00:00
telnet Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
tftp Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
tic libterminfo can now compile a single terminfo description which allows 2010-02-22 23:05:39 +00:00
time and, erm, bump date too. 2010-05-16 07:40:53 +00:00
tip fix language 2010-01-28 14:12:11 +00:00
touch Sort sections. 2011-02-22 15:47:02 +00:00
tpfmt - pass lint 2010-11-24 13:17:56 +00:00
tput Fix trailing whitespace 2010-05-14 01:58:07 +00:00
tr Do not use \." for comments, always use .\". Discussed with uwe@. 2009-11-12 00:43:52 +00:00
true
tset Fix typo in date. 2010-11-02 12:10:13 +00:00
tsort Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
tty
ul Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
uname
unexpand Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
unifdef - Fix an incorrect comparison (always true) 2011-01-20 15:24:24 +00:00
uniq Sync usage with man page. 2010-10-06 07:59:18 +00:00
units Appease -Wcast-qual with a liberal sprinkling of const. 2009-04-14 05:55:12 +00:00
unvis Make SYNOPSIS match usage. 2010-11-28 01:33:37 +00:00
unzip Kill a left-over break from the for-loop that vanished in 1.13. 2010-05-10 15:45:22 +00:00
usbhidaction Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
usbhidctl fix sign-compare issues 2009-04-14 06:14:10 +00:00
users
utoppya fix sign-compare issues 2009-04-14 06:14:10 +00:00
uudecode Fix -Wcast-qual issue 2009-04-14 06:16:59 +00:00
uuencode
uuidgen Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
vacation s/the the/the/ 2009-12-08 09:46:01 +00:00
verify_krb5_conf Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
vgrind Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
videoctl New sentence, new line. 2010-12-26 14:26:45 +00:00
vis
vmstat Fix header, format and total count of system interrupt counters. 2011-02-16 12:58:38 +00:00
vndcompress Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
w Fix -Wcast-qual issue 2009-04-14 07:41:36 +00:00
wall Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-14 07:54:51 +00:00
wc Report the number of characters, not the number of bytes in the 2010-02-19 11:15:23 +00:00
what
whatis
whereis No trailing whitespace 2010-04-05 16:13:58 +00:00
who PR/41313: Chris Spiegel: getutentries() in src/usr.bin/who/utmpentry.c thinks 2009-05-01 14:26:10 +00:00
whois Punctuation. 2009-05-04 21:13:58 +00:00
window Add a script to generate a distfile of window from the verbatim sources on 2011-03-09 17:32:03 +00:00
write fix sign-compare issue 2009-04-14 07:59:17 +00:00
xargs Talk more about NetBSD and less about FreeBSD. Sort sections. 2010-12-22 09:05:07 +00:00
xinstall Reorder sections to canonical order. Use .Ex -std. 2010-05-14 17:03:19 +00:00
xlint weprovidedarracount()sothatwedon'tneedtosqueezethespacesout. 2011-02-07 23:56:18 +00:00
xstr ANSIfy, sprinkle "const" in some obvious cases 2009-11-17 18:31:12 +00:00
yacc no braaaains for you! 2010-05-30 00:45:03 +00:00
yes Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ypcat Sort options in SYNOPSIS. 2011-01-12 19:55:06 +00:00
ypmatch Sync usage with man page. 2009-06-21 14:59:53 +00:00
ypwhich udpate license clauses on my code to match the new-style BSD licenses. 2011-02-01 20:58:15 +00:00
Makefile Add a simple dhcp client for rump kernels. It uses code from dhcpcd 2011-01-20 18:47:19 +00:00
Makefile.inc Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00