libusb_wait_for_event etc. needs an alternative entrypoint for 32bit time_t types
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start by reading the declarations and implementations of the five named event and timeout functions, then check how their struct timeval parameters are exposed to applications built with different _TIME_BITS settings. The issue does not name files or tests; identify the relevant ABI and compatibility constraints before proposing an alternative entry point. Done means the functions can be used safely across the described 32-bit and 64-bit time_t combinations.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
libusb is usually compiled with default settings, and therefor gets a struct timeval with a 64bit time_t type. But if an application uses #define _TIME_BITS 32 and then includes libusb.h, it will pass a pointer to an incompatible structure with 32bit time_t types.
After a brief look, that affects:
- libusb_wait_for_event
- libusb_handle_events_timeout
- libusb_handle_events_timeout_completed
- libusb_handle_events_locked
- libusb_get_next_timeout
Similar, when a libusb compiled for 32bit is used, and the application defines _TIME_BITS 64
- Lingua principale
- C
- Stelle
- 6.2k
- Fork
- 2.1k
- Merge medio
- 28g 9h
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di libusb/libusb
-
build_ci
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
android core
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Windows version of libusb-master (MSVC build) can't be built when git installed w/o bashForse già presa @Youw l’ha presa 21 giorni fa. Apertawindows
-
windows
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
core enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
Tutte le issue di libusb/libusb
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
DaveGamble/cJSON#1100 ·
-
UB: (int) cast of a user double outside int range in dispatch / vm_index_is_int / flat_index_atApertaarea:runtime-vm
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
InauguralSystems/EigenScript#1748 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
leanprover/lean4#15677 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
wasm-micro-runtime/wasm-micro-runtime#5159 ·
I maintainer di solito rispondono entro 7 giorni