/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | srvsvc_sd.c | 50 * This method computes ACL on share path from a share name. 91 * This method sets Security Descriptor on a share path. 108 char path[MAXPATHLEN]; local 111 ret = srvsvc_shareacl_getpath(si, path); 122 status = smb_sd_write(path, &sd, SMB_DACL_SECINFO); 130 * This method returns a Security Descriptor of a share path in self relative 150 char path[MAXPATHLEN]; local 161 ret = srvsvc_shareacl_getpath(si, path); 165 status = smb_sd_read(path, &sd, SMB_ALL_SECINFO);
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_sd.c | 151 * Get ZFS acl from the share path via acl_get() method. 154 smb_sd_read_acl(char *path, smb_fssd_t *fs_sd) argument 162 if (acl_get(path, 0, &z_acl) != 0) { 195 smb_sd_read(char *path, smb_sd_t *sd, uint32_t secinfo) argument 205 error = smb_sd_read_acl(path, &fs_sd); 218 * Apply ZFS acl to the share path via acl_set() method. 223 smb_sd_write_acl(char *path, smb_fssd_t *fs_sd) argument 238 if (acl_set(path, z_acl) != 0) 248 * ZFS acl and applies the acl to the share path via acl_set() method. 251 smb_sd_write(char *path, smb_sd_ argument [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/ |
H A D | ap_msg.c | 197 char *path; local 297 get_str(path, ap, STR_NULL); 301 DBG("<%s><%s>", path, error); 304 get_str(path, ap, STR_NULL); 306 DBG("<%s><%s>", path, sym); 309 get_str(path, ap, STR_NULL); 407 (void) snprintf(p, len, fmt, path, sep, error); 410 (void) snprintf(p, len, fmt, sym, path); 413 (void) snprintf(p, len, fmt, path, syserr);
|
/illumos-gate/usr/src/lib/efcode/fcdriver/ |
H A D | get_req.c | 215 char *method, *fc_name, *path; local 226 if ((path = search_for_fcode_file(env, fc_name)) != NULL) { 228 fname, path); 229 push_a_string(env, path); 371 char *path; local 377 if ((path = get_path(env, env->attachment_pt)) == NULL) { 382 debug_msg(DEBUG_UPLOAD, "Attach Point: %s\n", path); 384 push_a_string(env, path);
|
/illumos-gate/usr/src/lib/fm/libfmd_snmp/common/ |
H A D | scheme.c | 150 char path[PATH_MAX]; local 160 (void) snprintf(path, sizeof (path), "%s%s/%s.so", 163 if (access(path, F_OK) != 0) { 168 if ((sp->sch_dlp = dlopen(path, RTLD_LOCAL | RTLD_NOW | RTLD_PARENT)) ==
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | dev.c | 155 /* There must be a device path present */ 180 * device-path part; the devpath should always start with a / 335 /* the device-path should start with a slash */ 380 char *devid = NULL, *path; local 407 path = topo_mod_alloc(mod, len); 408 (void) snprintf(path, len, "/devices%s", devpath); 410 if (stat(path, &sb) != -1) 422 if (stat(path, &sb) == -1) 440 topo_mod_free(mod, path, len); 460 char *devid = NULL, *path; local 630 dev_fmri_create(topo_mod_t *mp, const char *id, const char *path) argument 661 char *path, *id = NULL; local [all...] |
H A D | mod.c | 170 mod_nvl_data(topo_mod_t *mp, nvlist_t *out, const char *path) argument 176 if (stat64(path, &s) < 0) { 178 "No system object file for driver %s", path);
|
H A D | pkg.c | 192 pkg_fmri_create(topo_mod_t *mp, const char *path) argument 200 (void) snprintf(tmpbuf, BUFLEN, PKGCHK_CMD, path); 233 char *path; local 239 nvlist_lookup_string(args, "path", &path) != 0) { 240 topo_mod_dprintf(mp, "no path string in method argument\n"); 244 if ((*out = pkg_fmri_create(mp, path)) == NULL)
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip_intel.c | 89 char path[64]; local 91 (void) snprintf(path, sizeof (path), "/dev/mc/mc%d", id); 92 mc_fd = open(path, O_RDONLY);
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/niu/ |
H A D | niu.c | 91 char *path; local 94 if ((path = di_devfs_path(dn)) == NULL) { 99 path, &err); 100 di_devfs_path_free(path); 189 char *path; local 193 if ((path = di_devfs_path(dn)) != NULL) { 194 fmri = topo_mod_devfmri(mod, FM_DEV_SCHEME_VERSION, path, NULL); 197 "dev:///%s fmri creation failed.\n", path); 198 di_devfs_path_free(path); 201 di_devfs_path_free(path); [all...] |
/illumos-gate/usr/src/lib/libshare/common/ |
H A D | plugin.c | 109 char path[MAXPATHLEN]; local 114 (void) snprintf(path, MAXPATHLEN, 121 if (stat(path, &st) < 0) 124 if ((dlhandle = dlopen(path, RTLD_FIRST|RTLD_LAZY)) == NULL) { 291 sa_proto_unshare(sa_share_t share, char *proto, char *path) argument 297 ret = ops->sa_unshare(share, path); 644 * name rather than path) and other operational features that affect
|
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | random.c | 60 open_nointr(const char *path, int oflag, ...) argument 71 if ((fd = open(path, oflag, pmode)) >= 0) {
|
/illumos-gate/usr/src/lib/libdevid/ |
H A D | deviceid.c | 132 nmlist_add(struct nmlist **nlhp, char *path) argument 139 if ((stat(path, &statb) == 0) && 153 if ((nl->nl_devname = strdup(path)) == NULL) { 216 * the specified search path to avoid attaching all devices. 228 char *path; local 242 /* verify valid search path starts with "/devices" or "/dev" */ 270 * initialize for /devices path to /dev path translation. To reduce 287 * convert them into the appropriate path form and add items to return 290 for (path [all...] |
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_fs.c | 199 char path[MAXPATHLEN]; local 219 (void) snprintf(path, sizeof (path), "/usr/lib/fs/%s", 222 if (stat(path, &buf) != 0 || !S_ISDIR(buf.st_mode)) { 226 if ((subdirp = opendir(path)) != NULL) {
|
/illumos-gate/usr/src/lib/libfru/libfru/ |
H A D | PayloadReader.cc | 160 PathDef *path, int *rcIterThere, 174 if (path->iterIndex == PathDef::addIteration) { 180 if (iterPoss != path->def->iterationCount) { 193 if ((path->iterIndex != PathDef::addIteration) && 194 (path->iterIndex != PathDef::lastIteration) && 195 (path->iterIndex >= iterThere)) { 201 int length = ((path->def->payloadLen - ITER_CONT_BYTE_LEN) 202 /path->def->iterationCount); 204 rc = calcOffset(path->def->iterationType, 206 length, path 159 getIterationOffset(uint8_t *iter, int iterLen, PathDef *path, int *rcIterThere, fru_errno_t *err, int onlyFindingIterThereFlag) argument 220 readRecurse(PathDef *path, uint8_t *cur, size_t curLen, void **data, size_t *dataLen, int onlyFindingIterThereFlag) argument 339 readData(PathDef *path, Ancestor *curDef, int instWICur, uint8_t *payload, size_t payloadLen, void **data, size_t *dataLen) argument 351 findIterThere(PathDef *path, Ancestor *curDef, int instWICur, uint8_t *payload, size_t payloadLen, int *numThere) argument 372 update_iter_cont_bytes(PathDef *path, uint8_t *cur, size_t curLen) argument 432 updateRecurse(PathDef *path, uint8_t *cur, size_t curLen, void *data, size_t dataLen) argument 517 updateData(PathDef *path, Ancestor *ancestorDef, int instWICur, uint8_t *payload, size_t payloadLen, void *data, size_t dataLen) argument [all...] |
/illumos-gate/usr/src/lib/libfru/libnvfru/ |
H A D | nvfru.c | 58 convert_field(const uint8_t *field, const fru_regdef_t *def, const char *path, argument 83 (void) nvlist_add_string(nv, path, timestring); 99 (void) nvlist_add_uint8(nv, path, 103 (void) nvlist_add_uint16(nv, path, 107 (void) nvlist_add_uint32(nv, path, 111 (void) nvlist_add_uint64(nv, path, value); 117 (void) nvlist_add_string(nv, path, (char *)field); 127 (void) nvlist_add_string(nv, path, 135 (void) nvlist_add_byte_array(nv, path, (uchar_t *)field, 146 char *path; local [all...] |
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | libfsmgt.h | 86 char *path; member in struct:share_list 99 char nml_curpath[MAXPATHLEN]; /* current path on */ 338 * times the path passed in was encountered. The functon is used to help make 339 * sure a path is only listed in dfstab once. 342 * char *path - the path to check for 347 * The number of times the specified path is encountered in dfstab. 349 int fs_check_for_duplicate_DFStab_paths(char *path, int *err); 886 * Description: Retrieves the path information from the dfstab 890 * fs_dfstab_entry_t entry - the dfstab entry to retrieve the path fro [all...] |
H A D | nfs_mntinfo.c | 356 strlen(rep_list[i].path) + 2); 362 rep_list[i].host, ":", rep_list[i].path); 367 * case the path can't be determined and curpath is set to 372 char *path; local 374 path = strdup(rep_list[0].path); 375 if ((path = (char *)strtok_r(path, "//", 382 * invalid path entry. no path ca [all...] |
/illumos-gate/usr/src/lib/libgrubmgmt/common/ |
H A D | libgrub_fs.c | 71 * Returns zero if path contains ufs 74 slice_ufs(const char *path) argument 80 fd = open(path, O_RDONLY); 247 char path[MAXPATHLEN]; local 268 (void) snprintf(path, sizeof (path), "%s%s", 272 if (lstat(path, &st) != 0 || S_ISREG(st.st_mode) == 0 || 292 const char *path; local 296 if ((path = di_devlink_path(dl)) != NULL) 297 (void) strlcpy(barg->gb_root.gr_fs[GRBM_UFS].gfs_dev, path, 308 char path[MAXPATHLEN]; local 346 char *name, *path; local [all...] |
H A D | libgrub_menu.c | 337 * If grub_menu_path file path is NULL, will use 'currently active' 345 grub_menu_init(const char *path, grub_menu_t **menup) argument 368 if (path == NULL) { 382 (void) strlcpy(mp->gm_path, path, sizeof (mp->gm_path));
|
/illumos-gate/usr/src/lib/libtnfctl/ |
H A D | internal.c | 202 char path[MAXPATHLEN]; local 222 (void) sprintf(path, PROCFORMAT, (int) getpid()); 228 procfd = open(path, O_RDONLY);
|
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | getpathbylabel.c | 92 * Return zero iff the path named by sub is a leading subpath 93 * of the path named by full. 219 * mnttab to determine the path where it should be mounted in the 227 * Either of these cases return a NULL path. 319 * so adjust the path for the global zone. 347 * file named by path (i.e., that names a mount table entry for the 348 * file system in which path lies). 353 getglobalpath(const char *path, zoneid_t zoneid, struct mntlist *mlist, argument 370 (void) strlcat(globalpath, path, MAXPATHLEN); 373 (void) strlcpy(globalpath, path, MAXPATHLE [all...] |
/illumos-gate/usr/src/lib/libvolmgt/common/ |
H A D | volmgt_on_private.c | 63 * Is the specified path mounted? 73 _dev_mounted(char *path) argument 85 if ((cn = (char *)volmgt_getfullrawname(path)) == NULL) { 135 _dev_unmount(char *path) argument 139 char *spcl = NULL; /* special dev. path */ 149 if ((bn = (char *)volmgt_getfullblkname(path)) == NULL) { 172 /* the block path is rooted in /vol */ 374 vol_basename(char *path) argument 380 if (strcmp(path, "/") == 0) { 381 return (path); 410 get_media_info(char *path, char **mtypep, int *mnump, char **spclp) argument [all...] |
/illumos-gate/usr/src/lib/libwanboot/common/ |
H A D | bootinfo_aux.c | 56 char *cb_path; /* device path we want to match */ 57 di_node_t cb_node; /* found leaf node of device path */ 247 * Strip any trailing arguments from a device path. 251 strip_args(char *path, size_t len) argument 255 if (path != NULL && len != 0 && 259 (void) memcpy(stripped_path, path, len); 274 char *path; local 277 path = get_prop("chosen", "bootpath", &len); 278 return (strip_args(path, len)); 288 char *path; local 318 path2node(char *path) argument [all...] |
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_fru.c | 46 * enclosures, the device path is not synonymous with the physical location. 48 * with the same path under MPxIO. If you recable storage enclosures, the 54 * that is the libtopo path (minus disk-specific authority information) to the 132 * Get the devfs path and FRU. 134 if (_topo_prop_get_string(tn, "io", "devfs-path", &devpath, &err) != 0) 159 * Finally, we have a FRU string and device path. Add it to the hash. 195 char path[MAXPATHLEN]; local 204 (void) snprintf(path, sizeof (path), 207 if ((_topo_dlhandle = dlopen(path, RTLD_LAZ [all...] |