/illumos-gate/usr/src/cmd/boot/installboot/sparc/ |
H A D | installboot.c | 281 BOOT_DEBUG("Unable to read bootblock from %s\n", device->path); 294 "non versioned one\n", device->path); 299 BOOT_DEBUG("Forcing update of %s bootblock\n", device->path); 406 device->path); 417 "to %s at offset %d\n", device->path, BBLK_ZFS_EXTRA_OFF); 440 device->path); 456 device->fd = open(device->path, O_RDWR); 458 BOOT_DEBUG("Unable to open %s\n", device->path); 464 BOOT_DEBUG("Unable to stat %s\n", device->path); 472 device->path); 480 init_device(ib_device_t *device, char *path) argument [all...] |
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | tftp.c | 65 static int tftp_open(const char *path, struct open_file *f); 114 char *path; /* saved for re-requests */ member in struct:tftp_handle 294 l = strlen(h->path); 304 bcopy(h->path, wtail, l + 1); 397 tftp_open(const char *path, struct open_file *f) argument 429 pathsize = (strlen(rootpath) + 1 + strlen(path) + 1) * sizeof(char); 430 tftpfile->path = malloc(pathsize); 431 if (tftpfile->path == NULL) { 435 if (rootpath[strlen(rootpath) - 1] == '/' || path[0] == '/') 439 res = snprintf(tftpfile->path, pathsiz [all...] |
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_ofile.c | 241 * Note that the common open path often adds bits like 354 * so no more threads will take this path. 1244 char *path; local 1264 path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); 1267 rc = smb_node_getshrpath(node, tree, path, MAXPATHLEN); 1269 (void) strlcpy(path, node->od_name, MAXPATHLEN); 1273 path); 1274 kmem_free(path, MAXPATHLEN);
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | args.c | 2023 char *path; local 2041 path = argv[optind]; 2042 if ((fd = open(path, O_RDONLY)) == -1) { 2046 MSG_INTL(MSG_SYS_OPEN), path, strerror(err)); 2050 DBG_CALL(Dbg_args_file(ofl->ofl_lml, optind, path)); 2052 open_ret = ld_process_open(path, path, &fd, ofl,
|
/illumos-gate/usr/src/uts/i86pc/io/acpi/acpidev/ |
H A D | acpidev_resource.c | 1029 char path[MAXPATHLEN]; local 1040 (void) ddi_pathname(infop->awi_dip, path); 1046 path, infop->awi_name); 1060 "'reg' property for %s.", path); 1070 "'assigned-addresses' property for %s.", path); 1081 "'interrupts' property for %s.", path); 1092 "'dma-channels' property for %s.", path); 1107 "'ranges' property for %s.", path); 1119 "'bus-range' property for %s.", path);
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_nameinfo.c | 315 * path name is passed to dlopen() 1028 char path[MAXPATHLEN + 1]; local 1036 if ((len = readlink(np->bname, path, (sizeof (path) - 1))) < 0) { 1039 } else if (len >= sizeof (path)) { 1043 path[len] = '\0'; 1044 if ((len = strfind(path, "/devices/")) < 0) { 1050 np->devicesname = Strdup(path + len + strlen("/devices"));
|
H A D | meta_devadm.c | 52 #define TEST_TYPE 0x008 /* test driver path */ 53 #define DID_TYPE 0x010 /* cluster did path */ 63 * A table of the supported path types - this should ideally be generated 135 * based upon the path of the device. 138 * -1 Error, the path passed in is not in the table 142 mda_findpath(char *path) argument 147 if (strncmp(plist[i].search_path, path, 155 * Utility to get the path of a device 448 mda_debug("replica update: invalid path: %s", 606 char *path local [all...] |
/illumos-gate/usr/src/lib/scsi/libsmp/common/ |
H A D | smp_engine.c | 110 smp_engine_loadone(const char *path) argument 117 if ((obj = dlopen(path, RTLD_PARENT | RTLD_LOCAL | RTLD_LAZY)) == NULL) 187 char path[PATH_MAX]; local 227 (void) snprintf(path, PATH_MAX, "%s/%s/%s/%s%s", 231 if (smp_engine_loadone(path) == 0) {
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | netdfs.c | 187 dfs_path_t path; local 190 const char *fspath = (const char *)path.p_fspath; 214 status = dfs_path_parse(&path, uncpath, DFS_OBJECT_LINK); 220 status = smb_name_validate_rpath(path.p_unc.unc_path); 222 dfs_path_free(&path); 236 (void) dfs_cache_add_byname(path.p_unc.unc_share, 237 path.p_unc.unc_path, DFS_OBJECT_LINK); 240 netdfs_path_remove(&path.p_unc); 244 dfs_path_free(&path); 259 dfs_path_t path; local 319 dfs_path_t path; local 397 dfs_path_t path; local 769 netdfs_setinfo_100(dfs_path_t *path, netdfs_info100_t *netinfo) argument 791 netdfs_setinfo_101(dfs_path_t *path, netdfs_info101_t *netinfo, const char *t_server, const char *t_share) argument 824 netdfs_setinfo_102(dfs_path_t *path, netdfs_info102_t *netinfo) argument 844 netdfs_setinfo_103(dfs_path_t *path, netdfs_info103_t *netinfo) argument 865 netdfs_setinfo_104(dfs_path_t *path, netdfs_info104_t *netinfo, const char *t_server, const char *t_share) argument 904 netdfs_setinfo_105(dfs_path_t *path, netdfs_info105_t *netinfo) argument 1329 netdfs_path_create(const char *path) argument [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_sata.h | 73 char *path; member in struct:walk_link 134 char *path; member in struct:sata_apid
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_cvt.c | 49 char *path; member in struct:__anon2419 234 * path in pathpp. 235 * Returns: SCFGA_APID_NOEXIST if the path does not exist. 251 /* If a bus, the physical ap_id is the physical path */ 266 * path#.???. 284 * Get the devfs path of pathinfo node that is associated with 288 * hba_phys: physical path of HBA 291 * pathpp: devfs path of the pathinfo node. 318 /* Fix up path for di_init() */ 372 * now parse the path inf 549 char buf[PATH_MAX], *path; local 617 char *path; local 667 make_path_dyncomp( di_path_t path, char **dyncompp, int *l_errnop) argument [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_configfile.c | 647 boolean_t srno = B_FALSE, path = B_FALSE; local 676 path = (strncmp(cfg_rec->pathname, 680 path = path && (*(user_rec->pathname + 697 return (srno || path); 726 char *path, char *driver, char **errmsg) 737 DPRINTF("add_entry: driver=%s, path=%s\n", 738 driver ? driver : "", path ? path : ""); 755 cfgrec.pathname = path; 725 add_entry(char *selection, int vid, int pid, int cfgndx, char *srno, char *path, char *driver, char **errmsg) argument [all...] |
H A D | cfga_usb.h | 68 char *path; member in struct:walk_link
|
/illumos-gate/usr/src/lib/efcode/engine/ |
H A D | env.c | 712 * path - flag to indicate if a device path is to be generated 715 fc_cmn_start(fcode_env_t *env, char *head, int path) argument 726 if (path && env->current_device) { 745 * header and no device path information. 760 * header but specifying device path information. 776 * the header and specification of device path information. 791 * the header and specification of device path information. 806 * the header and specification of device path information. 821 * the header and specification of device path informatio [all...] |
H A D | package.c | 556 match_package_path(fcode_env_t *env, char *path) argument 562 if (*path == '/') { 564 path++; 567 while (*path != '\0' && d != NULL) { 570 if (strncmp(name, path, len) == 0) { 571 path += len; 572 if (*path == '\0') { 576 if (*path++ != '/') 622 char *path; local 627 if ((path 714 char *pre_path, *name, *path; local [all...] |
/illumos-gate/usr/src/lib/fm/libfmd_adm/common/ |
H A D | fmd_adm.c | 350 fmd_adm_module_load(fmd_adm_t *ap, const char *path) argument 352 char *str = (char *)path; 357 if (path == NULL || path[0] != '/')
|
/illumos-gate/usr/src/lib/fm/libfmd_log/common/ |
H A D | fmd_log.c | 283 char dirbuf[PATH_MAX], path[PATH_MAX], *dirpath; local 299 (void) snprintf(path, sizeof (path), 302 if (strcmp(path, lp->log_path) != 0 && 303 stat(path, &statbuf) != -1 && 305 (xlp = fmd_log_open(lp->log_abi, path, NULL)) != NULL) {
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_mod.c | 115 char *path; local 136 path = topo_search_path(pmod, thp->th_rootdir, (const char *)file); 137 if (path == NULL || 138 (mod = topo_modhash_load(thp, name, path, &topo_rtld_ops, version)) 140 topo_mod_strfree(pmod, path); 146 topo_mod_strfree(pmod, path); 499 topo_mod_pkgfmri(topo_mod_t *mod, int version, const char *path) argument 511 if (nvlist_add_string(args, "path", path) != 0) {
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_subr.c | 44 /* max pci path = 256 */ 47 /* max pci path + child + minor */ 151 * Build a device path without device names (PRI like) from a devinfo 152 * node. Return the PRI like path. 163 char *path = NULL; local 178 topo_mod_dprintf(mod, "pi_get_dipath: path too " 196 * Build the path from the bus addresses. 199 path = (char *)topo_mod_alloc(mod, path_len); 200 path = strcpy(path, dev_pat 595 char *path = NULL; local [all...] |
/illumos-gate/usr/src/lib/libsec/common/ |
H A D | aclutils.c | 225 acl_get(const char *path, int get_flag, acl_t **aclp) argument 228 acl_inp.file = path; 300 acl_set(const char *path, acl_t *aclp) argument 304 acl_inp.file = path;
|
/illumos-gate/usr/src/lib/libdevice/ |
H A D | devctl.c | 56 char *opath; /* copy of the original path */ 228 dc_mkhndl(dc_type_t type, char *path, uint_t oflags, devctl_hdl_t pc) argument 239 if ((path == NULL) || (strlen(path) > MAXPATHLEN - 1)) { 245 * allocate handle and make a copy of the original path 251 if ((dcp->opath = strdup(path)) == NULL) { 257 (void) strcpy(iocpath, path); 1012 * Call dc_mkhndl() with this constructed path and
|
/illumos-gate/usr/src/lib/libdscfg/common/ |
H A D | cfg_vols.c | 62 char *path; member in struct:hash_data_s 70 char *path; member in struct:__anon3186 105 * char *path: The pathname of the volume to be enabled. 121 cfg_add_user(CFGFILE* cfg, char *path, char *cnode, char *user) argument 167 (void) snprintf(search_key, CFG_MAX_KEY, "%s:%s", path, cnode); 173 (void) snprintf(buf, CFG_MAX_BUF, "%s %s %s", path, cnode, 210 data->path, data->node, data->u.users, user); 266 * char *path: The pathname of the volume to be enabled. 281 cfg_rem_user(CFGFILE *cfg, char *path, char *cnode, char *user) argument 336 (void) snprintf(search_key, CFG_MAX_KEY, "%s:%s", path, cnod 481 cfg_vol_enable(CFGFILE *cfg, char *path, char *ctag, char *user) argument 528 cfg_vol_disable(CFGFILE *cfg, char *path, char *ctag, char *user) argument 589 char **entry, *path, *cnode, *users; local 703 char *path, *mode, *cnode; local 794 cfg_get_canonical_name(CFGFILE *cfg, const char *path, char **result) argument 921 make_dsvol_data(char *path, char *cnode, char *users, int set) argument 950 make_svol_data(char *path, char *mode, char *cnode, int set) argument 980 sv_action(char *path, CFGFILE *caller_cfg, char *ctag, int enable) argument 1159 add_dev_entry(const char *path) argument 1234 find_devid(const char *path) argument [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_options.c | 473 char *path; local 478 if ((path = strdup(arg)) == NULL) 482 dp->dir_path = path;
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | expand.c | 106 PathName *path; /* The pathname being matched */ member in struct:ExpandFile 112 /* expanding a path. */ 123 static char *ef_expand_special(ExpandFile *ef, const char *path, int pathlen); 184 ef->path = NULL; 211 ef->path = _new_PathName(); 212 if(!ef->path) 263 ef->path = _del_PathName(ef->path); 322 * path char * The path nam 348 ef_expand_file(ExpandFile *ef, const char *path, int pathlen) argument 1043 ef_expand_special(ExpandFile *ef, const char *path, int pathlen) argument [all...] |
H A D | pcache.c | 67 * the builtin path-completion callback function to modify its behavior. 71 PathCache *pc; /* The path-list cache in which to look up the executables */ 93 * whenever the path is scanned and whenever the check_fn() callback 123 PathNode *next; /* The next directory in the path */ 136 * Append a new node to the list of directories in the path. 156 /* path, or NULL if no path has been scanned yet. */ 158 /* path, or NULL if no path has been scanned yet. */ 159 PathName *path; /* Th member in struct:PathCache 510 pca_scan_path(PathCache *pc, const char *path) argument 583 pca_extract_dir(PathCache *pc, const char *path, const char **nextp) argument 1636 pca_expand_tilde(PathCache *pc, const char *path, int pathlen, int literal, const char **endp) argument [all...] |