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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? tls.h

?? glibc 庫, 不僅可以學(xué)習(xí)使用庫函數(shù),還可以學(xué)習(xí)函數(shù)的具體實現(xiàn),是提高功力的好資料
?? H
字號:
/* Definition for thread-local data handling.  nptl/x86_64 version.   Copyright (C) 2002,2003,2004,2005,2006,2007 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#ifndef __ASSEMBLER__# include <asm/prctl.h>	/* For ARCH_SET_FS.  */# include <stdbool.h># include <stddef.h># include <stdint.h># include <stdlib.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;  unsigned long int vgetcpu_cache[2];} tcbhead_t;#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.  */#define STACK_ALIGN	16#ifndef __ASSEMBLER__/* Get system call information.  */# include <sysdep.h>/* Get the thread descriptor definition.  */# include <nptl/descr.h>#ifndef LOCK_PREFIX# ifdef UP#  define LOCK_PREFIX	/* nothing */# else#  define LOCK_PREFIX	"lock;"# endif#endif/* 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)/* Macros to load from and store into segment registers.  */# define TLS_GET_FS() \  ({ int __seg; __asm ("movl %%fs, %0" : "=q" (__seg)); __seg; })# define TLS_SET_FS(val) \  __asm ("movl %0, %%fs" :: "q" (val))/* 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.   We have to make the syscall for both uses of the macro since the   address might be (and probably is) different.  */# define TLS_INIT_TP(thrdescr, secondcall) \  ({ void *_thrdescr = (thrdescr);					      \     tcbhead_t *_head = _thrdescr;					      \     int _result;							      \									      \     _head->tcb = _thrdescr;						      \     /* For now the thread descriptor is at the same address.  */	      \     _head->self = _thrdescr;						      \									      \     /* It is a simple syscall to set the %fs value for the thread.  */	      \     asm volatile ("syscall"						      \		   : "=a" (_result)					      \		   : "0" ((unsigned long int) __NR_arch_prctl),		      \		     "D" ((unsigned long int) ARCH_SET_FS),		      \		     "S" (_thrdescr)					      \		   : "memory", "cc", "r11", "cx");			      \									      \    _result ? "cannot set %fs base address for thread-local storage" : 0;     \  })/* 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 ("movq %%fs:%c1,%q0" : "=r" (__self)				      \	  : "i" (offsetof (struct pthread, header.self)));	 	      \     __self;})/* Magic for libthread_db to know how to do THREAD_SELF.  */# define DB_THREAD_SELF_INCLUDE  <sys/reg.h> /* For the FS constant.  */# define DB_THREAD_SELF CONST_THREAD_AREA (64, FS)/* Read member of the thread descriptor directly.  */# define THREAD_GETMEM(descr, member) \  ({ __typeof (descr->member) __value;					      \     if (sizeof (__value) == 1)						      \       asm volatile ("movb %%fs:%P2,%b0"				      \		     : "=q" (__value)					      \		     : "0" (0), "i" (offsetof (struct pthread, member)));     \     else if (sizeof (__value) == 4)					      \       asm volatile ("movl %%fs:%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 ("movq %%fs:%P1,%q0"				      \		       : "=r" (__value)					      \		       : "i" (offsetof (struct pthread, member)));	      \       }								      \     __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 %%fs:%P2(%q3),%b0"				      \		     : "=q" (__value)					      \		     : "0" (0), "i" (offsetof (struct pthread, member[0])),   \		       "r" (idx));					      \     else if (sizeof (__value) == 4)					      \       asm volatile ("movl %%fs:%P1(,%q2,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 ("movq %%fs:%P1(,%q2,8),%q0"			      \		       : "=r" (__value)					      \		       : "i" (offsetof (struct pthread, member[0])),	      \			 "r" (idx));					      \       }								      \     __value; })/* Loading addresses of objects on x86-64 needs to be treated special   when generating PIC code.  */#ifdef __pic__# define IMM_MODE "nr"#else# define IMM_MODE "ir"#endif/* 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,%%fs:%P1" :				      \		     : "iq" (value),					      \		       "i" (offsetof (struct pthread, member)));	      \     else if (sizeof (descr->member) == 4)				      \       asm volatile ("movl %0,%%fs:%P1" :				      \		     : IMM_MODE (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 ("movq %q0,%%fs:%P1" :				      \		       : IMM_MODE ((unsigned long int) value),		      \			 "i" (offsetof (struct pthread, member)));	      \       }})/* 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,%%fs:%P1(%q2)" :				      \		     : "iq" (value),					      \		       "i" (offsetof (struct pthread, member[0])),	      \		       "r" (idx));					      \     else if (sizeof (descr->member[0]) == 4)				      \       asm volatile ("movl %0,%%fs:%P1(,%q2,4)" :			      \		     : IMM_MODE (value),				      \		       "i" (offsetof (struct pthread, member[0])),	      \		       "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 ("movq %q0,%%fs:%P1(,%q2,8)" :			      \		       : IMM_MODE ((unsigned long int) value),		      \			 "i" (offsetof (struct pthread, member[0])),	      \			 "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, %%fs:%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, %%fs:%P0"		      \			    :: "i" (offsetof (struct pthread, member)),	      \			       "ir" (1 << (bit)));			      \	    else							      \	      /* Not necessary for other sizes in the moment.  */	      \	      abort (); })#define CALL_THREAD_FCT(descr) \  ({ void *__res;							      \     asm volatile ("movq %%fs:%P2, %%rdi\n\t"				      \		   "callq *%%fs:%P1"					      \		   : "=a" (__res)					      \		   : "i" (offsetof (struct pthread, start_routine)),	      \		     "i" (offsetof (struct pthread, arg))		      \		   : "di", "si", "cx", "dx", "r8", "r9", "r10", "r11",	      \		     "memory", "cc");					      \     __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 */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人激情午夜影院| 精品一区二区国语对白| 白白色亚洲国产精品| 中文字幕不卡在线播放| 国产成人免费视频精品含羞草妖精| 久久亚洲春色中文字幕久久久| 国产乱子伦视频一区二区三区 | 26uuu精品一区二区在线观看| 美日韩一区二区三区| 亚洲精品一区二区三区福利| 国产一区欧美日韩| 亚洲色图19p| 欧美精品久久一区| 国产精品一区二区不卡| 中文字幕在线不卡一区 | 亚洲.国产.中文慕字在线| 欧美久久久久久蜜桃| 国产一区二区三区免费在线观看| 中文字幕不卡一区| 欧美日韩高清在线| 国产精品一区二区黑丝| 亚洲精品美国一| 日韩欧美高清在线| 99久久久久久99| 日韩成人午夜精品| 国产精品色在线观看| 欧美在线一区二区| 国产精品一二三四区| 亚洲精品你懂的| 久久亚洲综合色一区二区三区| 91原创在线视频| 老司机精品视频在线| 亚洲精品国产视频| 2021中文字幕一区亚洲| 色婷婷综合久色| 国产一区二区主播在线| 一区二区三区精品| 久久久久久久久久久久久夜| 欧美性猛交一区二区三区精品| 国产综合色在线视频区| 一二三四区精品视频| 国产亚洲欧洲一区高清在线观看| 欧美性欧美巨大黑白大战| 丁香婷婷综合色啪| 久久精品国产精品亚洲精品| 最新日韩在线视频| 久久久一区二区三区| 91精品国产综合久久久久久久 | 狠狠色综合日日| 亚洲一区二区成人在线观看| 国产三级一区二区三区| 欧美美女bb生活片| 91福利在线免费观看| 成人午夜av在线| 国内精品久久久久影院色| 午夜国产精品一区| 洋洋av久久久久久久一区| 国产精品美女久久久久久久久 | 不卡影院免费观看| 国产成人鲁色资源国产91色综| 免费成人av在线| 亚洲午夜视频在线| 亚洲欧美日韩在线不卡| 国产欧美日韩在线视频| 久久综合狠狠综合| 精品国产不卡一区二区三区| 51久久夜色精品国产麻豆| 精品视频一区二区不卡| 日本久久电影网| 色综合久久88色综合天天| 99热在这里有精品免费| 成人动漫视频在线| caoporn国产精品| 成人黄色电影在线| 白白色 亚洲乱淫| 成人avav在线| 91香蕉视频在线| 欧美午夜电影在线播放| 欧美综合天天夜夜久久| 欧美亚洲综合色| 欧美精选一区二区| 欧美va亚洲va| 久久日韩精品一区二区五区| 久久综合狠狠综合久久综合88| 久久网这里都是精品| 国产丝袜在线精品| 日韩理论片中文av| 亚洲国产精品人人做人人爽| 亚洲成av人片www| 蜜臀av一区二区三区| 久久精品国产一区二区三| 国产一区二区在线电影| 成人午夜激情影院| 欧美性受xxxx黑人xyx性爽| 欧美巨大另类极品videosbest | 国产女主播一区| 中文字幕中文字幕一区二区| 1000部国产精品成人观看| 亚洲国产一区二区视频| 日韩高清欧美激情| 国产精品亚洲午夜一区二区三区| 成人永久aaa| 欧美色欧美亚洲另类二区| 欧美一级理论片| 国产欧美一区二区在线观看| 亚洲免费观看高清完整版在线 | 成人国产一区二区三区精品| 色婷婷精品久久二区二区蜜臂av| 欧美三级电影网| 26uuu亚洲| 亚洲综合色噜噜狠狠| 久久精品免费看| 国产精品18久久久| 欧美人伦禁忌dvd放荡欲情| 久久丝袜美腿综合| 一区二区成人在线| 狠狠网亚洲精品| 欧美优质美女网站| 久久影音资源网| 亚洲国产综合色| 国产成人一区在线| 欧美日韩精品综合在线| 久久久精品一品道一区| 五月天精品一区二区三区| 国产91在线|亚洲| 在线国产电影不卡| 欧美国产日韩亚洲一区| 日日夜夜精品免费视频| caoporn国产一区二区| 欧美一区二区在线视频| 亚洲日本青草视频在线怡红院| 免费观看成人av| 在线视频一区二区三| 亚洲国产精品av| 久久精品99国产精品日本| 色呦呦日韩精品| 国产日本亚洲高清| 久久精品国产免费看久久精品| 欧美在线free| 亚洲日本在线观看| 成人中文字幕合集| 精品国产一区二区三区不卡| 亚洲成人自拍一区| 色伊人久久综合中文字幕| 国产精品入口麻豆九色| 国产一区二区免费在线| 91精品国产aⅴ一区二区| 一区二区三区国产豹纹内裤在线| 成人网男人的天堂| 国产欧美视频一区二区三区| 日韩高清欧美激情| 7777精品伊人久久久大香线蕉最新版| 亚洲欧洲韩国日本视频| 福利一区二区在线观看| 久久综合久久鬼色| 久久99久久精品| 日韩欧美高清一区| 美女国产一区二区| 精品欧美一区二区久久| 日本不卡一二三| 欧美久久久久中文字幕| 婷婷中文字幕一区三区| 欧美日韩免费电影| 舔着乳尖日韩一区| 538prom精品视频线放| 日韩电影在线观看电影| 91麻豆精品国产91久久久久| 丝袜美腿一区二区三区| 欧美日韩国产123区| 日韩精品亚洲一区| 日韩一区二区中文字幕| 日韩电影网1区2区| 日韩精品综合一本久道在线视频| 日本怡春院一区二区| 日韩欧美国产电影| 国产老肥熟一区二区三区| 久久伊人中文字幕| 丰满少妇在线播放bd日韩电影| 中文字幕不卡在线播放| 99久久久国产精品免费蜜臀| 一区二区三区精密机械公司| 欧美日韩亚洲丝袜制服| 日欧美一区二区| 久久久久久亚洲综合影院红桃| 福利一区二区在线观看| 亚洲精品中文字幕在线观看| 欧美日韩www| 国产一区二区精品在线观看| 欧美激情在线看| 91美女片黄在线观看91美女| 亚洲成人激情社区| 精品久久国产97色综合| 成熟亚洲日本毛茸茸凸凹| 亚洲人成亚洲人成在线观看图片| 91国内精品野花午夜精品| 麻豆成人综合网| 中文字幕制服丝袜成人av| 欧美影院一区二区三区| 国产资源精品在线观看| 国产欧美一区二区精品忘忧草|