Add mandoc-manpage for link(1)

and mark it as finished in the README.
This commit is contained in:
FRIGN 2015-01-25 22:44:47 +01:00
parent 5c852e5c3c
commit 0bb5f5f453
3 changed files with 20 additions and 16 deletions

2
README
View File

@ -36,7 +36,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=* head yes none
= hostname non-posix none
=* kill yes none
= link yes none
=* link yes none
= ln yes none
=* logger yes none
= logname yes none

32
link.1
View File

@ -1,14 +1,18 @@
.TH LN 1 sbase\-VERSION
.SH NAME
link \- create a hard link by calling the link function
.SH SYNOPSIS
.B link
.I target
.I linkname
.P
.SH DESCRIPTION
.B link
creates a hard link to a given file, with the given name.
.SH SEE ALSO
.IR ln (1),
.IR link (2)
.Dd January 25, 2015
.Dt LINK 1 sbase\-VERSION
.Sh NAME
.Nm link
.Ar target
.Ar name
.Sh DESCRIPTION
.Nm
creates a hard link
.Ar name
to
.Ar target .
.Sh STANDARDS
The
.Nm
utility is compliant with the
.St -p1003.1-2008
specification.

2
link.c
View File

@ -10,7 +10,7 @@ main(int argc, char *argv[])
argv0 = argv[0];
if (argc != 3)
eprintf("usage: %s target linkname\n", argv0);
eprintf("usage: %s target name\n", argv0);
if (link(argv[1], argv[2]) < 0)
eprintf("link:");
return 0;