musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/sys/procfs.h
AgeCommit message (Collapse)AuthorLines
2019年12月22日fix elf_prstatus regression on time64, existing wrong definition on x32 Rich Felker-4/+3
the elf_prstatus structure is used in core dumps, and the timeval structures in it are longs matching the elf class, *not* the kernel "old timeval" for the arch. this means using timeval here for x32 was always wrong, despite kernel uapi headers and glibc also exposing it this way, and of course it's wrong for any arch with 64-bit time_t. rather than just changing the type on affected archs, use a tagless struct containing long tv_sec and tv_usec members in place of the timevals. this intentionally breaks use of them as timevals (e.g. assignment, passing address, etc.) on 64-bit archs as well so that any usage unsafe for 32-bit archs is caught even in software that only gets tested on 64-bit archs. from what I could gather, there is not any software using these members anyway. the only reason they need to be fixed to begin with is that the only members which are commonly used, the saved registers, follow the time members and have the wrong offset if the time members are sized incorrectly.
2016年07月03日make brace placement in public header struct definitions consistent Rich Felker-2/+1
placing the opening brace on the same line as the struct keyword/tag is the style I prefer and seems to be the prevailing practice in more recent additions. these changes were generated by the command: find include/ arch/*/bits -name '*.h' \ -exec sed -i '/^struct [^;{]*$/{N;s/\n/ /;}' {} + and subsequently checked by hand to ensure that the regex did not pick up any false positives.
2016年07月03日fix misplaced indention in sys/procfs.h Rich Felker-1/+1
2014年03月08日in sys/procfs.h, avoid using __WORDSIZE macro Rich Felker-1/+1
this was problematic because several archs don't define __WORDSIZE. we could add it, but I would rather phase this macro out in the long term. in our version of the headers, UINTPTR_MAX is available here, so just use it instead.
2012年11月25日make sys/procfs.h mostly work on most archs Rich Felker-18/+0
these structures are purely for use by trace/debug tools and tools working with core files. the definition of fpregset_t, which was previously here, has been removed because it was wrong; fpregset_t should be the type used in mcontext_t, not the type used in ptrace/core stuff.
2011年10月17日fix some details in ugly stuff that doesn't belong in libc Rich Felker-0/+2
patches by sh4rm4, presumably needed to make gdb or some similar junk happy...
2011年02月12日initial check-in, version 0.5.0 v0.5.0 Rich Felker-0/+81
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月14日 04:17:40 +0000

AltStyle によって変換されたページ (->オリジナル) /