Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raku-cat/7ba92c9af69b4e4f950cf9a42f007aec to your computer and use it in GitHub Desktop.
Save raku-cat/7ba92c9af69b4e4f950cf9a42f007aec to your computer and use it in GitHub Desktop.
$ strings /data/data/com.termux/files/usr/include/bthread.h
#include <pthread.h>
# define PTHREAD_CANCEL_ENABLE 0x00000010
# define PTHREAD_CANCEL_DISABLE 0x00000000
# define PTHREAD_CANCEL_ASYNCHRONOUS 0x00000020
# define PTHREAD_CANCEL_DEFERRED 0x00000000
#define PTHREAD_CANCELED ((void *) -1)
int pthread_setcancelstate (int , int *);
int pthread_setcanceltype (int , int *);
void pthread_testcancel (void);
int pthread_cancel (pthread_t t);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment