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

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

?? init-first.c

?? glibc 2.9,最新版的C語言庫函數
?? C
字號:
/* Initialization code run first thing by the ELF startup code.  For i386/Hurd.   Copyright (C) 1995,96,97,98,99,2000,01,02,03,04,05	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.  */#include <assert.h>#include <hurd.h>#include <stdio.h>#include <unistd.h>#include <string.h>#include <sysdep.h>#include <set-hooks.h>#include "hurdstartup.h"#include "hurdmalloc.h"		/* XXX */#include "../locale/localeinfo.h"#include <ldsodefs.h>#include <fpu_control.h>extern void __mach_init (void);extern void __init_misc (int, char **, char **);#ifdef USE_NONOPTION_FLAGSextern void __getopt_clean_environment (char **);#endif#ifndef SHAREDextern void _dl_non_dynamic_init (void) internal_function;#endifextern void __libc_global_ctors (void);unsigned int __hurd_threadvar_max;unsigned long int __hurd_threadvar_stack_offset;unsigned long int __hurd_threadvar_stack_mask;#ifndef SHAREDint __libc_enable_secure;#endifint __libc_multiple_libcs attribute_hidden = 1;extern int __libc_argc attribute_hidden;extern char **__libc_argv attribute_hidden;extern char **_dl_argv;extern void *(*_cthread_init_routine) (void) __attribute__ ((weak));void (*_cthread_exit_routine) (int status) __attribute__ ((__noreturn__));/* Things that want to be run before _hurd_init or much anything else.   Importantly, these are called before anything tries to use malloc.  */DEFINE_HOOK (_hurd_preinit_hook, (void));/* We call this once the Hurd magic is all set up and we are ready to be a   Posixoid program.  This does the same things the generic version does.  */static voidposixland_init (int argc, char **argv, char **envp){  __libc_multiple_libcs = &_dl_starting_up && !_dl_starting_up;  /* Make sure we don't initialize twice.  */  if (!__libc_multiple_libcs)    {      /* Set the FPU control word to the proper default value.  */      __setfpucw (__fpu_control);    }  /* Save the command-line arguments.  */  __libc_argc = argc;  __libc_argv = argv;  __environ = envp;#ifndef SHARED  _dl_non_dynamic_init ();#endif  __init_misc (argc, argv, envp);#ifdef USE_NONOPTION_FLAGS  /* This is a hack to make the special getopt in GNU libc working.  */  __getopt_clean_environment (envp);#endif#ifdef SHARED  __libc_global_ctors ();#endif}static voidinit1 (int argc, char *arg0, ...){  char **argv = &arg0;  char **envp = &argv[argc + 1];  struct hurd_startup_data *d;#ifndef SHARED  extern ElfW(Phdr) *_dl_phdr;  extern size_t _dl_phnum;#endif  while (*envp)    ++envp;  d = (void *) ++envp;  /* If we are the bootstrap task started by the kernel,     then after the environment pointers there is no Hurd     data block; the argument strings start there.  */  if ((void *) d == argv[0])    {#ifndef SHARED      /* We may need to see our own phdrs, e.g. for TLS setup.         Try the usual kludge to find the headers without help from	 the exec server.  */      extern const void _start;      const ElfW(Ehdr) *const ehdr = &_start;      _dl_phdr = (ElfW(Phdr) *) ((const void *) ehdr + ehdr->e_phoff);      _dl_phnum = ehdr->e_phnum;      assert (ehdr->e_phentsize == sizeof (ElfW(Phdr)));#endif      return;    }#ifndef SHARED  __libc_enable_secure = d->flags & EXEC_SECURE;  _dl_phdr = (ElfW(Phdr) *) d->phdr;  _dl_phnum = d->phdrsz / sizeof (ElfW(Phdr));  assert (d->phdrsz % sizeof (ElfW(Phdr)) == 0);#endif  _hurd_init_dtable = d->dtable;  _hurd_init_dtablesize = d->dtablesize;  {    /* Check if the stack we are now on is different from       the one described by _hurd_stack_{base,size}.  */    char dummy;    const vm_address_t newsp = (vm_address_t) &dummy;    if (d->stack_size != 0 && (newsp < d->stack_base ||			       newsp - d->stack_base > d->stack_size))      /* The new stack pointer does not intersect with the	 stack the exec server set up for us, so free that stack.  */      __vm_deallocate (__mach_task_self (), d->stack_base, d->stack_size);  }  if (d->portarray || d->intarray)    /* Initialize library data structures, start signal processing, etc.  */    _hurd_init (d->flags, argv,		d->portarray, d->portarraysize,		d->intarray, d->intarraysize);}static inline voidinit (int *data){  int argc = *data;  char **argv = (void *) (data + 1);  char **envp = &argv[argc + 1];  struct hurd_startup_data *d;  unsigned long int threadvars[_HURD_THREADVAR_MAX];  /* Provide temporary storage for thread-specific variables on the     startup stack so the cthreads initialization code can use them     for malloc et al, or so we can use malloc below for the real     threadvars array.  */  memset (threadvars, 0, sizeof threadvars);  threadvars[_HURD_THREADVAR_LOCALE] = (unsigned long int) &_nl_global_locale;  __hurd_threadvar_stack_offset = (unsigned long int) threadvars;  /* Since the cthreads initialization code uses malloc, and the     malloc initialization code needs to get at the environment, make     sure we can find it.  We'll need to do this again later on since     switching stacks changes the location where the environment is     stored.  */  __environ = envp;  while (*envp)    ++envp;  d = (void *) ++envp;  /* The user might have defined a value for this, to get more variables.     Otherwise it will be zero on startup.  We must make sure it is set     properly before before cthreads initialization, so cthreads can know     how much space to leave for thread variables.  */  if (__hurd_threadvar_max < _HURD_THREADVAR_MAX)    __hurd_threadvar_max = _HURD_THREADVAR_MAX;  /* After possibly switching stacks, call `init1' (above) with the user     code as the return address, and the argument data immediately above     that on the stack.  */  if (&_cthread_init_routine && _cthread_init_routine)    {      /* Initialize cthreads, which will allocate us a new stack to run on.  */      int *newsp = (*_cthread_init_routine) ();      struct hurd_startup_data *od;      void switch_stacks (void);      /* Copy per-thread variables from that temporary	 area onto the new cthread stack.  */      memcpy (__hurd_threadvar_location_from_sp (0, newsp),	      threadvars, sizeof threadvars);      /* Copy the argdata from the old stack to the new one.  */      newsp = memcpy (newsp - ((char *) &d[1] - (char *) data), data,		      (char *) d - (char *) data);#ifdef SHARED      /* And readjust the dynamic linker's idea of where the argument         vector lives.  */      assert (_dl_argv == argv);      _dl_argv = (void *) (newsp + 1);#endif      /* Set up the Hurd startup data block immediately following	 the argument and environment pointers on the new stack.  */      od = ((void *) newsp + ((char *) d - (char *) data));      if ((void *) argv[0] == d)	/* We were started up by the kernel with arguments on the stack.	   There is no Hurd startup data, so zero the block.  */	memset (od, 0, sizeof *od);      else	/* Copy the Hurd startup data block to the new stack.  */	*od = *d;      /* Push the user code address on the top of the new stack.  It will	 be the return address for `init1'; we will jump there with NEWSP	 as the stack pointer.  */      *--newsp = data[-1];      ((void **) data)[-1] = switch_stacks;      /* Force NEWSP into %ecx and &init1 into %eax, which are not restored	 by function return.  */      asm volatile ("# a %0 c %1" : : "a" (newsp), "c" (&init1));    }  else    {      /* We are not using cthreads, so we will have just a single allocated	 area for the per-thread variables of the main user thread.  */      unsigned long int *array;      unsigned int i;      int usercode;      void call_init1 (void);      array = malloc (__hurd_threadvar_max * sizeof (unsigned long int));      if (array == NULL)	__libc_fatal ("Can't allocate single-threaded thread variables.");      /* Copy per-thread variables from the temporary array into the	 newly malloc'd space.  */      memcpy (array, threadvars, sizeof threadvars);      __hurd_threadvar_stack_offset = (unsigned long int) array;      for (i = _HURD_THREADVAR_MAX; i < __hurd_threadvar_max; ++i)	array[i] = 0;      /* The argument data is just above the stack frame we will unwind by	 returning.  Mutate our own return address to run the code below.  */      usercode = data[-1];      data[-1] = (int) &call_init1;      /* Force USERCODE into %eax and &init1 into %ecx, which are not	 restored by function return.  */      asm volatile ("# a %0 c %1" : : "a" (usercode), "c" (&init1));    }}/* These bits of inline assembler used to be located inside `init'.   However they were optimized away by gcc 2.95.  *//* The return address of `init' above, was redirected to here, so at   this point our stack is unwound and callers' registers restored.   Only %ecx and %eax are call-clobbered and thus still have the   values we set just above.  Fetch from there the new stack pointer   we will run on, and jmp to the run-time address of `init1'; when it   returns, it will run the user code with the argument data at the   top of the stack.  */asm ("switch_stacks:\n"     "	movl %eax, %esp\n"     "	jmp *%ecx");/* As in the stack-switching case, at this point our stack is unwound   and callers' registers restored, and only %ecx and %eax communicate   values from the lines above.  In this case we have stashed in %eax   the user code return address.  Push it on the top of the stack so   it acts as init1's return address, and then jump there.  */asm ("call_init1:\n"     "	push %eax\n"     "	jmp *%ecx\n");/* Do the first essential initializations that must precede all else.  */static inline voidfirst_init (void){  /* Initialize data structures so we can do RPCs.  */  __mach_init ();  RUN_HOOK (_hurd_preinit_hook, ());}#ifdef SHARED/* This function is called specially by the dynamic linker to do early   initialization of the shared C library before normal initializers   expecting a Posixoid environment can run.  It gets called with the   stack set up just as the user will see it, so it can switch stacks.  */void_dl_init_first (void){  first_init ();  init ((int *) __builtin_frame_address (0) + 2);}#endif#ifdef SHARED/* The regular posixland initialization is what goes into libc's   normal initializer.  *//* NOTE!  The linker notices the magical name `_init' and sets the DT_INIT   pointer in the dynamic section based solely on that.  It is convention   for this function to be in the `.init' section, but the symbol name is   the only thing that really matters!!  */strong_alias (posixland_init, _init);void__libc_init_first (int argc, char **argv, char **envp){  /* Everything was done in the shared library initializer, _init.  */}#elsestrong_alias (posixland_init, __libc_init_first);/* XXX This is all a crock and I am not happy with it.   This poorly-named function is called by static-start.S,   which should not exist at all.  */void_hurd_stack_setup (void){  intptr_t caller = (intptr_t) __builtin_return_address (0);  void doinit (intptr_t *data)    {      /* This function gets called with the argument data at TOS.  */      void doinit1 (void)	{	  init ((int *) __builtin_frame_address (0) + 2);	}      /* Push the user return address after the argument data, and then         jump to `doinit1' (above), so it is as if __libc_init_first's         caller had called `doinit1' with the argument data already on the         stack.  */      *--data = caller;      asm volatile ("movl %0, %%esp\n" /* Switch to new outermost stack.  */		    "movl $0, %%ebp\n" /* Clear outermost frame pointer.  */		    "jmp *%1" : : "r" (data), "r" (&doinit1) : "sp");      /* NOTREACHED */    }  first_init ();  _hurd_startup ((void **) __builtin_frame_address (0) + 2, &doinit);}#endif/* This function is defined here so that if this file ever gets into   ld.so we will get a link error.  Having this file silently included   in ld.so causes disaster, because the _init definition above will   cause ld.so to gain an init function, which is not a cool thing. */void_dl_start (void){  abort ();}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av电影在线| 日韩一区在线播放| 成人免费一区二区三区在线观看| 亚洲人xxxx| 国产毛片一区二区| 欧美丰满美乳xxx高潮www| 亚洲欧洲成人av每日更新| 精品一区二区三区日韩| 欧美日韩中文国产| 亚洲精品午夜久久久| 国产成人一级电影| 2欧美一区二区三区在线观看视频| 亚洲电影在线播放| 色综合天天综合网天天看片| 国产无遮挡一区二区三区毛片日本| 亚洲大片一区二区三区| 91国模大尺度私拍在线视频| 国产精品麻豆久久久| 国产不卡免费视频| 久久午夜免费电影| 激情亚洲综合在线| 精品久久久久久综合日本欧美| 亚洲成人在线观看视频| 欧美写真视频网站| 亚洲成av人在线观看| 欧美最猛性xxxxx直播| 亚洲男人都懂的| 色综合久久久久综合体| 亚洲三级小视频| 91免费看视频| 亚洲免费三区一区二区| 91亚洲国产成人精品一区二区三| 国产精品久久久久永久免费观看| 成人妖精视频yjsp地址| 国产精品久久久久久久久免费桃花| 国产98色在线|日韩| 中文字幕av免费专区久久| 成人小视频免费在线观看| 国产精品久久久久9999吃药| 成人av片在线观看| 亚洲精品一卡二卡| 欧美精品视频www在线观看| 日韩高清一区在线| 欧美成人一区二区| 国产成人av网站| 亚洲日本成人在线观看| 欧美日韩一区二区欧美激情| 久久se精品一区二区| 欧美精品一区二区三区蜜桃 | 97久久精品人人做人人爽50路 | 91啦中文在线观看| 亚洲大片免费看| 精品久久五月天| 国产aⅴ综合色| 一区二区三区在线观看国产| 日韩女优av电影| 国精产品一区一区三区mba视频 | 日本久久一区二区| 日日摸夜夜添夜夜添国产精品| 日韩视频在线永久播放| 国产成人精品免费视频网站| 一二三四区精品视频| 欧美tickle裸体挠脚心vk| 91尤物视频在线观看| 日本不卡一二三| 亚洲欧洲在线观看av| 91超碰这里只有精品国产| 国产风韵犹存在线视精品| 亚洲高清在线视频| 久久看人人爽人人| 欧美日韩一区在线| 国产精品白丝av| 亚洲电影在线播放| 中文字幕一区二区三区精华液| 在线91免费看| 在线观看中文字幕不卡| 国产精品99久久久久久似苏梦涵| 亚洲最大成人综合| 中国色在线观看另类| 欧美一区二区人人喊爽| 99久久精品国产精品久久| 久久国产婷婷国产香蕉| 亚洲精品菠萝久久久久久久| 精品国精品国产| 欧美日韩免费观看一区三区| 成人99免费视频| 国产在线视频精品一区| 日韩福利电影在线观看| 亚洲最大色网站| 亚洲欧美一区二区久久| 国产色91在线| 精品国产91亚洲一区二区三区婷婷| 欧美午夜影院一区| 日本高清无吗v一区| 成人福利视频在线| 国产成人夜色高潮福利影视| 麻豆视频观看网址久久| 婷婷久久综合九色综合伊人色| 亚洲欧美国产毛片在线| 国产精品卡一卡二卡三| 国产女人水真多18毛片18精品视频| 欧美精品三级日韩久久| 欧美熟乱第一页| 欧洲av一区二区嗯嗯嗯啊| 色香蕉成人二区免费| 不卡一区在线观看| 在线亚洲欧美专区二区| 99免费精品在线观看| www.视频一区| 99久久久免费精品国产一区二区| 国产成人丝袜美腿| 风间由美一区二区三区在线观看 | 不卡视频在线观看| 99vv1com这只有精品| 成人性生交大片免费看中文网站| 精品在线免费视频| 国产一区二区视频在线播放| 国产成人在线网站| eeuss影院一区二区三区| 99久久精品免费| 91国偷自产一区二区三区观看| 在线免费精品视频| 欧美乱妇15p| 欧美一级搡bbbb搡bbbb| 精品久久人人做人人爱| 国产女主播视频一区二区| 亚洲四区在线观看| 亚洲制服丝袜一区| 日韩av一二三| 国产成人精品三级| 色成年激情久久综合| 91麻豆精品久久久久蜜臀| 亚洲精品一区二区三区在线观看| 欧美高清在线视频| 亚洲在线一区二区三区| 久久精品理论片| 高清beeg欧美| 欧美性高清videossexo| 精品久久久久久最新网址| 成人免费一区二区三区视频| 亚洲综合另类小说| 乱中年女人伦av一区二区| caoporm超碰国产精品| 欧美一区中文字幕| 亚洲国产精品激情在线观看 | 亚洲色图色小说| 日本大胆欧美人术艺术动态| 国产成人精品网址| 欧美色网一区二区| 国产色产综合产在线视频| 亚洲丰满少妇videoshd| 国产在线播放一区三区四| 99精品偷自拍| 26uuu亚洲| 亚洲大片一区二区三区| 国产乱色国产精品免费视频| 色哟哟在线观看一区二区三区| 日韩一区二区三区高清免费看看| 亚洲国产精品99久久久久久久久| 亚洲综合色区另类av| 成人午夜短视频| 欧美一区二区三区视频免费播放 | 久久综合九色综合97_久久久| 1区2区3区国产精品| 精品一区二区三区在线观看| 色吊一区二区三区| 国产三级精品三级| 久久精品99国产精品| 在线看国产日韩| 中文字幕中文在线不卡住| 久久 天天综合| 欧美性色黄大片| 一区二区三区在线高清| 风间由美一区二区av101| 精品蜜桃在线看| 日韩成人一级片| 色www精品视频在线观看| 国产精品久久久久7777按摩| 青青草视频一区| 欧美伦理影视网| 亚洲一区二区黄色| 色综合欧美在线视频区| ●精品国产综合乱码久久久久| 国产精品996| 久久伊人中文字幕| 精品伊人久久久久7777人| 欧美久久婷婷综合色| 性久久久久久久久久久久| 色婷婷亚洲精品| 亚洲精品第一国产综合野| 91在线视频18| 亚洲人成网站在线| 91在线观看高清| 亚洲欧洲日本在线| 94-欧美-setu| 亚洲在线观看免费| 欧美日韩成人激情| 日本欧美一区二区三区乱码| 9191久久久久久久久久久| 日产国产欧美视频一区精品|