Tracking Issue for `qurt_ext`

Aperta
#166,575 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Read the tracking issue and implementation PR #152084 to understand the hexagon-unknown-qurt support and its current status. The checklist shows implementation complete, with FCP and a stabilization PR still pending; follow the feature lifecycle and help resolve any questions needed before stabilization.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

C-tracking-issue O-hexagon-unknown-qurt S-tracking-unimplemented T-libs

Feature gate: #![feature(qurt_ext)]

This is a tracking issue for adding hexagon-unknown-qurt PR-152084 support in rust. hexagon-unknown-qurt currently does not provide any new features per-say, it just adds (a subset of) std library support for the platform.

Public API
// std::os::qurt::ffi contains re-exported traits for qurt
pub trait OsStrExt {
    fn from_bytes(slice: &[u8]) -> &Self;
    fn as_bytes(&self) -> &[u8];
}
pub trait OsStringExt {
    fn from_vec(vec: Vec<u8>) -> Self;
    fn into_vec(self) -> Vec<u8>;
}

// std::os::qurt::raw contains QuRT-specific raw C type aliases in  
pub type dev_t = u64;
pub type ino_t = u64;
pub type mode_t = u32;
pub type nlink_t = u32;
pub type off_t = c_long;
pub type time_t = c_long;
pub type pthread_t = libc::pthread_t;

// std::os::qurt::fs contains QuRT specific extenstions to fs::Metadata
pub trait MetadataExt {
    fn st_dev(&self) -> u64;
    fn st_ino(&self) -> u64;
    fn st_mode(&self) -> u32;
    fn st_nlink(&self) -> u64;
    fn st_uid(&self) -> u32;        // always 0 — no ownership on QuRT
    fn st_gid(&self) -> u32;        // always 0
    fn st_rdev(&self) -> u64;
    fn st_size(&self) -> u64;
    fn st_atime(&self) -> i64;
    fn st_atime_nsec(&self) -> i64; // always 0 — no sub-second precision
    fn st_mtime(&self) -> i64;
    fn st_mtime_nsec(&self) -> i64; // always 0
    fn st_ctime(&self) -> i64;
    fn st_ctime_nsec(&self) -> i64; // always 0
    fn st_blksize(&self) -> u64;    // always 0 — not tracked
    fn st_blocks(&self) -> u64;     // always 0 — not tracked
}
Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

  • Implementation: #152084
  • FCP
  • Stabilization PR^1
Unresolved Questions
  • None yet.
Lingua principale
Rust
Stelle
123k
Fork
16.6k
Merge medio
2g 17h
PR unite (30g)
532

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rust-lang/rust

Tutte le issue di rust-lang/rust

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.