/illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | dict.c | 51 * side effect: the directory "path" will be created if it didn't exist. 54 lock_db(char *path) argument 60 /* create directory "path" if it doesn't exist */ 61 if (stat(path, &st) == -1) { 63 (mkdir(path, 0755) == -1 || chmod(path, 0755) == -1)) 67 (void) snprintf(dblock, sizeof (dblock), "%s/authtok_check.lock", path); 121 database_present(char *path) argument 129 (void) snprintf(dict_hwm, sizeof (dict_hwm), "%s/%s", path, 131 (void) snprintf(dict_pwd, sizeof (dict_pwd), "%s/%s", path, 158 build_dict_database(char *list, char *path) argument 168 update_dict_database(char *list, char *path) argument 237 make_dict_database(char *list, char *path) argument [all...] |
H A D | packlib.c | 17 PWRemove(char *path) argument 21 (void) snprintf(fname, sizeof (fname), "%s/%s", path, 24 (void) snprintf(fname, sizeof (fname), "%s/%s", path, 27 (void) snprintf(fname, sizeof (fname), "%s/%s", path, 33 PWOpen(char *path, char *mode) argument 54 (void) snprintf(iname, sizeof (iname), "%s/%s", path, 56 (void) snprintf(dname, sizeof (dname), "%s/%s", path, 58 (void) snprintf(wname, sizeof (wname), "%s/%s", path,
|
/illumos-gate/usr/src/lib/scsi/libsmp/common/ |
H A D | smp_plugin.c | 210 smp_plugin_loadone(smp_target_t *tp, const char *path, uint32_t pass) argument 216 if ((obj = dlopen(path, RTLD_PARENT | RTLD_LOCAL | RTLD_LAZY)) == NULL) 267 char path[PATH_MAX]; local 273 (void) snprintf(path, sizeof (path), "%s/%s", 283 if ((dirp = opendir(path)) != NULL) { 289 (void) snprintf(path, sizeof (path), "%s/%s/%s/%s", 293 if (smp_plugin_loadone(tp, path, 0) != 0) { 334 (void) snprintf(path, sizeo [all...] |
/illumos-gate/usr/src/lib/efcode/fcdriver/ |
H A D | load_node.c | 53 * Build the library/drop-in fcode search path. If there's no architecture 54 * passed, we build the search path (per the PSARC decision): 58 * If there is an architecture passed, we prepend the following search path to 136 load_lib_file(char *path) argument 140 debug_msg(DEBUG_FIND_FCODE, "load_lib_file: '%s' -> ", path); 141 if (stat(path, &buf)) { 145 if (dlopen(path, RTLD_NOW) != NULL) { 154 is_fcode_file(char *path) argument 163 debug_msg(DEBUG_FIND_FCODE, "%s: '%s' -> ", func_name, path); 164 if ((fd = open(path, [all...] |
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_module.c | 201 set_create_error(topo_hdl_t *thp, topo_mod_t *mod, const char *path, int err) argument 203 if (path != NULL) 205 "%s\n", path, topo_strerror(err)); 219 topo_mod_create(topo_hdl_t *thp, const char *name, const char *path, argument 225 return (set_create_error(thp, NULL, path, ETOPO_MOD_LOADED)); 228 return (set_create_error(thp, mod, path, ETOPO_NOMEM)); 235 if (path != NULL) 236 mod->tm_path = topo_hdl_strdup(thp, path); 239 return (set_create_error(thp, mod, path, ETOPO_NOMEM)); 248 return (set_create_error(thp, mod, path, mo 309 topo_modhash_load(topo_hdl_t *thp, const char *name, const char *path, const topo_imodops_t *ops, topo_version_t version) argument [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_pciexrc.c | 197 char *path = NULL; local 228 * Calculate the device path for this root complex node. 230 path = pi_get_path(mod, mdp, mde_node); 231 if (path == NULL) { 233 /* "path" not required for hostbridge */ 236 topo_mod_dprintf(mod, "%s node_0x%llx has no path\n", 244 devfmri = topo_mod_devfmri(mod, FM_DEV_SCHEME_VERSION, path, NULL); 285 TOPO_PROP_IMMUTABLE, path, &err); 306 * Derived the driver name from the device path. 308 dnode = di_init(path, DIIO 422 char *path; local [all...] |
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | regress.c | 103 "[+sh_source()?The trace line info is the path of the script " 252 char* sh_regress_etc(const char* path, unsigned int line, const char* file) argument 254 REGRESS(etc, "sh_open", ("%s => %s%s", path, intercept_etc, path+4));
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | file.c | 73 struct smb_ctx *ctx, char *path, 82 nmlen = strlen(path); 108 strlcpy(ioc.ioc_name, path, SMBIOC_MAX_NAME); 133 smb_fh_open(struct smb_ctx *ctx, const char *path, int oflag) argument 140 * Convert Unix path to NT (backslashes) 142 ntpath = strdup(path); 72 smb_fh_ntcreate( struct smb_ctx *ctx, char *path, int req_acc, int efattr, int share_acc, int open_disp, int create_opts) argument
|
/illumos-gate/usr/src/lib/libcontract/common/ |
H A D | libcontract_priv.c | 86 char path[PATH_MAX]; local 94 n = snprintf(path, PATH_MAX, CTFS_ROOT "/%s/%ld/%s", type, ctid, file); 100 fd = open64(path, oflag);
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_finddev.c | 64 * If the path refers into the /dev filesystem, use a 100 finddev_readdir_alt(const char *path, finddevhdl_t *handlep) argument 108 if ((dir = opendir(path)) == NULL) 178 finddev_readdir_devfs(const char *path, finddevhdl_t *handlep) argument 197 rv = modctl(MODDEVREADDIR, path, strlen(path), NULL, &bufsiz); 210 rv = modctl(MODDEVREADDIR, path, strlen(path), 251 finddev_readdir(const char *path, finddevhdl_t *handlep) argument 253 if (GLOBAL_DEV_PATH(path)) { 265 finddev_emptydir_alt(const char *path) argument 297 finddev_emptydir_devfs(const char *path) argument 310 finddev_emptydir(const char *path) argument 336 const char *path = NULL; local [all...] |
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_lu.c | 70 static int run_cmd(char *path, char *cmd, char *arg, int fd); 308 run_cmd(char *path, char *cmd, char *arg, int fd) argument 322 (void) execl(path, cmd, "-X", arg, NULL);
|
H A D | path.c | 63 pp = dp->p.path; 77 * We add the path state and wwn attributes only for descriptors that 103 descriptor_t *path = NULL; local 111 if (libdiskmgt_str_eq(name, paths[i]->p.path->name)) { 112 path = paths[i]; 120 if (path == NULL) { 124 return (path); 137 return (desc->p.path->name); 176 * association from a drive to the path. Since we filled in the name with 178 * drive-path stat [all...] |
/illumos-gate/usr/src/lib/libdll/amd64/src/lib/libdll/ |
H A D | dlldefs.h | 86 char* env; /* library path env var */ 95 char* path; member in struct:Dllent_s
|
/illumos-gate/usr/src/lib/libdll/i386/src/lib/libdll/ |
H A D | dlldefs.h | 86 char* env; /* library path env var */ 95 char* path; member in struct:Dllent_s
|
/illumos-gate/usr/src/lib/libdll/sparc/src/lib/libdll/ |
H A D | dlldefs.h | 86 char* env; /* library path env var */ 95 char* path; member in struct:Dllent_s
|
/illumos-gate/usr/src/lib/libdll/sparcv9/src/lib/libdll/ |
H A D | dlldefs.h | 86 char* env; /* library path env var */ 95 char* path; member in struct:Dllent_s
|
/illumos-gate/usr/src/lib/libfru/libfru/ |
H A D | Ancestor.cc | 84 Ancestor::addInstance(const char *path, uint32_t offset) argument 96 paths[numInstances++] = strdup(path); 205 Str path = "/"; local 206 path << def->name; 208 offset, rc, path); 228 Str path) 234 Str tmp = path; 241 path << "/"; 242 ant->addInstance(path.peak(), offset); 253 Str newPath = path; 223 definitionContains(const fru_regdef_t *def, const fru_regdef_t *parent_def, Str element, uint32_t offset, Ancestor *ant, Str path) argument [all...] |
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | pathutil.c | 61 PathName *path; /* The object to be returned */ local 65 path = (PathName *) malloc(sizeof(PathName)); 66 if(!path) { 75 path->name = NULL; 76 path->dim = 0; 80 path->dim = _pu_pathname_dim(); 81 if(path->dim == 0) 82 return _del_PathName(path); 86 path->name = (char *)malloc(path 102 _del_PathName(PathName *path) argument 120 _pn_clear_path(PathName *path) argument 152 _pn_append_to_path(PathName *path, const char *string, int slen, int remove_escapes) argument 222 _pn_prepend_to_path(PathName *path, const char *string, int slen, int remove_escapes) argument 298 _pn_resize_path(PathName *path, size_t length) argument [all...] |
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | setflabel.c | 78 setflabel(const char *path, m_label_t *label) argument 90 * If path is relative and we haven't already determined the current 95 if (*path != '/' && cwd[0] == '\0') { 103 * corresponds to path, stuffing it into canon. 105 if (abspath(cwd, path, canon) < 0) 258 * Convert the path given in raw to canonical, absolute, symlink-free 261 * points to a path for the current working directory and use it instead 280 * If the path is relative, convert it to absolute form, 298 /* Glue on the relative part of the path. */
|
/illumos-gate/usr/src/lib/libvolmgt/common/ |
H A D | volmgt.c | 83 * path - the name of the device in /dev. For example, 94 volmgt_inuse(char *path) argument 114 * path - the name of the device in /dev. For example, 115 * /dev/rdiskette. If path is NULL, all "checkable" devices are 126 volmgt_check(char *path) argument 140 * volmgt_ownspath: check to see if the given path is contained in 144 * path - string containing the path. 147 * TRUE if the path is owned by volume management, FALSE if not. 155 volmgt_ownspath(char *path) argument 224 volmgt_symname(char *path) argument [all...] |
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | getzoneent.c | 173 get_index_path(char *path) argument 175 return (snprintf(path, MAXPATHLEN, "%s%s", zonecfg_root, 182 char path[MAXPATHLEN]; local 184 if (!get_index_path(path)) { 188 return (fopen(path, "r")); 203 char path[MAXPATHLEN]; local 205 if (snprintf(path, sizeof (path), "%s%s", zonecfg_root, 206 ZONE_INDEX_LOCK_DIR) >= sizeof (path)) 208 if ((mkdir(path, S_IRWX 276 char path[MAXPATHLEN]; local [all...] |
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | srchcfile.c | 58 static char lpath[PATH_MAX]; /* for ept->path */ 71 * Description: copy path limiting size to destination capacity 74 * Pointer to first byte of path to copy 81 /* assure return path does not overflow */ \ 85 /* copy return path to local storage */ \ 96 * path - (char *) - [RO, *RO] 97 * - path to search for in contents file 98 * - If path is "*", then the next entry is returned; 99 * the next entry always matches this path 108 * - specified path no 125 srchcfile(struct cfent *ept, char *path, PKGserver server) argument [all...] |
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/ |
H A D | huron.c | 61 huron_get_bus_type(char *path, struct io_card *card) argument 63 if (strcmp(path, HURON_NIU) == 0) { 71 huron_get_slot_number(char *path, struct io_card *card) argument 73 if (strcmp(path, HURON_N2_XAUI0) == 0) { 76 } else if (strcmp(path, HURON_N2_XAUI1) == 0) { 79 } else if (strncmp(path, HURON_PCIE_SLOT0, 83 } else if (strncmp(path, HURON_PCIE_SLOT1, 87 } else if (strncmp(path, HURON_PCIE_SLOT2, 91 } else if (strncmp(path, HURON_PCIE_SLOT3, 95 } else if (strncmp(path, HURON_PCIE_SLOT 110 huron_get_network_instance(char *path) argument 137 char path[MAXSTRLEN]; local 296 char path[MAXSTRLEN] = ""; local [all...] |
H A D | pelton.c | 67 get_bus_type(char *path, struct io_card *card) argument 69 if (strncmp(path, PEL_PCIX_SLOT0, PCIX_COMP_NUM) == 0) { 71 } else if (strncmp(path, PEL_PCIX_SLOT1, PCIX_COMP_NUM) == 0) { 73 } else if (strncmp(path, PEL_PCIX_SLOT2, PCIX_COMP_NUM) == 0) { 75 } else if (strncmp(path, PEL_PCIX_ONBOARD0, PCIX_COMP_NUM) == 0) { 83 * 'path' is the device-path of the *parent* of the IO card ('card'). 85 * Compare the prefix of the string representing the device-path with 90 * 'path', compare SLOT2 before comparing SLOT1. 93 get_slot_number(char *path, struc argument 114 pelton_get_network_instance(char *path) argument 141 char path[MAXSTRLEN]; local 294 char path[MAXSTRLEN] = ""; local [all...] |
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | _stat.c | 97 stat_com(int lstat, char *path, struct stat *buf) argument 103 if (strcmp(path, "/etc/mtab") == 0) { 120 if (strcmp(path, "/etc/fstab") == 0) { 130 if (strcmp(path, "/etc/utmp") == 0 || 131 strcmp(path, "/var/adm/utmp") == 0) { 140 if (strcmp(path, "/var/adm/wtmp") == 0) { 149 if (_strstr(path, "/lib/locale/") != 0) { 150 fd = open(path, O_RDONLY); 160 if ((ret = _syscall(SYS_fstatat, AT_FDCWD, path, &nb, follow)) != -1)
|