pike.git / src / dynamic_load.c

version» Context lines:

pike.git/src/dynamic_load.c:1:   #ifndef TESTING   # include "global.h"   # include "interpret.h"   # include "constants.h"   # include "error.h"   # include "module.h"   # include "stralloc.h"   # include "pike_macros.h"   # include "main.h"    - RCSID("$Id: dynamic_load.c,v 1.37 2000/02/03 19:09:12 grubba Exp $"); + RCSID("$Id: dynamic_load.c,v 1.38 2000/02/17 00:32:42 hubbe Exp $");      #endif /* !TESTING */      #ifdef HAVE_ERRNO_H   #include <errno.h>   #endif /* HAVE_ERRNO_H */   #ifdef HAVE_STRING_H   #include <string.h>   #endif /* HAVE_STRING_H */   
pike.git/src/dynamic_load.c:248:    modfun init, exit;    struct module_list *new_module;    const char *module_name;       if(sp[-args].type != T_STRING)    error("Bad argument 1 to load_module()\n");       module_name = sp[-args].u.string->str;       module=dlopen(module_name, -  (d_flag?RTLD_NOW|RTLD_GLOBAL:RTLD_LAZY|RTLD_GLOBAL)); +  (d_flag ? RTLD_NOW : RTLD_LAZY) /* |RTLD_GLOBAL */ );       if(!module)    {    const char *err = dlerror();    if(!err) err = "Unknown reason";    if (sp[-args].u.string->len < 1024) {    error("load_module(\"%s\") failed: %s\n",    sp[-args].u.string->str, err);    } else {    error("load_module() failed: %s\n", err);