call setprogname(argv[0]) at start of main()
This commit is contained in:
parent
00f68ab5c7
commit
040de26f85
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mkdep.c,v 1.4 1999/07/21 15:20:55 kleink Exp $ */
|
||||
/* $NetBSD: mkdep.c,v 1.5 2001/02/21 00:08:37 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1999 The NetBSD Foundation, Inc.\n\
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mkdep.c,v 1.4 1999/07/21 15:20:55 kleink Exp $");
|
||||
__RCSID("$NetBSD: mkdep.c,v 1.5 2001/02/21 00:08:37 cgd Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -126,6 +126,7 @@ main(argc, argv)
|
||||
char buffer[32768];
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
setprogname(argv[0]);
|
||||
|
||||
aflag = 0;
|
||||
pflag = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rpc_main.c,v 1.17 2000/10/11 14:46:17 is Exp $ */
|
||||
/* $NetBSD: rpc_main.c,v 1.18 2001/02/21 00:11:12 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
|
||||
@ -35,7 +35,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)rpc_main.c 1.30 89/03/30 (C) 1987 SMI";
|
||||
#else
|
||||
__RCSID("$NetBSD: rpc_main.c,v 1.17 2000/10/11 14:46:17 is Exp $");
|
||||
__RCSID("$NetBSD: rpc_main.c,v 1.18 2001/02/21 00:11:12 cgd Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -170,6 +170,8 @@ main(argc, argv)
|
||||
{
|
||||
struct commandline cmd;
|
||||
|
||||
setprogname(argv[0]);
|
||||
|
||||
(void) memset((char *) &cmd, 0, sizeof(struct commandline));
|
||||
clear_args();
|
||||
if (!parseargs(argc, argv, &cmd))
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tsort.c,v 1.13 1998/08/25 20:59:42 ross Exp $ */
|
||||
/* $NetBSD: tsort.c,v 1.14 2001/02/21 00:11:36 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993, 1994
|
||||
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)tsort.c 8.3 (Berkeley) 5/4/95";
|
||||
#endif
|
||||
__RCSID("$NetBSD: tsort.c,v 1.13 1998/08/25 20:59:42 ross Exp $");
|
||||
__RCSID("$NetBSD: tsort.c,v 1.14 2001/02/21 00:11:36 cgd Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -126,6 +126,8 @@ main(argc, argv)
|
||||
int bsize, ch, nused;
|
||||
BUF bufs[2];
|
||||
|
||||
setprogname(argv[0]);
|
||||
|
||||
fp = NULL;
|
||||
while ((ch = getopt(argc, argv, "dlq")) != -1)
|
||||
switch (ch) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: xinstall.c,v 1.42 2000/10/10 14:30:41 enami Exp $ */
|
||||
/* $NetBSD: xinstall.c,v 1.43 2001/02/21 00:06:22 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993
|
||||
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: xinstall.c,v 1.42 2000/10/10 14:30:41 enami Exp $");
|
||||
__RCSID("$NetBSD: xinstall.c,v 1.43 2001/02/21 00:06:22 cgd Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -113,6 +113,8 @@ main(argc, argv)
|
||||
char *p;
|
||||
char *flags = NULL, *to_name, *group = NULL, *owner = NULL;
|
||||
|
||||
setprogname(argv[0]);
|
||||
|
||||
iflags = 0;
|
||||
while ((ch = getopt(argc, argv, "cbB:df:g:l:m:o:prsS:U")) != -1)
|
||||
switch((char)ch) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mdsetimage.c,v 1.12 2001/02/19 23:22:44 cgd Exp $ */
|
||||
/* $NetBSD: mdsetimage.c,v 1.13 2001/02/21 00:07:29 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou
|
||||
@ -42,7 +42,7 @@ __COPYRIGHT(
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mdsetimage.c,v 1.12 2001/02/19 23:22:44 cgd Exp $");
|
||||
__RCSID("$NetBSD: mdsetimage.c,v 1.13 2001/02/21 00:07:29 cgd Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -95,6 +95,8 @@ main(argc, argv)
|
||||
char *mappedkfile;
|
||||
int ch, kfd, fsfd, rv;
|
||||
|
||||
setprogname(argv[0]);
|
||||
|
||||
while ((ch = getopt(argc, argv, "T:v")) != -1)
|
||||
switch (ch) {
|
||||
case 'v':
|
||||
|
Loading…
Reference in New Issue
Block a user