source: asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/thread/pthread_setcancelstate.c@ 400

Last change on this file since 400 was 400, checked in by coas-nagasima, 5 years ago

ファイルヘッダーの更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 291 bytes
Line 
1#include "pthread_impl.h"
2
3int __pthread_setcancelstate(int new, int *old)
4{
5 if (new > 2U) return EINVAL;
6 struct pthread *self = __pthread_self();
7 if (old) *old = self->canceldisable;
8 self->canceldisable = new;
9 return 0;
10}
11
12weak_alias(__pthread_setcancelstate, pthread_setcancelstate);
Note: See TracBrowser for help on using the repository browser.