Fix gaps in hexagon-unknown-qurt defs#5091
Open
androm3da wants to merge 5 commits intorust-lang:mainfrom
Open
Conversation
Contributor
Author
104063f to
5811f5e
Compare
This comment has been minimized.
This comment has been minimized.
Compare Rust definitions against Hexagon SDK 6.4.0.2 computev69 POSIX headers and fix mismatches. Changes pthread_rwlock_t and pthread_rwlockattr_t to *mut c_void, sigval from struct to union, closedir param from *const to *mut DIR. Removes functions not provided by QuRT (fork, execve, kill, alarm, pause, sigprocmask, sigpending, creat). Adds sched_yield, SIGIOT, SIGPOLL; removes SIGVTALRM. Also adds test_qurt() ctest function (disabled — requires sched_yield stub), libc-test/semver/qurt.txt, and fixes the c_schar ambiguous glob re-export.
Add all pthread functions declared in the QuRT SDK pthread.h and
pthread_types.h: thread cancellation, scheduling, spinlocks, barriers,
rwlocks, and various attribute get/set functions. Moves
pthread_attr_{get,set}stack from mod.rs to pthread.rs.
Add POSIX message queue bindings from QuRT's mqueue.h: mq_attr struct, mq_open/close/send/receive and friends, select, pselect.
Add timer_create, timer_delete, timer_gettime, and timer_settime from QuRT's time.h POSIX timer API.
Add process/file functions from QuRT's hooks/unistd.h: getppid, getpgid, getpgrp, setsid, get/set uid/gid variants, fsync, pathconf.
Collaborator
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Testing with libstd revealed some QuRT definitions were missing and inaccurate. Providing those here to close those gaps.
Sources
Hexagon SDK e.g. https://github.com/snapdragon-toolchain/hexagon-sdk/releases
Checklist
libc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
sched_yielde.g.) but w/local stubs tests pass