/titanic_41/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_main.c | 106 kmdb_modpath2lpath(const char *modpath) in kmdb_modpath2lpath() argument 117 if (strchr(modpath, ':') != NULL) { in kmdb_modpath2lpath() 122 lpres = lpsz = strlen(modpath) + MAXPATHLEN; in kmdb_modpath2lpath() 125 while (isspace(*modpath)) in kmdb_modpath2lpath() 126 modpath++; in kmdb_modpath2lpath() 128 for (; *modpath != '\0'; modpath = c) { in kmdb_modpath2lpath() 131 for (c = modpath; !isspace(*c) && *c != '\0'; c++) in kmdb_modpath2lpath() 134 sz = (c - modpath) + sizeof (suffix) - 1; in kmdb_modpath2lpath() 138 (void) strncpy(lpend, modpath, c - modpath); in kmdb_modpath2lpath() 139 (void) strcpy(lpend + (c - modpath), suffix); in kmdb_modpath2lpath()
|
/titanic_41/usr/src/cmd/modload/ |
H A D | modload.c | 52 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 D | drvload.sh | 28 modpath=$* 29 for drvpath in `echo $modpath`
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | ndd.c | 53 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 …]
|
/titanic_41/usr/src/cmd/mdb/common/kmdb/kctl/ |
H A D | kctl_dmod.c | 131 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()
|
/titanic_41/usr/src/cmd/sysdef/ |
H A D | sysdef.c | 538 char *modpath, *ls_cmd; in modules() local 548 if ((modpath = malloc(modpathlen + 1)) == NULL) { in modules() 552 if (modctl(MODGETPATH, NULL, modpath) != 0) { in modules() 561 curr = modpath; in modules() 578 curr = modpath; in modules() 724 free(modpath); in modules()
|
/titanic_41/usr/src/cmd/sgs/elfedit/common/ |
H A D | elfedit.c | 1786 for (i = 0; i < state.modpath.n; i++) { in elfedit_load_module() 1788 MSG_ORIG(MSG_FMT_BLDSOPATH), state.modpath.seg[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() 2020 elfedit_load_moddir(state.modpath.seg[i], 0, 0); in elfedit_load_modpath() 2820 state.modpath.n = 1; in establish_modpath() 2831 state.modpath.n++; in establish_modpath() 2841 state.modpath.seg = elfedit_malloc(MSG_INTL(MSG_ALLOC_PATHARR), in establish_modpath() 2842 sizeof (state.modpath.seg[0]) * state.modpath.n); in establish_modpath() 2845 for (len = 0; len < state.modpath.n; len++) { in establish_modpath() [all …]
|
H A D | _elfedit.h | 167 } modpath; member
|
H A D | sys.c | 644 for (i = 0; i < state.modpath.n; i++) in cmd_status() 646 state.modpath.seg[i]); in cmd_status()
|
H A D | elfedit.msg | 36 @ MSG_USAGE_BRIEF "usage: elfedit [-adrw] [-e cmd] [-L modpath] \ 42 @ MSG_USAGE_DETAIL4 "\t[-L modpath] Set module path\n"
|
/titanic_41/usr/src/cmd/syseventd/daemons/syseventd/ |
H A D | syseventd.c | 1241 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()
|
/titanic_41/usr/src/lib/librcm/ |
H A D | librcm.c | 916 char modpath[MAXPATHLEN]; in rcm_module_open() local 926 if (snprintf(modpath, MAXPATHLEN, "%s%s", dir_name, modname) in rcm_module_open() 933 if ((dlhandle = dlopen(modpath, RTLD_LAZY)) != NULL) { in rcm_module_open() 939 if (stat(modpath, &sbuf) == 0) { in rcm_module_open() 941 modpath); in rcm_module_open()
|
/titanic_41/usr/src/cmd/sgs/prof/common/ |
H A D | profv.c | 603 is_same_as_aout(char *modpath, struct stat *buf) in is_same_as_aout() argument 605 if (stat(modpath, buf) == -1) { in is_same_as_aout() 606 perror(modpath); in is_same_as_aout()
|
/titanic_41/usr/src/uts/common/fs/sockfs/ |
H A D | sockfilter.c | 1190 char *modpath; in sof_module_hold_by_name() local 1204 modpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in sof_module_hold_by_name() 1205 (void) snprintf(modpath, MAXPATHLEN, "%s/%s", SOF_MODPATH, in sof_module_hold_by_name() 1207 handle = ddi_modopen(modpath, KRTLD_MODE_FIRST, &error); in sof_module_hold_by_name() 1208 kmem_free(modpath, MAXPATHLEN); in sof_module_hold_by_name()
|
/titanic_41/usr/src/cmd/sgs/gprof/common/ |
H A D | gprof.c | 1045 is_same_as_aout(char *modpath, struct stat *buf) in is_same_as_aout() argument 1047 if (stat(modpath, buf) == -1) { in is_same_as_aout() 1049 whoami, modpath); in is_same_as_aout()
|
/titanic_41/usr/src/lib/libzonecfg/common/ |
H A D | libzonecfg.c | 942 char *modpath, *copy_mp, *curr_mp; /* modified path ptrs */ in zonecfg_set_zonepath() local 949 modpath = strdup(zonepath); in zonecfg_set_zonepath() 950 if (modpath == NULL) in zonecfg_set_zonepath() 953 for (copy_mp = curr_mp = modpath; *curr_mp != '\0'; curr_mp++) { in zonecfg_set_zonepath() 969 if (strncmp(modpath, zonecfg_root, len) != 0 || modpath[len] != '/') { in zonecfg_set_zonepath() 970 free(modpath); in zonecfg_set_zonepath() 973 curr_mp = modpath + len; in zonecfg_set_zonepath() 975 free(modpath); in zonecfg_set_zonepath()
|