Skip to content

Conversation

@po-nuvai
Copy link
Contributor

Summary

  • Replace dbgln() calls in stub functions with FIXME comments to reduce runtime noise
  • Fix incorrect return values in unimplemented functions:
    • fnmatch(): Return FNM_NOMATCH instead of 0 (which falsely indicates a match)
    • ulimit(): Return -1 with errno=ENOSYS instead of calling TODO() which panics
    • getpriority()/setpriority(): Set errno=ENOSYS for proper error reporting
    • endmntent(): Return 1 per glibc documentation (always succeeds)
    • res_query(): Return -1 (error) instead of 0
  • Remove now-unused AK/Format.h includes
  • Add [[maybe_unused]] attribute to function parameters

Replace dbgln() calls in stub functions with FIXME comments to reduce
runtime noise. Also fix incorrect return values:

- fnmatch(): Return FNM_NOMATCH instead of 0 (which indicates match)
- ulimit(): Return -1 with errno=ENOSYS instead of calling TODO()
- priority: Set errno=ENOSYS for getpriority()/setpriority()
- endmntent(): Return 1 per glibc documentation (always succeeds)
- res_query(): Return -1 (error) instead of 0

Remove now-unused AK/Format.h includes.
@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Dec 29, 2025
@nico
Copy link
Contributor

nico commented Dec 29, 2025

Doesn't build.

@nico nico added ⏳ pr-waiting-for-author PR is blocked by feedback / code changes from the author and removed 👀 pr-needs-review PR needs review from a maintainer or community member labels Dec 29, 2025
@stale
Copy link

stale bot commented Jan 19, 2026

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

@stale stale bot added the stale label Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⏳ pr-waiting-for-author PR is blocked by feedback / code changes from the author stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants