bytecodealliance / bytecodealliance/rustix
Please support rusage argument of waitid
- Lingua principale
- Rust
- Stelle
- 2.1k
- Fork
- 294
- Merge medio
- 6g 22h
- PR unite (30g)
- 4
Descrizione
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!`.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando i punti di ingresso di waitid nei backend linux_raw e libc, incluso il percorso libc syscall!, e analizza la gestione opaca di WaitidStatus. Implementa il risultato rusage dietro cfg(linux_kernel), quindi verifica che entrambi i backend passino il buffer ed espongano la struct risultante.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- linux, rust
- Ambito
- operating-systems
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100