Skip to content

linux: add CAN error types#4944

Merged
JohnTitor merged 1 commit intorust-lang:mainfrom
hashemmm96:feat/can-errors
Jan 27, 2026
Merged

linux: add CAN error types#4944
JohnTitor merged 1 commit intorust-lang:mainfrom
hashemmm96:feat/can-errors

Conversation

@hashemmm96
Copy link
Contributor

@hashemmm96 hashemmm96 commented Jan 27, 2026

Port libc "error.h" file for SocketCAN subsystem and expose through can.rs.

Description

Add linux/can/error.h bindings as error.rs in the CAN module.

Sources

https://github.com/torvalds/linux/blob/fcb70a56f4d81450114034b2c61f48ce7444a0e2/include/uapi/linux/can/error.h

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@rustbot label +stable-nominated

@rustbot rustbot added O-linux S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Jan 27, 2026
Port libc "error.h" file for SocketCAN subsystem and expose through
can.rs.
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@JohnTitor JohnTitor added this pull request to the merge queue Jan 27, 2026
Merged via the queue into rust-lang:main with commit c6ba84b Jan 27, 2026
50 of 51 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Feb 9, 2026
Port libc "error.h" file for SocketCAN subsystem and expose through
can.rs.

(backport <rust-lang#4944>)
(cherry picked from commit c6ba84b)
@tgross35 tgross35 mentioned this pull request Feb 9, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 9, 2026
Port libc "error.h" file for SocketCAN subsystem and expose through
can.rs.

(backport <#4944>)
(cherry picked from commit c6ba84b)
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-linux stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants