A clone of btpd with my configuration changes.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

22 wiersze
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