Lines Matching refs:args

484   struct dl_init_args *args = closure;  in call_dl_init()  local
485 _dl_init (args->new, args->argc, args->argv, args->env); in call_dl_init()
491 struct dl_open_args *args = a; in dl_open_worker_begin() local
492 const char *file = args->file; in dl_open_worker_begin()
493 int mode = args->mode; in dl_open_worker_begin()
501 if (dst != NULL || args->nsid == __LM_ID_CALLER in dl_open_worker_begin()
504 const void *caller_dlopen = args->caller_dlopen; in dl_open_worker_begin()
515 if (args->nsid == __LM_ID_CALLER) in dl_open_worker_begin()
516 args->nsid = call_map->l_ns; in dl_open_worker_begin()
522 args->libc_already_loaded = GL(dl_ns)[args->nsid].libc_map != NULL; in dl_open_worker_begin()
525 args->original_global_scope_pending_adds in dl_open_worker_begin()
526 = GL (dl_ns)[args->nsid]._ns_global_scope_pending_adds; in dl_open_worker_begin()
530 _dl_debug_initialize (0, args->nsid); in dl_open_worker_begin()
534 args->map = new = _dl_map_object (call_map, file, lt_loaded, 0, in dl_open_worker_begin()
535 mode | __RTLD_CALLMAP, args->nsid); in dl_open_worker_begin()
581 assert (_dl_debug_update (args->nsid)->r_state == RT_CONSISTENT); in dl_open_worker_begin()
619 struct r_debug *r = _dl_debug_update (args->nsid); in dl_open_worker_begin()
622 LIBC_PROBE (map_complete, 3, args->nsid, r, new); in dl_open_worker_begin()
675 LIBC_PROBE (reloc_start, 2, args->nsid, r); in dl_open_worker_begin()
754 LIBC_PROBE (reloc_complete, 3, args->nsid, r, new); in dl_open_worker_begin()
760 if (!args->libc_already_loaded) in dl_open_worker_begin()
763 struct link_map *libc_map = GL(dl_ns)[args->nsid].libc_map; in dl_open_worker_begin()
767 args->worker_continue = true; in dl_open_worker_begin()
773 struct dl_open_args *args = a; in dl_open_worker() local
775 args->worker_continue = false; in dl_open_worker()
782 int err = _dl_catch_exception (&ex, dl_open_worker_begin, args); in dl_open_worker()
791 if (!args->worker_continue) in dl_open_worker()
794 int mode = args->mode; in dl_open_worker()
795 struct link_map *new = args->map; in dl_open_worker()
804 .argc = args->argc, in dl_open_worker()
805 .argv = args->argv, in dl_open_worker()
806 .env = args->env in dl_open_worker()
870 struct dl_open_args args; in _dl_open() local
871 args.file = file; in _dl_open()
872 args.mode = mode; in _dl_open()
873 args.caller_dlopen = caller_dlopen; in _dl_open()
874 args.map = NULL; in _dl_open()
875 args.nsid = nsid; in _dl_open()
878 args.argc = argc; in _dl_open()
879 args.argv = argv; in _dl_open()
880 args.env = env; in _dl_open()
883 int errcode = _dl_catch_exception (&exception, dl_open_worker, &args); in _dl_open()
899 if (args.nsid >= 0) in _dl_open()
900 GL (dl_ns)[args.nsid]._ns_global_scope_pending_adds in _dl_open()
901 = args.original_global_scope_pending_adds; in _dl_open()
908 if (!args.libc_already_loaded) in _dl_open()
909 GL(dl_ns)[args.nsid].libc_map = NULL; in _dl_open()
913 if (args.map) in _dl_open()
915 _dl_close_worker (args.map, true); in _dl_open()
929 assert (_dl_debug_update (args.nsid)->r_state == RT_CONSISTENT); in _dl_open()
934 return args.map; in _dl_open()