Lines Matching refs:source
7 * Redistribution and use in source and binary forms, with or without
10 * 1. Redistributions of source code must retain the above copyright
157 case 1: /* ln source */
159 case 2: /* ln source target */
230 linkit(const char *source, const char *target, int isdir)
240 /* If source doesn't exist, quit now. */
241 if ((Pflag ? lstat : stat)(source, &sb)) {
242 warn("%s", source);
248 warn("%s", source);
255 * append the source's name.
260 if (strlcpy(bbuf, source, sizeof(bbuf)) >= sizeof(bbuf) ||
265 warn("%s", source);
272 * If the link source doesn't exist, and a symbolic link was
276 if (*source == '/') {
277 /* Absolute link source. */
278 if (stat(source, &sb) != 0)
279 warn("warning: %s inaccessible", source);
282 * Relative symlink source. Try to construct the
283 * absolute path of the source, by appending `source'
290 p, source);
292 warn("warning: %s", source);
302 if (!sflag && samedirent(source, target)) {
304 source, target);
346 if (sflag ? symlink(source, target) :
347 linkat(AT_FDCWD, source, AT_FDCWD, target,
353 (void)printf("%s %c> %s\n", target, linkch, source);