亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tls.h

?? glibc 庫, 不僅可以學習使用庫函數,還可以學習函數的具體實現,是提高功力的好資料
?? H
字號:
/* Definition for thread-local data handling.  nptl/i386 version.   Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.   This file is part of the GNU C Library.   The GNU C Library is free software; you can redistribute it and/or   modify it under the terms of the GNU Lesser General Public   License as published by the Free Software Foundation; either   version 2.1 of the License, or (at your option) any later version.   The GNU C Library is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU   Lesser General Public License for more details.   You should have received a copy of the GNU Lesser General Public   License along with the GNU C Library; if not, write to the Free   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA   02111-1307 USA.  */#ifndef _TLS_H#define _TLS_H	1#include <dl-sysdep.h>#ifndef __ASSEMBLER__# include <stdbool.h># include <stddef.h># include <stdint.h># include <stdlib.h># include <list.h>/* Type for the dtv.  */typedef union dtv{  size_t counter;  struct  {    void *val;    bool is_static;  } pointer;} dtv_t;typedef struct{  void *tcb;		/* Pointer to the TCB.  Not necessarily the			   thread descriptor used by libpthread.  */  dtv_t *dtv;  void *self;		/* Pointer to the thread descriptor.  */  int multiple_threads;  uintptr_t sysinfo;  uintptr_t stack_guard;  uintptr_t pointer_guard;} tcbhead_t;# define TLS_MULTIPLE_THREADS_IN_TCB 1#else /* __ASSEMBLER__ */# include <tcb-offsets.h>#endif/* We require TLS support in the tools.  */#ifndef HAVE_TLS_SUPPORT# error "TLS support is required."#endif/* Alignment requirement for the stack.  For IA-32 this is governed by   the SSE memory functions.  */#define STACK_ALIGN	16#ifndef __ASSEMBLER__/* Get system call information.  */# include <sysdep.h>/* The old way: using LDT.  *//* Structure passed to `modify_ldt', 'set_thread_area', and 'clone' calls.  */struct user_desc{  unsigned int entry_number;  unsigned long int base_addr;  unsigned int limit;  unsigned int seg_32bit:1;  unsigned int contents:2;  unsigned int read_exec_only:1;  unsigned int limit_in_pages:1;  unsigned int seg_not_present:1;  unsigned int useable:1;  unsigned int empty:25;};/* Initializing bit fields is slow.  We speed it up by using a union.  */union user_desc_init{  struct user_desc desc;  unsigned int vals[4];};/* Get the thread descriptor definition.  */# include <nptl/descr.h>/* This is the size of the initial TCB.  Can't be just sizeof (tcbhead_t),   because NPTL getpid, __libc_alloca_cutoff etc. need (almost) the whole   struct pthread even when not linked with -lpthread.  */# define TLS_INIT_TCB_SIZE sizeof (struct pthread)/* Alignment requirements for the initial TCB.  */# define TLS_INIT_TCB_ALIGN __alignof__ (struct pthread)/* This is the size of the TCB.  */# define TLS_TCB_SIZE sizeof (struct pthread)/* Alignment requirements for the TCB.  */# define TLS_TCB_ALIGN __alignof__ (struct pthread)/* The TCB can have any size and the memory following the address the   thread pointer points to is unspecified.  Allocate the TCB there.  */# define TLS_TCB_AT_TP	1/* Install the dtv pointer.  The pointer passed is to the element with   index -1 which contain the length.  */# define INSTALL_DTV(descr, dtvp) \  ((tcbhead_t *) (descr))->dtv = (dtvp) + 1/* Install new dtv for current thread.  */# define INSTALL_NEW_DTV(dtvp) \  ({ struct pthread *__pd;						      \     THREAD_SETMEM (__pd, header.dtv, (dtvp)); })/* Return dtv of given thread descriptor.  */# define GET_DTV(descr) \  (((tcbhead_t *) (descr))->dtv)#define THREAD_SELF_SYSINFO	THREAD_GETMEM (THREAD_SELF, header.sysinfo)#define THREAD_SYSINFO(pd)	((pd)->header.sysinfo)/* Macros to load from and store into segment registers.  */# ifndef TLS_GET_GS#  define TLS_GET_GS() \  ({ int __seg; __asm ("movw %%gs, %w0" : "=q" (__seg)); __seg & 0xffff; })# endif# ifndef TLS_SET_GS#  define TLS_SET_GS(val) \  __asm ("movw %w0, %%gs" :: "q" (val))# endif# ifndef __NR_set_thread_area#  define __NR_set_thread_area 243# endif# ifndef TLS_FLAG_WRITABLE#  define TLS_FLAG_WRITABLE		0x00000001# endif// XXX Enable for the real world.#if 0# ifndef __ASSUME_SET_THREAD_AREA#  error "we need set_thread_area"# endif#endif# ifdef __PIC__#  define TLS_EBX_ARG "r"#  define TLS_LOAD_EBX "xchgl %3, %%ebx\n\t"# else#  define TLS_EBX_ARG "b"#  define TLS_LOAD_EBX# endif#if defined NEED_DL_SYSINFO# define INIT_SYSINFO \  _head->sysinfo = GLRO(dl_sysinfo)#else# define INIT_SYSINFO#endif#ifndef LOCK_PREFIX# ifdef UP#  define LOCK_PREFIX  /* nothing */# else#  define LOCK_PREFIX "lock;"# endif#endif/* Code to initially initialize the thread pointer.  This might need   special attention since 'errno' is not yet available and if the   operation can cause a failure 'errno' must not be touched.  */# define TLS_INIT_TP(thrdescr, secondcall) \  ({ void *_thrdescr = (thrdescr);					      \     tcbhead_t *_head = _thrdescr;					      \     union user_desc_init _segdescr;					      \     int _result;							      \									      \     _head->tcb = _thrdescr;						      \     /* For now the thread descriptor is at the same address.  */	      \     _head->self = _thrdescr;						      \     /* New syscall handling support.  */				      \     INIT_SYSINFO;							      \									      \     /* The 'entry_number' field.  Let the kernel pick a value.  */	      \     if (secondcall)							      \       _segdescr.vals[0] = TLS_GET_GS () >> 3;				      \     else								      \       _segdescr.vals[0] = -1;						      \     /* The 'base_addr' field.  Pointer to the TCB.  */			      \     _segdescr.vals[1] = (unsigned long int) _thrdescr;			      \     /* The 'limit' field.  We use 4GB which is 0xfffff pages.  */	      \     _segdescr.vals[2] = 0xfffff;					      \     /* Collapsed value of the bitfield:				      \	  .seg_32bit = 1						      \	  .contents = 0							      \	  .read_exec_only = 0						      \	  .limit_in_pages = 1						      \	  .seg_not_present = 0						      \	  .useable = 1 */						      \     _segdescr.vals[3] = 0x51;						      \									      \     /* Install the TLS.  */						      \     asm volatile (TLS_LOAD_EBX						      \		   "int $0x80\n\t"					      \		   TLS_LOAD_EBX						      \		   : "=a" (_result), "=m" (_segdescr.desc.entry_number)	      \		   : "0" (__NR_set_thread_area),			      \		     TLS_EBX_ARG (&_segdescr.desc), "m" (_segdescr.desc));    \									      \     if (_result == 0)							      \       /* We know the index in the GDT, now load the segment register.	      \	  The use of the GDT is described by the value 3 in the lower	      \	  three bits of the segment descriptor value.			      \									      \	  Note that we have to do this even if the numeric value of	      \	  the descriptor does not change.  Loading the segment register	      \	  causes the segment information from the GDT to be loaded	      \	  which is necessary since we have changed it.   */		      \       TLS_SET_GS (_segdescr.desc.entry_number * 8 + 3);		      \									      \     _result == 0 ? NULL						      \     : "set_thread_area failed when setting up thread-local storage\n"; })/* Return the address of the dtv for the current thread.  */# define THREAD_DTV() \  ({ struct pthread *__pd;						      \     THREAD_GETMEM (__pd, header.dtv); })/* Return the thread descriptor for the current thread.   The contained asm must *not* be marked volatile since otherwise   assignments like        pthread_descr self = thread_self();   do not get optimized away.  */# define THREAD_SELF \  ({ struct pthread *__self;						      \     asm ("movl %%gs:%c1,%0" : "=r" (__self)				      \	  : "i" (offsetof (struct pthread, header.self)));		      \     __self;})/* Magic for libthread_db to know how to do THREAD_SELF.  */# define DB_THREAD_SELF \  REGISTER_THREAD_AREA (32, offsetof (struct user_regs_struct, xgs), 3) \  REGISTER_THREAD_AREA (64, 26 * 8, 3) /* x86-64's user_regs_struct->gs *//* Read member of the thread descriptor directly.  */# define THREAD_GETMEM(descr, member) \  ({ __typeof (descr->member) __value;					      \     if (sizeof (__value) == 1)						      \       asm volatile ("movb %%gs:%P2,%b0"				      \		     : "=q" (__value)					      \		     : "0" (0), "i" (offsetof (struct pthread, member)));     \     else if (sizeof (__value) == 4)					      \       asm volatile ("movl %%gs:%P1,%0"					      \		     : "=r" (__value)					      \		     : "i" (offsetof (struct pthread, member)));	      \     else								      \       {								      \	 if (sizeof (__value) != 8)					      \	   /* There should not be any value with a size other than 1,	      \	      4 or 8.  */						      \	   abort ();							      \									      \	 asm volatile ("movl %%gs:%P1,%%eax\n\t"			      \		       "movl %%gs:%P2,%%edx"				      \		       : "=A" (__value)					      \		       : "i" (offsetof (struct pthread, member)),	      \			 "i" (offsetof (struct pthread, member) + 4));	      \       }								      \     __value; })/* Same as THREAD_GETMEM, but the member offset can be non-constant.  */# define THREAD_GETMEM_NC(descr, member, idx) \  ({ __typeof (descr->member[0]) __value;				      \     if (sizeof (__value) == 1)						      \       asm volatile ("movb %%gs:%P2(%3),%b0"				      \		     : "=q" (__value)					      \		     : "0" (0), "i" (offsetof (struct pthread, member[0])),   \		     "r" (idx));					      \     else if (sizeof (__value) == 4)					      \       asm volatile ("movl %%gs:%P1(,%2,4),%0"				      \		     : "=r" (__value)					      \		     : "i" (offsetof (struct pthread, member[0])),	      \		       "r" (idx));					      \     else								      \       {								      \	 if (sizeof (__value) != 8)					      \	   /* There should not be any value with a size other than 1,	      \	      4 or 8.  */						      \	   abort ();							      \									      \	 asm volatile  ("movl %%gs:%P1(,%2,8),%%eax\n\t"		      \			"movl %%gs:4+%P1(,%2,8),%%edx"			      \			: "=&A" (__value)				      \			: "i" (offsetof (struct pthread, member[0])),	      \			  "r" (idx));					      \       }								      \     __value; })/* Same as THREAD_SETMEM, but the member offset can be non-constant.  */# define THREAD_SETMEM(descr, member, value) \  ({ if (sizeof (descr->member) == 1)					      \       asm volatile ("movb %b0,%%gs:%P1" :				      \		     : "iq" (value),					      \		       "i" (offsetof (struct pthread, member)));	      \     else if (sizeof (descr->member) == 4)				      \       asm volatile ("movl %0,%%gs:%P1" :				      \		     : "ir" (value),					      \		       "i" (offsetof (struct pthread, member)));	      \     else								      \       {								      \	 if (sizeof (descr->member) != 8)				      \	   /* There should not be any value with a size other than 1,	      \	      4 or 8.  */						      \	   abort ();							      \									      \	 asm volatile ("movl %%eax,%%gs:%P1\n\t"			      \		       "movl %%edx,%%gs:%P2" :				      \		       : "A" (value),					      \			 "i" (offsetof (struct pthread, member)),	      \			 "i" (offsetof (struct pthread, member) + 4));	      \       }})/* Set member of the thread descriptor directly.  */# define THREAD_SETMEM_NC(descr, member, idx, value) \  ({ if (sizeof (descr->member[0]) == 1)				      \       asm volatile ("movb %b0,%%gs:%P1(%2)" :				      \		     : "iq" (value),					      \		       "i" (offsetof (struct pthread, member)),		      \		       "r" (idx));					      \     else if (sizeof (descr->member[0]) == 4)				      \       asm volatile ("movl %0,%%gs:%P1(,%2,4)" :			      \		     : "ir" (value),					      \		       "i" (offsetof (struct pthread, member)),		      \		       "r" (idx));					      \     else								      \       {								      \	 if (sizeof (descr->member[0]) != 8)				      \	   /* There should not be any value with a size other than 1,	      \	      4 or 8.  */						      \	   abort ();							      \									      \	 asm volatile ("movl %%eax,%%gs:%P1(,%2,8)\n\t"			      \		       "movl %%edx,%%gs:4+%P1(,%2,8)" :			      \		       : "A" (value),					      \			 "i" (offsetof (struct pthread, member)),	      \			 "r" (idx));					      \       }})/* Atomic compare and exchange on TLS, returning old value.  */#define THREAD_ATOMIC_CMPXCHG_VAL(descr, member, newval, oldval) \  ({ __typeof (descr->member) __ret;					      \     __typeof (oldval) __old = (oldval);				      \     if (sizeof (descr->member) == 4)					      \       asm volatile (LOCK_PREFIX "cmpxchgl %2, %%gs:%P3"		      \		     : "=a" (__ret)					      \		     : "0" (__old), "r" (newval),			      \		       "i" (offsetof (struct pthread, member)));	      \     else								      \       /* Not necessary for other sizes in the moment.  */		      \       abort ();							      \     __ret; })/* Atomic set bit.  */#define THREAD_ATOMIC_BIT_SET(descr, member, bit) \  (void) ({ if (sizeof ((descr)->member) == 4)				      \	      asm volatile (LOCK_PREFIX "orl %1, %%gs:%P0"		      \			    :: "i" (offsetof (struct pthread, member)),	      \			       "ir" (1 << (bit)));			      \	    else							      \	      /* Not necessary for other sizes in the moment.  */	      \	      abort (); })/* Call the user-provided thread function.  */#define CALL_THREAD_FCT(descr) \  ({ void *__res;							      \     int __ignore1, __ignore2;						      \     asm volatile ("pushl %%eax\n\t"					      \		   "pushl %%eax\n\t"					      \		   "pushl %%eax\n\t"					      \		   "pushl %%gs:%P4\n\t"					      \		   "call *%%gs:%P3\n\t"					      \		   "addl $16, %%esp"					      \		   : "=a" (__res), "=c" (__ignore1), "=d" (__ignore2)	      \		   : "i" (offsetof (struct pthread, start_routine)),	      \		     "i" (offsetof (struct pthread, arg)));		      \     __res; })/* Set the stack guard field in TCB head.  */#define THREAD_SET_STACK_GUARD(value) \  THREAD_SETMEM (THREAD_SELF, header.stack_guard, value)#define THREAD_COPY_STACK_GUARD(descr) \  ((descr)->header.stack_guard						      \   = THREAD_GETMEM (THREAD_SELF, header.stack_guard))/* Set the pointer guard field in the TCB head.  */#define THREAD_SET_POINTER_GUARD(value) \  THREAD_SETMEM (THREAD_SELF, header.pointer_guard, value)#define THREAD_COPY_POINTER_GUARD(descr) \  ((descr)->header.pointer_guard					      \   = THREAD_GETMEM (THREAD_SELF, header.pointer_guard))#endif /* __ASSEMBLER__ */#endif	/* tls.h */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91久久久免费一区二区| 国产福利不卡视频| 国产天堂亚洲国产碰碰| 欧美日韩一本到| 99热在这里有精品免费| 免费日韩伦理电影| 亚洲精品第1页| 国产精品麻豆网站| 久久尤物电影视频在线观看| 欧美日韩国产经典色站一区二区三区| 97久久人人超碰| 97se亚洲国产综合自在线不卡| 欧美性猛片xxxx免费看久爱| 欧美在线一二三四区| 在线国产电影不卡| 欧美不卡视频一区| 日韩久久免费av| 69久久99精品久久久久婷婷| 欧美伊人久久大香线蕉综合69| 欧美一二三四在线| 欧美成人欧美edvon| 最新日韩在线视频| 亚洲欧洲精品一区二区精品久久久| 亚洲福利视频一区| 亚洲高清视频的网址| 国产资源在线一区| 激情深爱一区二区| 91精品办公室少妇高潮对白| 久久亚洲一级片| 亚洲精品国产一区二区精华液 | 国产精品影视在线| 国产一区二区免费在线| 国产乱码字幕精品高清av| 在线视频一区二区免费| 欧美高清在线视频| 国产精品乱码妇女bbbb| 国产视频一区二区在线观看| 亚洲国产综合人成综合网站| 夫妻av一区二区| 91啪九色porn原创视频在线观看| 欧美亚洲动漫精品| 中文字幕不卡一区| 狠狠色丁香久久婷婷综| 欧美日韩一区二区在线观看视频| 久久久久久电影| 一区精品在线播放| 国产一区二区三区久久久| 51精品久久久久久久蜜臀| 亚洲免费成人av| 免费欧美高清视频| 欧美私模裸体表演在线观看| 亚洲欧美在线aaa| 丁香婷婷综合激情五月色| 精品乱码亚洲一区二区不卡| 丝袜a∨在线一区二区三区不卡| 男人的天堂久久精品| 欧美日韩国产大片| 亚洲国产视频直播| 色综合久久久网| 欧美放荡的少妇| 亚洲国产高清aⅴ视频| 精品一区二区三区在线播放 | 中文字幕av一区二区三区高| 免费高清不卡av| 91精品国产综合久久精品性色| 亚洲第一二三四区| 国产成人精品三级| 久久先锋影音av鲁色资源网| 久久电影网电视剧免费观看| 色婷婷综合视频在线观看| 亚洲欧洲国产日本综合| 成人18精品视频| 国产亚洲综合av| 国产剧情在线观看一区二区 | 国产a级毛片一区| 久久影视一区二区| 国产精品99久久久久久似苏梦涵| 久久久久久亚洲综合| 国产精品18久久久久| 国产偷国产偷亚洲高清人白洁 | 中文字幕制服丝袜成人av| 成人午夜私人影院| 欧美精品色一区二区三区| 亚洲二区在线观看| 日韩欧美精品三级| 久久99精品久久只有精品| 久久精品亚洲国产奇米99| 国产成人av电影在线播放| 国产精品伦理一区二区| eeuss影院一区二区三区| 亚洲欧美日韩一区| 欧美日韩一级视频| 裸体健美xxxx欧美裸体表演| 色综合婷婷久久| 久久久精品日韩欧美| 懂色av噜噜一区二区三区av| 亚洲天堂福利av| 成人免费福利片| 一区二区三区不卡视频在线观看| 国产91精品久久久久久久网曝门| 国产精品欧美一区二区三区| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 一区二区三区欧美亚洲| 5566中文字幕一区二区电影 | 国产精品高清亚洲| 欧美性xxxxxxxx| 日本成人在线一区| 欧美日韩综合在线免费观看| 亚洲成人资源在线| 久久新电视剧免费观看| 成人黄色a**站在线观看| 一区二区三区四区av| 日韩欧美国产高清| 成人h版在线观看| 亚洲一区二区三区视频在线| 色哟哟一区二区三区| 奇米精品一区二区三区在线观看一| 国产欧美一区视频| 国产成人av一区二区三区在线观看| 国产精品二区一区二区aⅴ污介绍| 色婷婷国产精品综合在线观看| 日本三级亚洲精品| 国产精品蜜臀在线观看| 欧美年轻男男videosbes| 国产精品一二三区在线| 亚洲一区二区3| 久久综合色婷婷| 欧美日韩一区在线观看| 国产成a人亚洲| 日韩福利视频导航| 亚洲欧美中日韩| 欧美草草影院在线视频| 91欧美一区二区| 国产成人精品在线看| 亚洲综合在线电影| 久久久久久9999| 日韩午夜精品电影| 色先锋aa成人| 豆国产96在线|亚洲| 蜜桃久久av一区| 亚洲一区在线观看免费观看电影高清| 久久九九影视网| 欧美一级理论性理论a| 久久99久久精品| 午夜不卡av免费| 精品国产99国产精品| 国产成人精品免费在线| 男女男精品网站| 一区二区高清视频在线观看| 国产精品丝袜一区| 精品日韩在线一区| 在线不卡a资源高清| 色婷婷综合久色| 99视频在线观看一区三区| 国产一区二区剧情av在线| 日本午夜精品一区二区三区电影 | 日韩欧美综合在线| 欧美视频一区二区| av成人免费在线| 国产成人精品免费| 精品写真视频在线观看| 日韩经典中文字幕一区| 亚洲一卡二卡三卡四卡无卡久久 | 欧美午夜免费电影| 99久久精品一区二区| 国产成人精品免费一区二区| 国产综合久久久久久鬼色| 麻豆精品一区二区综合av| 偷拍一区二区三区| 亚洲高清在线视频| 亚洲一区二区免费视频| 亚洲免费资源在线播放| 国产精品高潮久久久久无| 中国av一区二区三区| 久久精品欧美一区二区三区麻豆| 精品国产伦一区二区三区观看方式| 在线成人小视频| 91麻豆精品国产综合久久久久久| 欧美日韩夫妻久久| 欧美日韩一区久久| 7777女厕盗摄久久久| 欧美一区二区日韩一区二区| 4438成人网| 日韩欧美综合在线| 久久亚洲二区三区| 中文字幕精品一区| 国产精品久久久久久久久搜平片 | 97精品视频在线观看自产线路二| 成人av电影免费观看| www.综合网.com| 91网站黄www| 欧洲一区二区三区免费视频| 欧美午夜寂寞影院| 欧美高清视频www夜色资源网| 欧美日本不卡视频| 欧美电影免费观看高清完整版在线 | 人人狠狠综合久久亚洲| 免费成人深夜小野草| 激情欧美日韩一区二区| 精品一二三四区|