Home
last modified time | relevance | path

Searched refs:dev_dir (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/cmd/acct/lib/
H A Ddevtolin.c54 static char dev_dir[] = "/dev"; variable
86 ((strcmp(srch_dirs[dirno], dev_dir) == 0) ? in devtolin()
97 found = srch_dir(device, dev_dir, 0, srch_dirs); in devtolin()
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_devlink.c314 char dev_dir[PATH_MAX], path[PATH_MAX], db_dir[PATH_MAX]; in handle_alloc() local
323 dev_dir[0] = '\0'; in handle_alloc()
338 assert(sizeof (dev_dir) >= PATH_MAX); in handle_alloc()
340 if ((realpath(root_dir, dev_dir) == NULL) || in handle_alloc()
351 if (strcmp(dev_dir, "/") == 0) { in handle_alloc()
352 dev_dir[0] = 0; in handle_alloc()
355 (void) strlcpy(db_dir, dev_dir, sizeof (db_dir)); in handle_alloc()
358 (void) strlcat(dev_dir, DEV, sizeof (dev_dir)); in handle_alloc()
408 proto.dev_dir = dev_dir; in handle_alloc()
440 if ((hdp->dev_dir = strdup(proto.dev_dir)) == NULL) { in handle_alloc()
[all …]
H A Ddevinfo_devlink.h143 char *dev_dir; /* <root-dir>/dev */ member
286 static struct di_devlink_handle *handle_alloc(const char *dev_dir,
H A Ddevfsinfo.c1066 char *dev_dir = DEV; in devfs_phys_to_logical() local
1090 len = default_root_len + strlen(dev_dir) + 1; in devfs_phys_to_logical()
1103 &dev_dir[1]); in devfs_phys_to_logical()
1105 (void) snprintf(full_path, len, "%s%s", default_root, dev_dir); in devfs_phys_to_logical()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dttyname.c122 static const entry_t dev_dir = variable
295 ((strcmp(srch_dirs[dirno].name, dev_dir.name) in _ttyname_common()
305 found = srch_dir(dev_dir, match_mask, 0, srch_dirs, fsp); in _ttyname_common()
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevfsadm.c156 static char *dev_dir = DEV; variable
2526 (void) strlcpy(devlink, dev_dir, sizeof (devlink)); in devfsadm_mklink()
2615 (void) strcpy(devlink, dev_dir); in devfsadm_secondary_link()
3146 (void) strcpy(newfile, dev_dir); in devfsadm_rm_work()
3216 rpath = path + strlen(dev_dir) + 1; in s_rmdir()
3413 recurse_dev_re(dev_dir, dir_re, &rd); in get_cached_links()
3483 (void) strcpy(newlink, dev_dir); in build_devlink_list()
3494 if (strncmp(devlink, dev_dir, strlen(dev_dir)) != 0) { in build_devlink_list()
3499 r_devlink = devlink + strlen(dev_dir); in build_devlink_list()
4164 recurse_dev_re(dev_dir, in pre_and_post_cleanup()
[all …]