Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/dhcpcd/dist Remove stale files from older imports.
details: https://anonhg.NetBSD.org/src/rev/e166e657fd1f
branches: trunk
changeset: 773569:e166e657fd1f
user: roy <roy%NetBSD.org@localhost>
date: Mon Feb 06 17:47:26 2012 +0000
description:
Remove stale files from older imports.
diffstat:
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, 0 insertions(+), 179 deletions(-)
diffs (191 lines):
diff -r d038582eb4b2 -r e166e657fd1f external/bsd/dhcpcd/dist/README
--- a/external/bsd/dhcpcd/dist/README Mon Feb 06 17:24:49 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,68 +0,0 @@
-dhcpcd - DHCP client daemon
-Copyright (c) 2006-2009 Roy Marples <roy%marples.name@localhost>
-
-
-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 -r d038582eb4b2 -r e166e657fd1f external/bsd/dhcpcd/dist/compat/getline.c
--- a/external/bsd/dhcpcd/dist/compat/getline.c Mon Feb 06 17:24:49 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-/*
- * dhcpcd - DHCP client daemon
- * Copyright (c) 2006-2009 Roy Marples <roy%marples.name@localhost>
- * 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 <errno.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
-#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 -r d038582eb4b2 -r e166e657fd1f external/bsd/dhcpcd/dist/compat/getline.h
--- a/external/bsd/dhcpcd/dist/compat/getline.h Mon Feb 06 17:24:49 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-/*
- * dhcpcd - DHCP client daemon
- * Copyright (c) 2006-2009 Roy Marples <roy%marples.name@localhost>
- * 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 <sys/types.h>
-#include <stdio.h>
-
-ssize_t getline(char ** __restrict buf, size_t * __restrict buflen,
- FILE * __restrict fp);
-#endif
Home |
Main Index |
Thread Index |
Old Index