Home
last modified time | relevance | path

Searched refs:opath (Results 1 – 24 of 24) sorted by relevance

/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Ddldump.c49 int fd, const char *opath) in cleanup() argument
71 if (opath) in cleanup()
72 (void) unlink(opath); in cleanup()
262 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
273 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump()
386 fd, opath); in rt_dldump()
471 fd, opath); in rt_dldump()
651 MSG_ORIG(MSG_ELF_GETSCN), opath); in rt_dldump()
653 mcache, fd, opath); in rt_dldump()
713 icache, mcache, fd, opath); in rt_dldump()
[all …]
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/
H A Dprom_fio.c39 char *opath = NULL; in prom_fopen() local
42 opath = path; in prom_fopen()
43 len = prom_strlen(opath) + 1; /* include terminating NUL */ in prom_fopen()
47 (void) prom_strcpy(path, opath); in prom_fopen()
66 if (opath != NULL) in prom_fopen()
86 char *opath = NULL; in prom_volopen() local
89 opath = path; in prom_volopen()
90 len = prom_strlen(opath) + 1; /* include terminating NUL */ in prom_volopen()
94 (void) prom_strcpy(path, opath); in prom_volopen()
113 if (opath != NULL) in prom_volopen()
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dpaths.c853 str = strrchr(opath, '/'); in is_path_secure()
869 ((*opath == '/') && (str != opath) && in is_path_secure()
878 if (str == opath) in is_path_secure()
883 if ((size = str - opath) >= PATH_MAX) in is_path_secure()
886 (void) strncpy(buffer, opath, size); in is_path_secure()
932 npath = (char *)opath; in is_path_secure()
955 opath); in is_path_secure()
958 opath); in is_path_secure()
974 opath, NAME(clmp)); in is_path_secure()
980 opath); in is_path_secure()
[all …]
H A Ddlfcns.c1653 dldump_core(Rt_map *clmp, Rt_map *lmp, const char *ipath, const char *opath, in dldump_core() argument
1662 if ((opath == NULL) || (opath[0] == '\0') || in dldump_core()
1709 return (rt_dldump(lmp, opath, flags, addr)); in dldump_core()
1718 dldump(const char *ipath, const char *opath, int flags) in dldump() argument
1734 DBG_CALL(Dbg_dl_dldump(clmp, ipath, opath, flags)); in dldump()
1736 error = dldump_core(clmp, lmp, ipath, opath, flags); in dldump()
/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_io.c38 char *opath = NULL; in prom_open() local
42 opath = path; in prom_open()
43 len = prom_strlen(opath) + 1; /* include terminating NUL */ in prom_open()
47 (void) prom_strcpy(path, opath); in prom_open()
65 if (opath != NULL) in prom_open()
H A Dprom_node.c215 char *opath = NULL; in prom_finddevice() local
219 opath = path; in prom_finddevice()
220 len = prom_strlen(opath) + 1; /* include terminating NUL */ in prom_finddevice()
225 (void) prom_strcpy(path, opath); in prom_finddevice()
242 if (opath != NULL) in prom_finddevice()
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dsupport.c168 ld_sup_open(Ofl_desc *ofl, const char **opath, const char **ofile, int *ofd, in ld_sup_open() argument
175 const char *npath = *opath; in ld_sup_open()
206 support[LDS_OPEN].sup_name, LDS_OPEN, *opath)); 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()
220 *opath = npath; in ld_sup_open()
H A Dfiles.c3453 ld_process_open(const char *opath, const char *ofile, int *fd, Ofl_desc *ofl, in ld_process_open() argument
3457 const char *npath = opath; in ld_process_open()
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dpartition.c63 static int get_parts(disk_t *disk, struct ipart *iparts, char *opath,
65 static int open_disk(disk_t *diskp, char *opath, int len);
549 get_parts(disk_t *disk, struct ipart *iparts, char *opath, int opath_len) in get_parts() argument
567 if ((fd = open_disk(disk, opath, opath_len)) < 0) { in get_parts()
789 open_disk(disk_t *diskp, char *opath, int len) in open_disk() argument
796 if (opath != NULL) { in open_disk()
797 (void) strlcpy(opath, diskp->aliases->devpaths->devpath, len); in open_disk()
824 if (opath != NULL) { in open_disk()
825 (void) strlcpy(opath, part_dev, len); in open_disk()
H A Ddrive.c343 static int get_attrs(disk_t *diskp, int fd, char *opath,
416 char opath[MAXPATHLEN]; in drive_get_attributes() local
423 opath[0] = 0; in drive_get_attributes()
424 fd = drive_open_disk(dp->p.disk, opath, sizeof (opath)); in drive_get_attributes()
426 if ((*errp = get_attrs(dp->p.disk, fd, opath, attrs)) != 0) { in drive_get_attributes()
634 drive_open_disk(disk_t *diskp, char *opath, int len) in drive_open_disk() argument
640 if (opath != NULL) { in drive_open_disk()
641 (void) strlcpy(opath, diskp->aliases->devpaths->devpath, len); in drive_open_disk()
859 get_attrs(disk_t *diskp, int fd, char *opath, nvlist_t *attrs) in get_attrs() argument
938 if (strlen(opath) > 0) { in get_attrs()
[all …]
H A Ddisks_private.h189 int drive_open_disk(disk_t *diskp, char *opath, int len);
/illumos-gate/usr/src/uts/common/exec/shbin/
H A Dshbin.c172 char *opath; in shbinexec() local
227 opath = args->pathname; in shbinexec()
260 args->pathname = opath; in shbinexec()
/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()
39 dbg_print(lml, MSG_INTL(MSG_LIB_SKIP), opath); in Dbg_libs_audit()
H A Ddlfcns.c124 Dbg_dl_dldump(Rt_map *clmp, const char *ipath, const char *opath, int flags) in Dbg_dl_dldump() argument
134 opath ? opath : MSG_INTL(MSG_STR_NULL), in Dbg_dl_dldump()
/illumos-gate/usr/src/uts/common/exec/java/
H A Djava.c99 char *opath; in javaexec() local
160 opath = args->pathname; in javaexec()
176 args->pathname = opath; in javaexec()
/illumos-gate/usr/src/cmd/sgs/libcrle/common/
H A Ddump.c66 load(const char *opath, const char *npath) in load() argument
72 if ((ghp = (Grp_hdl *)dlmopen(LM_ID_BASE, opath, in load()
103 dump(const char *opath, const char *npath) in dump() argument
107 if (dldump(opath, npath, dlflag) != 0) { in dump()
/illumos-gate/usr/src/cmd/diskinfo/
H A Ddiskinfo.c282 char *vid, *pid, *opath, *ctype, *pctype, *c; in enumerate_disks() local
312 vid = pid = opath = "-"; in enumerate_disks()
320 nvlist_query_string(dattrs, DM_OPATH, &opath); in enumerate_disks()
355 if ((c = strrchr(opath, '/')) != NULL) in enumerate_disks()
358 (void) strlcpy(device, opath, sizeof (device)); in enumerate_disks()
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Dinspect.c506 enterfile(Crle_desc *crle, const char *opath, const char *ofile, Half flags, in enterfile() argument
520 if (realpath(opath, rpath) == NULL) in enterfile()
523 if (strcmp(opath, rpath)) { in enterfile()
536 if (strncmp(opath, npath, size)) { in enterfile()
549 npath = (char *)opath; in enterfile()
611 if ((ent = enterino(crle, opath, status, 0)) == NULL) in enterfile()
618 if ((rent = get_hash(stbl, (Addr)opath, 0, in enterfile()
622 if (_enterfile(crle, opath, 0, rent, 0, odent, obj) == 0) in enterfile()
631 off = ofile - opath; in enterfile()
/illumos-gate/usr/src/uts/common/exec/intp/
H A Dintp.c200 char *opath; in intpexec() local
254 opath = args->pathname; in intpexec()
296 args->pathname = opath; in intpexec()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dpath.c1006 const char *opath; in path_exec() local
1032 opath = stakfreeze(1)+PATH_OFFSET; in path_exec()
1035 opath = arg0; in path_exec()
1063 stakputs(opath); in path_spawn()
1074 stakputs(opath); in path_spawn()
1140 if(!opath) in path_spawn()
1141 opath = stakptr(PATH_OFFSET); in path_spawn()
1147 path = path_relative(shp,opath); in path_spawn()
1149 if(*path!='/' && path!=opath) in path_spawn()
1169 if(*path=='.' && path!=opath) in path_spawn()
[all …]
/illumos-gate/usr/src/lib/libdevice/
H A Ddevctl.c54 char *opath; /* copy of the original path */ member
88 if (DCP(hdl)->opath != NULL) in devctl_release()
89 free(DCP(hdl)->opath); in devctl_release()
249 if ((dcp->opath = strdup(path)) == NULL) { in dc_mkhndl()
1004 (void) strcat(devpath, DCP(dcp)->opath); in devctl_bus_dev_create()
1316 (void) snprintf(pathbuf, bufsz, "%s", DCP(dcp)->opath); in devctl_get_pathname()
/illumos-gate/usr/src/cmd/pcidr/
H A Dpcidr.c358 parse_path(char *const opath) in parse_path() argument
374 path = strdup(opath); in parse_path()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_cc.c1809 char ipath[20], opath[20]; /* big enough for /dev/fd/ + INT_MAX + \0 */ in dt_preproc() local
1845 (void) snprintf(opath, sizeof (opath), "/dev/fd/%d", fileno(ofp)); in dt_preproc()
1864 argv[argc++] = opath; in dt_preproc()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dqueue.c7796 char opath[MAXPATHLEN]; local
7811 (void) sm_strlcpy(opath, queuename(old, DATAFL_LETTER), sizeof(opath));
7819 syserr("@can't commit %s", opath);
7840 if (link(opath, npath) == 0)
7858 if (link(opath, npath) == 0)
7869 opath, npath, sm_errstring(errno));