CVS commit: src/usr.bin/ypwhich
Module Name:src Committed By: ginsbach Date: Fri Aug 11 20:32:34 UTC 2017 Modified Files: src/usr.bin/ypwhich: ypwhich.c Log Message: Remove spurious error(1) inserted compiler error message comments. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/usr.bin/ypwhich/ypwhich.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/ypwhich/ypwhich.c diff -u src/usr.bin/ypwhich/ypwhich.c:1.20 src/usr.bin/ypwhich/ypwhich.c:1.21 --- src/usr.bin/ypwhich/ypwhich.c:1.20 Sat Oct 18 08:33:30 2014 +++ src/usr.bin/ypwhich/ypwhich.c Fri Aug 11 20:32:34 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: ypwhich.c,v 1.20 2014/10/18 08:33:30 snj Exp $ */ +/* $NetBSD: ypwhich.c,v 1.21 2017/08/11 20:32:34 ginsbach Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor @@ -306,9 +306,6 @@ find_mapmaster(const char *host, const c * now translate nicknames [unless inhibited] */ if (map && !inhibit) { -/*###325 [cc] error: 'i' undeclared (first use in this function)%%%*/ -/*###325 [cc] error: (Each undeclared identifier is reported only once%%%*/ -/*###325 [cc] error: for each function it appears in.)%%%*/ for (i = 0; ypaliases[i].alias; i++) { if (strcmp(map, ypaliases[i].alias) == 0) { map = ypaliases[i].name;
CVS commit: src/usr.bin/ypwhich
Module Name:src Committed By: chuck Date: Tue Feb 1 20:58:15 UTC 2011 Modified Files: src/usr.bin/ypwhich: ypwhich.c Log Message: udpate license clauses on my code to match the new-style BSD licenses. remove no-longer-valid wustl email address for me. no functional change with this commit. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/usr.bin/ypwhich/ypwhich.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/ypwhich/ypwhich.c diff -u src/usr.bin/ypwhich/ypwhich.c:1.17 src/usr.bin/ypwhich/ypwhich.c:1.18 --- src/usr.bin/ypwhich/ypwhich.c:1.17 Sun Jun 21 15:04:56 2009 +++ src/usr.bin/ypwhich/ypwhich.c Tue Feb 1 20:58:15 2011 @@ -1,7 +1,6 @@ -/* $NetBSD: ypwhich.c,v 1.17 2009/06/21 15:04:56 wiz Exp $ */ +/* $NetBSD: ypwhich.c,v 1.18 2011/02/01 20:58:15 chuck Exp $ */ /* - * * Copyright (c) 1997 Charles D. Cranor * All rights reserved. * @@ -13,8 +12,6 @@ * 2. Redistributions in binary form must reproduce the above copyright *notice, this list of conditions and the following disclaimer in the *documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - *derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -30,7 +27,7 @@ /* * ypwhich - * author: Chuck Cranor + * author: Chuck Cranor * date: 31-Oct-97 * * notes: this is a full rewrite of Theo de Raadt's ypwhich.
CVS commit: src/usr.bin/ypwhich
Module Name:src Committed By: wiz Date: Sun Jun 21 15:04:56 UTC 2009 Modified Files: src/usr.bin/ypwhich: ypwhich.c Log Message: Sync usage with man page. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/usr.bin/ypwhich/ypwhich.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/ypwhich/ypwhich.c diff -u src/usr.bin/ypwhich/ypwhich.c:1.16 src/usr.bin/ypwhich/ypwhich.c:1.17 --- src/usr.bin/ypwhich/ypwhich.c:1.16 Sat Jun 20 19:27:26 2009 +++ src/usr.bin/ypwhich/ypwhich.c Sun Jun 21 15:04:56 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: ypwhich.c,v 1.16 2009/06/20 19:27:26 christos Exp $ */ +/* $NetBSD: ypwhich.c,v 1.17 2009/06/21 15:04:56 wiz Exp $ */ /* * @@ -192,7 +192,7 @@ { const char *pname = getprogname(); (void)fprintf(stderr, "Usage:\t%s [-T] [-d domain] [[-h] host]\n" - "\t%s [-T] [-h host] [-d domain] [-f] [-t] -m [mapname]\n" + "\t%s [-fTt] [-d domain] [-h host] -m [mapname]\n" "\t%s [-T] -x\n", pname, pname, pname); exit(1); }
CVS commit: src/usr.bin/ypwhich
Module Name:src Committed By: wiz Date: Sun Jun 21 15:04:07 UTC 2009 Modified Files: src/usr.bin/ypwhich: ypwhich.1 Log Message: Fix error in previous. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/usr.bin/ypwhich/ypwhich.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/ypwhich/ypwhich.1 diff -u src/usr.bin/ypwhich/ypwhich.1:1.17 src/usr.bin/ypwhich/ypwhich.1:1.18 --- src/usr.bin/ypwhich/ypwhich.1:1.17 Sun Jun 21 15:02:54 2009 +++ src/usr.bin/ypwhich/ypwhich.1 Sun Jun 21 15:04:07 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: ypwhich.1,v 1.17 2009/06/21 15:02:54 wiz Exp $ +.\" $NetBSD: ypwhich.1,v 1.18 2009/06/21 15:04:07 wiz Exp $ .\" .\" Copyright (c) 1994 Christopher G. Demetriou .\" All rights reserved. @@ -38,7 +38,7 @@ .Nm .Op Fl T .Op Fl d Ar domain -.Op Op Fl h Ar host +.Op Oo Fl h Oc Ar host .Nm .Op Fl fTt .Op Fl d Ar domain
CVS commit: src/usr.bin/ypwhich
Module Name:src Committed By: wiz Date: Sun Jun 21 15:02:54 UTC 2009 Modified Files: src/usr.bin/ypwhich: ypwhich.1 Log Message: Sort options and option descriptions. Use EXIT STATUS header for exit status description. Use Pa for paths. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/usr.bin/ypwhich/ypwhich.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/ypwhich/ypwhich.1 diff -u src/usr.bin/ypwhich/ypwhich.1:1.16 src/usr.bin/ypwhich/ypwhich.1:1.17 --- src/usr.bin/ypwhich/ypwhich.1:1.16 Sat Jun 20 19:27:26 2009 +++ src/usr.bin/ypwhich/ypwhich.1 Sun Jun 21 15:02:54 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: ypwhich.1,v 1.16 2009/06/20 19:27:26 christos Exp $ +.\" $NetBSD: ypwhich.1,v 1.17 2009/06/21 15:02:54 wiz Exp $ .\" .\" Copyright (c) 1994 Christopher G. Demetriou .\" All rights reserved. @@ -36,18 +36,13 @@ .Nd return hostname of NIS server of map master .Sh SYNOPSIS .Nm -.Op Fl d Ar domain -.Oo -.Op Fl h -.Ar host -.Oc .Op Fl T +.Op Fl d Ar domain +.Op Op Fl h Ar host .Nm +.Op Fl fTt .Op Fl d Ar domain .Op Fl h Ar host -.Op Fl f -.Op Fl t -.Op Fl T .Fl m Op Ar mname .Nm .Fl x @@ -71,8 +66,6 @@ .Bl -tag -width Fl .It Fl d Ar domain Specify a domain other than the default domain. -.It Fl h Ar host -Specify a host other than localhost to query for information. .It Fl f When used in conjunction with .Fl m , @@ -82,11 +75,8 @@ .Ar host directly, without using the local copy of .Xr ypbind 8 . -.It Fl t -Inhibit translation of map nicknames -to their corresponding map names. -.It Fl T -Use TCP protocol instead of UDP. +.It Fl h Ar host +Specify a host other than localhost to query for information. .It Fl m Op Ar mname Find the master .Tn NIS @@ -98,14 +88,21 @@ is omitted, .Nm will produce a list of available maps. +.It Fl T +Use TCP protocol instead of UDP. +.It Fl t +Inhibit translation of map nicknames +to their corresponding map names. .It Fl x -Display the map nickname table, found in /var/yp/nicknames. -A built-in default translation table is used if /var/yp/nicknames +Display the map nickname table, found in +.Pa /var/yp/nicknames . +A built-in default translation table is used if +.Pa /var/yp/nicknames does not exist (see .Xr nicknames 5 for details). .El -.Pp +.Sh EXIT STATUS .Nm exits with a non-zero exit code if .Fl m