From 50f757f21915bd8114287a1c56df3c7371de2413 Mon Sep 17 00:00:00 2001 From: roy Date: Mon, 6 Feb 2012 17:47:26 +0000 Subject: [PATCH] Remove stale files from older imports. --- external/bsd/dhcpcd/dist/README | 68 -------------------- external/bsd/dhcpcd/dist/compat/getline.c | 75 ----------------------- external/bsd/dhcpcd/dist/compat/getline.h | 36 ----------- 3 files changed, 179 deletions(-) delete mode 100644 external/bsd/dhcpcd/dist/README delete mode 100644 external/bsd/dhcpcd/dist/compat/getline.c delete mode 100644 external/bsd/dhcpcd/dist/compat/getline.h diff --git a/external/bsd/dhcpcd/dist/README b/external/bsd/dhcpcd/dist/README deleted file mode 100644 index 27254697cd58..000000000000 --- a/external/bsd/dhcpcd/dist/README +++ /dev/null @@ -1,68 +0,0 @@ -dhcpcd - DHCP client daemon -Copyright (c) 2006-2009 Roy Marples - - -Installation ------------- -Then just make; make install -man dhcpcd for command line options -man dhcpcd.conf for configuration options -man dhcpcd-run-hooks to learn how to hook scripts into dhcpcd events - - -Notes ------ -If you're cross compiling you may need to set the below knobs to avoid -automatic tests. -OS=BSD | Linux - -If you're building for an MMU-less system where fork() does not work, you -should add -DTHERE_IS_NO_FORK to your CPPFLAGS. -This also puts the --no-background flag on and stops the --background flag -from working. - -You can change the default dir with these knobs. -For example, to satisfy FHS compliance you would do this:- -LIBEXECDIR=/lib/dhcpcd -DBDIR=/var/lib/dhcpcd - -We now default to using -std=c99. For 64-bit linux, this always works, but -for 32-bit linux it requires either gnu99 or a patch to asm/types.h. -Most distros patch linux headers so this should work fine. -linux-2.6.24 finally ships with a working 32-bit header. -If your linux headers are older, or your distro hasn't patched them you can -set CSTD=gnu99 to work around this. - -Some BSD systems do not allow the manipulation of automatically added subnet -routes. You can find discussion here: - http://mail-index.netbsd.org/tech-net/2008/12/03/msg000896.html -BSD systems where this has been fixed are: - NetBSD-5.0 - - -Hooks ------ -Not all the hooks in dhcpcd-hooks are installed by default. -By default we install 01-test, 10-mtu, 20-resolv.conf, -29-lookup-hostname and 30-hostname. -The default dhcpcd.conf does disable the lookup-hostname hook by default. -To add more simply add them in the HOOKSCRIPTS variable. -make HOOKSCRIPTS=50-ntp install - - -Compatibility -------------- -dhcpcd-5.0 is only fully command line compatible with dhcpcd-4.0 -For compatibility with older versions, use dhcpcd-4.0 - -dhcpcd no longer sends a default ClientID for ethernet interfaces. -This is so we can re-use the address the kernel DHCP client found. -To retain the old behaviour of sending a default ClientID based on the -hardware address for interface, simply add the keyword clientid to dhcpcd.conf. - - -ChangeLog ---------- -We no longer supply a ChangeLog. -However, you're more than welcome to read the commit log at -http://roy.marples.name/projects/dhcpcd/log/ diff --git a/external/bsd/dhcpcd/dist/compat/getline.c b/external/bsd/dhcpcd/dist/compat/getline.c deleted file mode 100644 index 3f01b66c0b46..000000000000 --- a/external/bsd/dhcpcd/dist/compat/getline.c +++ /dev/null @@ -1,75 +0,0 @@ -/* - * dhcpcd - DHCP client daemon - * Copyright (c) 2006-2009 Roy Marples - * 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. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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 -#include -#include -#include -#include - -#include "getline.h" - -/* Redefine a small buffer for our simple text config files */ -#undef BUFSIZ -#define BUFSIZ 128 - -ssize_t -getline(char ** __restrict buf, size_t * __restrict buflen, - FILE * __restrict fp) -{ - size_t bytes, newlen; - char *newbuf, *p; - - if (buf == NULL || buflen == NULL) { - errno = EINVAL; - return -1; - } - if (*buf == NULL) - *buflen = 0; - - bytes = 0; - do { - if (feof(fp)) - break; - if (*buf == NULL || bytes != 0) { - newlen = *buflen + BUFSIZ; - newbuf = realloc(*buf, newlen); - if (newbuf == NULL) - return -1; - *buf = newbuf; - *buflen = newlen; - } - p = *buf + bytes; - memset(p, 0, BUFSIZ); - if (fgets(p, BUFSIZ, fp) == NULL) - break; - bytes += strlen(p); - } while (bytes == 0 || *(*buf + (bytes - 1)) != '\n'); - if (bytes == 0) - return -1; - return bytes; -} diff --git a/external/bsd/dhcpcd/dist/compat/getline.h b/external/bsd/dhcpcd/dist/compat/getline.h deleted file mode 100644 index 390632c3513b..000000000000 --- a/external/bsd/dhcpcd/dist/compat/getline.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * dhcpcd - DHCP client daemon - * Copyright (c) 2006-2009 Roy Marples - * 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. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. - */ - -#ifndef GETLINE_H -#define GETLINE_H - -#include -#include - -ssize_t getline(char ** __restrict buf, size_t * __restrict buflen, - FILE * __restrict fp); -#endif