pike.git / src / main.c

version» Context lines:

pike.git/src/main.c:16:   #include "interpret.h"   #include "error.h"   #include "macros.h"   #include "callback.h"   #include "lpc_signal.h"      #ifdef HAVE_LOCALE_H   #include <locale.h>   #endif    - #if TIME_WITH_SYS_TIME - # include <sys/time.h> - # include <time.h> - #else - # if HAVE_SYS_TIME_H - # include <sys/time.h> - # else - # if HAVE_TIME_H - # include <time.h> - # endif - # endif - #endif + #include "time_stuff.h"      #ifdef HAVE_SYS_RESOURCE_H   #include <sys/resource.h>   #endif      char *master_file;      int d_flag=0;   int c_flag=0;   int t_flag=0;   int a_flag=0;   int l_flag=0;      static struct callback *post_master_callbacks =0;    - struct callback *add_post_master_callback(callback call, + struct callback *add_post_master_callback(callback_func call,    void *arg, -  callback free_func) +  callback_func free_func)   { -  return add_to_callback_list(&post_master_callbacks, call, arg, free_func); +  return add_to_callback(&post_master_callbacks, call, arg, free_func);   }         void main(int argc, char **argv, char **env)   {    JMP_BUF back;    int e, num;    char *p;    struct array *a;   
pike.git/src/main.c:157: Inside #if defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE) and #if defined(RLIM_INFINITY)
   if(lim.rlim_max == RLIM_INFINITY)    lim.rlim_max=MAX_OPEN_FILEDESCRIPTORS;   #endif    tmp=MINIMUM(lim.rlim_max, MAX_OPEN_FILEDESCRIPTORS);    lim.rlim_cur=tmp;    setrlimit(RLIMIT_NOFILE, &lim);    }    }   #endif    -  current_time = get_current_time(); +  GETTIMEOFDAY(&current_time);       init_modules_efuns();    master();    call_callback(& post_master_callbacks);    free_callback(& post_master_callbacks);    init_modules_programs();       a=allocate_array_no_init(argc-e,0);    for(num=0;e<argc;e++)    {
pike.git/src/main.c:207:       backend();       push_int(0);    f_exit(1);   }         void init_main_efuns()   { +  init_interpreter();    init_lex();    init_types();    init_builtin_efuns();    init_signals();   }      void init_main_programs()   {   }         void exit_main()   {    void cleanup_added_efuns(); -  void free_all_call_outs(); +     void cleanup_lpc_types();    void cleanup_program();       automatic_fatal="uLPC is exiting: ";    cleanup_objects();    exit_signals();    exit_lex();    cleanup_interpret();    cleanup_added_efuns(); -  free_all_call_outs(); +     cleanup_lpc_types();    cleanup_shared_string_table();    cleanup_program(); -  +  exit_interpreter();   }