Refactor unlink(1) code and manpage

Remove superfluous stdlib.h-include.
This commit is contained in:
FRIGN 2015-02-08 21:59:27 +01:00
parent 6397952ab3
commit e01469c9a2
3 changed files with 11 additions and 6 deletions

2
README
View File

@ -75,7 +75,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=* uname yes none =* uname yes none
#* unexpand yes none #* unexpand yes none
= uniq no -f, -s = uniq no -f, -s
= unlink yes none =* unlink yes none
= uudecode no -o = uudecode no -o
= uuencode no -m = uuencode no -m
seq non-posix none seq non-posix none

View File

@ -1,17 +1,23 @@
.Dd January 30, 2015 .Dd February 8, 2015
.Dt UNLINK 1 .Dt UNLINK 1
.Os sbase .Os sbase
.Sh NAME .Sh NAME
.Nm unlink .Nm unlink
.Nd call the unlink function .Nd unlink file
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Ar file .Ar file
.Sh DESCRIPTION .Sh DESCRIPTION
.Nm .Nm
calls the calls
.Xr unlink 2 .Xr unlink 2
function on on
.Ar file . .Ar file .
.Sh SEE ALSO .Sh SEE ALSO
.Xr unlink 2 .Xr unlink 2
.Sh STANDARDS
The
.Nm
utility is compliant with the
.St -p1003.1-2008
specification.

View File

@ -1,5 +1,4 @@
/* See LICENSE file for copyright and license details. */ /* See LICENSE file for copyright and license details. */
#include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include "util.h" #include "util.h"