Home
last modified time | relevance | path

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

/onnv-gate/usr/src/cmd/svr4pkg/libinst/
H A Dfixpath.c181 char *npath = NULL; in fixpath() local
185 if ((npath = in fixpath()
192 npath_ptr = npath; in fixpath()
214 npath = strdup(path); in fixpath()
222 npath = strdup(get_inst_root()); in fixpath()
224 return (npath); in fixpath()
238 char *npath = NULL; in fixpath_dup() local
242 npath = pathalloc(strlen(path) + install_root_len + 1); in fixpath_dup()
244 npath_ptr = npath; in fixpath_dup()
266 npath = pathdup(path); in fixpath_dup()
[all …]
/onnv-gate/usr/src/cmd/fs.d/autofs/
H A Ddebug_alloc.c229 void *npath; in my_setnetpath() local
231 npath = setnetpath(); in my_setnetpath()
232 if (npath == NULL) in my_setnetpath()
235 add_alloc("SETNETPATH", npath, 0, file, line); in my_setnetpath()
237 return (npath); in my_setnetpath()
241 my_endnetpath(void *npath, const char *file, int line) in my_endnetpath() argument
245 res = endnetpath(npath); in my_endnetpath()
249 drop_alloc("SETNETPATH", npath, file, line); in my_endnetpath()
/onnv-gate/usr/src/tools/findunref/
H A Dfindunref.c51 unsigned int npath; member
442 if (pnsetp->npath == pnsetp->maxpaths) { in pnset_add()
451 pnsetp->paths[pnsetp->npath] = strdup(path); in pnset_add()
452 if (pnsetp->paths[pnsetp->npath] == NULL) in pnset_add()
455 pnsetp->npath++; in pnset_add()
467 for (i = 0; i < pnsetp->npath; i++) { in pnset_check()
480 while (pnsetp->npath-- != 0) in pnset_empty()
481 free(pnsetp->paths[pnsetp->npath]); in pnset_empty()
/onnv-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dlibs.c30 Dbg_libs_audit(Lm_list *lml, const char *opath, const char *npath) in Dbg_libs_audit() argument
35 if (npath == opath) in Dbg_libs_audit()
38 if (npath == NULL) in Dbg_libs_audit()
41 dbg_print(lml, MSG_INTL(MSG_LIB_ALTER), npath); in Dbg_libs_audit()
/onnv-gate/usr/src/cmd/sgs/libld/common/
H A Dsupport.c176 const char *npath = *opath; in ld_sup_open() local
208 (*flp->fl_fptr)(&npath, &nfile, &nfd, _flags, &nelf, ref, off, in ld_sup_open()
217 if ((npath != *opath) || (nfd != *ofd) || (nelf != *oelf)) { in ld_sup_open()
219 *opath, npath, *ofd, nfd, *oelf, nelf)); in ld_sup_open()
220 if (npath) in ld_sup_open()
221 *opath = npath; in ld_sup_open()
H A Dfiles.c3381 const char *npath = opath; in ld_process_open() local
3385 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_BEGIN), npath); in ld_process_open()
3402 ld_sup_open(ofl, &npath, &nfile, fd, flags, &elf, NULL, 0, in ld_process_open()
3408 return (ld_process_ifl(npath, nfile, *fd, elf, flags, ofl, rej, in ld_process_open()
/onnv-gate/usr/src/cmd/sgs/crle/common/
H A Dinspect.c510 char rpath[PATH_MAX], *npath, *nfile; in enterfile() local
521 npath = rpath; in enterfile()
522 if (nfile = strrchr(npath, '/')) in enterfile()
525 nfile = npath; in enterfile()
531 size = nfile - npath; in enterfile()
532 if (strncmp(opath, npath, size)) { in enterfile()
536 (void) strncpy(_npath, npath, size); in enterfile()
545 npath = (char *)opath; in enterfile()
552 if ((ent = enterino(crle, npath, status, flags)) == NULL) in enterfile()
559 if ((rent = get_hash(stbl, (Addr)npath, 0, in enterfile()
[all …]
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/File/Spec/
H A DVMS.pm47 my($npath) = unixify($path);
52 while ($npath =~ m#(.*?)\$\((\S+?)\)(.*)#gs) {
67 $npath = "$head$macro$tail";
70 if ($complex) { $npath =~ s#\cB(.*?)\cB#\${$1}#gs; }
71 $npath;
/onnv-gate/usr/src/cmd/sgs/libcrle/common/
H A Ddump.c69 load(const char *opath, const char *npath) in load() argument
106 dump(const char *opath, const char *npath) in dump() argument
108 (void) unlink(npath); in dump()
110 if (dldump(opath, npath, dlflag) != 0) { in dump()
/onnv-gate/usr/src/cmd/sgs/rtld/common/
H A Dpaths.c820 char buffer[PATH_MAX], *npath = NULL; in is_path_secure() local
866 npath = (char *)MSG_ORIG(MSG_STR_SLASH); in is_path_secure()
875 npath = buffer; in is_path_secure()
884 pnavl_recorded(&spavl, npath, 0, NULL)) { in is_path_secure()
885 DBG_CALL(Dbg_libs_insecure(lml, npath, 1)); in is_path_secure()
919 npath = (char *)opath; in is_path_secure()
925 if (npath) { in is_path_secure()
928 if (strcmp(npath, pdp->pd_pname) == 0) in is_path_secure()
/onnv-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_log.c1019 char npath[PATH_MAX]; in fmd_log_rotate() local
1022 (void) snprintf(npath, sizeof (npath), "%s+", lp->log_name); in fmd_log_rotate()
1027 if ((nlp = fmd_log_open("", npath, lp->log_tag)) == NULL) { in fmd_log_rotate()
1028 fmd_error(EFMD_LOG_ROTATE, "failed to open %s", npath); in fmd_log_rotate()
1033 (void) snprintf(npath, sizeof (npath), "%s.0-", lp->log_name); in fmd_log_rotate()
1049 if (rename(lp->log_name, npath) != 0) { in fmd_log_rotate()
/onnv-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb.c320 char **npath; in mdb_path_dup() local
326 npath = mdb_zalloc(sizeof (char *) * (i + 1), UM_SLEEP); in mdb_path_dup()
328 npath[0] = mdb_alloc(pathlen, UM_SLEEP); in mdb_path_dup()
329 bcopy(path[0], npath[0], pathlen); in mdb_path_dup()
333 npath[j] = npath[0] + (path[j] - path[0]); in mdb_path_dup()
334 npath[i] = NULL; in mdb_path_dup()
337 return ((const char **)npath); in mdb_path_dup()
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/ExtUtils/
H A DMM_VMS.pm2227 my($npath) = unixify($path);
2229 $npath =~ s{\0$}{};
2235 while ($npath =~ m#(.*?)\$\((\S+?)\)(.*)#gs) {
2250 $npath = "$head$macro$tail";
2253 if ($complex) { $npath =~ s#\cB(.*?)\cB#\${$1}#gs; }
2254 $npath;
/onnv-gate/usr/src/uts/common/syscall/
H A Dcorectl.c146 refstr_t *npath = refstr_alloc(path); in corectl_path_set() local
150 ccp->ccp_path = npath; in corectl_path_set()
/onnv-gate/usr/src/cmd/sendmail/src/
H A Dqueue.c7796 char npath[MAXPATHLEN]; local
7811 (void) sm_strlcpy(npath, queuename(new, DATAFL_LETTER), sizeof(npath));
7839 if (link(opath, npath) == 0)
7842 SYNC_DIR(npath, true);
7856 (void) sm_strlcpy(npath, queuename(new, DATAFL_LETTER), sizeof(npath));
7857 if (link(opath, npath) == 0)
7860 SYNC_DIR(npath, true);
7868 opath, npath, sm_errstring(errno));