A clone of btpd with my configuration changes.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

22 lignes
475 B

  1. #ifndef BTPD_SUBR_H
  2. #define BTPD_SUBR_H
  3. #define min(x, y) ((x) <= (y) ? (x) : (y))
  4. int set_nonblocking(int fd);
  5. int set_blocking(int fd);
  6. int mkdirs(char *path);
  7. int vopen(int *resfd, int flags, const char *fmt, ...);
  8. void set_bit(uint8_t *bits, unsigned long index);
  9. int has_bit(const uint8_t *bits, unsigned long index);
  10. void clear_bit(uint8_t *bits, unsigned long index);
  11. int canon_path(const char *path, char **res);
  12. long rand_between(long min, long max);
  13. #endif