Home
last modified time | relevance | path

Searched refs:lpath (Results 1 – 24 of 24) sorted by relevance

/illumos-gate/usr/src/uts/sun4u/opl/io/oplmsu/
H A Doplmsu_ioctl_uwp.c52 lpath_t *lpath; in oplmsu_uwioctl_iplink() local
83 if (lpath == NULL) { in oplmsu_uwioctl_iplink()
95 lpath->rbuftbl = in oplmsu_uwioctl_iplink()
114 WR(lpath->lower_queue)->q_ptr = lpath; in oplmsu_uwioctl_iplink()
115 RD(lpath->lower_queue)->q_ptr = lpath; in oplmsu_uwioctl_iplink()
129 lpath_t *lpath; in oplmsu_uwioctl_ipunlink() local
171 while (lpath) { in oplmsu_uwioctl_ipunlink()
176 lpath = lpath->l_next; in oplmsu_uwioctl_ipunlink()
179 if (lpath == NULL) { in oplmsu_uwioctl_ipunlink()
283 lpath->rbuf_id = 0; in oplmsu_uwioctl_ipunlink()
[all …]
H A Doplmsu_ioctl_lrp.c67 hndl_mp = lpath->hndl_mp; in oplmsu_lrioctl_termios()
190 lpath->src_upath = NULL; in oplmsu_lrioctl_termios()
280 (lpath->src_upath->lpath->sw_flag)) { in oplmsu_lrioctl_termios()
404 nmp = lpath->hndl_mp; in oplmsu_lrioctl_termios()
410 lpath->src_upath = NULL; in oplmsu_lrioctl_termios()
425 nmp = lpath->hndl_mp; in oplmsu_lrioctl_termios()
430 lpath->src_upath = NULL; in oplmsu_lrioctl_termios()
543 lpath->uinst = NULL; in oplmsu_lrmsg_error()
574 lpath->uinst = NULL; in oplmsu_lrmsg_error()
698 lpath->hndl_mp = mp; in oplmsu_lrdata_xoffxon()
[all …]
H A Doplmsu.c634 lpath = lpath->l_next; in oplmsu_close()
1043 lpath = lpath->l_next; in oplmsu_ursrv()
1184 lpath = lpath->l_next; in oplmsu_set_lpathnum()
1385 lpath = lpath->l_next; in oplmsu_dr_detach()
1734 lpath = lpath->l_next; in oplmsu_create_upath()
1749 upath->lpath = lpath; in oplmsu_create_upath()
1937 lpath = upath->lpath; in oplmsu_config_del()
2038 lpath = upath->lpath; in oplmsu_config_stop()
2303 lpath = upath->lpath; in oplmsu_config_start()
2327 lpath = upath->lpath; in oplmsu_config_start()
[all …]
H A Doplmsu_cmn_func.c230 lpath_t *lpath; in oplmsu_check_lpath_usable() local
237 while (lpath) { in oplmsu_check_lpath_usable()
238 if ((lpath->hndl_uqueue != NULL) || (lpath->hndl_mp != NULL)) { in oplmsu_check_lpath_usable()
242 lpath = lpath->l_next; in oplmsu_check_lpath_usable()
487 lpath_t *lpath; in oplmsu_search_min_stop_path() local
505 lpath = upath->lpath; in oplmsu_search_min_stop_path()
519 lpath = min_upath->lpath; in oplmsu_search_min_stop_path()
602 lpath_t *lpath; in oplmsu_cmn_putxoff_standby() local
610 lpath = upath->lpath; in oplmsu_cmn_putxoff_standby()
1058 if ((lpath->rbuf_id == 0) && (lpath->rtout_id == 0)) { in oplmsu_cmn_bufcb()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/
H A Dutimes.c128 if (lutimes(lpath, NULL) == -1) in reset_link()
141 char lpath[MAXPATHLEN + 1]; in runtest() local
157 if (snprintf(lpath, sizeof (lpath), "%s/link", dir) >= sizeof (path)) in runtest()
160 if (symlink(path, lpath) == -1) in runtest()
161 err(EXIT_FAILURE, "link(%s)", lpath); in runtest()
163 if ((lfd = open(lpath, O_RDWR)) == -1) in runtest()
184 if (utimes(lpath, tv) == -1) in runtest()
208 if (lutimes(lpath, tv) == -1) in runtest()
278 if (futimesat(rfd, lpath, tv) == -1) in runtest()
374 if (utimensat(rfd, lpath, ts, 0) == -1) in runtest()
[all …]
/illumos-gate/usr/src/cmd/devfsadm/
H A Dsgen_link.c68 char lpath[PATH_MAX], buf[PATH_MAX]; in sgen_callback() local
108 (void) snprintf(lpath, PATH_MAX, in sgen_callback()
116 (void) snprintf(lpath, PATH_MAX, in sgen_callback()
120 (void) snprintf(lpath, PATH_MAX, in sgen_callback()
136 if (snprintf(lpath, sizeof (lpath), "%s/%s/c%st%sd0", SGEN_DIR, in sgen_callback()
137 di_minor_name(minor), cnum, buf) >= sizeof (lpath)) in sgen_callback()
155 if (snprintf(lpath, sizeof (lpath), "%s/%s/c%st%sd%d", SGEN_DIR, in sgen_callback()
156 di_minor_name(minor), cnum, buf, lun) >= sizeof (lpath)) in sgen_callback()
170 if (snprintf(lpath, sizeof (lpath), "%s/%s/c%st%dd%d", SGEN_DIR, in sgen_callback()
171 di_minor_name(minor), cnum, targ, lun) >= sizeof (lpath)) in sgen_callback()
[all …]
H A Ddevfsadm.c5681 char lpath[PATH_MAX + 1]; in create_cached_numeral() local
5720 (void) strcpy(lpath, path); in create_cached_numeral()
5725 if (get_stat_info(lpath, &sb) == DEVFSADM_FAILURE) { in create_cached_numeral()
5730 linksize = readlink(lpath, linkbuf, PATH_MAX); in create_cached_numeral()
5733 err_print(READLINK_FAILED, fcn, lpath, strerror(errno)); in create_cached_numeral()
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_log.c197 char *fname, *mode, *lpath; in ndmp_log_open_file() local
211 lpath = ndmpd_get_prop(NDMP_DEBUG_PATH); in ndmp_log_open_file()
212 if ((lpath == NULL) || (*lpath == '\0')) in ndmp_log_open_file()
213 lpath = LOG_PATH; in ndmp_log_open_file()
215 if (stat64(lpath, &st) < 0) { in ndmp_log_open_file()
216 if (mkdirp(lpath, 0755) < 0) { in ndmp_log_open_file()
219 lpath, strerror(errno)); in ndmp_log_open_file()
220 lpath = "/var"; in ndmp_log_open_file()
235 fname = mk_pathname(LOG_FNAME, lpath, i); in ndmp_log_open_file()
242 fname = mk_pathname(LOG_FNAME, lpath, i + 1); in ndmp_log_open_file()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_main.c112 char *lpath, *lpend, *nlpath; in kmdb_modpath2lpath() local
121 lpend = lpath = mdb_zalloc(lpsz, UM_SLEEP); in kmdb_modpath2lpath()
146 if (lpend != lpath) in kmdb_modpath2lpath()
149 nlpath = strdup(lpath); in kmdb_modpath2lpath()
150 mdb_free(lpath, lpsz); in kmdb_modpath2lpath()
232 char *lpath; in kmdb_init() local
235 (lpath = kmdb_modpath2lpath(kav->kav_modpath)) != NULL) { in kmdb_init()
236 mdb_set_lpath(lpath); in kmdb_init()
237 strfree(lpath); in kmdb_init()
/illumos-gate/usr/src/cmd/hal/probing/printer/
H A Dprobe-printer.c85 char path[MAXPATHLEN], lpath[MAXPATHLEN]; in prnio_device_name() local
89 memset(lpath, 0, sizeof (lpath)); in prnio_device_name()
90 if ((readlink(path, lpath, sizeof (lpath)) > 0) && in prnio_device_name()
91 (strstr(lpath, devfs_path) != NULL)) { in prnio_device_name()
/illumos-gate/usr/src/lib/libpkg/common/
H A Dsrchcfile.c58 static char lpath[PATH_MAX]; /* for ept->path */ variable
147 lpath[0] = '\0'; in srchcfile()
148 lpath[sizeof (lpath)-1] = '\0'; in srchcfile()
251 ept->path = lpath; in srchcfile()
254 COPYPATH(lpath, cpath_start, cpath_len); in srchcfile()
/illumos-gate/usr/src/common/fs/
H A Dufsops.c151 char lpath[MAXPATHLEN]; in find() local
152 char *lpathp = lpath; in find()
164 bzero(lpath, sizeof (lpath)); in find()
165 bcopy(path, lpath, strlen(path)); in find()
169 r = (lpathp == lpath); in find()
197 lpathp = lpath; in find()
204 lpathp = lpath; in find()
/illumos-gate/usr/src/cmd/fs.d/nfs/statd/
H A Dsm_statd.c946 char lpath[MAXPATHLEN]; in create_symlink() local
951 (void) strcpy(lpath, todir); in create_symlink()
952 (void) strcat(lpath, "/"); in create_symlink()
953 (void) strcat(lpath, lname); in create_symlink()
958 if (symlink(rname, lpath) < 0) { in create_symlink()
1109 char lpath[MAXPATHLEN]; in count_symlinks() local
1124 (void) sprintf(lpath, "%s%s", dir, dirp->d_name); in count_symlinks()
1125 if (is_symlink(lpath)) { in count_symlinks()
1129 n = readlink(lpath, rname, MAXNAMELEN); in count_symlinks()
1134 "%s\n", lpath); in count_symlinks()
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dufsops.c174 char lpath[MAXPATHLEN]; in find() local
175 char *lpathp = lpath; in find()
184 bzero(lpath, sizeof (lpath)); in find()
185 bcopy(path, lpath, strlen(path)); in find()
189 r = (lpathp == lpath); in find()
221 lpathp = lpath; in find()
228 lpathp = lpath; in find()
/illumos-gate/usr/src/lib/libvolmgt/common/
H A Dvolmgt_on_private.c493 char lpath[2 * (MAXNAMELEN+1)]; in get_media_info() local
503 (void) sprintf(lpath, "%s/%s", mnt_dir, in get_media_info()
505 if (lstat64(lpath, &sb) < 0) { in get_media_info()
511 if ((lb_len = readlink(lpath, linkbuf, in get_media_info()
/illumos-gate/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo_usb.c105 char path[MAXPATHLEN], lpath[MAXPATHLEN]; in get_usb_devlink() local
109 memset(lpath, 0, sizeof (lpath)); in get_usb_devlink()
110 if ((readlink(path, lpath, sizeof (lpath)) > 0) && in get_usb_devlink()
111 (strstr(lpath, devfs_path) != NULL)) { in get_usb_devlink()
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_utils.c69 static fpcfga_recur_t lookup_dev(const char *lpath, void *arg);
78 fpcfga_recur_t (*fcn)(const char *lpath, void *arg);
292 fpcfga_recur_t (*fcn)(const char *lpath, void *arg)) in recurse_dev() argument
991 lookup_dev(const char *lpath, void *arg) in lookup_dev() argument
996 if (realpath(lpath, ppath) == NULL) { in lookup_dev()
1007 if ((pmtp->log = strdup(lpath)) == NULL) { in lookup_dev()
H A Dcfga_fp.h508 fpcfga_recur_t (*fcn)(const char *lpath, void *arg));
/illumos-gate/usr/src/uts/sun4u/opl/sys/oplmsu/
H A Doplmsu.h208 struct lower_path_table *lpath; member
/illumos-gate/usr/src/cmd/luxadm/
H A Dhotplug.c2657 char *lpath, *ptr, *buf_ptr, buf[MAXNAMELEN], dev[MAXNAMELEN]; in h_print_logical_nodes() local
2666 lpath = dlist->logical_path; in h_print_logical_nodes()
2667 if ((ptr = strrchr(lpath, 'c')) == NULL) in h_print_logical_nodes()
2686 lpath = dlist->logical_path; in h_print_logical_nodes()
2687 if (strstr(lpath, DEV_TAPE_DIR)) { in h_print_logical_nodes()
2688 if ((ptr = strrchr(lpath, '/')) == NULL) in h_print_logical_nodes()
/illumos-gate/usr/src/cmd/print/scripts/
H A Dppdmgr1039 lpath="${1%/*/*}"
1065 lpath="${1%/*/*}"
/illumos-gate/usr/src/lib/libshare/common/
H A Dlibshare.c346 xmlChar *lpath = NULL; in set_legacy_timestamp() local
358 lpath = xmlGetProp(node, (xmlChar *)"path"); in set_legacy_timestamp()
359 if (lpath != NULL && in set_legacy_timestamp()
360 xmlStrcmp(lpath, (xmlChar *)path) == 0) { in set_legacy_timestamp()
361 xmlFree(lpath); in set_legacy_timestamp()
364 if (lpath != NULL) in set_legacy_timestamp()
365 xmlFree(lpath); in set_legacy_timestamp()
/illumos-gate/usr/src/lib/libproc/common/
H A DPcontrol.c2890 char lpath[PATH_MAX]; in read_lfile() local
2896 (void) snprintf(lpath, sizeof (lpath), "%s/%d/%s", procfs_path, in read_lfile()
2898 if ((fd = open(lpath, O_RDONLY)) < 0 || fstat64(fd, &statb) != 0) { in read_lfile()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci.c3166 mdi_pathinfo_t *lpath; in vhci_intr() local
3180 lpath = vpkt->vpkt_path; in vhci_intr()
3203 mdi_pi_get_path_instance(lpath); in vhci_intr()
3449 MDI_PI_ERRSTAT(lpath, MDI_PI_TRANSERR); in vhci_intr()