fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage1, "Usage: hostname [-v] {hostname|-F file}      set hostname (from file)\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage2, "       domainname [-v] {nisdomain|-F file}   set NIS domainname (from file)\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage3, "       hostname [-v] [-d|-f|-s|-a|-i|-y]     display formated name\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage4, "       hostname [-v]                         display hostname\n\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage5, "       hostname -V|--version|-h|--help       print info and exit\n\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage6, "    dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y\n\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage7, "    -s, --short           short host name\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage8, "    -a, --alias           alias names\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage9, "    -i, --ip-address      addresses for the hostname\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage10, "    -f, --fqdn, --long    long host name (FQDN)\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage11, "    -d, --domain          DNS domain name\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage12, "    -y, --yp, --nis       NIS/YP domainname\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage13, "    -F, --file            read hostname or nis domainname from given File\n\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage14, "   This comand can get or set the hostname or the NIS domainname. You can\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage15, "   also get the DNS domain or the FQDN (fully qualified domain name).\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage16, "   Unless you are using bind or NIS for host lookups you can change the\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage17, "   FQDN (Fully Qualified Domain Name) and the DNS domain name (which is\n")); fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage18, "   part of the FQDN) in the /etc/hosts file.\n")); NLS_CATCLOSE(catfd)
fprintf(stderr,_("Usage: hostname [-v] {hostname|-F file}      set hostname (from file)\n")); fprintf(stderr,_("       domainname [-v] {nisdomain|-F file}   set NIS domainname (from file)\n")); fprintf(stderr,_("       hostname [-v] [-d|-f|-s|-a|-i|-y]     display formated name\n")); fprintf(stderr,_("       hostname [-v]                         display hostname\n\n")); fprintf(stderr,_("       hostname -V|--version|-h|--help       print info and exit\n\n")); fprintf(stderr,_("    dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y\n\n")); fprintf(stderr,_("    -s, --short           short host name\n")); fprintf(stderr,_("    -a, --alias           alias names\n")); fprintf(stderr,_("    -i, --ip-address      addresses for the hostname\n")); fprintf(stderr,_("    -f, --fqdn, --long    long host name (FQDN)\n")); fprintf(stderr,_("    -d, --domain          DNS domain name\n")); fprintf(stderr,_("    -y, --yp, --nis       NIS/YP domainname\n")); fprintf(stderr,_("    -F, --file            read hostname or nis domainname from given File\n\n")); fprintf(stderr,_("   This comand can get or set the hostname or the NIS domainname. You can\n")); fprintf(stderr,_("   also get the DNS domain or the FQDN (fully qualified domain name).\n")); fprintf(stderr,_("   Unless you are using bind or NIS for host lookups you can change the\n")); fprintf(stderr,_("   FQDN (Fully Qualified Domain Name) and the DNS domain name (which is\n")); fprintf(stderr,_("   part of the FQDN) in the /etc/hosts file.\n"));
static void usage(void){	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage1, 		"Usage: hostname [-v] {hostname|-F file}      set hostname (from file)\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage2, 		"       domainname [-v] {nisdomain|-F file}   set NIS domainname (from file)\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage3, 		"       hostname [-v] [-d|-f|-s|-a|-i|-y]     display formated name\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage4, 		"       hostname [-v]                         display hostname\n\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage5, 		"       hostname -V|--version|-h|--help       print info and exit\n\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage6, 		"    dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y\n\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage7, 		"    -s, --short           short host name\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage8, 		"    -a, --alias           alias names\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage9, 		"    -i, --ip-address      addresses for the hostname\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage10, 		"    -f, --fqdn, --long    long host name (FQDN)\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage11, 		"    -d, --domain          DNS domain name\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage12, 		"    -y, --yp, --nis       NIS/YP domainname\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage13, 		"    -F, --file            read hostname or nis domainname from given File\n\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage14, 		"   This comand can get or set the hostname or the NIS domainname. You can\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage15, 		"   also get the DNS domain or the FQDN (fully qualified domain name).\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage16, 		"   Unless you are using bind or NIS for host lookups you can change the\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage17, 		"   FQDN (Fully Qualified Domain Name) and the DNS domain name (which is\n"));	fprintf(stderr,NLS_CATGETS(catfd, hostnameSet, hostname_usage18, 		"   part of the FQDN) in the /etc/hosts file.\n"));	NLS_CATCLOSE(catfd)	exit(-1);}