summaryrefslogtreecommitdiff
path: root/lib/libc/net/sethostent.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2013-11-12 20:37:17 +0000
committerEric Faurot <eric@cvs.openbsd.org>2013-11-12 20:37:17 +0000
commit5102035ebd8903a092c74d91c132d9f73115ccd8 (patch)
treeddd985c2a701c7937e8c56e413c27a881883fa82 /lib/libc/net/sethostent.c
parent4be467036ac3b35dec768dbf428ec7e3fc487dac (diff)
remove dead files
ok deraadt@
Diffstat (limited to 'lib/libc/net/sethostent.c')
-rw-r--r--lib/libc/net/sethostent.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/lib/libc/net/sethostent.c b/lib/libc/net/sethostent.c
deleted file mode 100644
index 6f6d0e405a1..00000000000
--- a/lib/libc/net/sethostent.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/* $OpenBSD: sethostent.c,v 1.9 2005/08/06 20:30:04 espie Exp $ */
-/*
- * Copyright (c) 1985, 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. 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 <sys/param.h>
-#include <netinet/in.h>
-#include <arpa/nameser.h>
-#include <netdb.h>
-#include <resolv.h>
-
-#include "thread_private.h"
-
-void
-sethostent(int stayopen)
-{
- struct __res_state *_resp = _THREAD_PRIVATE(_res, _res, &_res);
-
- if (_res_init(0) == -1)
- return;
- if (stayopen)
- _resp->options |= RES_STAYOPEN | RES_USEVC;
-}
-
-void
-endhostent(void)
-{
- struct __res_state *_resp = _THREAD_PRIVATE(_res, _res, &_res);
-
- _resp->options &= ~(RES_STAYOPEN | RES_USEVC);
- res_close();
-}