mirror of
git://git.suckless.org/sbase
synced 2025-03-19 09:39:12 +00:00
When viewing sbase's man pages the date displayed at the bottom is
the current date rather than the date entered in the <program>.1
file.
According to this:
https://mandoc.bsd.lv/mdoc/details/date.html
The traditional man date format used by sbase (.Dd year-month-day)
is no longer recommended and no longer supported by GNU troff or
Heirloom Docs and as a result the current date is displayed instead.
Although this format is still accepted by mandoc for backward
compatibility.
For portability it states the standard mdoc date format should be
used instead: .Dd month day, year
I applied the following patch to sbase's last commit b30fb56
and
it fixes the issue.
36 lines
700 B
Groff
36 lines
700 B
Groff
.Dd October 8, 2015
|
|
.Dt FLOCK 1
|
|
.Os sbase
|
|
.Sh NAME
|
|
.Nm flock
|
|
.Nd tool to manage locks on files
|
|
.Sh SYNOPSIS
|
|
.Nm
|
|
.Op Fl nosux
|
|
.Ar file
|
|
.Ar cmd Op arg ...
|
|
.Sh DESCRIPTION
|
|
.Nm
|
|
is used to manage advisory locks on open files.
|
|
It is commonly used to prevent long running cron jobs from running in
|
|
parallel.
|
|
If
|
|
.Ar file
|
|
does not exist, it will be created.
|
|
.Sh OPTIONS
|
|
.Bl -tag -width Ds
|
|
.It Fl n
|
|
Set non-blocking mode on the lock.
|
|
Fail immediately if the lock cannot be acquired.
|
|
.It Fl o
|
|
Close the file descriptor before exec to avoid having the exec'ed
|
|
program holding on to the lock.
|
|
.It Fl s
|
|
Acquire a shared lock.
|
|
.It Fl u
|
|
Release the lock.
|
|
.It Fl x
|
|
Acquire an exclusive lock.
|
|
This is the default.
|
|
.El
|