Home
last modified time | relevance | path

Searched refs:modpath (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_main.c104 kmdb_modpath2lpath(const char *modpath) in kmdb_modpath2lpath() argument
115 if (strchr(modpath, ':') != NULL) { in kmdb_modpath2lpath()
120 lpres = lpsz = strlen(modpath) + MAXPATHLEN; in kmdb_modpath2lpath()
123 while (isspace(*modpath)) in kmdb_modpath2lpath()
124 modpath++; in kmdb_modpath2lpath()
126 for (; *modpath != '\0'; modpath = c) { in kmdb_modpath2lpath()
129 for (c = modpath; !isspace(*c) && *c != '\0'; c++) in kmdb_modpath2lpath()
132 sz = (c - modpath) + sizeof (suffix) - 1; in kmdb_modpath2lpath()
136 (void) strncpy(lpend, modpath, c - modpath); in kmdb_modpath2lpath()
137 (void) strcpy(lpend + (c - modpath), suffix); in kmdb_modpath2lpath()
/illumos-gate/usr/src/cmd/modload/
H A Dmodload.c52 char *modpath = NULL; in main() local
81 modpath = argv[optind]; in main()
83 if (modpath == NULL) { in main()
87 if (!use_path && modpath[0] != '/') { in main()
88 if (getcwd(path, 1023 - strlen(modpath)) == NULL) in main()
91 (void) strcat(path, modpath); in main()
93 (void) strcpy(path, modpath); in main()
H A Ddrvload.sh28 modpath=$*
29 for drvpath in `echo $modpath`
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dndd.c53 static char modpath[128]; /* path to module */ variable
251 if ((mod = strrchr(modpath, '/')) == NULL) in do_ipadm_getset()
252 mod = modpath; in do_ipadm_getset()
421 (void) strlcpy(modpath, cp, sizeof (modpath)); in main()
601 len = get_value("module to query ? ", modpath, in open_device()
602 sizeof (modpath)); in open_device()
604 (len == 2 && (modpath[0] == 'q' || modpath[0] == 'Q'))) in open_device()
607 mod = strrchr(modpath, '/'); in open_device()
611 mod = modpath; in open_device()
613 if ((fd = open(modpath, O_RDWR)) == -1) { in open_device()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/kmdb/kctl/
H A Dkctl_dmod.c131 char modpath[MAXPATHLEN]; in kctl_dmod_load() local
154 if (!kctl_find_module(dlr->dlr_fname, modpath, sizeof (modpath))) { in kctl_dmod_load()
162 modp->mod_filename = kctl_strdup(modpath); in kctl_dmod_load()
203 modpath, ctf_errmsg(rc)); in kctl_dmod_load()
207 kctl_dprintf("loaded dmod %s at %p", modpath, modp); in kctl_dmod_load()
/illumos-gate/usr/src/cmd/sysdef/
H A Dsysdef.c536 char *modpath, *ls_cmd; in modules() local
546 if ((modpath = malloc(modpathlen + 1)) == NULL) { in modules()
550 if (modctl(MODGETPATH, NULL, modpath) != 0) { in modules()
559 curr = modpath; in modules()
576 curr = modpath; in modules()
722 free(modpath); in modules()
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit.c1786 for (i = 0; i < state.modpath.n; i++) { in elfedit_load_module()
1792 state.modpath.seg[i], name, NULL, NULL); in elfedit_load_module()
2019 for (i = 0; i < state.modpath.n; i++) in elfedit_load_modpath()
2823 state.modpath.n = 1; in establish_modpath()
2834 state.modpath.n++; in establish_modpath()
2845 sizeof (state.modpath.seg[0]) * state.modpath.n); in establish_modpath()
2848 for (len = 0; len < state.modpath.n; len++) { in establish_modpath()
2853 state.modpath.seg[len] = src; in establish_modpath()
3443 const char *modpath = NULL; in main() local
3476 modpath = optarg; in main()
[all …]
H A D_elfedit.h167 } modpath; member
H A Dsys.c643 for (i = 0; i < state.modpath.n; i++) in cmd_status()
645 state.modpath.seg[i]); in cmd_status()
H A Delfedit.msg36 @ MSG_USAGE_BRIEF "usage: elfedit [-adrw] [-e cmd] [-L modpath] \
42 @ MSG_USAGE_DETAIL4 "\t[-L modpath] Set module path\n"
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventd/
H A Dsyseventd.c1241 char *tmp, modpath[MAXPATHLEN]; in load_modules() local
1248 if (snprintf(modpath, sizeof (modpath), "%s%s", in load_modules()
1249 dirname, entp->d_name) >= sizeof (modpath)) { in load_modules()
1250 syseventd_err_print(INIT_PATH_ERR, modpath); in load_modules()
1253 if ((dlh = dlopen(modpath, RTLD_LAZY)) == NULL) { in load_modules()
1255 modpath, dlerror()); in load_modules()
1259 modpath, dlerror()); in load_modules()
/illumos-gate/usr/src/lib/librcm/
H A Dlibrcm.c913 char modpath[MAXPATHLEN]; in rcm_module_open() local
923 if (snprintf(modpath, MAXPATHLEN, "%s%s", dir_name, modname) in rcm_module_open()
930 if ((dlhandle = dlopen(modpath, RTLD_LAZY)) != NULL) { in rcm_module_open()
936 if (stat(modpath, &sbuf) == 0) { in rcm_module_open()
938 modpath); in rcm_module_open()
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockfilter.c1191 char *modpath; in sof_module_hold_by_name() local
1205 modpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in sof_module_hold_by_name()
1206 (void) snprintf(modpath, MAXPATHLEN, "%s/%s", SOF_MODPATH, in sof_module_hold_by_name()
1208 handle = ddi_modopen(modpath, KRTLD_MODE_FIRST, &error); in sof_module_hold_by_name()
1209 kmem_free(modpath, MAXPATHLEN); in sof_module_hold_by_name()
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dgprof.c1082 is_same_as_aout(char *modpath, struct stat *buf) in is_same_as_aout() argument
1084 if (stat(modpath, buf) == -1) { in is_same_as_aout()
1086 whoami, modpath); in is_same_as_aout()
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c950 char *modpath, *copy_mp, *curr_mp; /* modified path ptrs */ in zonecfg_set_zonepath() local
957 modpath = strdup(zonepath); in zonecfg_set_zonepath()
958 if (modpath == NULL) in zonecfg_set_zonepath()
961 for (copy_mp = curr_mp = modpath; *curr_mp != '\0'; curr_mp++) { in zonecfg_set_zonepath()
977 if (strncmp(modpath, zonecfg_root, len) != 0 || modpath[len] != '/') { in zonecfg_set_zonepath()
978 free(modpath); in zonecfg_set_zonepath()
981 curr_mp = modpath + len; in zonecfg_set_zonepath()
983 free(modpath); in zonecfg_set_zonepath()