Home
last modified time | relevance | path

Searched refs:linkbuf (Results 1 – 15 of 15) sorted by relevance

/titanic_41/usr/src/cmd/fs.d/cachefs/cachefspack/
H A Ddocmds.c77 char linkbuf[MAXPATHLEN]; in do_base_dir() local
123 sz = readlink(dirpath, linkbuf, MAXPATHLEN-1); in do_base_dir()
125 linkbuf[sz] = '\0'; in do_base_dir()
126 s = mk_base_dir(dirpath, linkbuf); in do_base_dir()
200 static char linkbuf[MAXPATHLEN]; in do_list_item() local
389 statnam, linkbuf, MAXPATHLEN-1); in do_list_item()
391 printf("linkbuf = %s\n", linkbuf); in do_list_item()
398 linkbuf[sz] = '\0'; in do_list_item()
399 process_symlk(linkbuf, statnam, in do_list_item()
413 sz = readlink(statnam, linkbuf, MAXPATHLEN-1); in do_list_item()
[all …]
/titanic_41/usr/src/grub/grub-0.97/stage2/
H A Dfsys_minix.c308 char linkbuf[PATH_MAX]; /* buffer for following sym-links */ in minix_dir() local
372 if (filemax + len > sizeof (linkbuf) - 2) in minix_dir()
382 memmove (linkbuf + filemax, dirname, len); in minix_dir()
384 linkbuf[filemax + len] = '\0'; in minix_dir()
387 len = grub_read (linkbuf, filemax); in minix_dir()
393 printf ("symlink=%s\n", linkbuf); in minix_dir()
396 dirname = linkbuf; in minix_dir()
H A Dfsys_jfs.c282 char namebuf[JFS_NAME_MAX + 1], linkbuf[JFS_PATH_MAX]; in jfs_dir() local
297 grub_memmove (linkbuf, inode->di_fastsymlink, di_size); in jfs_dir()
302 n = jfs_read (linkbuf, filemax); in jfs_dir()
308 inum = (linkbuf[0] == '/') ? ROOT_I : parent_inum; in jfs_dir()
309 while (n < (JFS_PATH_MAX - 1) && (linkbuf[n++] = *dirname++)); in jfs_dir()
310 linkbuf[n] = 0; in jfs_dir()
311 dirname = linkbuf; in jfs_dir()
H A Dfsys_ext2fs.c558 char linkbuf[PATH_MAX]; /* buffer for following symbolic links */ in ext2fs_dir() local
666 if (filemax + len > sizeof (linkbuf) - 2) in ext2fs_dir()
676 memmove (linkbuf + filemax, dirname, len); in ext2fs_dir()
678 linkbuf[filemax + len] = '\0'; in ext2fs_dir()
684 len = grub_read (linkbuf, filemax); in ext2fs_dir()
693 memmove (linkbuf, (char *) INODE->i_block, len); in ext2fs_dir()
697 printf ("symlink=%s\n", linkbuf); in ext2fs_dir()
700 dirname = linkbuf; in ext2fs_dir()
H A Dfsys_xfs.c543 char linkbuf[xfs.bsize]; in xfs_dir() local
561 n = xfs_read (linkbuf, filemax); in xfs_dir()
567 ino = (linkbuf[0] == '/') ? xfs.rootino : parent_ino; in xfs_dir()
568 while (n < (xfs.bsize - 1) && (linkbuf[n++] = *dirname++)); in xfs_dir()
569 linkbuf[n] = 0; in xfs_dir()
570 dirname = linkbuf; in xfs_dir()
H A Dfsys_reiserfs.c1003 char linkbuf[PATH_MAX]; /* buffer for following symbolic links */ in reiserfs_dir() local
1046 if (filemax + len > sizeof (linkbuf) - 1) in reiserfs_dir()
1054 grub_memmove (linkbuf + filemax, dirname, len+1); in reiserfs_dir()
1060 || reiserfs_read (linkbuf, filemax) != filemax) in reiserfs_dir()
1068 printf ("symlink=%s\n", linkbuf); in reiserfs_dir()
1071 dirname = linkbuf; in reiserfs_dir()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Ddefs.h120 struct linkbuf { struct
126 struct linkbuf *nextp; argument
138 extern struct linkbuf *ihead; /* list of files with more than one link */
H A Dserver.c43 struct linkbuf *ihead; /* list of files with more than one link */
57 struct linkbuf *savelink();
425 struct linkbuf *lp;
479 struct linkbuf *lp;
558 struct linkbuf *
563 struct linkbuf *lp;
570 lp = (struct linkbuf *)malloc(sizeof (*lp));
/titanic_41/usr/src/lib/libvolmgt/common/
H A Dvolmgt_on_private.c493 char linkbuf[MAXPATHLEN+4]; in get_media_info() local
510 if ((lb_len = readlink(lpath, linkbuf, in get_media_info()
511 sizeof (linkbuf))) < 0) { in get_media_info()
514 linkbuf[lb_len] = NULLC; /* null terminate */ in get_media_info()
515 if ((cp = vol_basename(linkbuf)) == NULL) { in get_media_info()
/titanic_41/usr/src/cmd/devfsadm/
H A Dcfg_link.c1076 char linkbuf[MAXPATHLEN]; in pci_cfg_creat_cb() local
1113 (void) snprintf(linkbuf, sizeof (linkbuf), "%s/%s", in pci_cfg_creat_cb()
1133 pci_cfg_rm_invalid_links(devpath, linkbuf); in pci_cfg_creat_cb()
1136 (void) devfsadm_mklink(linkbuf, node, minor, 0); in pci_cfg_creat_cb()
1153 fd = di_dli_openw(linkbuf); in pci_cfg_creat_cb()
1171 (void) snprintf(linkbuf, sizeof (linkbuf), "%s/%s", in pci_cfg_creat_cb()
1173 (void) devfsadm_mklink(linkbuf, node, minor, 0); in pci_cfg_creat_cb()
H A Ddevfsadm.c5666 char linkbuf[PATH_MAX + 1]; in create_cached_numeral() local
5716 linksize = readlink(lpath, linkbuf, PATH_MAX); in create_cached_numeral()
5723 linkbuf[linksize] = '\0'; in create_cached_numeral()
5729 contents = di_alias2curr(devi_root_node, linkbuf); in create_cached_numeral()
/titanic_41/usr/src/cmd/modload/
H A Dadd_drv.c838 char linkbuf[MAXPATHLEN]; in dev_node() local
841 if (readlink(node, linkbuf, MAXPATHLEN) == -1) in dev_node()
847 if (strstr(linkbuf, ptr->dev_name) != NULL) in dev_node()
/titanic_41/usr/src/cmd/backup/restore/
H A Dutilities.c263 char linkbuf[MAXPATHLEN]; in lf_linkit() local
279 if (((l = readlink(new, linkbuf, sizeof (linkbuf))) in lf_linkit()
282 (strncmp(linkbuf, name, l) == 0)) { in lf_linkit()
/titanic_41/usr/src/cmd/rcm_daemon/common/
H A Dttymux_rcm.c672 char linkbuf[PATH_MAX+1]; in get_devpath() local
677 lsz = readlink(dev, linkbuf, PATH_MAX); in get_devpath()
681 linkbuf[lsz] = '\0'; in get_devpath()
682 dev = strstr(linkbuf, "/devices"); in get_devpath()
/titanic_41/usr/src/cmd/tar/
H A Dtar.c409 struct linkbuf { struct
415 struct linkbuf *nextp; argument
525 char, struct linkbuf *, int *);
531 char *prefix, int typeflag, int filetype, struct linkbuf *lp);
7546 struct linkbuf *linkinfo, in prepare_xattr()
7669 if (linkinfo != (struct linkbuf *)NULL) { in prepare_xattr()
7692 struct linkbuf *linkinfo, in prepare_xattr()
7981 struct linkbuf *lp; in put_link()
8039 lp = (struct linkbuf *)getmem(sizeof (*lp)); in put_link()
8040 if (lp != (struct linkbuf *)NULL) { in put_link()
[all …]