Lines Matching defs:target
150 extern int link(const char * target, const char * linkname);
163 symlink(char const *target, char const *linkname)
170 # define linkat(targetdir, target, linknamedir, linkname, flag) \
748 if a link's target has not been made yet, append a copy to the
801 /* Make this link unless its target has not been made yet. */
810 /* The link target has not been made yet; copy the link to the end. */
1401 relname(char const *target, char const *linkname)
1405 char const *f = target;
1411 size_t targetsize = strlen(target) + 1;
1416 memcpy(result + lenslash, target, targetsize);
1448 dolink(char const *target, char const *linkname, bool staysymlink)
1458 if (strcmp(target, "-") == 0) {
1470 if (linkat(AT_FDCWD, target, AT_FDCWD, outname, AT_SYMLINK_FOLLOW)
1486 && (same_parent_dirs(target, outname)
1487 || 0 <= itssymlink(target, &targetissym))) {
1488 if (link(target, outname) == 0) {
1508 progname, directory, target, directory, outname,
1514 bool absolute = *target == '/';
1515 char *linkalloc = absolute ? NULL : relname(target, linkname);
1516 char const *contents = absolute ? target : linkalloc;
1541 fp = fopen(target, "rb");
1545 progname, directory, target, e);
1552 close_file(fp, directory, target, NULL);