/illumos-gate/usr/src/cmd/svr4pkg/pkgchk/ |
H A D | ckentry.c | 67 char *path; local 72 mappath(2, ept->path); 74 basepath(ept->path, maptyp ? NULL : basedir, ir); 76 canonize(ept->path); 106 if ((path = findspool(ept)) == NULL) { 107 logerr(gettext(ERR_SPOOLED), ept->path); 127 path, &ept->ainfo)) { 131 ept->path); 140 c_err = cverify((!fflag ? (-1) : fflag), &ept->ftype, path, 143 logerr(gettext("ERROR: %s"), path); 290 static char path[2*PATH_MAX+1]; local [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | dockspace.c | 213 if (strcmp(ept->path, "pkginfo") == 0) 214 (void) sprintf(tpath, "%s/%s", pkgloc, ept->path); 217 ept->path); 278 if (is_remote_fs(ept->path, &(ext->fsys_value)) && 279 !is_fs_writeable(ept->path, &(ext->fsys_value))) 299 * We have to stat this path based upon it's real location. 300 * If this is a server-remap, ept->path isn't the real 304 strcpy(tpath, server_map(ept->path, ext->fsys_value)); 306 strcpy(tpath, ept->path); 310 /* path canno 370 char *pt, path[PATH_MAX]; local [all...] |
H A D | reqexec.c | 55 static char path[PATH_MAX]; variable 94 /* determine length for destination script path */ 98 /* allocate storage to hold destination script path */ 105 /* create destination script path */ 144 (void) strlcpy(tpath, path, sizeof (tpath)); 146 (void) snprintf(path, sizeof (path), "%s/respXXXXXX", tmpdir); 148 resppath = mktemp(path); 187 (void) snprintf(path, sizeof (path), " [all...] |
/illumos-gate/usr/src/cmd/tcpd/ |
H A D | inetcf.c | 65 char *path; local 116 path = user; 117 } else { /* path */ 118 if ((path = strtok((char *) 0, whitespace)) == 0) 121 if (path[0] == '?') /* IRIX optional service */ 122 path++; 123 if (STR_EQ(path, "internal")) 125 if (path[strspn(path, "-0123456789")] == 0) { 128 * ConvexOS puts RPC version numbers before path name [all...] |
/illumos-gate/usr/src/cmd/tnf/prex/ |
H A D | source.c | 53 char *path; member in struct:source 96 new_p->path = strdup("<STDIN>"); 114 char path[MAXPATHLEN]; local 117 (void) sprintf(path, "%s/%s", home, PREXRC); 118 retval = stat(path, &statbuf); 120 source_file(path); 132 source_file(char *path) argument 137 newfile = fopen(path, "r"); 139 semantic_err(gettext("cannot open \"%s\""), path); 144 new_p->path [all...] |
/illumos-gate/usr/src/cmd/truss/ |
H A D | ipc.c | 255 char *path = pri->sys_path; local 280 * Insert a '\0', if necessary, so the path becomes ".../1234". 284 if ((sp1 = strrchr(path, '/')) == NULL) /* last component */ 288 while (--sp1 > path && isdigit(*sp1)) 300 if (sp1-6 >= path && strncmp(sp1-6, "/agent", 6) == 0) 303 while (--sp1 > path && isdigit(*sp1)) 307 (sp1 -= 4) <= path || 315 if ((sp2 = strrchr(path, '/')) == NULL) 316 dirname = path; 332 dirname = path; [all...] |
/illumos-gate/usr/src/cmd/tzreload/ |
H A D | tzreload.c | 115 char path[sizeof (TZSYNC_FILE) + 16]; local 129 (void) strcpy(path, TZSYNC_FILE "XXXXXX"); 130 if ((fd = mkstemp(path)) == -1) { 140 (void) unlink(path); 153 if (link(path, TZSYNC_FILE) != 0) { 161 (void) unlink(path); 164 (void) unlink(path); 186 * zroot zone's root path
|
/illumos-gate/usr/src/tools/chk4ubin/ |
H A D | chk4ubin.c | 140 char path[MAXPATHLEN]; local 143 (void) snprintf(path, sizeof (path), "%s", binary); 145 (void) snprintf(path, sizeof (path), "%s/%s", root, binary); 148 if ((fd = open(path, O_RDONLY)) == -1) { 150 whoami, path, strerror(errno));
|
/illumos-gate/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_ioctl.h | 67 char path[NSC_MAXPATH]; /* Pathname */ member in struct:nscioc_open
|
H A D | nsc_ncallio.h | 50 char path[NSC_MAXPATH]; /* pathname */ member in struct:nsc_ncio_dev 51 uint64_t phash; /* path hash */ 62 char path[NSC_MAXPATH]; member in struct:nsc_ncio_size 79 char path[NSC_MAXPATH]; /* path of device */ member in struct:nsc_ncio_rw::__anon4504::__anon4505 87 #define rw_path rw_u.rw.path
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | HBA.cc | 280 int HBA::_open(std::string path, int flag) { argument 284 if ((fd = open(path.c_str(), flag)) < 0) { 286 path.c_str(), errno, strerror(errno)); 297 msg += path;
|
H A D | HBAPort.cc | 63 * @doc Comparison is based on Node WWN, Port WWN and path 81 string path = getPath(); local 83 if (stat(path.c_str(), &sbuf) == -1) { 87 log.debug("Unable to stat %s: %s", path.c_str(), 99 char *path; member in struct:walk_devlink 106 * @postcondition Find matching /dev link for the given path argument. 109 * @doc The input path is expected to not have "/devices". 117 * When path is specified, it doesn't have minor 120 if (warg->path) { 126 strncmp(start, warg->path, war 208 lookupControllerPath(string path) argument [all...] |
H A D | TgtFCHBA.cc | 54 TgtFCHBA::TgtFCHBA(string path) : HBA() argument 57 log.debug("Constructing new Target mode HBA (%s)", path.c_str()); 62 addPort(new TgtFCHBAPort(path)); 73 "Failed to get HBA attribute for %s", path.c_str()); 111 std::string path = port->getPath(); local 112 string::size_type offset = path.find_last_of("."); 114 string portwwnString = path.substr(offset+1); 186 std::string path = port->getPath(); local 187 string::size_type offset = path.find_last_of("."); 189 string portwwnString = path [all...] |
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | devlink_disco.c | 39 char *path; member in struct:walk_devlink 46 * Find matching /dev link for the given path argument. 48 * The input path is expected to not have "/devices". 57 * When path is specified, it doesn't have minor 60 if (warg->path) { 65 strncmp(start, warg->path, warg->len) != 0 || 66 /* make it sure the device path has minor name */ 83 * If no link is found, the long path is left as is. 110 warg.path = NULL; 117 warg.path 150 lookupLink(char *path, char *link, const char *dir, const char *mname) argument 233 lookupControllerLink(char *path, char *link) argument 246 lookupSMPLink(char *path, char *link) argument [all...] |
/illumos-gate/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_node.c | 211 prom_finddevice(char *path) argument 218 if ((uintptr_t)path > (uint32_t)-1) { 219 opath = path; 221 path = promplat_alloc(len); 222 if (path == NULL) { 225 (void) prom_strcpy(path, opath); 234 ci[3] = p1275_ptr2cell(path); /* Arg1: pathname */ 243 promplat_free(path, len);
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | nfs2ops.c | 345 nfsgetsymlink(struct nfs_file *cfile, char **path) argument 352 * linkres needs a zeroed buffer to place path data into: 369 *path = linkres.readlinkres_u.data;
|
H A D | nfsops.c | 156 boot_nfs_open(char *path, int flags) argument 163 printf("boot_nfs_open(%s, %x)\n", path, flags); 172 if (path == NULL || *path == '\0') { 203 if (lookup(path, &filep->file, FALSE) != 0) { 206 printf("boot_nfs_open(): Cannot open '%s'.\n", path); 218 path, filep->desc);
|
/illumos-gate/usr/src/uts/common/nfs/ |
H A D | nfs_cmd.h | 55 char path[MAXPATHLEN]; member in struct:nfscmd_arg::__anon6802::__anon6803
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | dacf_clnt.c | 141 * device path 218 char *path, *pathp; local 248 path = kmem_alloc(MAXPATHLEN, KM_SLEEP); 249 if ((pathp = ddi_pathname(devi, path)) == NULL) 253 kmem_free(path, MAXPATHLEN); 271 char *path, *pathp; local 302 path = kmem_alloc(MAXPATHLEN, KM_SLEEP); 303 if ((pathp = ddi_pathname(devi, path)) == NULL) 307 kmem_free(path, MAXPATHLEN); 313 path [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | open.c | 295 openat(int fd, char *path, int fmode, int cmode) argument 297 return (copen(fd, path, OPENMODE(fmode), cmode)); 301 open(char *path, int fmode, int cmode) argument 303 return (openat(AT_FDCWD, path, fmode, cmode)); 311 openat64(int fd, char *path, int fmode, int cmode) argument 313 return (copen(fd, path, OPENMODE64(fmode), cmode)); 317 open64(char *path, int fmode, int cmode) argument 319 return (openat64(AT_FDCWD, path, fmode, cmode)); 329 openat32(int fd, char *path, int fmode, int cmode) argument 331 return (copen(fd, path, OPENMODE3 335 open32(char *path, int fmode, int cmode) argument [all...] |
H A D | systeminfo.c | 304 path_to_devinfo(char *path) argument 313 fn.nodeid = prom_finddevice(path); 326 * Determine the network interface name from the device path argument.
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xenbus_client.c | 72 xenbus_watch_path(struct xenbus_device *dev, const char *path, argument 79 watch->node = path; 87 xenbus_dev_fatal(dev, err, "adding watch on %s", path); 95 xenbus_watch_path2(struct xenbus_device *dev, const char *path, argument 103 state = kmem_alloc(strlen(path) + 1 + strlen(path2) + 1, KM_SLEEP); 104 (void) strcpy(state, path); 153 * Return the path to the error node for the given device, or NULL on failure. 269 xenbus_read_driver_state(const char *path) argument 273 int err = xenbus_gather(XBT_NULL, path, "state", "%d", &result, NULL);
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | ppm_plat.c | 149 str, cpup->path, newlevel, ret)) 184 char path[MAXNAMELEN]; local 225 (void) ddi_pathname(cpu_dip, path); 227 dbp->name = kmem_zalloc((strlen(path) + 1), 229 (void) strcpy(dbp->name, path); 243 (void) ddi_pathname(cpu_dip, path); 245 dbp->name = kmem_zalloc((strlen(path) + 1), 247 (void) strcpy(dbp->name, path); 267 char path[MAXNAMELEN]; local 272 (void) ddi_pathname(cpu_dip, path); [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rdsib_sc.c | 115 * Called by SC on discovering a new path 118 rds_path_up(rds_path_t *path) argument 123 ASSERT(path != NULL); 126 RDS_VALIDATE_PATH(path); 131 while ((p) && ((p->lnode_ip != path->local.node_ipaddr) || 132 (p->rnode_ip != path->remote.node_ipaddr))) { 143 p->lnode_ip = path->local.node_ipaddr; 144 p->rnode_ip = path->remote.node_ipaddr; 148 p1->libd_ip = path->local.ipaddr; 149 p1->ribd_ip = path 185 rds_path_down(rds_path_t *path) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | rdsv3_sc.c | 111 * Called by SC on discovering a new path 114 rdsv3_path_up(rds_path_t *path) argument 119 ASSERT(path != NULL); 122 RDS_VALIDATE_PATH(path); 127 while ((p) && ((p->lnode_ip != path->local.node_ipaddr) || 128 (p->rnode_ip != path->remote.node_ipaddr))) { 139 p->lnode_ip = path->local.node_ipaddr; 140 p->rnode_ip = path->remote.node_ipaddr; 144 p1->libd_ip = path->local.ipaddr; 145 p1->ribd_ip = path 181 rdsv3_path_down(rds_path_t *path) argument [all...] |