A clone of btpd with my configuration changes.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

28 行
677 B

  1. #ifndef BTPD_SUBR_H
  2. #define BTPD_SUBR_H
  3. #include <stdio.h>
  4. #include <stdarg.h>
  5. #define min(x, y) ((x) <= (y) ? (x) : (y))
  6. int set_nonblocking(int fd);
  7. int set_blocking(int fd);
  8. int mkdirs(char *path);
  9. int vaopen(int *resfd, int flags, const char *fmt, va_list ap);
  10. int vopen(int *resfd, int flags, const char *fmt, ...);
  11. int vfopen(FILE **ret, const char *mode, const char *fmt, ...);
  12. int vfsync(const char *fmt, ...);
  13. void set_bit(uint8_t *bits, unsigned long index);
  14. int has_bit(const uint8_t *bits, unsigned long index);
  15. void clear_bit(uint8_t *bits, unsigned long index);
  16. int canon_path(const char *path, char **res);
  17. long rand_between(long min, long max);
  18. #endif