Made the synopsis in the man page conform to the style guide.

Made the usage message conform to the style guide.

Don't use the implementation variable `__progname'.
This commit is contained in:
bde 1996-11-30 16:12:46 +00:00
parent 168274b4d6
commit 8c92e07907
4 changed files with 6 additions and 14 deletions

View File

@ -6,8 +6,8 @@
.Nd list dynamic object dependencies
.Sh SYNOPSIS
.Nm ldd
.Op Fl f Ar format
.Op Fl v
.Op Fl f Ar format
.Ar program ...
.Sh DESCRIPTION
.Nm ldd

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: ldd.c,v 1.8 1996/10/29 18:45:20 peter Exp $
* $Id: ldd.c,v 1.9 1996/11/22 13:58:03 peter Exp $
*/
#include <sys/types.h>
@ -50,11 +50,7 @@ extern int error_count;
void
usage()
{
extern char *__progname;
fprintf(stderr, "Usage: %s [-f format] [-v] <filename> ...\n",
__progname);
fprintf(stderr, "usage: ldd [-v] [-f format] program ...\n");
exit(1);
}

View File

@ -6,8 +6,8 @@
.Nd list dynamic object dependencies
.Sh SYNOPSIS
.Nm ldd
.Op Fl f Ar format
.Op Fl v
.Op Fl f Ar format
.Ar program ...
.Sh DESCRIPTION
.Nm ldd

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: ldd.c,v 1.8 1996/10/29 18:45:20 peter Exp $
* $Id: ldd.c,v 1.9 1996/11/22 13:58:03 peter Exp $
*/
#include <sys/types.h>
@ -50,11 +50,7 @@ extern int error_count;
void
usage()
{
extern char *__progname;
fprintf(stderr, "Usage: %s [-f format] [-v] <filename> ...\n",
__progname);
fprintf(stderr, "usage: ldd [-v] [-f format] program ...\n");
exit(1);
}