/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | devtype.c | 47 devp->dirname = devp->pathname = devp->mount = NULL; in devtype() 107 devp->pathname = alias; in devtype() 113 devp->pathname = name; in devtype()
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | inst_sync.c | 33 inst_sync(char *pathname, int flags) in inst_sync() argument 35 return (syscall(SYS_inst_sync, pathname, flags)); in inst_sync()
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | cplfile.c | 621 char *pathname = cf->path->name; in cf_complete_entry() local 622 int pathlen = strlen(pathname); in cf_complete_entry() 627 strncmp(pathname + start, FS_DIR_SEP, FS_DIR_SEP_LEN) != 0; start--) in cf_complete_entry() 633 (start < 0 && strncmp(pathname, FS_ROOT_DIR, FS_ROOT_DIR_LEN) == 0)) { in cf_complete_entry() 646 pathname[start] = '\0'; in cf_complete_entry() 647 dirpath = pathname; in cf_complete_entry() 669 memcpy(pathname + start, FS_DIR_SEP, FS_DIR_SEP_LEN); in cf_complete_entry() 675 prefix = pathname + start; in cf_complete_entry()
|
H A D | expand.c | 113 static int ef_record_pathname(ExpandFile *ef, const char *pathname, 115 static char *ef_cache_pathname(ExpandFile *ef, const char *pathname, 119 static DirNode *ef_open_dir(ExpandFile *ef, const char *pathname); 597 static int ef_record_pathname(ExpandFile *ef, const char *pathname, in ef_record_pathname() argument 604 copy = ef_cache_pathname(ef, pathname, remove_escapes); in ef_record_pathname() 645 static char *ef_cache_pathname(ExpandFile *ef, const char *pathname, in ef_cache_pathname() argument 648 char *copy = _sg_store_string(ef->sg, pathname, remove_escapes); in ef_cache_pathname() 683 static DirNode *ef_open_dir(ExpandFile *ef, const char *pathname) in ef_open_dir() argument 734 if(_dr_open_dir(node->dr, pathname, &errmsg)) { in ef_open_dir()
|
H A D | direader.c | 79 static int _dr_path_is_dir(const char *pathname); 295 static int _dr_path_is_dir(const char *pathname) in _dr_path_is_dir() argument 301 if(stat(pathname, &statbuf) < 0) in _dr_path_is_dir()
|
/illumos-gate/usr/src/cmd/mdb/intel/modules/sata/ |
H A D | sata.c | 137 char pathname[MAXPATHLEN]; in sata_dmsg_dump() local 172 (uintptr_t)dmsg.dip, pathname, in sata_dmsg_dump() 173 sizeof (pathname)); in sata_dmsg_dump() 174 mdb_printf("[%s]", pathname); in sata_dmsg_dump()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | inst_sync.c | 75 static int in_sync_sys(char *pathname, uint_t flags); 126 in_sync_sys(char *pathname, uint_t flags) in in_sync_sys() argument 165 if ((error = vn_open(pathname, UIO_USERSPACE, in in_sync_sys() 185 (void) vn_remove(pathname, UIO_USERSPACE, RMFILE); in in_sync_sys()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Psyscall.c | 84 char pathname[PATH_MAX]; in Pcreate_agent() local 127 (void) snprintf(pathname, sizeof (pathname), "%s/%d/lwp/agent/", in Pcreate_agent() 129 fname = pathname + strlen(pathname); in Pcreate_agent() 139 if ((fd = open(pathname, O_RDONLY)) < 0 || in Pcreate_agent() 145 if ((fd = open(pathname, O_WRONLY)) < 0 || in Pcreate_agent()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | krbfileio.c | 17 krb5_create_secure_file(krb5_context context, const char *pathname) in krb5_create_secure_file() argument 31 fd = open(pathname, open_flag | O_BINARY, 0600); in krb5_create_secure_file()
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_subr.c | 1088 tmp = strchr(pathname, ':'); in pn_preprocess() 1100 if (pathname == NULL) in pn_getnextcomp() 1104 while (*pathname == '/') in pn_getnextcomp() 1105 ++pathname; in pn_getnextcomp() 1107 if (*pathname == '\0') in pn_getnextcomp() 1118 return (pathname); in pn_getnextcomp() 1139 if (pathname == NULL) in rsrc_node_find() 1157 free(pathname); in rsrc_node_find() 1166 lasts = pathname; in rsrc_node_find() 1172 free(pathname); in rsrc_node_find() [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | resolvepath.c | 38 struct pathname lookpn; in resolvepath() 39 struct pathname resolvepn; in resolvepath()
|
/illumos-gate/usr/src/uts/sun4/io/fpc/ |
H A D | fpc-impl.c | 95 char pathname[MAXPATHLEN]; in fpc_common_node_setup() local 97 (void) ddi_pathname(dip, pathname); in fpc_common_node_setup() 99 kmem_zalloc(strlen(pathname)+1, KM_SLEEP); in fpc_common_node_setup() 100 (void) strcpy(node_data[this_node].name, pathname); in fpc_common_node_setup()
|
/illumos-gate/usr/src/lib/libsmedia/library/common/ |
H A D | l_misc.c | 207 char *pathname; in get_dev_library_handle() local 218 if ((pathname = malloc(PATH_MAX)) == NULL) { in get_dev_library_handle() 226 free(pathname); in get_dev_library_handle() 235 if (snprintf(pathname, PATH_MAX, "%s/%s", in get_dev_library_handle() 240 handle = dlopen(pathname, RTLD_LAZY); in get_dev_library_handle() 276 free(pathname); in get_dev_library_handle()
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | stdio.c | 472 sm_io_fopen(char *pathname, int flags, ...) in sm_io_fopen() argument 474 sm_io_fopen(pathname, flags, va_alist) in sm_io_fopen() 475 char *pathname; in sm_io_fopen() 511 fp->f_file = open(pathname, flags, mode);
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | trace.c | 931 char pathname[MAXLINE]; in generate_aux_file() local 935 (void) snprintf(pathname, sizeof (pathname), "%s.pf", in generate_aux_file() 937 errlog(TRACING, "output file = '%s'", pathname); in generate_aux_file() 938 if ((fp = fopen(pathname, "w")) == NULL) { in generate_aux_file() 939 errlog(FATAL, "%s: %s", pathname, strerror(errno)); in generate_aux_file() 958 errlog(FATAL, "fclose %s: %s", pathname, strerror(errno)); in generate_aux_file()
|
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/ |
H A D | create.c | 396 plc.mapper.pathname = get_string(optarg_av, in kc_create() 398 if (plc.mapper.pathname == NULL) { in kc_create() 506 if ((plc.mapper.mapname != NULL && plc.mapper.pathname != NULL) || in kc_create() 507 (plc.mapper.dir != NULL && plc.mapper.pathname != NULL) || in kc_create() 510 plc.mapper.pathname == NULL)) { in kc_create()
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | devattr.c | 138 val = (record->pathname != NULL) ? record->pathname : ""; in devattr()
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | lookup.c | 93 struct pathname lookpn; in lookupnameatcred() 125 struct pathname *pnp, in lookuppn() 126 struct pathname *rpnp, in lookuppn() 140 struct pathname *pnp, /* pathname to lookup */ in lookuppnatcred() 141 struct pathname *rpnp, /* if non-NULL, return resolved path */ in lookuppnatcred() 184 lookuppnat(struct pathname *pnp, struct pathname *rpnp, in lookuppnat() 213 struct pathname *pnp, /* pathname to lookup */ in lookuppnvp() 214 struct pathname *rpnp, /* if non-NULL, return resolved path */ in lookuppnvp() 227 struct pathname presrvd; /* case preserved name */ in lookuppnvp() 228 struct pathname *pp = NULL; in lookuppnvp() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | crypt.c | 494 char *pathname = NULL; in getalgbyname() local 590 if ((pathname = isa_path(token)) == NULL) { in getalgbyname() 613 if ((alg->a_libhandle = dlopen(pathname, RTLD_NOW)) == NULL) { in getalgbyname() 615 pathname, dlerror()); in getalgbyname() 625 "symbol in %s: %s", pathname, dlerror()); in getalgbyname() 634 "symbol in %s: %s", pathname, dlerror()); in getalgbyname() 678 if (pathname != NULL) { in getalgbyname() 679 free(pathname); in getalgbyname()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | spa_config.c | 82 char *pathname; in spa_config_load() local 89 pathname = kmem_alloc(MAXPATHLEN, KM_SLEEP); in spa_config_load() 91 (void) snprintf(pathname, MAXPATHLEN, "%s%s", in spa_config_load() 94 file = kobj_open_file(pathname); in spa_config_load() 96 kmem_free(pathname, MAXPATHLEN); in spa_config_load()
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/ |
H A D | Makefile.com | 192 pathname.o \ 255 pics/pathname.o: $(SRC)/uts/common/fs/pathname.c 256 $(COMPILE.c) -o $@ $(SRC)/uts/common/fs/pathname.c
|
/illumos-gate/usr/src/cmd/pcitool/ |
H A D | pcitool.c | 67 char *pathname; member 144 static int do_probe_walk(pcitool_uiargs_t *input_args_p, char *pathname); 867 char *pathname = walk_args_p->pathname; in process_nexus_node() local 881 if ((pathname != NULL) && in process_nexus_node() 882 ((strstr(nexus_path, pathname) != nexus_path) || in process_nexus_node() 884 (strlen(pathname) + strlen(PCI_MINOR_REG) + 1)))) { in process_nexus_node() 899 if (pathname == NULL) { in process_nexus_node() 924 return ((pathname == NULL) ? DI_WALK_CONTINUE : DI_WALK_TERMINATE); in process_nexus_node() 936 do_probe_walk(pcitool_uiargs_t *input_args_p, char *pathname) in do_probe_walk() argument 958 walk_args.pathname = pathname; in do_probe_walk()
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | efipart.c | 627 char *pathname, *p; in efipart_hdinfo_add_filepath() local 639 if ((pathname = malloc(len + 1)) == NULL) { in efipart_hdinfo_add_filepath() 644 cpy16to8(node->PathName, pathname, len + 1); in efipart_hdinfo_add_filepath() 645 p = strchr(pathname, ':'); in efipart_hdinfo_add_filepath() 655 free(pathname); in efipart_hdinfo_add_filepath() 662 printf("Bad unit number for partition \"%s\"\n", pathname); in efipart_hdinfo_add_filepath() 663 free(pathname); in efipart_hdinfo_add_filepath() 675 printf("BUG: No disk for partition \"%s\"\n", pathname); in efipart_hdinfo_add_filepath() 676 free(pathname); in efipart_hdinfo_add_filepath() 684 free(pathname); in efipart_hdinfo_add_filepath()
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_digraph.c | 821 char *pathname; in path_fmri_nvl2str() local 825 &pathname); in path_fmri_nvl2str() 830 pathname, pathinst)) < 0) { in path_fmri_nvl2str() 857 char *dg_scheme, *dg_scheme_end, *pathname, *path_start; in path_fmri_str2nvl() local 907 pathname = fmristr + path_offset + 1; in path_fmri_str2nvl() 961 if ((end = strchr(pathname, '=')) == NULL) { in path_fmri_str2nvl() 995 if (nvlist_add_string(pathcomp, FM_FMRI_PATH_NAME, pathname) != in path_fmri_str2nvl() 1003 pathname = end + 1; in path_fmri_str2nvl()
|
/illumos-gate/usr/src/uts/common/fs/devfs/ |
H A D | devfs_vfsops.c | 453 char *pathname, /* user pathname */ in devfs_lookupname() argument 457 struct pathname pn; in devfs_lookupname() 461 ASSERT(pathname); /* must have some path */ in devfs_lookupname() 463 if (error = pn_get(pathname, UIO_SYSSPACE, &pn)) in devfs_lookupname()
|