/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | fts.c | 71 char* base; /* basename in path */ \ 73 char* path; /* path workspace */ \ 74 char* home; /* home/path buffer */ \ 413 setdir(register char* home, register char* path) argument 417 if (path[0] == '/') 418 cdrv = pathcd(path, NiL); 422 * note that path and home are in the same buffer 425 path[-1] = '/'; 427 path[ 439 setpdir(register char* home, register char* path, register char* base) argument 504 info(FTS* fts, register FTSENT* f, const char* path, struct stat* sp, int flags) argument 584 register char* path; local [all...] |
H A D | glob.c | 78 gl_diropen(glob_t* gp, const char* path) argument 80 return (*gp->gl_opendir)(path); 121 gl_type(glob_t* gp, const char* path, int flags) argument 126 if ((flags & GLOB_STARSTAR) ? (*gp->gl_lstat)(path, &st) : (*gp->gl_stat)(path, &st)) 144 gl_attr(glob_t* gp, const char* path, int flags) argument 146 return strchr(astconf("PATH_ATTRIBUTES", path, NiL), 'c') ? GLOB_ICASE : 0; 185 errorcheck(register glob_t* gp, const char* path) argument 190 r = (*gp->gl_errfn)(path, errno);
|
/illumos-gate/usr/src/lib/libast/common/port/ |
H A D | astconf.c | 309 synthesize(register Feature_t* fp, const char* path, const char* value) argument 319 error(-2, "astconf synthesize name=%s path=%s value=%s fp=%p%s", fp->name, path, value, fp, state.synthesizing ? " SYNTHESIZING" : ""); 402 if ((!path || *path == *p && strlen(path) == (v - p - 1) && !memcmp(path, p, v - p - 1)) && strneq(v, value, n)) 430 if (!path || !path[0] || path[ 486 initialize(register Feature_t* fp, const char* path, const char* command, const char* succeed, const char* fail) argument 602 format(register Feature_t* fp, const char* path, const char* value, unsigned int flags, Error_f conferror) argument 753 feature(const char* name, const char* path, const char* value, unsigned int flags, Error_f conferror) argument 943 print(Sfio_t* sp, register Lookup_t* look, const char* name, const char* path, int listflags, Error_f conferror) argument 1354 astgetconf(const char* name, const char* path, const char* value, int flags, Error_f conferror) argument 1484 astconf(const char* name, const char* path, const char* value) argument 1511 astconflist(Sfio_t* sp, const char* path, int flags, const char* pattern) argument [all...] |
/illumos-gate/usr/src/uts/sun4u/starcat/io/ |
H A D | sc_gptwocfg.c | 1058 char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP); local 1064 (void) ddi_pathname(fdip, path); 1067 (void) ddi_pathname(ap, path); 1071 "path=%s, dip=%p, rv=%d", path, fdip ? (void *)fdip : 1074 kmem_free(path, MAXPATHLEN); 1107 char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP); local 1113 (void) ddi_pathname(fdip, path); 1116 (void) ddi_pathname(saf_dip, path); 1120 "path [all...] |
/illumos-gate/usr/src/uts/sun/io/ttymux/ |
H A D | ttymux_ioctl.c | 126 * Given a device path return an OBP alias for it if it exists. 129 val2alias(pnode_t node, char *path) argument 140 path, strlen(path))); 161 if (strcmp(propval, path) == 0) { 342 * path: an OBP device path 344 * append: if true include the alias for path in the property list 348 upd_config(boolean_t append, char *pname, char *path) argument 368 sm_dbg('I', ("upd_config: %s=%s (%s)\n", pname, pval, path)); 453 update_config(sm_mux_state_t *ms, char *path, io_mode_t mode, int cmd) argument 476 char *p, *path; local [all...] |
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/ttymux_dacf/ |
H A D | ttymux_dacf.c | 395 * Search for a console structure matching a device path. 399 get_aconsole(sm_mux_state_t *ms, char *path) argument 406 if (cn->sm_path && strcmp(cn->sm_path, path) == 0) 422 * identified by path. The void * argument indicates which I/O 426 add_aconsole(sm_mux_state_t *ms, char *path, void *arg) argument 431 if (*path == '/') { 432 cpath = kmem_alloc(strlen(path) + 1, KM_SLEEP); 433 (void) strcpy(cpath, path); 434 } else if (read_prop(prom_alias_node(), path, &cpath) <= 0) { 493 * If the minor name is not part of the path an 549 di_devtype(char *path) argument [all...] |
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | exec.c | 195 char *path; local 208 if ((path = getenv("PATH")) == NULL) 209 path = "/usr/bin:/bin"; 211 cp = strchr(name, '/')? (const char *)"": path; 308 char *path = NULL; local 453 /* Set a default path */ 634 path = makepath(Lp_Temp, tmpName, (char *)0); 635 if ((path != NULL) && (stat(path, &tmpBuf) == 0)) 641 addenv(&envp, "ATTRPATH", path); [all...] |
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | lux_util.c | 67 static int cleanup_dotdot_path(char *path); 661 scsi_release(char *path) argument 668 P_DPRINTF(" scsi_release: Release: Path %s\n", path); 669 if ((fd = open(path, O_NDELAY | O_RDONLY)) == -1) 688 scsi_reserve(char *path) argument 695 P_DPRINTF(" scsi_reserve: Reserve: Path %s\n", path); 696 if ((fd = open(path, O_NDELAY | O_RDONLY)) == -1) 746 print_inq_data(char *arg_path, char *path, L_inquiry inq, uchar_t *serial, argument 840 * arg_path is the path sent to luxadm by the user. if arg_path 841 * is a /devices path, the 1118 cleanup_dotdot_path(char *path) argument 1512 get_mode_page(char *path, uchar_t **pg_buf) argument [all...] |
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | read.cc | 76 * chase_path Use the makefile path when opening file 102 char *path; local 138 char *path; local 145 asprintf(&path, "%s/../share/lib/make", pfx); 146 add_dir_to_path(path, &makefile_path, -1); 147 free(path); 150 asprintf(&path, "%s/../../share/", pfx); 151 add_dir_to_path(path, &makefile_path, -1); 152 free(path); 179 &path, [all...] |
/illumos-gate/usr/src/lib/libc/port/i18n/ |
H A D | gettext.h | 119 char *path; /* name of message catalog */ member in struct:msg_node 131 char *ppaths; /* value: expanded path */
|
/illumos-gate/usr/src/uts/common/cpr/ |
H A D | cpr_misc.c | 45 #define cpr_open(path, mode, vpp) (vn_open(path, UIO_SYSSPACE, \ 212 * concat fs and path fields of the cprconfig structure; 223 * build /fs/path without extra '/' 243 * for CFT_SPEC and CFT_ZVOL, cf_path must be the path to a block 255 static const char path_chg_fmt[] = "Device path for statefile " 353 "statefile path %s was not found.\n", sfpath); 373 * path prefix, remember the end of the string in 472 char *path = cpr_build_statefile_path(); local 474 if (path [all...] |
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_pathname.c | 45 smb_is_executable(char *path) argument 48 int len = strlen(path); 50 if ((len >= 4) && (path[len - 4] == '.')) { 51 (void) strcpy(extension, &path[len - 3]); 73 * smb_pathname_reduce() takes a path and returns the smb_node for the 74 * second-to-last component of the path. It also returns the name of the last 89 * *path (in) 97 * (e.g. the call from smbsr_setup_share()). (Such callers will have path 112 * Directory for the penultimate component of the original path. 122 * The last component of the path 144 smb_pathname_reduce( smb_request_t *sr, cred_t *cred, const char *path, smb_node_t *share_root_node, smb_node_t *cur_node, smb_node_t **dir_node, char *last_component) argument 358 smb_pathname(smb_request_t *sr, char *path, int flags, smb_node_t *root_node, smb_node_t *cur_node, smb_node_t **dir_node, smb_node_t **ret_node, cred_t *cred) argument 629 smb_lookuppathvptovp(smb_request_t *sr, char *path, vnode_t *startvp, vnode_t *rootvp) argument 674 smb_pathname_init(smb_request_t *sr, smb_pathname_t *pn, char *path) argument 891 char *path = pn->pn_path; local 935 char *path = pn->pn_path; local 997 smb_stream_parse_name(char *path, char *filename, char *stream) argument 1035 smb_is_stream_name(char *path) argument 1106 smb_pathname_dfs_preprocess(smb_request_t *sr, char *path, size_t pathsz) argument [all...] |
/illumos-gate/usr/src/cmd/dis/ |
H A D | dis_main.c | 652 char *path; member in struct:lib_node 697 node->path = safe_malloc(len); 699 (void) snprintf(node->path, len, "%s/lib%s.a", dir, 754 dis_file(libs->path); 755 free(libs->path);
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_doorsvc.c | 712 smb_string_t path; local 715 bzero(&path, sizeof (smb_string_t)); 718 if (smb_string_decode(&path, arg->data, arg->datalen) != 0) 721 if (smbd_vss_get_count(path.buf, &count) == 0) 725 xdr_free(smb_string_xdr, (char *)&path); 786 * Return the name of the snapshot that matches the dataset path
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | vfs.c | 221 * In normal mode, we truncate the path to keep the output 222 * clean. In -v mode, we just print the full path. 455 * Do some digging to get a reasonable pathname for this vnode. 'path' 459 pfiles_dig_pathname(uintptr_t vp, char *path) argument 463 bzero(path, MAXPATHLEN); 482 * For sockets, we won't find a path unless we print the path 512 (void) mdb_vnode2path(vp, path, MAXPATHLEN); 520 if (strncmp("/dev/../devices/", path, strlen("/dev/../devices/")) == 0) 521 strcpy(path, pat 931 char path[MAXPATHLEN]; local [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk_common.c | 63 * Given a /devices path for a whole disk, appending this extension gives the 64 * path to a raw device that can be opened. 114 * group: io properties: devfs-path, devid 191 /* create/set the devfs-path and devid in the io group */ 217 "set phys-path error %s\n", topo_strerror(err)); 442 const char *path) 457 if (di_devfs_path_match(dnode->ddn_ppath[0], path)) 463 "failed to find disk matching path %s", path); 577 char *path; local 441 disk_declare_path(topo_mod_t *mod, tnode_t *parent, topo_list_t *listp, const char *path) argument [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | did_props.c | 334 dev_path_fix(topo_mod_t *mp, char *path, int devno, int fnno) argument 341 * We only care about the last component of the dev path. If 344 lastslash = strrchr(path, '/'); 353 return (path); 356 need = snprintf(NULL, 0, "%s@%x", path, devno); 358 need = snprintf(NULL, 0, "%s@%x,%x", path, devno, fnno); 362 topo_mod_strfree(mp, path); 367 (void) snprintf(newpath, need, "%s@%x", path, devno); 369 (void) snprintf(newpath, need, "%s@%x,%x", path, devno, fnno); 371 topo_mod_strfree(mp, path); 380 dev_for_hostbridge(topo_mod_t *mp, char *path) argument 421 char *dnpath, *path, *fpath, *nm; local 716 char *path, *fpath; local [all...] |
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/ |
H A D | zfs_mod.c | 38 * 2. If no vdevs are found, then search for any vdevs whose devfs path 134 * The device associated with the given vdev (either by devid or physical path) 151 char *path; local 160 if (nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path) != 0) 171 (void) strlcpy(fullpath, path, sizeof (fullpath)); 177 * GUID, but the current interface only supports lookup by path. 212 if (strncmp(path, ZFS_DISK_ROOTD, 219 (void) strlcpy(rawpath, path + 9, sizeof (rawpath)); 233 * path/physpath/wholedisk to keep it simple. 244 nvlist_add_string(newvd, ZPOOL_CONFIG_PATH, path) ! 281 char *path; local 463 char path[PATH_MAX], realpath[PATH_MAX]; local 554 char *path, fullpath[MAXPATHLEN]; local [all...] |
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_vdev.c | 33 * disk=(path=..., devid=...) 34 * file=(path=...) 132 check_slice(const char *path, int force, boolean_t wholedisk, boolean_t isspare) argument 145 if (dm_inuse((char *)path, &msg, who, &error) || error) { 162 (dm_isoverlapping((char *)path, &msg, &error) || error)) { 165 vdev_error(gettext("%s overlaps with %s\n"), path, msg); 255 check_device(const char *path, boolean_t force, boolean_t isspare) argument 262 * For whole disks, libdiskmgt does not include the leading dev path. 264 dev = strrchr(path, '/'); 268 err = check_disk(path, des 365 char path[MAXPATHLEN]; local 392 char path[MAXPATHLEN]; local 618 char *path; local 890 char *type, *path, *diskname; local 983 is_spare(nvlist_t *config, const char *path) argument 1037 char *type, *path; local 1387 char *path; local [all...] |
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_profile.c | 171 /* handle glob pattern in the middle of a path */ 840 * Parse path components and apply requested matching rule at 845 char *path, char *tgt, int type) 851 if ((strlen(path) > 5) && (strncmp(path, "/dev/", 5) == 0)) { 852 path += 5; 855 if (pn_get(path, UIO_SYSSPACE, &pn) != 0) 874 path, rv); 844 process_rule(struct sdev_node *dir, struct sdev_node *gdir, char *path, char *tgt, int type) argument
|
H A D | sdev_zvolops.c | 216 * path and an optional name (can be NULL). 218 * Note that if the name param is NULL, then path must be an 224 devzvol_make_dsname(const char *path, const char *name) argument 230 if (strcmp(path, ZVOL_DIR) == 0) 234 ptr = path + strlen(ZVOL_DIR); 789 * sdev_name is always last path component of sdev_path
|
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_dataset.c | 759 const char *path = local 762 zfs_handle_t *zhp = zfs_open(g_zfs, path, 771 } else if (is_pool_name(path)) { 777 path); 789 (*env)->ReleaseStringUTFChars(env, pathUTF, path);
|
/illumos-gate/usr/src/uts/common/contract/ |
H A D | device.c | 121 * Other terms include the "minor path" term, specified explicitly if the 216 * (such as the minor node path, the acceptable state set (or A-set) 240 * CTD_ALL is specified, the minor node path is returned as well. 724 * There is no default minor path. 984 char *path; local 986 path = kmem_alloc(MAXPATHLEN, KM_SLEEP); 987 (void) ddi_pathname(dip, path); 989 "device=%s", path)); 990 kmem_free(path, MAXPATHLEN); 1203 char *path; local 1329 char *path; local 1589 char *path = NULL; local [all...] |
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm_hyper.c | 77 * Return a pointer to a copy of the path so a caller can 94 * Replace the substring "old_str" in a path with the substring "new_str" 99 modify_path(char *path, char *old_str, char *new_str) argument 106 * Return a pointer to a copy of the path so a caller can always rely 109 if ((pc = strstr(path, old_str)) == NULL) 110 return (s_strdup(path)); 113 * Allocate space for duplicate of path with name changes and 116 len = strlen(path) - strlen(old_str) + strlen(new_str) + 1; 123 (void) strlcpy(newpath, path, (pc - path) 510 cvt_metal_kernel(char *kernstr, char **path) argument 608 cvt_hyper_module(char *modstr, char **path) argument [all...] |
H A D | bootadm_loader.c | 372 bam_error(_("cannot resolve path %s: %s\n"), 429 BAM_DPRINTF(("%s: menu path is: %s\n", fcn, menu_path)); 565 char path[PATH_MAX]; local 621 (void) snprintf(path, PATH_MAX, "%s" CONF_DIR "/timeout", 624 fp = fopen(path, "w"); 627 path, strerror(errno)); 641 path, strerror(errno)); 649 path, strerror(errno)); 653 (void) unlink(path); 981 char path[PATH_MA local 1016 char path[PATH_MAX]; local 1202 char path[PATH_MAX]; local 1214 char path[PATH_MAX]; local [all...] |