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 =* head yes none
= hostname non-posix none = hostname non-posix none
=* kill yes none =* kill yes none
= link yes none =* link yes none
= ln yes none = ln yes none
=* logger yes none =* logger yes none
= logname yes none = logname yes none

32
link.1
View File

@ -1,14 +1,18 @@
.TH LN 1 sbase\-VERSION .Dd January 25, 2015
.SH NAME .Dt LINK 1 sbase\-VERSION
link \- create a hard link by calling the link function .Sh NAME
.SH SYNOPSIS .Nm link
.B link .Ar target
.I target .Ar name
.I linkname .Sh DESCRIPTION
.P .Nm
.SH DESCRIPTION creates a hard link
.B link .Ar name
creates a hard link to a given file, with the given name. to
.SH SEE ALSO .Ar target .
.IR ln (1), .Sh STANDARDS
.IR link (2) 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]; argv0 = argv[0];
if (argc != 3) if (argc != 3)
eprintf("usage: %s target linkname\n", argv0); eprintf("usage: %s target name\n", argv0);
if (link(argv[1], argv[2]) < 0) if (link(argv[1], argv[2]) < 0)
eprintf("link:"); eprintf("link:");
return 0; return 0;