1 #include "pthread_impl.h"
3 void __pthread_register_cancel(struct __ptcb *cb)
5 struct pthread *self = pthread_self();
6 cb->__next = self->cancelbuf;
10 void __pthread_unregister_cancel(struct __ptcb *cb)
12 struct pthread *self = __pthread_self();
13 self->cancelbuf = self->cancelbuf->__next;