OpenBSD CVS

CVS log for src/lib/libc/Symbols.list


[BACK] Up to [local] / src / lib / libc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.87 / (download) - annotate - [select for diffs], Sat May 18 05:20:22 2024 UTC (3 weeks, 2 days ago) by guenther
Branch: MAIN
CVS Tags: HEAD
Changes since 1.86: +2 -0 lines
Diff to previous 1.86 (colored)

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

ok deraadt@ millert@

Revision 1.86 / (download) - annotate - [select for diffs], Mon Apr 15 15:47:58 2024 UTC (8 weeks ago) by florian
Branch: MAIN
Changes since 1.85: +1 -0 lines
Diff to previous 1.85 (colored)

Add scandirat(3); from freebsd

To be used in httpd(8) shortly to prevent toctu issues.

This makes __fdopendir internally accessible to avoid unnecessary
syscalls in scandirat(3). Suggested & diff by guenther

suggested by & OK millert
tweak & OK guenther
OK tb, jca

This rides the libc crank.

Revision 1.85 / (download) - annotate - [select for diffs], Fri Mar 1 21:30:40 2024 UTC (3 months, 1 week ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5
Changes since 1.84: +1 -0 lines
Diff to previous 1.84 (colored)

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

Revision 1.84 / (download) - annotate - [select for diffs], Tue Dec 12 15:30:55 2023 UTC (5 months, 4 weeks ago) by deraadt
Branch: MAIN
Changes since 1.83: +0 -1 lines
Diff to previous 1.83 (colored)

remove support for syscall(2) -- the "indirection system call" because
it is a dangerous alternative entry point for all system calls, and thus
incompatible with the precision system call entry point scheme we are
heading towards.  This has been a 3-year mission:
First perl needed a code-generated wrapper to fake syscall(2) as a giant
switch table, then all the ports were cleaned with relatively minor fixes,
except for "go".  "go" required two fixes -- 1) a framework issue with
old library versions, and 2) like perl, a fake syscall(2) wrapper to
handle ioctl(2) and sysctl(2) because "syscall(SYS_ioctl" occurs all over
the place in the "go" ecosystem because the "go developers" are plan9-loving
unix-hating folk who tried to build an ecosystem without allowing "ioctl".
ok kettenis, jsing, afresh1, sthen

Revision 1.83 / (download) - annotate - [select for diffs], Sun Aug 20 15:17:53 2023 UTC (9 months, 3 weeks ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.82: +2 -0 lines
Diff to previous 1.82 (colored)

Add syscall stub for kqueue1(2)

This rides previous libc minor bump.

Feedback and OK guenther@

Revision 1.82 / (download) - annotate - [select for diffs], Sun Aug 20 15:02:51 2023 UTC (9 months, 3 weeks ago) by schwarze
Branch: MAIN
Changes since 1.81: +4 -0 lines
Diff to previous 1.81 (colored)

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@.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Feb 11 23:07:28 2023 UTC (15 months, 4 weeks ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.80: +0 -2 lines
Diff to previous 1.80 (colored)

__syscall() is no longer neccessary since the system calls which needed
it are now unpadded
ok kettenis guenther

Revision 1.80 / (download) - annotate - [select for diffs], Sat Jan 7 05:24:58 2023 UTC (17 months ago) by guenther
Branch: MAIN
Changes since 1.79: +4 -0 lines
Diff to previous 1.79 (colored)

Add {get,set}thrname(2) for putting thread names in the kernel and
exposed in a new field returned by sysctl(KERN_PROC).  Update
pthread_{get,set}_name_np(3) to use the syscalls.  Show them, when
set, in ps -H and top -H output.

libc and libpthread minor bumps

ok mpi@, mvs@, deraadt@

Revision 1.79 / (download) - annotate - [select for diffs], Tue Dec 27 17:10:05 2022 UTC (17 months, 2 weeks ago) by jmc
Branch: MAIN
Changes since 1.78: +1 -1 lines
Diff to previous 1.78 (colored)

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

Revision 1.78 / (download) - annotate - [select for diffs], Wed Oct 26 23:16:24 2022 UTC (19 months, 2 weeks ago) by kettenis
Branch: MAIN
Changes since 1.77: +2 -0 lines
Diff to previous 1.77 (colored)

Add waitid(2) syscall stub.

Minor bump to both libc and libpthread: make sure you install a new kernel!

ok millert@, deraadt@

Revision 1.77 / (download) - annotate - [select for diffs], Fri Oct 7 15:21:04 2022 UTC (20 months ago) by deraadt
Branch: MAIN
Changes since 1.76: +2 -0 lines
Diff to previous 1.76 (colored)

Add mimmutable(2) libc stub, add & adjust manual pages, and crank the minor.
ok kettenis

Revision 1.76 / (download) - annotate - [select for diffs], Fri Sep 9 13:52:59 2022 UTC (21 months ago) by mbuhl
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.75: +4 -0 lines
Diff to previous 1.75 (colored)

Add libc wrappers for the new sendmmsg and recvmmsg system calls.
Feedback tb@, miod@, jca@
OK jca@

Revision 1.75 / (download) - annotate - [select for diffs], Tue Aug 2 16:45:00 2022 UTC (22 months, 1 week ago) by deraadt
Branch: MAIN
Changes since 1.74: +1 -1 lines
Diff to previous 1.74 (colored)

delete incorrect comment: yp_unbind is not called by passwd

Revision 1.74 / (download) - annotate - [select for diffs], Thu Jun 3 13:19:45 2021 UTC (3 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.73: +0 -1 lines
Diff to previous 1.73 (colored)

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

Revision 1.73 / (download) - annotate - [select for diffs], Thu Oct 24 05:57:41 2019 UTC (4 years, 7 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.72: +2 -0 lines
Diff to previous 1.72 (colored)

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.

Revision 1.72 / (download) - annotate - [select for diffs], Tue May 28 14:49:38 2019 UTC (5 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.71: +1 -0 lines
Diff to previous 1.71 (colored)

_thread_sys___realpath must be exported like _thread_sys___getcwd obviously.
None will all it, but this is the mechanism by which ramdisk build
determines which .o files to build for it's libraries.

Revision 1.71 / (download) - annotate - [select for diffs], Fri May 10 15:03:24 2019 UTC (5 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.70: +2 -0 lines
Diff to previous 1.70 (colored)

Inroduce malloc_conceal() and calloc_conceal(). Similar to their
counterparts but return memory in pages marked MAP_CONCEAL and on
free() freezero() is actually called.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Jan 12 00:16:03 2019 UTC (5 years, 5 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.69: +1 -0 lines
Diff to previous 1.69 (colored)

Move sigwait(3) from libpthread to libc

POSIX wants it in libc, that's where the function can be found on other
systems.  Reported by naddy@, input from naddy@ and guenther@.
"looks ok" guenther@, ok deraadt@

Note: riding the libc/libpthread major cranks earlier today.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Jan 11 18:46:30 2019 UTC (5 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.68: +0 -2 lines
Diff to previous 1.68 (colored)

mincore() is a relic from the past, exposing physical machine information
about shared resources which no program should see.  only a few pieces of
software use it, generally poorly thought out.  they are being fixed, so
mincore() can be deleted.
ok guenther tedu jca sthen, others

Revision 1.68 / (download) - annotate - [select for diffs], Wed Nov 21 06:57:04 2018 UTC (5 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.67: +0 -1 lines
Diff to previous 1.67 (colored)

Introducing malloc_usable_size() was a mistake. While some other
libs have it, it is a function that is considered harmful, so:

Delete malloc_usable_size(). It is a function that blurs the line
between malloc managed memory and application managed memory and
exposes some of the internal workings of malloc.  If an application
relies on that, it is likely to break using another implementation
of malloc.  If you want usable size x, just allocate x bytes. ok
deraadt@ and other devs

Revision 1.67 / (download) - annotate - [select for diffs], Sun Nov 18 16:15:18 2018 UTC (5 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.66: +1 -0 lines
Diff to previous 1.66 (colored)

Implement malloc_usable_size(); ok millert@ deraadt@ and jmc@ for the man page

Revision 1.66 / (download) - annotate - [select for diffs], Mon Nov 5 08:23:40 2018 UTC (5 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.65: +1 -0 lines
Diff to previous 1.65 (colored)

Implement C11's aligned_alloc(3). ok guenther@

Revision 1.65 / (download) - annotate - [select for diffs], Tue Oct 30 16:28:42 2018 UTC (5 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.64: +1 -0 lines
Diff to previous 1.64 (colored)

Add C11's timespec_get(3); minor bump for libc.

Tweaked diff from brad@
manpage tweaks florian@ and jmc@
ok deraadt@ millert@

Revision 1.64 / (download) - annotate - [select for diffs], Thu Sep 13 12:31:15 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.63: +2 -0 lines
Diff to previous 1.63 (colored)

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@

Revision 1.63 / (download) - annotate - [select for diffs], Fri Jul 13 09:25:22 2018 UTC (5 years, 11 months ago) by beck
Branch: MAIN
Changes since 1.62: +2 -0 lines
Diff to previous 1.62 (colored)

Unveiling unveil(2).
This brings unveil into the tree, disabled by default - Currently
this will return EPERM on all attempts to use it until we are
fully certain it is ready for people to start using, but this
now allows for others to do more tweaking and experimentation.

Still needs to send the unveil's across forks and execs before
fully enabling.

Many thanks to robert@ and deraadt@ for extensive testing.
ok deraadt@

Revision 1.62 / (download) - annotate - [select for diffs], Tue Dec 5 13:45:31 2017 UTC (6 years, 6 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.61: +2 -0 lines
Diff to previous 1.61 (colored)

Implement __cxa_thread_atexit to support C++11 thread_local scope.  The
interface is also made available as __cxa_thread_atexit_impl to satisfy the
needs of GNU libstdc++.

ok guenther@, millert@

Revision 1.61 / (download) - annotate - [select for diffs], Sat Nov 4 22:53:57 2017 UTC (6 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.60: +0 -2 lines
Diff to previous 1.60 (colored)

Revert recent changes to unbreak ports/net/samba

While it is not clear (to me) why that ports ends up with corrupted
shared libs, reverting those changes fixes the issue and should allow us
to close p2k17 more smoothly.

Discussed with a bunch, ok ajacoutot@ guenther@

Revision 1.60 / (download) - annotate - [select for diffs], Tue Oct 31 16:14:02 2017 UTC (6 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.59: +11 -0 lines
Diff to previous 1.59 (colored)

Argh: put back some linker-supplied symbols to avoid triggering a bug
in binutils that results in uninitialized .dynsym entries in shared objects
in the samba port.

problem reported by naddy@
ok jca@ kettenis@

Revision 1.59 / (download) - annotate - [select for diffs], Sat Oct 28 21:26:17 2017 UTC (6 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.58: +1 -5 lines
Diff to previous 1.58 (colored)

Eliminate some more linker generated symbols that aren't needed.

ok kettenis@

Revision 1.58 / (download) - annotate - [select for diffs], Sat Oct 28 21:23:14 2017 UTC (6 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.57: +2 -0 lines
Diff to previous 1.57 (colored)

Change pthread_cleanup_{push,pop} to macros that store the cleanup info
on the stack instead of mallocing the list and move the APIs from libpthread
to libc so that they can be used inside libc.

Note: the standard was explicitly written to permit/support this
"macro with unmatched brace" style and it's what basically everyone
else already does.  We xor the info with random cookies with a
random magic to detect/trip-up overwrites.

Major bump to both libc and libpthread due to the API move.

ok mpi@

Revision 1.57 / (download) - annotate - [select for diffs], Tue Sep 5 06:35:19 2017 UTC (6 years, 9 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.56: +0 -1 lines
Diff to previous 1.56 (colored)

Remove unused 32bit version of elf_hash().

Riding previous libc bump.

ok kettenis@

Revision 1.56 / (download) - annotate - [select for diffs], Tue Sep 5 03:16:13 2017 UTC (6 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.55: +47 -0 lines
Diff to previous 1.55 (colored)

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.

With important help from kettenis@, guenther@, and jca@.
Repeated testing in ports bulk builds by naddy@.
Additional testing by jca@, sebastia@, dcoppa@, and others.
OK kettenis@ dcoppa@, and guenther@ on an earlier version.
Riding guenther@'s libc/librthread major bump.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Sep 5 02:40:54 2017 UTC (6 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.54: +30 -0 lines
Diff to previous 1.54 (colored)

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.

Requested by libressl team.  Ports testing by naddy@
ok kettenis@

Revision 1.54 / (download) - annotate - [select for diffs], Mon Jun 19 03:06:26 2017 UTC (6 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.53: +17 -0 lines
Diff to previous 1.53 (colored)

port the RBT code to userland by making it part of libc.

src/lib/libc/gen/tree.c is a copy of src/sys/kern/subr_tree.c, but with
annotations for symbol visibility. changes to one should be reflected
in the other.

the malloc debug code that uses RB code is ported to RBT.

because libc provides the RBT code, procmap doesn't have to reach into
the kernel and build subr_tree.c itself now.

mild enthusiasm from many
ok guenther@

Revision 1.53 / (download) - annotate - [select for diffs], Sun Apr 30 09:01:14 2017 UTC (7 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.52: +2 -0 lines
Diff to previous 1.52 (colored)

Add futex(2) shim, bump minor.

Inputs from guenther@, ok kettenis@, visa@

Revision 1.52 / (download) - annotate - [select for diffs], Mon Apr 10 05:45:02 2017 UTC (7 years, 2 months ago) by otto
Branch: MAIN
Changes since 1.51: +1 -0 lines
Diff to previous 1.51 (colored)

Introducing freezero(3) a version of free that guarantees the process
no longer has access to the content of a memmory object. It does
this by either clearing (if the object memory remains cached) or
by calling munmap(2). ok millert@, deraadt@, guenther@

Revision 1.51 / (download) - annotate - [select for diffs], Mon Mar 6 18:44:21 2017 UTC (7 years, 3 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.50: +1 -0 lines
Diff to previous 1.50 (colored)

Introducing recallocarray(3), a blend of calloc(3) and reallocarray(3)
with the added feature that released memory is cleared. Much input from various
developers. ok deraadt@ tom@

Revision 1.50 / (download) - annotate - [select for diffs], Sat Sep 3 16:25:03 2016 UTC (7 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.49: +9 -0 lines
Diff to previous 1.49 (colored)

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

Revision 1.49 / (download) - annotate - [select for diffs], Thu Sep 1 10:41:02 2016 UTC (7 years, 9 months ago) by otto
Branch: MAIN
Changes since 1.48: +1 -0 lines
Diff to previous 1.48 (colored)

Less lock contention by using more pools for mult-threaded programs.
tested by many (thanks!) ok tedu, guenther@

Revision 1.48 / (download) - annotate - [select for diffs], Thu Aug 11 03:05:53 2016 UTC (7 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.47: +0 -6 lines
Diff to previous 1.47 (colored)

Between relro and previous RWX work, the __{got,plt}_{start,end} symbols
are no longer needed by ld.so.  Move them to the m88k-specific list, as
it hasn't made the jump.

ok deraadt@

Revision 1.47 / (download) - annotate - [select for diffs], Mon May 23 00:18:56 2016 UTC (8 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.46: +0 -1 lines
Diff to previous 1.46 (colored)

Stop supporting longjmperror(); it's not used, not portable, and the checks
longjmp performs can't really be relied upon, even after we got rid of the
false positives...

ok millert@ deraadt@

Revision 1.46 / (download) - annotate - [select for diffs], Mon May 23 00:12:58 2016 UTC (8 years ago) by guenther
Branch: MAIN
Changes since 1.45: +0 -4 lines
Diff to previous 1.45 (colored)

Remove iruserok(_sa)? and __ivaliduser(sa)?

ok millert@ deraadt@

Revision 1.45 / (download) - annotate - [select for diffs], Mon May 23 00:08:23 2016 UTC (8 years ago) by guenther
Branch: MAIN
Changes since 1.44: +0 -2 lines
Diff to previous 1.44 (colored)

Eliminate __check_rhosts_file and __rcmd_errstr: they were only used by
rlogind and rshd (remember them?)

ok deraadt@

Revision 1.44 / (download) - annotate - [select for diffs], Mon May 23 00:05:15 2016 UTC (8 years ago) by guenther
Branch: MAIN
Changes since 1.43: +0 -13 lines
Diff to previous 1.43 (colored)

Stop exposing <sys/localedef.h> and various symbols internal to the libc
locale implementation: _{Current,Default}*Locale, __[mn]locale_changed,
__mb_len_max_runtime

ok millert@ schwarze@ deraadt@

Revision 1.43 / (download) - annotate - [select for diffs], Fri May 20 03:41:44 2016 UTC (8 years ago) by guenther
Branch: MAIN
Changes since 1.42: +1 -5 lines
Diff to previous 1.42 (colored)

Delete the _SDA_BASE and _SDA2_BASE symbols: they're unnecessary in
shared libraries...and I misspelled them anyway

Revision 1.42 / (download) - annotate - [select for diffs], Sat May 7 23:57:39 2016 UTC (8 years, 1 month ago) by kettenis
Branch: MAIN
Changes since 1.41: +0 -2 lines
Diff to previous 1.41 (colored)

Unexport sigreturn.  Nobody should use it anymore, and it will be removed
from libc completely in the near future.  Riding the libc bump that appeared
a few moments ago.

ok deraadt@

Revision 1.41 / (download) - annotate - [select for diffs], Sat May 7 21:58:06 2016 UTC (8 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.40: +0 -7 lines
Diff to previous 1.40 (colored)

remove ancient dbm functions (ndbm remains). nothing uses them in forever.

Revision 1.40 / (download) - annotate - [select for diffs], Sat May 7 19:30:52 2016 UTC (8 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.39: +2 -0 lines
Diff to previous 1.39 (colored)

Declare moncontrol(3) APIs in <sys/gmon.h>
Export _gmonparam again.
Make gcrt0.o use an reserved name for _monstartup()

ok millert@

Revision 1.39 / (download) - annotate - [select for diffs], Sat May 7 19:05:21 2016 UTC (8 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.38: +3 -19 lines
Diff to previous 1.38 (colored)

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!

Make libpthread dlopen'able by moving the cancelation wrappers into libc
and doing locking and fork/errno handling via callbacks that libpthread
registers when it first initializes.  'errno' *must* be declared via
<errno.h> now!

Clean up libpthread's symbol exports like libc.

On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec.

Testing by various, particularly sthen@ and patrick@
ok kettenis@

Revision 1.38 / (download) - annotate - [select for diffs], Wed Mar 30 07:55:36 2016 UTC (8 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.37: +1 -1 lines
Diff to previous 1.37 (colored)

Turd polish: use HIDDEN= instead of PSEUDO= for ptrace syscall stub, to
make its underlying symbol name look like others.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Mar 30 07:52:47 2016 UTC (8 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Eliminate userspace caching by getlogin_r/setlogin; make the getlogin
syscall behave exactly like userspace getlogin_r() and rename it to
match.  Eliminate the reduced-to-no-op wrappers of the syscalls.
Eliminate the unnecessary per-thread static buffering by getlogin().

ok kettenis@ deraadt@

Revision 1.36 / (download) - annotate - [select for diffs], Sun Mar 20 02:32:39 2016 UTC (8 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.35: +3 -0 lines
Diff to previous 1.35 (colored)

Rearrange C runtime bits: now that ld.so exports environ and __progname,
move their definitions and initialization in static links to libc.a
Make crt0 always invoke a new func _csu_finish() in libc to process the auxv
and to either register the ld.so cleanup function (in dynamic links) or
initialize environ and __progname and do MC_DISABLE_KBIND (in static links).
In libc, get pagesize from auxv; cache that between getpagesize() and
sysconf(_SC_PAGESIZE)

ok mpi@ "good time" deraadt@

Revision 1.35 / (download) - annotate - [select for diffs], Wed Nov 18 16:50:08 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.34: +13 -0 lines
Diff to previous 1.34 (colored)

update for new symbols and code

Revision 1.34 / (download) - annotate - [select for diffs], Sun Nov 15 22:07:20 2015 UTC (8 years, 6 months ago) by guenther
Branch: MAIN
Changes since 1.33: +0 -2 lines
Diff to previous 1.33 (colored)

_towctrans_ext and _wctrans_init are now hidden; so drop them from the list

Revision 1.33 / (download) - annotate - [select for diffs], Tue Nov 10 04:30:59 2015 UTC (8 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.32: +2 -0 lines
Diff to previous 1.32 (colored)

Split the intra-thread functionality from kill(2) into its own syscall
thrkill(2), rolling the kill(2) syscall number with the ABI change to
avoid breaking binaries during during the transition.  thrkill(2) includes
a 'tcb' argument that eliminates the need for locking in pthread_kill()
and simplifies pthread_cancel().  Switch __stack_smash_handler() to use
thrkill(2) and explicitly unblock SIGABRT.

Minor bump to both libc and libpthread: make sure you install a new kernel!

ok semarie@

Revision 1.32 / (download) - annotate - [select for diffs], Tue Nov 10 04:14:03 2015 UTC (8 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

libc.so can't be unloaded, so move the hidden atexit() and pthread_atfork()
stubs for the executable from crtbegin.o into libc, which lets them be
excluded from static links that don't use them.
For this, drop the normal crt{begin,end}S.o from libc.so: the .init and .fini
sections for libc aren't called at the right times anyway, so it's good that
they're unused.  libc.so just needs __guard_local and the .note.openbsd.ident
section, so add them to stack_protector.c for now (this will be improved)

"good time" deraadt@

Revision 1.31 / (download) - annotate - [select for diffs], Sun Oct 25 18:01:24 2015 UTC (8 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.30: +0 -2 lines
Diff to previous 1.30 (colored)

Hide __atexit and __atexit_register_cleanup()
Wrap __cxa_{atexit,finalize}() so the call from exit() goes direct
Switch regress/lib/libc/atexit/ to be built with -static so that it can
  still access __atexit*

ok millert@ jca@

Revision 1.30 / (download) - annotate - [select for diffs], Fri Oct 23 04:39:24 2015 UTC (8 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.29: +1 -0 lines
Diff to previous 1.29 (colored)

Merge the sigaction() and sigprocmask() overloads/wrappers from libpthread
into libc, and move pthread_sigmask() as well (just a trivial wrapper).
This provides consistent handling of SIGTHR between single- and multi-threaded
programs and is a step in the merge of all the libpthread overloads, providing
some ASM and Makefile bits that the other wrappers will need.

ok deraadt@ millert@

Revision 1.29 / (download) - annotate - [select for diffs], Mon Oct 19 23:13:38 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +0 -2 lines
Diff to previous 1.28 (colored)

Remove old tame() stub

Revision 1.28 / (download) - annotate - [select for diffs], Fri Oct 9 01:24:57 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.27: +4 -2 lines
Diff to previous 1.27 (colored)

tame -> pledge conversion, in libc.  I should crank libc, but am cheating
hoping things go well.  The old symbol is faked via a stupid stub function,
until next major crank when it can be removed.  I am expecting guenther
to scream at me.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Oct 4 08:52:10 2015 UTC (8 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Clarify a point.  Adjust punctuation after discussion w/ jmc@

Revision 1.26 / (download) - annotate - [select for diffs], Mon Sep 28 14:55:48 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.25: +22 -20 lines
Diff to previous 1.25 (colored)

seperate random functions into their own block

Revision 1.25 / (download) - annotate - [select for diffs], Mon Sep 28 14:51:04 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.24: +0 -1 lines
Diff to previous 1.24 (colored)

xdr_ypresp_all_seq() does not need to be exported by libc, we can make it
local static.  (Does not need to be exported by librpcsvc either, since it
is pre-rpcgen and simply %-commented).  A few callers use this via
yp_all() -- that interface remains untouched.
ports trawl by sthen
guenther watched me gnash my teeth in croatia

Revision 1.24 / (download) - annotate - [select for diffs], Sun Sep 13 17:08:03 2015 UTC (8 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.23: +1 -1 lines
Diff to previous 1.23 (colored)

Rename __sysctl syscall to just sysctl, as the userland wrapper is no longer
necessary

ok deraadt@ jsing@

Revision 1.23 / (download) - annotate - [select for diffs], Sun Sep 13 15:36:56 2015 UTC (8 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.22: +0 -2 lines
Diff to previous 1.22 (colored)

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

ok deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Sun Sep 13 15:33:48 2015 UTC (8 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.21: +0 -1 lines
Diff to previous 1.21 (colored)

Wrap <pwd.h> so that calls go direct and the symbols are all weak.
Hide bcrypt_autorounds(), prefixing with an underbar for static builds.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Sep 13 11:38:08 2015 UTC (8 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.20: +0 -8 lines
Diff to previous 1.20 (colored)

Wrap <ctype.h> and <wctype.h> so that calls go direct and the symbols not
in standard C are all weak.
Hide several symbols internal to the implementation

Revision 1.20 / (download) - annotate - [select for diffs], Fri Sep 11 12:42:47 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +0 -2 lines
Diff to previous 1.19 (colored)

Put a private copy of the ypresp_allfn/ypresp_data interface into ypserv
(which uses it in a strange way..) thereby making it possible to static
the interface in libc.
ok guenther

Revision 1.19 / (download) - annotate - [select for diffs], Fri Sep 11 12:39:45 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +0 -1 lines
Diff to previous 1.18 (colored)

_rpc_dtablesize() is not used anywhere, tracking by sthen; ok guenther

Revision 1.18 / (download) - annotate - [select for diffs], Fri Sep 11 11:33:03 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +0 -1 lines
Diff to previous 1.17 (colored)

rpcdata should not be exported; ok guenther

Revision 1.17 / (download) - annotate - [select for diffs], Fri Sep 11 09:54:00 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +0 -2 lines
Diff to previous 1.16 (colored)

_getnetbyaddr and _getnetbyname appear to be historical accidents in
our tree. ok guenther miod

Revision 1.16 / (download) - annotate - [select for diffs], Fri Sep 11 08:48:33 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +0 -3 lines
Diff to previous 1.15 (colored)

hide three netdb related variables; ok guenther

Revision 1.15 / (download) - annotate - [select for diffs], Thu Sep 10 18:59:34 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +0 -7 lines
Diff to previous 1.14 (colored)

Hide netgroup internals inside libc.  The parts that netgroup_mkdb
wants to use, well.... copy them there.
ok guenther

Revision 1.14 / (download) - annotate - [select for diffs], Thu Sep 10 11:17:28 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (colored)

explain why __explicit_bzero_hook will remain; ok guenther

Revision 1.13 / (download) - annotate - [select for diffs], Thu Sep 10 11:11:04 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +0 -1 lines
Diff to previous 1.12 (colored)

hide __dtoa_locks as a static in the single use case; ok guenther

Revision 1.12 / (download) - annotate - [select for diffs], Thu Sep 10 08:55:03 2015 UTC (8 years, 9 months ago) by mpi
Branch: MAIN
Changes since 1.11: +0 -1 lines
Diff to previous 1.11 (colored)

Remove link_addr(3).  A function to encode the name of an interface in
a sockaddr_dl is a questionnable interface.  But now it makes it harder
to properly reference ifp becauses of this.

Set sdl_index to the index of the corresponding interface when
constructing a routing message.

Ridding previous libc crank.

ok guenther@, deraadt@, dlg@

Revision 1.11 / (download) - annotate - [select for diffs], Wed Sep 9 16:10:03 2015 UTC (8 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.10: +0 -2 lines
Diff to previous 1.10 (colored)

Hide __sigintr and __strsignal as internal implementation details.
Delete the already hidden _signal alias too.

ok deraadt@ millert@

Revision 1.10 / (download) - annotate - [select for diffs], Wed Sep 9 15:49:34 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +14 -45 lines
Diff to previous 1.9 (colored)

Hide all unnecessary asr / resolver related API with _ prefixes.
direction & ok guenther

Revision 1.9 / (download) - annotate - [select for diffs], Wed Sep 9 15:35:24 2015 UTC (8 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.8: +0 -8 lines
Diff to previous 1.8 (colored)

Stop exporting from libc the <mpool.h> and the mpool_* API

ports scan by sthen@

Revision 1.8 / (download) - annotate - [select for diffs], Wed Sep 9 15:33:18 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +0 -19 lines
Diff to previous 1.7 (colored)

Hide YP-specific xdr_* functions, and have the YP tools link -lrpcsvc
as needed.
ok miod guenther

Revision 1.7 / (download) - annotate - [select for diffs], Sun Sep 6 23:06:13 2015 UTC (8 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.6: +8 -0 lines
Diff to previous 1.6 (colored)

Document the rule for keeping static and shared archs in sync

Revision 1.6 / (download) - annotate - [select for diffs], Sun Sep 6 20:26:20 2015 UTC (8 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.5: +0 -3 lines
Diff to previous 1.5 (colored)

Fix aliasing of sys_errlist, sys_nerr, sys_siglist, and sys_signame
to eliminate duplicate copies of the tables and get direct access internally

ok kettenis@ deraadt@

Revision 1.5 / (download) - annotate - [select for diffs], Sat Sep 5 14:06:46 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +4 -13 lines
Diff to previous 1.4 (colored)

Hide some YP internals.  Annotate a few private hooks currently used
by ypserv, passwd, or chpass... maybe we can use different tricks to
interface with libc...

Revision 1.4 / (download) - annotate - [select for diffs], Sat Sep 5 11:25:29 2015 UTC (8 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.3: +0 -3 lines
Diff to previous 1.3 (colored)

Use new framework for wrapping cat{open,gets,close}(), eliminating
_cat* in the process.

ok kettenis@

Revision 1.3 / (download) - annotate - [select for diffs], Mon Aug 31 02:53:56 2015 UTC (8 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.2: +0 -12 lines
Diff to previous 1.2 (colored)

Add framework for resolving (pun intended) libc namespace issues, using
wrapper .h files and asm labels to let internal calls resolve directly and
not be overridable or use the PLT.  Then, apply that framework to most of
the functions in stdio.h, string.h, err.h, and wchar.h.  Delete the
should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.

tests clean on i386, amd64, sparc64, powerpc, and mips64

naming feedback from kettenis@ and millert@
ok kettenis@

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 26 01:54:09 2015 UTC (8 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.1: +0 -185 lines
Diff to previous 1.1 (colored)

Hide many (194!) symbols that nothing should be using.
Delete exect(2); it wasn't portable across archs and nothing used it.

ports test build by naddy@
ok deraadt@ kettenis@

Revision 1.1 / (download) - annotate - [select for diffs], Sat Aug 22 19:40:06 2015 UTC (8 years, 9 months ago) by guenther
Branch: MAIN

Explicitly list the symbols permitted to be exported by libc.
This is primed with the current list of exported symbols so it doesn't
change the ABI yet, but will prevent unintentional additions in the future
and sets the stage for reductions.

ok deraadt@ kettenis@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.