Searched defs:linkbuf (Results 1 - 14 of 14) sorted by relevance

/illumos-gate/usr/src/lib/libvolmgt/common/
H A Dvolmgt_on_private.c493 char linkbuf[MAXPATHLEN+4]; local
510 if ((lb_len = readlink(lpath, linkbuf,
511 sizeof (linkbuf))) < 0) {
514 linkbuf[lb_len] = NULLC; /* null terminate */
515 if ((cp = vol_basename(linkbuf)) == NULL) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Ddefs.h120 struct linkbuf { struct
126 struct linkbuf *nextp;
138 extern struct linkbuf *ihead; /* list of files with more than one link */
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_jfs.c282 char namebuf[JFS_NAME_MAX + 1], linkbuf[JFS_PATH_MAX]; local
297 grub_memmove (linkbuf, inode->di_fastsymlink, di_size);
302 n = jfs_read (linkbuf, filemax);
308 inum = (linkbuf[0] == '/') ? ROOT_I : parent_inum;
309 while (n < (JFS_PATH_MAX - 1) && (linkbuf[n++] = *dirname++));
310 linkbuf[n] = 0;
311 dirname = linkbuf;
H A Dfsys_minix.c308 char linkbuf[PATH_MAX]; /* buffer for following sym-links */ local
372 if (filemax + len > sizeof (linkbuf) - 2)
382 memmove (linkbuf + filemax, dirname, len);
384 linkbuf[filemax + len] = '\0';
387 len = grub_read (linkbuf, filemax);
393 printf ("symlink=%s\n", linkbuf);
396 dirname = linkbuf;
H A Dfsys_xfs.c543 char linkbuf[xfs.bsize]; local
561 n = xfs_read (linkbuf, filemax);
567 ino = (linkbuf[0] == '/') ? xfs.rootino : parent_ino;
568 while (n < (xfs.bsize - 1) && (linkbuf[n++] = *dirname++));
569 linkbuf[n] = 0;
570 dirname = linkbuf;
H A Dfsys_ext2fs.c558 char linkbuf[PATH_MAX]; /* buffer for following symbolic links */ local
666 if (filemax + len > sizeof (linkbuf) - 2)
676 memmove (linkbuf + filemax, dirname, len);
678 linkbuf[filemax + len] = '\0';
684 len = grub_read (linkbuf, filemax);
693 memmove (linkbuf, (char *) INODE->i_block, len);
697 printf ("symlink=%s\n", linkbuf);
700 dirname = linkbuf;
H A Dfsys_reiserfs.c1003 char linkbuf[PATH_MAX]; /* buffer for following symbolic links */ local
1046 if (filemax + len > sizeof (linkbuf) - 1)
1054 grub_memmove (linkbuf + filemax, dirname, len+1);
1060 || reiserfs_read (linkbuf, filemax) != filemax)
1068 printf ("symlink=%s\n", linkbuf);
1071 dirname = linkbuf;
/illumos-gate/usr/src/cmd/devfsadm/
H A Dcfg_link.c1076 char linkbuf[MAXPATHLEN]; local
1113 (void) snprintf(linkbuf, sizeof (linkbuf), "%s/%s",
1133 pci_cfg_rm_invalid_links(devpath, linkbuf);
1136 (void) devfsadm_mklink(linkbuf, node, minor, 0);
1153 fd = di_dli_openw(linkbuf);
1171 (void) snprintf(linkbuf, sizeof (linkbuf), "%s/%s",
1173 (void) devfsadm_mklink(linkbuf, node, minor, 0);
H A Ddevfsadm.c5667 char linkbuf[PATH_MAX + 1]; local
5717 linksize = readlink(lpath, linkbuf, PATH_MAX);
5724 linkbuf[linksize] = '\0';
5730 contents = di_alias2curr(devi_root_node, linkbuf);
5735 * linkbuf if it is a link.
/illumos-gate/usr/src/cmd/modload/
H A Dadd_drv.c838 char linkbuf[MAXPATHLEN]; local
841 if (readlink(node, linkbuf, MAXPATHLEN) == -1)
847 if (strstr(linkbuf, ptr->dev_name) != NULL)
/illumos-gate/usr/src/cmd/backup/restore/
H A Dutilities.c263 char linkbuf[MAXPATHLEN]; local
279 if (((l = readlink(new, linkbuf, sizeof (linkbuf)))
282 (strncmp(linkbuf, name, l) == 0)) {
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dttymux_rcm.c672 char linkbuf[PATH_MAX+1]; local
677 lsz = readlink(dev, linkbuf, PATH_MAX);
681 linkbuf[lsz] = '\0';
682 dev = strstr(linkbuf, "/devices");
/illumos-gate/usr/src/boot/lib/libstand/
H A Dnfs.c455 char linkbuf[NFS_MAXPATHLEN + 1]; local
571 error = nfs_readlink(newfd, linkbuf);
575 link_len = strlen(linkbuf);
585 bcopy(linkbuf, namebuf, link_len);
1097 char linkbuf[NFS_MAXPATHLEN + 1]; local
1219 error = nfs_readlink(newfd, linkbuf);
1223 link_len = strlen(linkbuf);
1233 bcopy(linkbuf, namebuf, link_len);
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c402 struct linkbuf { struct
408 struct linkbuf *nextp;
518 char, struct linkbuf *, int *);
524 char *prefix, int typeflag, int filetype, struct linkbuf *lp);
7589 struct linkbuf *linkinfo,
7712 if (linkinfo != (struct linkbuf *)NULL) {
7735 struct linkbuf *linkinfo,
8024 struct linkbuf *lp;
8080 lp = (struct linkbuf *)getmem(sizeof (*lp));
8081 if (lp != (struct linkbuf *)NUL
[all...]

Completed in 127 milliseconds