Skip to content

top: Swich some uses of libc to rustix#631

Merged
cakebaker merged 1 commit intouutils:mainfrom
tonybajan:remove-libc-from-top
Feb 13, 2026
Merged

top: Swich some uses of libc to rustix#631
cakebaker merged 1 commit intouutils:mainfrom
tonybajan:remove-libc-from-top

Conversation

@tonybajan
Copy link
Contributor

Use rustix instead libc to provide getpriority, setpriorty and page size calls.

Part of #599

There's some remaining uses of uucore::libc after this change:

  • types for calls to libsystemd (sd_booted, sd_get_sessions) + windows SystemProcessorPerformanceInformation
  • calls to sched_getscheduler and sched_getparam that aren't implemented in rustix

Use rustix instead libc to provide getpriority,
setpriorty and page size calls.

Part of uutils#599
@cakebaker cakebaker force-pushed the remove-libc-from-top branch from a28d601 to f86dc36 Compare February 13, 2026 08:43
@cakebaker cakebaker merged commit 6d9c3d8 into uutils:main Feb 13, 2026
16 checks passed
@cakebaker
Copy link
Contributor

Thanks!

@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (673d322) to head (f86dc36).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff     @@
##   main   #631   +/-   ##
===========================
===========================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants