/titanic_44/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 …]
|
/titanic_44/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()
|
/titanic_44/usr/src/cmd/sgs/rtld/common/ |
H A D | paths.c | 828 is_path_secure(char *opath, Rt_map *clmp, uint_t info, uint_t flags) in is_path_secure() argument 852 str = strrchr(opath, '/'); in is_path_secure() 868 ((*opath == '/') && (str != opath) && in is_path_secure() 877 if (str == opath) in is_path_secure() 882 if ((size = str - opath) >= PATH_MAX) in is_path_secure() 885 (void) strncpy(buffer, opath, size); in is_path_secure() 912 if (((info & LA_SER_LIBPATH) == 0) && (*opath == '/') && in is_path_secure() 926 else if (pnavl_recorded(&spavl, opath, 0, NULL)) { in is_path_secure() 927 DBG_CALL(Dbg_libs_insecure(lml, opath, 1)); in is_path_secure() 931 npath = (char *)opath; in is_path_secure() [all …]
|
H A D | dlfcns.c | 1652 dldump_core(Rt_map *clmp, Rt_map *lmp, const char *ipath, const char *opath, in dldump_core() argument 1661 if ((opath == NULL) || (opath[0] == '\0') || in dldump_core() 1708 return (rt_dldump(lmp, opath, flags, addr)); in dldump_core() 1717 dldump(const char *ipath, const char *opath, int flags) in dldump() argument 1733 DBG_CALL(Dbg_dl_dldump(clmp, ipath, opath, flags)); in dldump() 1735 error = dldump_core(clmp, lmp, ipath, opath, flags); in dldump()
|
/titanic_44/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()
|
/titanic_44/usr/src/cmd/sgs/libld/common/ |
H A D | support.c | 169 ld_sup_open(Ofl_desc *ofl, const char **opath, const char **ofile, int *ofd, in ld_sup_open() argument 176 const char *npath = *opath; in ld_sup_open() 207 support[LDS_OPEN].sup_name, LDS_OPEN, *opath)); 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() 221 *opath = npath; in ld_sup_open()
|
H A D | files.c | 3396 ld_process_open(const char *opath, const char *ofile, int *fd, Ofl_desc *ofl, in ld_process_open() argument 3400 const char *npath = opath; in ld_process_open()
|
/titanic_44/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 | 338 static int get_attrs(disk_t *diskp, int fd, char *opath, 411 char opath[MAXPATHLEN]; in drive_get_attributes() local 418 opath[0] = 0; in drive_get_attributes() 419 fd = drive_open_disk(dp->p.disk, opath, sizeof (opath)); in drive_get_attributes() 421 if ((*errp = get_attrs(dp->p.disk, fd, opath, attrs)) != 0) { in drive_get_attributes() 629 drive_open_disk(disk_t *diskp, char *opath, int len) in drive_open_disk() argument 635 if (opath != NULL) { in drive_open_disk() 636 (void) strlcpy(opath, diskp->aliases->devpaths->devpath, len); in drive_open_disk() 854 get_attrs(disk_t *diskp, int fd, char *opath, nvlist_t *attrs) in get_attrs() argument 939 if (strlen(opath) > 0) { in get_attrs() [all …]
|
H A D | disks_private.h | 187 int drive_open_disk(disk_t *diskp, char *opath, int len);
|
/titanic_44/usr/src/uts/common/exec/shbin/ |
H A D | shbin.c | 173 char *opath; in shbinexec() local 227 opath = args->pathname; in shbinexec() 260 args->pathname = opath; in shbinexec()
|
/titanic_44/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()
|
/titanic_44/usr/src/uts/common/exec/intp/ |
H A D | intp.c | 180 char *opath; in intpexec() local 209 opath = args->pathname; in intpexec() 242 args->pathname = opath; in intpexec()
|
/titanic_44/usr/src/uts/common/exec/java/ |
H A D | java.c | 98 char *opath; in javaexec() local 158 opath = args->pathname; in javaexec() 174 args->pathname = opath; in javaexec()
|
/titanic_44/usr/src/cmd/sgs/libcrle/common/ |
H A D | dump.c | 69 load(const char *opath, const char *npath) in load() argument 75 if ((ghp = (Grp_hdl *)dlmopen(LM_ID_BASE, opath, in load() 106 dump(const char *opath, const char *npath) in dump() argument 110 if (dldump(opath, npath, dlflag) != 0) { in dump()
|
/titanic_44/usr/src/cmd/sgs/crle/common/ |
H A D | inspect.c | 503 enterfile(Crle_desc *crle, const char *opath, const char *ofile, Half flags, in enterfile() argument 517 if (realpath(opath, rpath) == NULL) in enterfile() 520 if (strcmp(opath, rpath)) { in enterfile() 532 if (strncmp(opath, npath, size)) { in enterfile() 545 npath = (char *)opath; in enterfile() 607 if ((ent = enterino(crle, opath, status, 0)) == NULL) in enterfile() 614 if ((rent = get_hash(stbl, (Addr)opath, 0, in enterfile() 618 if (_enterfile(crle, opath, 0, rent, 0, odent, obj) == 0) in enterfile() 627 off = ofile - opath; in enterfile()
|
/titanic_44/usr/src/lib/libshell/common/sh/ |
H A D | path.c | 967 const char *opath; in path_exec() local 994 opath = stakfreeze(1)+PATH_OFFSET; in path_exec() 997 opath = arg0; in path_exec() 998 path_spawn(opath,argv,envp,libpath,0); in path_exec() 1011 pid_t path_spawn(const char *opath,register char **argv, char **envp, Pathcomp_t *libpath, int spaw… in path_spawn() argument 1026 stakputs(opath); in path_spawn() 1027 opath = stakfreeze(1)+PATH_OFFSET+pidsize; in path_spawn() 1037 stakputs(opath); in path_spawn() 1103 if(!opath) in path_spawn() 1104 opath = stakptr(PATH_OFFSET); in path_spawn() [all …]
|
/titanic_44/usr/src/lib/libdevice/ |
H A D | devctl.c | 56 char *opath; /* copy of the original path */ member 90 if (DCP(hdl)->opath != NULL) in devctl_release() 91 free(DCP(hdl)->opath); in devctl_release() 251 if ((dcp->opath = strdup(path)) == NULL) { in dc_mkhndl() 1006 (void) strcat(devpath, DCP(dcp)->opath); in devctl_bus_dev_create() 1318 (void) snprintf(pathbuf, bufsz, "%s", DCP(dcp)->opath); in devctl_get_pathname()
|
/titanic_44/usr/src/uts/sun4u/montecarlo/io/ttymux_dacf/ |
H A D | ttymux_dacf.c | 796 char *dname, *nname, *ipath, *opath; in validate_reservation() local 813 opath = prom_stdoutpath(); in validate_reservation() 820 if (opath != NULL && strstr(opath, nname) != 0) in validate_reservation()
|
/titanic_44/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()
|
/titanic_44/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()
|
/titanic_44/usr/src/cmd/sendmail/src/ |
H A D | queue.c | 7795 char opath[MAXPATHLEN]; local 7810 (void) sm_strlcpy(opath, queuename(old, DATAFL_LETTER), sizeof(opath)); 7818 syserr("@can't commit %s", opath); 7839 if (link(opath, npath) == 0) 7857 if (link(opath, npath) == 0) 7868 opath, npath, sm_errstring(errno));
|