summaryrefslogtreecommitdiffstats
path: root/gnu/libexec/uucp/libunix/link.c
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-10-01 06:22:53 +0000
committerkris <kris@FreeBSD.org>2001-10-01 06:22:53 +0000
commitebde71313f25e6c00554d63efdb7e13e7ec8da0f (patch)
treecf5a73cdbdc325eb67758fae618b870f0530f779 /gnu/libexec/uucp/libunix/link.c
parent5a5b9f79f48be499ceca11f3d54c0525935b9ac1 (diff)
downloadFreeBSD-src-ebde71313f25e6c00554d63efdb7e13e7ec8da0f.zip
FreeBSD-src-ebde71313f25e6c00554d63efdb7e13e7ec8da0f.tar.gz
Phase I of UUCP migration to ports. This leaves behind a minimal build
environment for cu, which is still useful.
Diffstat (limited to 'gnu/libexec/uucp/libunix/link.c')
-rw-r--r--gnu/libexec/uucp/libunix/link.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/gnu/libexec/uucp/libunix/link.c b/gnu/libexec/uucp/libunix/link.c
deleted file mode 100644
index 4550c76..0000000
--- a/gnu/libexec/uucp/libunix/link.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/* link.c
- Link two files. */
-
-#include "uucp.h"
-
-#include "uudefs.h"
-#include "sysdep.h"
-#include "system.h"
-
-#include <errno.h>
-
-boolean
-fsysdep_link (zfrom, zto, pfworked)
- const char *zfrom;
- const char *zto;
- boolean *pfworked;
-{
- *pfworked = FALSE;
- if (link (zfrom, zto) == 0)
- {
- *pfworked = TRUE;
- return TRUE;
- }
- if (errno == ENOENT)
- {
- if (! fsysdep_make_dirs (zto, TRUE))
- return FALSE;
- if (link (zfrom, zto) == 0)
- {
- *pfworked = TRUE;
- return TRUE;
- }
- }
- if (errno == EXDEV)
- return TRUE;
- ulog (LOG_ERROR, "link (%s, %s): %s", zfrom, zto, strerror (errno));
- return FALSE;
-}
OpenPOWER on IntegriCloud