summaryrefslogtreecommitdiff
path: root/lib/libc/compat
AgeCommit message (Collapse)Author
2023-05-19Add the compat calls for renamed symbols so that configure scriptsskrll
can find them. sigprocmask being the most problematic. RISC-V doesn't need the compat syscalls, but seeing them fail in ktrace is helpful.
2022-10-08libc: Use a functional example when warning about incorrect alloca usagenia
2021-11-07fix various typos, mainly s/prefered/preferred/andvar
2021-11-02Adjust for new __sigaction_siginfo symbol.thorpej
2021-11-01Version the sigaction(2) libc wrapper. The new version uses the "siginfo"thorpej
trampoline exclusively, thus relegating "sigcontext"-style handlers (which have not been documented for many years now) to the dustbin of the compat library.
2021-10-30Put back the sigcontext sigtramp code.christos
2021-08-09fix various typos in compatibility, mainly in comments.andvar
2021-05-25POSIX sez:thorpej
The longjmp() function shall not cause setjmp() to return 0; if val is 0, setjmp() shall return 1. Fixes the _longjmp_zero and longjmp_zero test cases in the t_setjmp test on alpha.
2020-12-05spaces to tabskrll
2020-10-15Remove '_OFFSETOF' prefix for genassm(1) generate CPP identifers forskrll
consistency with other arches. NFCI and libc.so is the same before and after.
2020-10-15Trailing whitespaceskrll
2020-09-20Add symbol entries for the missing signal functions for the benefit ofchristos
autoconf. Autoconf compiles simple programs like: char symbol(); int main() { return symbol(); } To check if the symbol is present. This makes it happy. Another way our symbol renaming breaks things. This fixes gdb native build, which does not find sigprocmask otherwise and fails to build because it finds pthread_sigmask() and not sigprocmask()!
2020-05-21Teach libc's compat ldexp stub to raise fp exceptions.riastradh
This ldexp stub will shadow the ldexp weak alias for scalbn in libm, which is unfortunate but hard to fix properly without chasing the mythical libc bump beast. With the change here, we should raise all the same exceptions that libm's scalbn does -- overflow, underflow, inexact-result, and (for signalling NaN only) invalid-operation. This in turn should correct the missing overflow/underflow exceptions of our portable C fma, and perhaps other routines. XXX pullup
2020-05-05Mark __cerror as hidden to avoid using the PLT. This is required for newskrll
binutils where the PLT stubs now use %t1 (%r22) which is used to pass the errno to __cerror.
2020-05-05Add a space before any non-nullified instruction. NFCI.skrll
2020-05-05Use the delay slotskrll
2020-05-03More trailing whitespaceskrll
2020-05-03Trailing whitespaceskrll
2019-10-04deduplicate the conversion function from statvfs -> statfs12christos
2019-09-22Add a new member to struct vfsstat and grow the unused memberschristos
The new member is caled f_mntfromlabel and it is the dkw_wname of the corresponding wedge. This is now used by df -W to display the mountpoint name as NAME=
2019-06-18Fix warning message for mknod symbol linkagekamil
The correct reference for mknod(2) is in <sys/stat.h>
2018-04-29Add some compat stubs for aarch64. Not providing any actual compatibilityjmcneill
with old binaries (there are none), but having these symbols helps GNU configure scripts.
2017-12-26Fix const argument inconsistency (found by lint(1))christos
2016-12-16scandir/alphasort take "const struct dirent **" not "const void *" inmrg
modern unix. since we claim to be 'IEEE Std 1003.1-2008', make it so.
2016-10-07Sync with compat and remove dup implementations of ldexp and modf, switchingchristos
mips and m68k to the compat copies.
2016-08-27remove debuggingchristos
2016-08-27detect overflow in oldexp + newexpchristos
2016-06-30various ia64 updates:mrg
- add a compat vfork because of stupid - add a weak sbrk - add a shmat syscall - add an empty kvm implementation that links - add missing fp stuff
2016-03-26Do not store FP registers in softfloat userlandmartin
2015-10-30Add tzgetgmtoff() prototype I forgot to commit.christos
2015-03-26Return type of compat wait functions should be pid_t not int.justin
2015-02-09Include compat in rumprun libcpooka
Not including non-renamed symbols in libc caused all kinds of configure scripts to do the wrong thing when they just tested linkage without including headers. So, go for the "least moving parts" bandaid for now.
2015-01-29Remove va_arg hack for Clang/PPC.joerg
2015-01-20Fix non _REENTRANT build.christos
2014-09-19New files for Userland support of UCB RISC-V (both 32-bit and 64-bit)matt
2014-09-03New files for OR1K supportmatt
2014-08-13Use the lint path as workaround for Clang on 32bit PPC for now.joerg
Document this hack.
2014-08-10If LINT code path uses memcpy, it should also include string.h.joerg
2014-08-10Preliminary files for AARCH64 (64-bit ARM) support.matt
Enough for a distribution build.
2014-06-12rename to 60christos
2014-06-12fix srandom and initstate signatures (from enh at google)christos
2014-05-23Put missing END() markers to set ELF symbol size.uebayasi
2014-05-23Define hacked version of END() in addition to ENTRY().uebayasi
2014-05-22Put missing END() markers to set ELF symbol size.uebayasi
2014-03-18Merge riastradh-drm2 to HEAD.riastradh
2014-03-04Avoid a warning and just do the trap #1 instead of calling sigreturn inline.matt
If it fails, it'll fall into the botch case so don't bother calling CERROR on failure.
2014-01-31expose __lwp_park60christos
2014-01-24Load the magic into the right register for the comparison in _longjmpskrll
2014-01-24remove bogus comment, we are not working around an assembler issue.christos
2014-01-23Use a constant in the text segment to avoid the .lit8 out of range relocationchristos
error.