core.h 320 B

123456789101112131415
  1. #ifndef TOOLKIT_UNIX_H
  2. #define TOOLKIT_UNIX_H
  3. #include "config.h"
  4. #include <pthread.h>
  5. typedef pthread_t toolkit_thread_t;
  6. typedef pthread_mutex_t toolkit_mutex_t;
  7. int make_fd_cloexec(int fd, int set);
  8. int make_fd_nonblock(int fd, int set);
  9. int async_fd_create();
  10. void async_fd_close(int fd);
  11. #endif //TOOLKIT_UNIX_H