Home
last modified time | relevance | path

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

/titanic_41/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 …]
/titanic_41/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()
/titanic_41/usr/src/tools/findunref/
H A Dfindunref.c51 unsigned int npath; member
504 if (pnsetp->npath == pnsetp->maxpaths) { in pnset_add()
513 pnsetp->paths[pnsetp->npath] = strdup(path); in pnset_add()
514 if (pnsetp->paths[pnsetp->npath] == NULL) in pnset_add()
517 pnsetp->npath++; in pnset_add()
529 for (i = 0; i < pnsetp->npath; i++) { in pnset_check()
542 while (pnsetp->npath-- != 0) in pnset_empty()
543 free(pnsetp->paths[pnsetp->npath]); in pnset_empty()
/titanic_41/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()
/titanic_41/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.c3400 const char *npath = opath; in ld_process_open() local
3404 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_BEGIN), npath); in ld_process_open()
3421 ld_sup_open(ofl, &npath, &nfile, fd, flags, &elf, NULL, 0, in ld_process_open()
3427 return (ld_process_ifl(npath, nfile, *fd, elf, flags, ofl, rej, in ld_process_open()
/titanic_41/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 …]
/titanic_41/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()
/titanic_41/usr/src/cmd/sgs/rtld/common/
H A Dpaths.c832 char buffer[PATH_MAX], *npath = NULL; in is_path_secure() local
878 npath = (char *)MSG_ORIG(MSG_STR_SLASH); in is_path_secure()
887 npath = buffer; in is_path_secure()
896 pnavl_recorded(&spavl, npath, 0, NULL)) { in is_path_secure()
897 DBG_CALL(Dbg_libs_insecure(lml, npath, 1)); in is_path_secure()
931 npath = (char *)opath; in is_path_secure()
937 if (npath) { in is_path_secure()
940 if (strcmp(npath, pdp->pd_pname) == 0) in is_path_secure()
/titanic_41/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()
/titanic_41/usr/src/cmd/mdb/common/mdb/
H A Dmdb.c325 char **npath; in mdb_path_dup() local
331 npath = mdb_zalloc(sizeof (char *) * (i + 1), UM_SLEEP); in mdb_path_dup()
333 npath[0] = mdb_alloc(pathlen, UM_SLEEP); in mdb_path_dup()
334 bcopy(path[0], npath[0], pathlen); in mdb_path_dup()
338 npath[j] = npath[0] + (path[j] - path[0]); in mdb_path_dup()
339 npath[i] = NULL; in mdb_path_dup()
342 return ((const char **)npath); in mdb_path_dup()
/titanic_41/usr/src/uts/common/syscall/
H A Dcorectl.c144 refstr_t *npath = refstr_alloc(path); in corectl_path_set() local
148 ccp->ccp_path = npath; in corectl_path_set()
/titanic_41/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));