Lines Matching refs:target

77 	le32	flags;		     /* 1 for full target, otherwise 0 */
214 * along the target path, with target defined as a full absolute path
225 char *target;
229 target = (char*)NULL; /* default return */
266 if (ntfs_ucstombs(path, count, &target, 0) < 0) {
267 if (target) {
268 free(target);
269 target = (char*)NULL;
275 return (target);
279 * Search for a symbolic link along the target path,
280 * with the target defined as a relative path
283 * different from the one implied in the target definition,
292 char *target = (char*)NULL;
378 if (ok && (ntfs_ucstombs(path, count, &target, 0) < 0)) {
379 free(target); // needed ?
380 target = (char*)NULL;
382 return (target);
545 * Check and translate the target of a junction point or
548 * A full target definition begins with "\??\" or "\\?\"
550 * The fully defined target is redefined as a relative link,
551 * - either to the target if found on the same device.
553 * In the first situation, the target is translated to case-sensitive path.
555 * returns the target converted to a relative symlink
562 char *target;
568 target = (char*)NULL;
594 * try to interpret as a target on the same volume
600 target = search_absolute(vol,&junction[7],count - 7, isdir);
601 if (target) {
603 + strlen(target) + 2);
607 strcat(fulltarget,target);
609 free(target);
614 * target not found on current volume :
615 * link to /.NTFS-3G/target which the user can
616 * define as a symbolic link to the real target
622 &target, 0);
623 if ((sz > 0) && target) {
625 for (q=target; *q; q++)
629 if ((target[1] == ':')
630 && (target[0] >= 'a')
631 && (target[0] <= 'z'))
632 target[0] += 'A' - 'a';
634 + sizeof(mappingdir) + strlen(target) + 1);
639 strcat(fulltarget,target);
642 if (target)
643 free(target);
649 * Check and translate the target of an absolute symbolic link.
651 * An absolute target definition begins with "\" or "x:\"
653 * The absolute target is redefined as a relative link,
654 * - either to the target if found on the same device.
656 * In the first situation, the target is translated to case-sensitive path.
658 * returns the target converted to a relative symlink
666 char *target;
672 target = (char*)NULL;
695 * try to interpret as a target on the same volume.
704 target = search_absolute(vol, &junction[1],
707 target = search_absolute(vol, &junction[3],
709 if (target) {
712 + strlen(target) + 2);
716 strcat(fulltarget,target);
718 free(target);
722 * full path with target not found on current volume :
723 * link to /.NTFS-3G/target which the user can
724 * define as a symbolic link to the real target
728 count,&target, 0);
729 if ((sz > 0) && target) {
731 for (q=target; *q; q++)
735 if ((target[1] == ':')
736 && (target[0] >= 'a')
737 && (target[0] <= 'z'))
738 target[0] += 'A' - 'a';
741 + sizeof(mappingdir) + strlen(target) + 1);
746 strcat(fulltarget,target);
749 if (target)
750 free(target);
756 * Check and translate the target of a relative symbolic link.
758 * A relative target definition does not begin with "\"
760 * The original definition of relative target is kept, it is just
763 * returns the target converted to a relative symlink
769 char *target;
771 target = search_relative(ni,junction,count);
772 return (target);
776 * Get the target for a junction point or symbolic link
779 * returns the target converted to a relative path, or NULL
788 char *target;
801 target = (char*)NULL;
817 target = ntfs_get_fulllink(vol,
820 if (target)
830 * Predetermine the kind of target,
850 target = ntfs_get_fulllink(vol,
853 if (target)
860 target = ntfs_get_abslink(vol,
863 if (target)
870 target = ntfs_get_rellink(ni,
872 if (target)
885 target = (char*)ntfs_malloc(lth + 1);
886 if (target) {
887 memcpy(target, wsl_link_data->link,
889 target[lth] = 0;
899 return (target);
907 * The validity of the target is not checked.
1339 const ntfschar *target, int target_len)
1350 len = ntfs_ucstombs(target, target_len, &utarget, 0);