bytecodealliance / bytecodealliance/rustix
Please support rusage argument of waitid
- Vorherrschende Sprache
- Rust
- Sterne
- 2.1k
- Forks
- 294
- Ø Merge
- 6 T. 22 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
On Linux, the waitid syscall has a fifth argument, a pointer to a `struct rusage`, which works like the corresponding parameter to `wait3`/`wait4`.
Please consider passing an appropriate buffer to this parameter, and putting the result into the opaque `WaitidStatus` struct, with a `cfg(linux_kernel)` function to return the rusage struct.
On `linux_raw` this should be easy (the implementation already has to pass this parameter). On the libc backend, this will require using `syscall!`.
Beitragsleitfaden
Rechercherichtung
Beginne damit, die waitid-Einstiegspunkte in den linux_raw- und libc-Backends nachzuverfolgen, einschließlich des libc syscall!-Pfads, und untersuche die Handhabung des opaken WaitidStatus. Implementiere das rusage-Ergebnis hinter cfg(linux_kernel) und verifiziere anschließend, dass beide Backends den Puffer übergeben und die resultierende Struct bereitstellen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- linux, rust
- Bereich
- operating-systems
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100