/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | dldump.c | 49 int fd, const char *opath) in cleanup() argument 71 if (opath) in cleanup() 72 (void) unlink(opath); in cleanup() 145 rt_dldump(Rt_map *lmp, const char *opath, int flags, Addr addr) in rt_dldump() argument 253 if ((fd = open(opath, (O_RDWR | O_CREAT | O_TRUNC), 0777)) == -1) { in rt_dldump() 255 eprintf(lml, ERR_FATAL, MSG_INTL(MSG_SYS_OPEN), opath, in rt_dldump() 261 eprintf(lml, ERR_ELF, MSG_ORIG(MSG_ELF_BEGIN), opath); in rt_dldump() 262 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump() 273 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump() 314 cleanup(ielf, oelf, melf, icache, mcache, fd, opath); in rt_dldump() [all …]
|
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/ |
H A D | prom_fio.c | 39 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 D | paths.c | 829 is_path_secure(char *opath, Rt_map *clmp, uint_t info, uint_t flags) in is_path_secure() argument 853 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() 913 if (((info & LA_SER_LIBPATH) == 0) && (*opath == '/') && in is_path_secure() 927 else if (pnavl_recorded(&spavl, opath, 0, NULL)) { in is_path_secure() 928 DBG_CALL(Dbg_libs_insecure(lml, opath, 1)); in is_path_secure() 932 npath = (char *)opath; in is_path_secure() [all …]
|
H A D | dlfcns.c | 1653 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 D | prom_io.c | 38 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 D | prom_node.c | 215 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 D | support.c | 168 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 D | files.c | 3453 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 D | partition.c | 63 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 D | drive.c | 344 static int get_attrs(disk_t *diskp, int fd, char *opath, 417 char opath[MAXPATHLEN]; in drive_get_attributes() local 424 opath[0] = 0; in drive_get_attributes() 425 fd = drive_open_disk(dp->p.disk, opath, sizeof (opath)); in drive_get_attributes() 427 if ((*errp = get_attrs(dp->p.disk, fd, opath, attrs)) != 0) { in drive_get_attributes() 636 drive_open_disk(disk_t *diskp, char *opath, int len) in drive_open_disk() argument 643 if (opath != NULL) { in drive_open_disk() 644 (void) strlcpy(opath, devpath, len); in drive_open_disk() 865 get_attrs(disk_t *diskp, int fd, char *opath, nvlist_t *attrs) in get_attrs() argument 954 if (strlen(opath) > 0) { in get_attrs() [all …]
|
H A D | disks_private.h | 191 int drive_open_disk(disk_t *diskp, char *opath, int len);
|
/illumos-gate/usr/src/uts/common/exec/shbin/ |
H A D | shbin.c | 172 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 D | libs.c | 30 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 D | dlfcns.c | 124 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 D | java.c | 99 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 D | dump.c | 66 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/sgs/crle/common/ |
H A D | inspect.c | 506 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 D | intp.c | 200 char *opath; in intpexec() local 254 opath = args->pathname; in intpexec() 296 args->pathname = opath; in intpexec()
|
/illumos-gate/usr/src/cmd/diskinfo/ |
H A D | diskinfo.c | 283 char *vid, *pid, *serial, *opath, *ctype, *pctype, *c; in enumerate_disks() local 313 vid = pid = opath = "-"; in enumerate_disks() 321 nvlist_query_string(dattrs, DM_OPATH, &opath); in enumerate_disks() 357 if ((c = strrchr(opath, '/')) != NULL) in enumerate_disks() 360 (void) strlcpy(device, opath, sizeof (device)); in enumerate_disks()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | path.c | 1006 const char *opath; in path_exec() local 1032 opath = stakfreeze(1)+PATH_OFFSET; in path_exec() 1035 opath = arg0; in path_exec() 1036 path_spawn(shp,opath,argv,envp,libpath,0); in path_exec() 1049 pid_t path_spawn(Shell_t *shp,const char *opath,register char **argv, char **envp, Pathcomp_t *libp… in path_spawn() argument 1063 stakputs(opath); in path_spawn() 1064 opath = stakfreeze(1)+PATH_OFFSET+pidsize; in path_spawn() 1074 stakputs(opath); in path_spawn() 1140 if(!opath) in path_spawn() 1141 opath = stakptr(PATH_OFFSET); in path_spawn() [all …]
|
/illumos-gate/usr/src/lib/libdevice/ |
H A D | devctl.c | 54 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 D | pcidr.c | 358 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 D | dt_cc.c | 1809 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 D | queue.c | 7796 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));
|