--- old/usr/src/lib/gss_mechs/mech_krb5/Makefile.com	Sat Jan 31 23:14:47 2015
+++ new/usr/src/lib/gss_mechs/mech_krb5/Makefile.com	Sat Jan 31 23:14:47 2015
@@ -152,7 +152,7 @@
 
 K5_OS_UTS=init_os_ctx.o timeofday.o toffset.o c_ustime.o
 
-K5_POSIX= setenv.o daemon.o
+K5_POSIX= setenv.o
 
 K5_RCACHE=rc_base.o rc_file.o rc_mem.o rc_common.o rc_io.o rcdef.o rc_conv.o \
 	ser_rc.o rcfns.o rc_none.o
--- old/usr/src/lib/gss_mechs/mech_krb5/krb5/posix/daemon.c	Sat Jan 31 23:14:47 2015
+++ /dev/null	Sat Jan 31 23:09:25 2015
@@ -1,95 +0,0 @@
-/*-
- * Copyright (c) 1990 The Regents of the University of California.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 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. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *	This product includes software developed by the University of
- *	California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include "k5-int.h"
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/file.h>
-#include <unistd.h>
-#ifdef HAVE_PATHS_H
-#include <paths.h>
-#endif
-
-#ifndef _PATH_DEVNULL
-#define _PATH_DEVNULL "/dev/null"
-#endif
-
-int
-daemon(nochdir, noclose)
-	int nochdir, noclose;
-{
-	int cpid;
-
-	if ((cpid = fork()) == -1)
-		return (-1);
-	if (cpid)
-		exit(0);
-#ifdef HAVE_SETSID
-	(void) setsid();
-#else
-#ifndef TIOCNOTTY
-	setpgrp();
-#else
-	{
-		int n;
-	    
-		/*
-		 * The open below may hang on pseudo ttys if the person
-		 * who starts named logs out before this point.  Thus,
-		 * the need for the timer.
-		 */
-		alarm(120);
-		n = open("/dev/tty", O_RDWR);
-		alarm(0);
-		if (n > 0) {
-			(void) ioctl(n, TIOCNOTTY, (char *)NULL);
-			(void) close(n);
-		}
-	}
-#endif
-#endif
-	if (!nochdir)
-		(void) chdir("/");
-	if (!noclose) {
-		int devnull = open(_PATH_DEVNULL, O_RDWR, 0);
-
-		if (devnull != -1) {
-			(void) dup2(devnull, 0);
-			(void) dup2(devnull, 1);
-			(void) dup2(devnull, 2);
-			if (devnull > 2)
-				(void) close(devnull);
-		}
-	}
-	return (0);
-}
--- old/usr/src/lib/gss_mechs/mech_krb5/mapfile-vers	Sat Jan 31 23:14:47 2015
+++ new/usr/src/lib/gss_mechs/mech_krb5/mapfile-vers	Sat Jan 31 23:14:47 2015
@@ -144,7 +144,6 @@
 	asn1buf_wrap_data;
 	com_err;
 	com_err_va;
-	daemon;
 	decode_krb5_alt_method;
 	decode_krb5_ap_rep;
 	decode_krb5_ap_rep_enc_part;
--- old/usr/src/lib/libresolv2/Makefile.com	Sat Jan 31 23:14:47 2015
+++ new/usr/src/lib/libresolv2/Makefile.com	Sat Jan 31 23:14:47 2015
@@ -27,7 +27,7 @@
 LIBRARY= libresolv.a
 VERS= .2
 
-BSDOBJS=   	daemon.o	putenv.o	strcasecmp.o	strsep.o \
+BSDOBJS=   	putenv.o	strcasecmp.o	strsep.o \
 		ftruncate.o	readv.o		strdup.o	strtoul.o \
 		gettimeofday.o	setenv.o	strerror.o	utimes.o \
 		mktemp.o	setitimer.o	strpbrk.o	writev.o
--- old/usr/src/lib/libresolv2/common/bsd/daemon.c	Sat Jan 31 23:14:47 2015
+++ /dev/null	Sat Jan 31 23:09:25 2015
@@ -1,81 +0,0 @@
-#if defined(LIBC_SCCS) && !defined(lint)
-static const char sccsid[] = "@(#)daemon.c	8.1 (Berkeley) 6/4/93";
-static const char rcsid[] = "$Id: daemon.c,v 1.2 2005/04/27 04:56:10 sra Exp $";
-#endif /* LIBC_SCCS and not lint */
-
-/*
- * Copyright (c) 1990, 1993
- *	The Regents of the University of California.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 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. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *	This product includes software developed by the University of
- *	California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include "port_before.h"
-
-#include <fcntl.h>
-#include <paths.h>
-#include <unistd.h>
-
-#include "port_after.h"
-
-#ifndef NEED_DAEMON
-int __bind_daemon__;
-#else
-
-int
-daemon(int nochdir, int noclose) {
-	int fd;
-
-	switch (fork()) {
-	case -1:
-		return (-1);
-	case 0:
-		break;
-	default:
-		_exit(0);
-	}
-
-	if (setsid() == -1)
-		return (-1);
-
-	if (!nochdir)
-		(void)chdir("/");
-
-	if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
-		(void)dup2(fd, STDIN_FILENO);
-		(void)dup2(fd, STDOUT_FILENO);
-		(void)dup2(fd, STDERR_FILENO);
-		if (fd > 2)
-			(void)close (fd);
-	}
-	return (0);
-}
-#endif
-
-/*! \file */
--- old/usr/src/lib/libresolv2/common/mapfile-vers	Sat Jan 31 23:14:47 2015
+++ new/usr/src/lib/libresolv2/common/mapfile-vers	Sat Jan 31 23:14:47 2015
@@ -130,7 +130,6 @@
 	__ctl_sendhelp;
 	__ctl_server;
 	__ctl_setcsctx;
-	daemon;
 	dn_count_labels;
 	__dn_count_labels;
 	dn_skipname;
--- old/usr/src/lib/libresolv2/include/port_after.h	Sat Jan 31 23:14:47 2015
+++ new/usr/src/lib/libresolv2/include/port_after.h	Sat Jan 31 23:14:47 2015
@@ -46,7 +46,6 @@
 #undef NEED_PSELECT
 #undef HAVE_SA_LEN
 #undef HAVE_MINIMUM_IFREQ
-#define NEED_DAEMON 1
 #undef NEED_STRSEP
 #undef NEED_STRERROR
 #ifdef NEED_STRERROR
@@ -292,10 +291,6 @@
 #define MAX(x,y) (((x) >= (y)) ? (x) : (y))
 #endif
 
-#ifdef NEED_DAEMON
-int daemon(int nochdir, int noclose);
-#endif
-
 #ifdef NEED_STRSEP
 char * strsep(char **stringp, const char *delim);
 #endif
