/titanic_41/usr/src/cmd/fs.d/cachefs/cachefspack/ |
H A D | docmds.c | 77 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 D | fsys_minix.c | 308 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 D | fsys_jfs.c | 282 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 D | fsys_ext2fs.c | 558 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 D | fsys_xfs.c | 543 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 D | fsys_reiserfs.c | 1003 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 D | defs.h | 120 struct linkbuf { struct 126 struct linkbuf *nextp; argument 138 extern struct linkbuf *ihead; /* list of files with more than one link */
|
H A D | server.c | 43 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 D | volmgt_on_private.c | 493 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 D | cfg_link.c | 1076 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 D | devfsadm.c | 5666 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 D | add_drv.c | 838 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 D | utilities.c | 263 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 D | ttymux_rcm.c | 672 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 D | tar.c | 409 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 …]
|