Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

libusb_wait_for_event etc. needs an alternative entrypoint for 32bit time_t types

Aperta
#1,667 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c
Ambito
api

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

API core

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

  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 libusb/libusb

Tutte le issue di libusb/libusb

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.