/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | a.out.c | 247 char *path = NULL; local 254 if (path = aout_get_so(pdp->pd_pname, 258 if (path == NULL) { 264 name = path; 605 char *path = NULL; local 608 path = ask_db(dbp, file); 610 return (path);
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | name.c | 260 unsigned char *path; local 263 path = getpath(""); 264 while (path && *path) 266 if (patheq(path, "/usr/ucb")) 271 else if (patheq(path, "/usr/bin")) 273 else if (patheq(path, "/bin")) 275 else if (patheq(path, "/usr/5bin")) 277 path = nextpath(path); [all...] |
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | fork.c | 102 fork_mount(char *path, char *opts) argument 129 (void) execl("/sbin/mount", "mount", "-o", opts, path, NULL); 321 char path[PATH_MAX]; local 475 * Set our per-process core file path to leave core files in 478 (void) snprintf(path, sizeof (path), 481 (void) core_set_process_path(path, strlen(path) + 1, getpid()); 618 char path[20] = "/sbin/rc.", log[20] = "rc..log", timebuf[20]; local 625 path[ [all...] |
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | ldaptest.c | 98 file_read( char *path, struct berval *bv ) argument 104 if (( fp = fopen( path, "r" )) == NULL ) { 105 perror( path ); 110 perror( path ); 124 perror( path ); 134 perror( path );
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | fixpath.c | 60 static int ask_basedir(char *path, int nointeract); 61 static char *expand_path(char *path); 63 static char *fixpath_dup(char *path); 70 static int base_sepr = 1; /* separator length btwn basedir & path */ 85 #define ERR_RELINABS "Relative path <%s> found in absolute package." 91 #define ERR_AMBDIRS "Cannot evaluate path due to ambiguous " \ 108 #define MSG_PROMPT "Enter path to package base directory" 123 set_inst_root(char *path) argument 134 if (strcmp(install_root, path)) 137 ptext(stderr, gettext(ERR_IRSET), path); 178 fixpath(char *path) argument 235 fixpath_dup(char *path) argument 305 orig_path_ptr(char *path) argument 351 orig_path(char *path) argument 379 ask_basedir(char *path, int nointeract) argument 406 char path[PATH_MAX]; local 678 expand_path(char *path) argument 794 eval_path(char **server_ptr, char **client_ptr, char **map_ptr, char *path) argument [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkginfo/ |
H A D | pkginfo.c | 61 extern int pkginfofind(char *path, char *pkg_dir, char *pkginst); 604 char path[PATH_MAX]; local 616 if (!pkginfofind(path, pkgdir, drp->d_name)) 681 (entry.path && *entry.path) ? entry.path : "Unknown"); 715 (entry.path && *entry.path) ? entry.path : "Unknown");
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/ |
H A D | mkpkgmap.c | 62 #define MSG_SRCHLOC "no object for <%s> found in local path" 63 #define MSG_SRCHSRCH "no object for <%s> found in search path" 85 "path <%s>." 107 static char *findfile(char *path, char *local); 108 static char *srchroot(char *path, char *copy); 125 char *pt, *path, mybuff[PATH_LGTH]; local 220 (entry.path && *entry.path) ? entry.path : 233 logerr(gettext(MSG_BPARAMC), entry.path); 261 logerr(gettext(MSG_CONTENTS), path); local 362 findfile(char *path, char *local) argument 404 logerr(gettext(MSG_SRCHLOC), path); local 442 logerr(gettext(MSG_SRCHSRCH), path); local 805 srchroot(char *path, char *copy) argument 825 logerr(gettext(MSG_SRCHROOT), path); local [all...] |
/illumos-gate/usr/src/cmd/syseventadm/ |
H A D | syseventadm.c | 118 * Alternate root path for install, etc. 285 "\t[-c class] [-s subclass] [-u username] path [args]\n" 288 "\t[-c class] [-s subclass] [-u username] [path [args]]\n" 291 "\t[-c class] [-s subclass] [-u username] [path [args]]\n" 323 * For add, path must also be specified. 433 char path[MAXPATHLEN+1]; local 445 * path must be specified. Subclass is only defined within the 465 (void) strcpy(path, root_dir); 466 (void) strcat(path, SYSEVENT_CONFIG_DIR); 468 if ((dir = opendir(path)) 819 char *path, *args; local [all...] |
/illumos-gate/usr/src/cmd/tnf/prex/ |
H A D | main.c | 723 char path[MAXPATHLEN]; local 763 (void) sprintf(path, "%s/trace-%ld", tmpdir, g_targetpid); 764 outfile_name = path; 782 path, g_outsize); 795 char path[MAXPATHLEN]; local 799 (void) sprintf(path, PROCFORMAT, (int)pid); 800 fd = open(path, O_RDONLY); 817 char path[PATH_MAX + 1]; local 837 if ((strlen(dir) + len + 1) < sizeof (path)) { 838 strcat(strcat(strcpy(path, di 952 char path[PATH_MAX + sizeof (PREX32DIR)]; local [all...] |
/illumos-gate/usr/src/uts/common/fs/ |
H A D | lookup.c | 87 vnode_t *startvp, /* start path search from vp */ 139 struct pathname *rpnp, /* if non-NULL, return resolved path */ 212 struct pathname *rpnp, /* if non-NULL, return resolved path */ 365 * path. This is used to ensure that a forward-lookup of a cached value 447 * If we hit a symbolic link and there is more path to be 499 * If rpnp is non-NULL, remember the resolved path name therein. 526 * within the resolved path. 620 if (auditing) /* reached end of path */ 634 * some intermediate directory along the path, then recovery 680 * The code path i 925 localpath(char *path, struct vnode *vrootp, cred_t *cr) argument 1275 char path[MAXNAMELEN]; local [all...] |
/illumos-gate/usr/src/tools/pmodes/ |
H A D | pmodes.c | 296 char path[MAXPATHLEN]; /* NUL terminated pathname */ member in struct:parsed_line 317 * the first field is the path, the second the type, the 368 strcpy(parse->path, "(default)"); 382 * [<number>] <type> <class> <path> [<major> <minor>] 411 (void) strncpy(parse->path, tmp, end - tmp); 412 parse->path[end - tmp] = '\0'; 545 basedir, line.path); 591 strncmp(line.path, "/etc/security/dev/" 598 line.path, line.modelen, line.mode); 618 if (strcmp(line.path, [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_dev.c | 361 * nsc_register_path (char *path, int type, nsc_io_t *io) 366 * nsc_unregister_path. The 'path' argument can contain 371 * Registers an interest in any pathnames matching 'path' 375 nsc_register_path(char *path, int type, nsc_io_t *io) argument 384 sp->sp_path = nsc_strdup(path); 399 while ((rc = _nsc_reopen_io(path, 0)) != 0) 470 * _nsc_reopen_io (char *path, int flag) 486 _nsc_reopen_io(path, flag) 487 char *path; 496 if (path 1109 nsc_fdpathcmp(nsc_fd_t *fd, uint64_t phash, char *path) argument 1121 _nsc_setval(nsc_dev_t *dev, char *path, char *name, int val, int do_ncall) argument 1606 _nsc_find_io(char *path, int type, int *changed) argument 1983 _nsc_alloc_dev(char *path, nsc_dev_t **devp) argument [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_raw.c | 70 char *path; /* pathname -- kmem_alloc'd */ member in struct:raw_dev 90 ldi_get_dev_t_from_path(char *path) argument 96 if (path == NULL) 99 /* Lookup path */ 101 if (lookupname(path, UIO_SYSSPACE, FOLLOW, NULLVPP, &vp)) 285 _raw_open(char *path, int flag, blind_t *cdp, void *iodev) argument 305 plen = strlen(path) + 1; 313 (void) strcpy(spath, path); 319 if ((rdev = ldi_get_dev_t_from_path(path)) == 0) { 363 cdi->path [all...] |
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | genf.c | 231 cleanup_dotdot_path(char *path) argument 238 dotdot = strstr(path, "/../"); 251 if (dotdot == path) { 252 strcpy(holder, &path[3]); /* strip "/.." */ 253 strcpy(path, holder); 264 previous_slash = strrchr(path, '/'); 267 * hmm, somethings wrong. path looks something 273 * Now truncate the path just after the previous '/' 277 strcat(path, dotdot+4); 289 * NOTE: If the path i 293 g_get_physical_name_from_link(char *path) argument 435 g_get_physical_name(char *path) argument 610 g_object_open(char *path, int flag) argument 1027 g_get_path_type(char *path) argument [all...] |
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | FCHBAPort.cc | 444 path = lookupControllerPath(thePath); 445 sscanf(path.c_str(), "/dev/cfg/c%d", &controllerNumber); 447 log.debug("Unable to lookup controller path and number for %s", 449 path = "/devices"; 450 path += thePath; 451 path += ":fc"; 457 if (stat(path.c_str(), &sbuf) == -1) { 458 throw IOError("Unable to stat device path: " + path); 477 // Get Port's NPIV port list ( include nwwn and pwwn and path) 1216 fp_ioctl(string path, int cmd, fcio_t *fcio, int openflag) argument 1259 fp_ioctl(string path, int cmd, fcio_t *fcio) argument [all...] |
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/ |
H A D | util.c | 43 * Ask prom to open a disk file given either the OBP device path, or the 44 * device path representing the target drive/partition and the fs-relative 45 * path of the file. Handle file pathnames with or without leading '/'. 49 cpr_statefile_open(char *path, char *fs_dev) argument 61 handle = prom_open(path); 89 if (*path != '/') { 90 (void) prom_sprintf(fs_name, "/%s", path); 93 return (cpr_fs_open(path)); 130 cpr_fs_volopen(char *path) argument 137 return (prom_volopen(cb_rih, path)); 144 cpr_fs_open(char *path) argument [all...] |
/illumos-gate/usr/src/stand/lib/fs/ufs/ |
H A D | ufsops.c | 89 static ino_t find(fileid_t *filep, char *path); 90 static ino_t dlook(fileid_t *filep, char *path); 168 find(fileid_t *filep, char *path) argument 178 if (path == NULL || *path == '\0') { 179 printf("null path\n"); 184 bcopy(path, lpath, strlen(path)); 221 /* copy rest of unprocessed path up */ 223 /* point to unprocessed path */ 320 dlook(fileid_t *filep, char *path) argument [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | ddifm.c | 110 * (DDI_FM_IO_DMA) data path error report if DDI_FM_NONFATAL or 299 * can override the devinfo path with a pathinfo path via a non-null 301 * devpath should be the path through the pHCI devinfo node to the 352 char path[MAXPATHLEN]; local 399 * D: detector (path and optional devid authority) 420 /* D: detector: form dev scheme fmri with path and devid. */ 422 (void) strlcpy(path, devpath, sizeof (path)); 426 (void) strcpy(path, "/"); [all...] |
/illumos-gate/usr/src/uts/i86pc/i86hvm/io/ |
H A D | xdf_shell.c | 944 xdfs_hvm_probe(dev_info_t *dip, char *path) argument 950 ASSERT(path != NULL); 951 cmn_err(CE_WARN, "PV access to device disabled: %s", path); 960 cmn_err(CE_WARN, "HVM probe of device failed: %s", path); 961 kmem_free(path, MAXPATHLEN); 967 XDFS_HVM_PATH(xsp) = path; 978 char *path; local 986 path = kmem_alloc(MAXPATHLEN, KM_SLEEP); 987 (void) ddi_pathname(dip, path); 994 return (xdfs_hvm_probe(dip, path)); [all...] |
/illumos-gate/usr/src/uts/common/io/hotplug/hpcsvc/ |
H A D | hpcsvc.c | 82 * bus_name - device path name of the bus (ie /pci@1f,4000) 908 hpc_find_bus_by_name(char *path) argument 913 if (strcmp(path, busp->bus_name) == 0)
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_misc.c | 2088 * Tavor UDAV fields, and it is used to fill in the address path information 2095 tavor_hw_addr_path_t *path, uint_t type, tavor_qphdl_t qp) 2102 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*path)) 2104 path->ml_path = av->av_src_path; 2105 path->rlid = av->av_dlid; 2106 path->sl = av->av_srvl; 2110 path->portnum = av->av_port_num; 2121 path->max_stat_rate = 0; /* 4x@DDR injection rate */ 2123 path->max_stat_rate = 3; /* 1x@DDR injection rate */ 2125 path 2094 tavor_set_addr_path(tavor_state_t *state, ibt_adds_vect_t *av, tavor_hw_addr_path_t *path, uint_t type, tavor_qphdl_t qp) argument 2227 tavor_get_addr_path(tavor_state_t *state, tavor_hw_addr_path_t *path, ibt_adds_vect_t *av, uint_t type, tavor_qphdl_t qp) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/iser/ |
H A D | iser_ib.c | 315 * This function finds the IB path between the local and the remote address. 320 ibt_path_info_t *path, ibt_path_ip_src_t *path_src_ip) 331 (void) bzero(path, sizeof (ibt_path_info_t)); 333 &ipattr, path, NULL, path_src_ip); 355 * not invoke ibt_get_ip_paths() to do the path lookup. The HCA GUID and 364 /* Lookup the hca using the gid in the path info */ 401 uint8_t hca_port; /* from path */ 406 /* Lookup a path to the given destination */ 419 /* get the local gid from the path info */ 422 /* get the hca port from the path inf 319 iser_ib_get_paths(ibt_ip_addr_t *local_ip, ibt_ip_addr_t *remote_ip, ibt_path_info_t *path, ibt_path_ip_src_t *path_src_ip) argument [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | pci_tools.h | 150 char path[MAXPATHLEN]; /* device path - from kernel */ member in struct:pcitool_intr_dev
|
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | omitted.c | 89 suffix(register const char* path) argument 91 register const char* s = path + strlen(path); 94 while (s > path) 103 execrate(const char* path, char* buf, int size, int physical) argument 109 if (suffix(path)) 112 if (physical || strlen(path) >= size || !(s = pathcanon(strcpy(buf, path), PATH_PHYSICAL|PATH_DOTDOT|PATH_EXISTS))) 113 snprintf(buf, size, "%s.exe", path); 121 * return 0 if path i 127 magic(const char* path, int* ux) argument 180 access(const char* path, int op) argument 222 chmod(const char* path, mode_t mode) argument 351 runve(int mode, const char* path, char* const* argv, char* const* envv) argument 551 execve(const char* path, char* const* argv, char* const* envv) argument 561 spawnve(int mode, const char* path, char* const* argv, char* const* envv) argument 616 char path[PATH_MAX]; member in struct:Exe_test_s 661 open(const char* path, int flags, ...) argument 705 pathconf(const char* path, int op) argument 740 stat(const char* path, struct stat* st) argument 760 truncate(const char* path, off_t offset) argument 780 unlink(const char* path) argument 934 ctime_now(const char* path) argument 967 utimes(const char* path, const struct timeval* ut) argument 985 utime(const char* path, const struct utimbuf* ut) argument [all...] |
H A D | setlocale.c | 858 char path[PATH_MAX]; local 860 if (mcfind(path, lc->code, NiL, LC_MESSAGES, 0))
|