/
nerfur
/
openbsd-src
ОбзорДокументацияВойти
/
nerfur
/
openbsd-src
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
openbsd-src/
.../libc/hidden/
..
arpa

better placement for dnssocket/dnsconnect

11 лет назад
machine

Move mutex, condvar, and thread-specific data routes, pthread_once, and pthread_exit from libpthread to libc, along with low-level bits to support them. Major bump to both libc and libpthread.

9 лет назад
net

Switch if_nameindex(3) to use the new NET_RT_IFNAMES sysctl to get the list of interface names. At the same time switch if_nametoindex(3) and if_indextoname(3) to use if_nameindex(3) instead of getifaddrs(3). if_nameindex(3) exposes much less then getifaddrs(3) and is allowed by pledge(2). With and OK deraadt@

11 лет назад
netinet

Wrap <ifaddrs.h>, <netinet/in.h>, and <netinet/if_ether.h> so internal calls go direct and all the symbols are weak

11 лет назад
rpc

Wrap <rpc/*.h> so that calls go direct and the symbols are all weak. Hide __xprt_register() and _authenticate(); truncate <rpc/svc_auth.h>

11 лет назад
rpcsvc

Stop publicly declaring _yp_dobind() and struct dom_binding, closing out a rant Theo wrote 24 years ago. Mark __ypexclude_{add,is,free}() as hidden

10 лет назад
sys

Add elf_aux_info(3)

2 года назад
asr.h

Allow the caller of asr functions to create and use a specific context. Diff from eric@ and florian@, commiting on their behalf since they are absent and we want to ride the minor shlib bump.

7 лет назад
assert.h

Wrap <assert.h> so that __assert2() goes direct

11 лет назад
blf.h

Wrap blowfish, sha*, md5, and rmd160 so that internal calls go direct

11 лет назад
bsd_auth.h

libc's authentication privsep layer performed insufficient username validation. Repair work mostly by markus and millert, first of all solving the primary problem, then adding some additional validation points. And then futher validation in login and su. This will be 6.5/021_libcauth.patch.sig and 6.6/010_libcauth.patch.sig Reported by Qualys

7 лет назад
ctype.h

New POSIX xlocale implementation written from scratch. Complete in the sense that all POSIX *locale(3) and *_l(3) functions are included, but in OpenBSD, we of course only really care about LC_CTYPE and we only support ASCII and UTF-8.

9 лет назад
db.h

Remove dead support for changing BDB hash algorithm and cache of alternatives

10 лет назад
dirent.h

Add scandirat(3); from freebsd

2 года назад
dlfcn.h

Correct error returns, do not print eror message to stdout (there is a dlerror() function for that) and mark dladdr() as PROTO_NORMAL to be able to call it from a malloc.c MALLOC_STATS leak reporting project I'm working on. ok kettenis@

6 лет назад
err.h

Pull in namespace.h when building all .c files using gcc's -include option, so that we can provide asm labels for the memcpy/memset/__stack_smash_handler calls that it generates ab initio. Eliminate direct #includes of it. Make sure it's a dependency of all objects (unnecessary for asm, but close enough).

11 лет назад
errno.h

Use a Thread Information Block in both single and multi-threaded programs. This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable!

10 лет назад
fcntl.h

Use a Thread Information Block in both single and multi-threaded programs. This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable!

10 лет назад
float.h

Make sure attributes are applied to function declarations before they're used or defined, as clang isn't as forgiving as gcc. Also, declare __flt_rounds() so that libc can build it despire clang providing its own <float.h>

10 лет назад
fstab.h

Wrap <fstab.h> so that calls go direct and the symbols are all weak (Do you sense a theme?)

11 лет назад
fts.h

Wrap <fts.h> and <ftw.h> so that internal calls to fts_*() go direct and fts_*(), ftw(), and nftw() are weak symbols

11 лет назад
ftw.h

Wrap <fts.h> and <ftw.h> so that internal calls to fts_*() go direct and fts_*(), ftw(), and nftw() are weak symbols

11 лет назад
getopt.h

Don't wrap initialized variables: binutils appears to be mishandling them on arm and m88k

11 лет назад
grp.h

Add uid_from_user() and gid_from_group(), derived from pax's cache.c. It replaces the existing pwcache.c functions user_from_uid(3) and group_from_gid(3) with the pax equivalents. Adapted from NetBSD (mycroft) changes from our own pax's cache.c. OK guenther@

8 лет назад
icdb.h

Wrap <icdb.h> so that calls go direct and the symbols are all weak

11 лет назад
ieeefp.h

Wrap fpgetround() so internal calls to it (seen on arm, powerpc, and sh) go direct instead of through the PLT.

10 лет назад
ifaddrs.h

Wrap <ifaddrs.h>, <netinet/in.h>, and <netinet/if_ether.h> so internal calls go direct and all the symbols are weak

11 лет назад
inttypes.h

Wrap <inttypes.h> and finish wrapping of <wchar.h> so that calls go direct and the symbols not in the C standard are weak

11 лет назад
langinfo.h

New POSIX xlocale implementation written from scratch. Complete in the sense that all POSIX *locale(3) and *_l(3) functions are included, but in OpenBSD, we of course only really care about LC_CTYPE and we only support ASCII and UTF-8.

9 лет назад
link_elf.h

Complete the ld.so boot cleanup: move most libc initialization from _csu_finish() to _libc_preinit(), which is an .init_array function in shared libc (and mark it INITFIRST) or a .preinit_array function in static libc, grabbing the _dl_cb callback there from ld.so. Then in _csu_finish(), invoke the dl_clean_boot() callback to free ld.so's startup bits before main() gets control.

7 лет назад
locale.h

New POSIX xlocale implementation written from scratch. Complete in the sense that all POSIX *locale(3) and *_l(3) functions are included, but in OpenBSD, we of course only really care about LC_CTYPE and we only support ASCII and UTF-8.

9 лет назад
login_cap.h

secure_path(3) hasn't been called since we recognized the TOCTOU issues a few years back, so we can remove it. Since nothing in the ecosystem calls it, I am not cranking the libc major as required, surely another crank will come along soon. noticed by Dante Catalfamo ok millert

5 лет назад
math.h

Wrap the remaining math functions in libc: __fpclassify*(), __flt_rounds(), and ldexp().

11 лет назад
md5.h

namespace.h is pulled in via -include, so don't do it here

11 лет назад
ndbm.h

Wrap <dbm.h> and <ndbm.h> so that calls go direct and the symbols are all weak

11 лет назад
netdb.h

Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak

11 лет назад
netgroup.h

Wrap <netgroup.h> so internal calls go direct and the symbols are all weak

11 лет назад
nl_types.h

Pull in namespace.h when building all .c files using gcc's -include option, so that we can provide asm labels for the memcpy/memset/__stack_smash_handler calls that it generates ab initio. Eliminate direct #includes of it. Make sure it's a dependency of all objects (unnecessary for asm, but close enough).

11 лет назад
poll.h

Use a Thread Information Block in both single and multi-threaded programs. This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable!

10 лет назад
pthread.h

Mark pthread_equal() as unused inside libc

8 лет назад
pwd.h

Add uid_from_user() and gid_from_group(), derived from pax's cache.c. It replaces the existing pwcache.c functions user_from_uid(3) and group_from_gid(3) with the pax equivalents. Adapted from NetBSD (mycroft) changes from our own pax's cache.c. OK guenther@

8 лет назад
readpassphrase.h

Wrap <readpassphrase.h> so internal calls go direct and readpassphrase is weak

11 лет назад
regex.h

Wrap <langinfo.h> and <regexp.h> so internal calls go direct and the symbols are weak

11 лет назад
resolv.h

Wrap <resolv.h> so that internal calls go direct

11 лет назад
rmd160.h

Wrap blowfish, sha*, md5, and rmd160 so that internal calls go direct

11 лет назад
sched.h

Wrap <sched.h> and <sys/futex.h> so that internal calls go direct

9 лет назад
search.h

lsearch(3): reimplement using lfind(3)

5 лет назад
sha1.h

Wrap blowfish, sha*, md5, and rmd160 so that internal calls go direct

11 лет назад
sha2.h

Add functions for SHA512/256. The standard says you're supposed to start with different magic numbers, so we need to add some functions instead of just asking the user to truncate as desired. Sigh. SHA512 is quite a bit faster than SHA256 on 64 bit CPUs, but 256 bit hashes are usually quite sufficient. Best of both. ok deraadt tom

10 лет назад
signal.h

Move sigwait(3) from libpthread to libc

8 лет назад
siphash.h

Wrap blowfish, sha*, md5, and rmd160 so that internal calls go direct

11 лет назад
softfloat.h

Make softfloat's internal float_raise also available under a hidden, internal name, so that local references to it do not need to go through the plt. (this routine is used by libm and thus can't be made internal to libc)

11 лет назад
spawn.h

Wrap <spawn.h> to make all the symbols there weak

11 лет назад
stdio.h

Use fseeko() instead of fseek() inside libc, as the latter just calls the former with a loss of range. Mark fseek symbol as deprecated to block accidental use in the future.

4 года назад
stdio_ext.h

Add <stdio_ext.h> with the seven APIs needed to have gnulib operate without poking directly into the FILE structure.

2 года назад
stdlib.h

Add mkdtemps(3), like mkdtemp(3) but with a suffix. OK deraadt@ tb@

2 года назад
string.h

Instead of trying to handle ffs() with the normal rename-mark-hidden-and-alias dance, mark it protected. This works better for both gcc and clang: gcc blocks overriding of internal calls, while clang permits inlining again.

9 лет назад
syslog.h

Declare sendsyslog to match its man page

3 года назад
termios.h

Use PROTO_DEPRECATED() make tcdrain() weak in libc, to guarantee libpthread can override it

11 лет назад
tib.h

spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;

4 года назад
time.h

Add support for timeconting in userland.

6 лет назад
ttyent.h

Wrap <ttyent.h> so that calls go direct and the symbols are all weak.

11 лет назад
uchar.h

Provide C11 <uchar.h>. OK millert@. Tested by naddy@ in a bulk and by matthieu@ in the new foot(1) port. I originally wrote the code in 2022 at the prodding of espie@. Using one improvement to a manual page from jmc@.

3 года назад
unistd.h

Add pathconfat(2): pathconf(2) but with at-fd and flags arguments, the latter supporting the ability to get timestamp resolution of symlinks.

2 года назад
utime.h

Wrap <utime.h> to make utime() a weak symbol

11 лет назад
uuid.h

Wrap <uuid.h> so that calls go direct and the symbols are all weak

11 лет назад
vis.h

Wrap <vis.h> so that calls go direct and the symbols are all weak

11 лет назад
wchar.h

Add wcsnlen(3), wcslen(3) with a max len argument

2 года назад
wctype.h

Simplify wctype() and wctype_l(): we have one set of classification types used by all (== both) locales; put their implementation in one file and make the mapping static there. The rl_wctype member of _RuneLocale and its initialization go away at the same time.

4 года назад