pike.git / src / main.c

version» Context lines:

pike.git/src/main.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: main.c,v 1.94 2000/07/28 17:16:55 hubbe Exp $"); + RCSID("$Id: main.c,v 1.95 2000/08/06 06:16:30 hubbe Exp $");   #include "fdlib.h"   #include "backend.h"   #include "module.h"   #include "object.h"   #include "language.h"   #include "lex.h"   #include "pike_types.h"   #include "builtin_functions.h"   #include "array.h"   #include "stralloc.h"
pike.git/src/main.c:440: Inside #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_STACK), #if defined(HAVE_PTHREAD_INITIAL_THREAD_BOS) and #if defined(HAVE_DLOPEN) && defined(HAVE_DLFCN_H)
   */    {    char ** bos_location;    void *handle;    if((handle=dlopen(0, RTLD_LAZY)))    {    bos_location=dlsym(handle,"__pthread_initial_thread_bos");    dlclose(handle);       if(bos_location && *bos_location && -  (*bos_location - stack_top) *STACK_DIRECTION < 0) -  stack_top=*bos_location; +  (*bos_location - Pike_interpreter.stack_top) *STACK_DIRECTION < 0) +  Pike_interpreter.stack_top=*bos_location;    }    }   #else       {    extern char * __pthread_initial_thread_bos;    /* Linux glibc threads are limited to a 4 Mb stack    * __pthread_initial_thread_bos is the actual limit    */