Hi, This patch for /usr/share/misc/getopt enforces the use of getprogname() instead of __progname.
Is this desirable? If so I also have a patch for style(9).
Index: getopt =================================================================== RCS file: /cvs/src/share/misc/getopt,v retrieving revision 1.8 diff -u -p -r1.8 getopt --- getopt 1 Feb 2006 09:27:28 -0000 1.8 +++ getopt 29 Apr 2014 09:29:27 -0000 @@ -40,8 +40,6 @@ main(int argc, char *argv[]) void usage(void) { - extern char *__progname; - - (void)fprintf(stderr, "usage: %s [-b] [-f file]\n", __progname); + (void)fprintf(stderr, "usage: %s [-b] [-f file]\n", getprogname()); exit(1); }