SCCS-vsn: usr.sbin/inetd/inetd.c 5.12
/*
* Copyright (c) 1983 Regents of the University of California.
/*
* Copyright (c) 1983 Regents of the University of California.
- * All rights reserved. The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that this notice is preserved and that due credit is given
+ * to the University of California at Berkeley. The name of the University
+ * may not be used to endorse or promote products derived from this
+ * software without specific prior written permission. This software
+ * is provided ``as is'' without express or implied warranty.
*/
#ifndef lint
char copyright[] =
"@(#) Copyright (c) 1983 Regents of the University of California.\n\
All rights reserved.\n";
*/
#ifndef lint
char copyright[] =
"@(#) Copyright (c) 1983 Regents of the University of California.\n\
All rights reserved.\n";
-static char sccsid[] = "@(#)inetd.c 5.11 (Berkeley) %G%";
-#endif not lint
+static char sccsid[] = "@(#)inetd.c 5.12 (Berkeley) %G%";
+#endif /* not lint */
/*
* Inetd - Internet super-server
/*
* Inetd - Internet super-server
{
register struct servtab *sep;
long omask;
{
register struct servtab *sep;
long omask;
sep = (struct servtab *)malloc(sizeof (*sep));
if (sep == (struct servtab *)0) {
sep = (struct servtab *)malloc(sizeof (*sep));
if (sep == (struct servtab *)0) {
getconfigent()
{
register struct servtab *sep = &serv;
getconfigent()
{
register struct servtab *sep = &serv;
+ char *cp, *arg, *strdup();
more:
while ((cp = nextline(fconfig)) && *cp == '#')
more:
while ((cp = nextline(fconfig)) && *cp == '#')