This repository was archived by the owner on Jun 24, 2026. It is now read-only.
[tests] F: Add x86_64 compatibility#9
Open
ppenna wants to merge 1 commit into
Open
Conversation
- Fix type size assertions for x86_64 (long, size_t, ssize_t use pointer width) - Add struct alignment padding checks for x86_64 (stat, posix_dent, pthread_attr_t, pthread_condattr_t) - Add x86_64 ELF relocation types in dlfcn-c Makefile - Use sizeof(void*) instead of hardcoded 4 in aligned_alloc test - Use uintptr_t casts for pointer/int conversions in thread_local test - Cast ftruncate size comparison to off_t - Skip faccessat/access tests (DAC bypass for root) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add x86_64 compatibility fixes to C/C++ POSIX tests. These changes were originally developed in
nanvix/nanvixon thefeature-kernel-x64branch and are now ported here after the C test sources were moved to this repository.Changes
long,size_t, andssize_ttype size assertions for x86_64 (pointer-width dependent)R_X86_64_*)off_tto avoid sign comparison warningstruct statandstruct posix_denton x86_64; skipfaccessat/accesstests (DAC bypass for root)sizeof(void *)instead of hardcoded 4pthread_attr_tandpthread_condattr_ton x86_64uintptr_tcasts for pointer/int conversions