freebsd-nq/lib/libc/gen
Brooks Davis 3076591b7a Attempt to use AT_PS_STRINGS to get the ps_strings pointer.
This saves a system call and avoids one of the (relatively rare) cases
of the kernel exporting pointers via sysctl.

As a temporary measure, keep the sysctl support to allow limited
compatability with old kernels.

Fail gracefully if ps_strings can't be found (should never happen).

Reviewed by:	kib
Obtained from:	CheriBSD
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D24407
2020-04-15 20:28:20 +00:00
..
__getosreldate.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
__pthread_mutex_init_calloc_cb_stub.c
__xuname.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
_once_stub.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
_pthread_stubs.c Add libc stub for pthread_getthreadid_np(3). 2019-06-23 10:50:26 +00:00
_rand48.c
_spinlock_stub.c
_thread_init.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
alarm.3
alarm.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
arc4random_uniform.c Sync with OpenBSD: 2020-04-13 08:42:13 +00:00
arc4random-compat.c Update userland arc4random() with OpenBSD's Chacha20 based arc4random(). 2018-08-19 17:40:50 +00:00
arc4random.3 Sync with OpenBSD: 2020-04-13 08:42:13 +00:00
arc4random.c Sync with OpenBSD: 2020-04-13 08:42:13 +00:00
arc4random.h Update userland arc4random() with OpenBSD's Chacha20 based arc4random(). 2018-08-19 17:40:50 +00:00
assert.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
auxv.3 Document required size of buffer for elf_aux_info(3). 2019-11-17 14:11:08 +00:00
auxv.c Support AT_PS_STRINGS in _elf_aux_info(). 2020-04-15 20:26:41 +00:00
basename_compat.c Remove basename_r(3). 2017-12-08 22:06:18 +00:00
basename.3
basename.c
cap_rights_get.3
cap_sandboxed.3
cap_sandboxed.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
check_utility_compat.3
check_utility_compat.c
clock_getcpuclockid.3
clock_getcpuclockid.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
clock.3
clock.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
closedir.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
confstr.3
confstr.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
crypt.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
ctermid.3
ctermid.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
daemon.3 Fix formatting. 2019-08-01 18:51:06 +00:00
daemon.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
devname-compat11.c
devname.3
devname.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
directory.3 directory.3: add a STANDARDS section 2019-05-02 19:59:37 +00:00
dirfd.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
dirname_compat.c
dirname.3
dirname.c
disklabel.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
dl_iterate_phdr.3
dladdr.3
dlfcn.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
dlinfo.3
dllockinit.3
dlopen.3 Revert r343093 until I can address the issues raised by kib@. 2019-01-17 16:50:50 +00:00
drand48.c
dup3.3
dup3.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
elf_utils.c Remove redundent decleration of __elf_phdr_match_addr(). 2019-07-17 23:46:47 +00:00
erand48.c
err.3
err.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
errlst.c Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
errno.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
exec.3 exec{l,v}{e,p} arrived in 7th Edition research Unix to support the Bourne Shell 2020-03-24 19:33:21 +00:00
exec.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
exect.c Replace MD assembly exect() with a portable version. 2018-04-12 18:23:14 +00:00
fdevname.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
feature_present.3
feature_present.c
fmtcheck.3
fmtcheck.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
fmtmsg.3
fmtmsg.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
fnmatch.3
fnmatch.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
fpclassify.3
fpclassify.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
frexp.3
frexp.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
fstab.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
ftok.3
ftok.c libc: fix cases of undefined behavior. 2018-08-07 15:24:19 +00:00
fts-compat11.c DTF_REWIND does nothing (since r247236) so retire its use 2019-03-26 19:35:41 +00:00
fts-compat11.h
fts-compat.c DTF_REWIND does nothing (since r247236) so retire its use 2019-03-26 19:35:41 +00:00
fts-compat.h
fts.3
fts.c DTF_REWIND does nothing (since r247236) so retire its use 2019-03-26 19:35:41 +00:00
ftw-compat11.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
ftw.3 ftw.3: Follow style(9) in the example 2020-03-12 18:28:23 +00:00
ftw.c
gen-compat.h
gen-private.h Reduce size of rtld by 22% by pulling in less code from libc 2019-06-30 11:49:58 +00:00
getbootfile.3
getbootfile.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getbsize.3
getbsize.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getcap.3
getcap.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getcontext.3 Add STANDARDS and HISTORY to getcontext(3), makecontext(3), and ucontext(3). 2020-03-23 17:38:20 +00:00
getcwd.3
getcwd.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getdiskbyname.3
getdomainname.3
getdomainname.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getentropy.3 Implement getrandom(2) and getentropy(3) 2018-03-21 01:15:45 +00:00
getentropy.c getentropy(3): Trap non-API errnos from getrandom(2) and abort 2018-10-20 21:45:17 +00:00
getfsent.3
getgrent.3
getgrent.c Fix -Wvoid-pointer-to-enum-cast warnings. 2020-04-15 18:15:58 +00:00
getgrouplist.3
getgrouplist.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
gethostname.3
gethostname.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getloadavg.3
getloadavg.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getlogin.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getmntinfo-compat11.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getmntinfo.3
getmntinfo.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getnetgrent.3
getnetgrent.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getosreldate.3 Get rid of references to /usr/share/doc/ from ports(7) and getosreldate(3). 2018-06-13 18:34:49 +00:00
getosreldate.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getpagesize.3
getpagesize.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getpagesizes.3
getpagesizes.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
getpass.3
getpeereid.3
getpeereid.c getpeereid(3): Fix behavior on failure to match documentation. 2018-02-23 00:28:00 +00:00
getprogname.3
getprogname.c
getpwent.3
getpwent.c Fix -Wvoid-pointer-to-enum-cast warnings. 2020-04-15 18:15:58 +00:00
getttyent.3 Fix typo. 2018-02-27 10:55:33 +00:00
getttyent.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getusershell.3
getusershell.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
getutxent.3
getutxent.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
getvfsbyname.3 Put jail(2) under COMPAT_FREEBSD11. It has been the "old" way of creating 2018-08-16 18:40:16 +00:00
getvfsbyname.c style changes to getvfsbyname 2019-07-17 19:41:44 +00:00
glob-compat11.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
glob-compat11.h
glob.3
glob.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
initgroups.3
initgroups.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
isatty.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
isgreater.3 isgreater(3): correct description of isunordered macro 2017-12-31 00:46:41 +00:00
isinf.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
isnan.c Add __isnan()/__isnanf() aliases for compatibility with glibc and CUDA 2019-11-02 16:59:53 +00:00
jrand48.c
lcong48.c
ldexp.3
ldexp.c
libc_dlopen.c Remove redundand 'else' and 'return'. 2019-06-23 10:45:50 +00:00
lockf.3
lockf.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
lrand48.c
makecontext.3 Add STANDARDS and HISTORY to getcontext(3), makecontext(3), and ucontext(3). 2020-03-23 17:38:20 +00:00
Makefile.inc Normalize deployment tools usage and definitions by putting into one place 2020-04-07 02:46:22 +00:00
modf.3
modf.c
mrand48.c
nftw-compat11.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
nftw.c
nice.3
nice.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
nlist.3 nlist: retire long-obsolete aout support 2020-03-30 20:15:19 +00:00
nlist.c libc: unconditionalize _NLIST_DO_ELF 2020-03-30 21:25:00 +00:00
nrand48.c
opendir.c libc: remove forward compat added in r356830 for F_ISUNIONSTACK 2020-01-29 01:52:27 +00:00
pause.3
pause.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
pmadvise.c
popen.3
popen.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
posix_spawn_file_actions_addopen.3
posix_spawn_file_actions_init.3
posix_spawn.3 Fix some grammar: "signals <...> are set" 2018-02-27 04:41:14 +00:00
posix_spawn.c posix_spawn: mark error as volatile 2020-01-21 22:02:53 +00:00
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
psignal.3
psignal.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
pututxline.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
pw_scan.c Make pw_scan(3) more compatible with getpwent(3) et. al. when processing 2018-07-26 18:34:38 +00:00
pw_scan.h Make pw_scan(3) more compatible with getpwent(3) et. al. when processing 2018-07-26 18:34:38 +00:00
raise.3
raise.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
rand48.3
rand48.h
readdir-compat11.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
readdir.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
readpassphrase.3 Note that readpassphrase() came into FreeBSD's libc at 4.6. 2019-02-13 04:52:01 +00:00
readpassphrase.c
recvmmsg.c
rewinddir.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
rfork_thread.3
scandir_b.c
scandir-compat11.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
scandir.3
scandir.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
seed48.c
seekdir.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
sem_destroy.3
sem_getvalue.3
sem_init.3
sem_new.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
sem_open.3
sem_post.3
sem_timedwait.3
sem_wait.3
sem.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
semctl.c Don't declare union semun in userspace unless _WANT_SEMUN is defined. 2018-03-02 22:32:53 +00:00
sendmmsg.c
setdomainname.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
sethostname.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
setjmp.3
setjmperr.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
setmode.3 Document that setmode(3) is not thread safe. 2019-07-18 21:33:55 +00:00
setmode.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
setproctitle.3 Add setproctitle_fast(3) for frequent callers. 2018-07-04 13:31:16 +00:00
setproctitle.c Attempt to use AT_PS_STRINGS to get the ps_strings pointer. 2020-04-15 20:28:20 +00:00
setprogname.c
siginterrupt.3
siginterrupt.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
siglist.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
signal.3 Correct history for Unix 2nd Edition through 6th Edition for the 2017-12-01 22:48:20 +00:00
signal.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
sigsetops.3 Add sigsetop extensions commonly found in musl libc and glibc 2019-12-12 01:41:55 +00:00
sigsetops.c Add sigsetop extensions commonly found in musl libc and glibc 2019-12-12 01:41:55 +00:00
sleep.3
sleep.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
srand48.c
statvfs.3
statvfs.c
stringlist.3
stringlist.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
strtofflags.3
strtofflags.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
Symbol.map nlist: retire long-obsolete aout support 2020-03-30 20:15:19 +00:00
sysconf.3
sysconf.c Make sysconf(_SC_PAGESIZE) return the value from getpagesize(3). 2018-11-19 18:23:17 +00:00
sysctl.3 Introduce nexthop objects and new routing KPI. 2020-04-12 14:30:00 +00:00
sysctl.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
sysctlbyname.c sysctlbyname(2): Remove temporary compatibility layer 2019-12-29 17:19:57 +00:00
sysctlnametomib.c sysctl: use names instead of magic numbers. 2019-09-18 16:13:10 +00:00
syslog.3 syslog(3): stdarg.h is needed only for vsyslog() 2018-12-06 18:03:18 +00:00
syslog.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
tcgetpgrp.3
tcgetsid.3
tcsendbreak.3
tcsetattr.3
tcsetpgrp.3
tcsetsid.3
telldir.c Fix two WARNS=6 warnings in opendir.c and telldir.c 2019-06-23 10:47:07 +00:00
telldir.h Optimize telldir(3) 2017-12-06 22:06:48 +00:00
termios.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
time.3
time.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
times.3
times.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
timespec_get.3 Update man page to include FreeBSD-specific details. 2018-08-10 15:16:41 +00:00
timespec_get.c Remove assert.h and commented out _DIAGASSERT. 2018-08-10 15:16:36 +00:00
timezone.3
timezone.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
tls.c Remove sparc64 specific parts of libc. 2020-02-26 18:55:09 +00:00
trivial-getcontextx.c
ttyname.3
ttyname.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
ttyslot.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
tzset.3
ualarm.3
ualarm.c Correct a misleading indent. 2020-01-21 16:31:08 +00:00
ucontext.3 Add STANDARDS and HISTORY to getcontext(3), makecontext(3), and ucontext(3). 2020-03-23 17:38:20 +00:00
ulimit.3
ulimit.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
uname.3
uname.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
unvis-compat.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
usleep.3
usleep.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
utime.3
utime.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
utxdb.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
utxdb.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
valloc.3
valloc.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
wait3.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
wait.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
waitid.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
waitpid.c Clean up the vcs ID strings in libc's gen/ directory. 2018-07-03 17:31:45 +00:00
wordexp.3
wordexp.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00