Home
last modified time | relevance | path

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

/illumos-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
244 npath_ptr = npath; in fixpath_dup()
266 npath = pathdup(path); in fixpath_dup()
274 npath = pathdup(get_inst_root()); in fixpath_dup()
[all …]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Ddebug_alloc.c227 void *npath; in my_setnetpath() local
229 npath = setnetpath(); in my_setnetpath()
230 if (npath == NULL) in my_setnetpath()
233 add_alloc("SETNETPATH", npath, 0, file, line); in my_setnetpath()
235 return (npath); in my_setnetpath()
239 my_endnetpath(void *npath, const char *file, int line) in my_endnetpath() argument
243 res = endnetpath(npath); in my_endnetpath()
247 drop_alloc("SETNETPATH", npath, file, line); in my_endnetpath()
/illumos-gate/usr/src/tools/findunref/
H A Dfindunref.c55 unsigned int npath; member
508 if (pnsetp->npath == pnsetp->maxpaths) { in pnset_add()
517 pnsetp->paths[pnsetp->npath] = strdup(path); in pnset_add()
518 if (pnsetp->paths[pnsetp->npath] == NULL) in pnset_add()
521 pnsetp->npath++; in pnset_add()
533 for (i = 0; i < pnsetp->npath; i++) { in pnset_check()
546 while (pnsetp->npath-- != 0) in pnset_empty()
547 free(pnsetp->paths[pnsetp->npath]); in pnset_empty()
/illumos-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()
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dsupport.c175 const char *npath = *opath; in ld_sup_open() local
207 (*flp->fl_fptr)(&npath, &nfile, &nfd, _flags, &nelf, ref, off, in ld_sup_open()
216 if ((npath != *opath) || (nfd != *ofd) || (nelf != *oelf)) { in ld_sup_open()
218 *opath, npath, *ofd, nfd, *oelf, nelf)); in ld_sup_open()
219 if (npath) in ld_sup_open()
220 *opath = npath; in ld_sup_open()
H A Dfiles.c3457 const char *npath = opath; in ld_process_open() local
3461 ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_BEGIN), npath); in ld_process_open()
3478 ld_sup_open(ofl, &npath, &nfile, fd, flags, &elf, NULL, 0, in ld_process_open()
3484 return (ld_process_ifl(npath, nfile, *fd, elf, flags, ofl, rej, in ld_process_open()
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Dinspect.c513 char rpath[PATH_MAX], *npath, *nfile; in enterfile() local
524 npath = rpath; in enterfile()
525 nfile = strrchr(npath, '/'); in enterfile()
529 nfile = npath; in enterfile()
535 size = nfile - npath; in enterfile()
536 if (strncmp(opath, npath, size)) { in enterfile()
540 (void) strncpy(_npath, npath, size); in enterfile()
549 npath = (char *)opath; in enterfile()
556 if ((ent = enterino(crle, npath, status, flags)) == NULL) in enterfile()
563 if ((rent = get_hash(stbl, (Addr)npath, 0, in enterfile()
[all …]
/illumos-gate/usr/src/cmd/sgs/libcrle/common/
H A Ddump.c66 load(const char *opath, const char *npath) in load() argument
103 dump(const char *opath, const char *npath) in dump() argument
105 (void) unlink(npath); in dump()
107 if (dldump(opath, npath, dlflag) != 0) { in dump()
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dpaths.c833 char buffer[PATH_MAX], *npath = NULL; in is_path_secure() local
879 npath = (char *)MSG_ORIG(MSG_STR_SLASH); in is_path_secure()
888 npath = buffer; in is_path_secure()
897 pnavl_recorded(&spavl, npath, 0, NULL)) { in is_path_secure()
898 DBG_CALL(Dbg_libs_insecure(lml, npath, 1)); in is_path_secure()
932 npath = (char *)opath; in is_path_secure()
938 if (npath) { in is_path_secure()
941 if (strcmp(npath, pdp->pd_pname) == 0) in is_path_secure()
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_log.c1017 char npath[PATH_MAX]; in fmd_log_rotate() local
1020 (void) snprintf(npath, sizeof (npath), "%s+", lp->log_name); in fmd_log_rotate()
1025 if ((nlp = fmd_log_open("", npath, lp->log_tag)) == NULL) { in fmd_log_rotate()
1026 fmd_error(EFMD_LOG_ROTATE, "failed to open %s", npath); in fmd_log_rotate()
1031 (void) snprintf(npath, sizeof (npath), "%s.0-", lp->log_name); in fmd_log_rotate()
1047 if (rename(lp->log_name, npath) != 0) { in fmd_log_rotate()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb.c326 char **npath; in mdb_path_dup() local
332 npath = mdb_zalloc(sizeof (char *) * (i + 1), UM_SLEEP); in mdb_path_dup()
334 npath[0] = mdb_alloc(pathlen, UM_SLEEP); in mdb_path_dup()
335 bcopy(path[0], npath[0], pathlen); in mdb_path_dup()
339 npath[j] = npath[0] + (path[j] - path[0]); in mdb_path_dup()
340 npath[i] = NULL; in mdb_path_dup()
343 return ((const char **)npath); in mdb_path_dup()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dqueue.c7797 char npath[MAXPATHLEN]; local
7812 (void) sm_strlcpy(npath, queuename(new, DATAFL_LETTER), sizeof(npath));
7840 if (link(opath, npath) == 0)
7843 SYNC_DIR(npath, true);
7857 (void) sm_strlcpy(npath, queuename(new, DATAFL_LETTER), sizeof(npath));
7858 if (link(opath, npath) == 0)
7861 SYNC_DIR(npath, true);
7869 opath, npath, sm_errstring(errno));