Searched defs:modpath (Results 1 - 13 of 13) sorted by relevance

/illumos-gate/usr/src/cmd/modload/
H A Dmodload.c52 char *modpath = NULL; local
81 modpath = argv[optind];
83 if (modpath == NULL) {
84 (void) printf("modpath is null\n");
87 if (!use_path && modpath[0] != '/') {
88 if (getcwd(path, 1023 - strlen(modpath)) == NULL)
91 (void) strcat(path, modpath);
93 (void) strcpy(path, modpath);
/illumos-gate/usr/src/cmd/mdb/common/kmdb/kctl/
H A Dkctl_dmod.c131 char modpath[MAXPATHLEN]; local
154 if (!kctl_find_module(dlr->dlr_fname, modpath, sizeof (modpath))) {
162 modp->mod_filename = kctl_strdup(modpath);
203 modpath, ctf_errmsg(rc));
207 kctl_dprintf("loaded dmod %s at %p", modpath, modp);
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_main.c106 kmdb_modpath2lpath(const char *modpath) argument
117 if (strchr(modpath, ':') != NULL) {
122 lpres = lpsz = strlen(modpath) + MAXPATHLEN;
125 while (isspace(*modpath))
126 modpath++;
128 for (; *modpath != '\0'; modpath = c) {
131 for (c = modpath; !isspace(*c) && *c != '\0'; c++)
134 sz = (c - modpath) + sizeof (suffix) - 1;
138 (void) strncpy(lpend, modpath,
[all...]
/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)
252 mod = modpath;
421 (void) strlcpy(modpath, cp, sizeof (modpath));
601 len = get_value("module to query ? ", modpath,
602 sizeof (modpath));
604 (len == 2 && (modpath[0] == 'q' || modpath[0] == 'Q')))
607 mod = strrchr(modpath, '/');
[all...]
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A D_elfedit.h167 } modpath; member in struct:__anon1464
H A Delfedit.c1786 for (i = 0; i < state.modpath.n; i++) {
1788 MSG_ORIG(MSG_FMT_BLDSOPATH), state.modpath.seg[i],
1792 state.modpath.seg[i], name, NULL, NULL);
2019 for (i = 0; i < state.modpath.n; i++)
2020 elfedit_load_moddir(state.modpath.seg[i], 0, 0);
2741 * Establish the module search path: state.modpath
2754 * state.modpath has been filled in
2820 state.modpath.n = 1;
2831 state.modpath.n++;
2841 state.modpath
3440 const char *modpath = NULL; local
[all...]
/illumos-gate/usr/src/cmd/sgs/prof/common/
H A Dprofv.c603 is_same_as_aout(char *modpath, struct stat *buf) argument
605 if (stat(modpath, buf) == -1) {
606 perror(modpath);
/illumos-gate/usr/src/cmd/sysdef/
H A Dsysdef.c538 char *modpath, *ls_cmd; local
548 if ((modpath = malloc(modpathlen + 1)) == NULL) {
552 if (modctl(MODGETPATH, NULL, modpath) != 0) {
558 * Figure out number of directory entries in modpath.
561 curr = modpath;
578 curr = modpath;
724 free(modpath);
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventd/
H A Dsyseventd.c1241 char *tmp, modpath[MAXPATHLEN]; local
1248 if (snprintf(modpath, sizeof (modpath), "%s%s",
1249 dirname, entp->d_name) >= sizeof (modpath)) {
1250 syseventd_err_print(INIT_PATH_ERR, modpath);
1253 if ((dlh = dlopen(modpath, RTLD_LAZY)) == NULL) {
1255 modpath, dlerror());
1259 modpath, dlerror());
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockfilter.c1190 char *modpath; local
1204 modpath = kmem_alloc(MAXPATHLEN, KM_SLEEP);
1205 (void) snprintf(modpath, MAXPATHLEN, "%s/%s", SOF_MODPATH,
1207 handle = ddi_modopen(modpath, KRTLD_MODE_FIRST, &error);
1208 kmem_free(modpath, MAXPATHLEN);
/illumos-gate/usr/src/lib/librcm/
H A Dlibrcm.c913 char modpath[MAXPATHLEN]; local
923 if (snprintf(modpath, MAXPATHLEN, "%s%s", dir_name, modname)
930 if ((dlhandle = dlopen(modpath, RTLD_LAZY)) != NULL) {
936 if (stat(modpath, &sbuf) == 0) {
938 modpath);
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dgprof.c1045 is_same_as_aout(char *modpath, struct stat *buf) argument
1047 if (stat(modpath, buf) == -1) {
1049 whoami, modpath);
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c948 char *modpath, *copy_mp, *curr_mp; /* modified path ptrs */ local
955 modpath = strdup(zonepath);
956 if (modpath == NULL)
959 for (copy_mp = curr_mp = modpath; *curr_mp != '\0'; curr_mp++) {
975 if (strncmp(modpath, zonecfg_root, len) != 0 || modpath[len] != '/') {
976 free(modpath);
979 curr_mp = modpath + len;
981 free(modpath);

Completed in 121 milliseconds