Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src remove old libevent sources



details:   https://anonhg.NetBSD.org/src/rev/9f09a129d33d
branches:  trunk
changeset: 748704:9f09a129d33d
user:      plunky <plunky%NetBSD.org@localhost>
date:      Mon Nov 02 10:14:28 2009 +0000

description:
remove old libevent sources

diffstat:

 compat/lib/libevent/Makefile        |    37 -
 lib/libevent/Makefile               |    95 -
 lib/libevent/buffer.c               |   410 ----
 lib/libevent/config.h               |   239 --
 lib/libevent/evbuffer.c             |   435 -----
 lib/libevent/evdns.3                |   367 ----
 lib/libevent/evdns.c                |  2917 -----------------------------------
 lib/libevent/evdns.h                |   513 ------
 lib/libevent/event-internal.h       |    99 -
 lib/libevent/event.3                |   623 -------
 lib/libevent/event.c                |  1001 ------------
 lib/libevent/event.h                |  1163 -------------
 lib/libevent/event_tagging.c        |   433 -----
 lib/libevent/evhttp.h               |   365 ----
 lib/libevent/evrpc-internal.h       |    88 -
 lib/libevent/evrpc.c                |   645 -------
 lib/libevent/evrpc.h                |   487 -----
 lib/libevent/evsignal.h             |    57 -
 lib/libevent/evutil.c               |    94 -
 lib/libevent/evutil.h               |    94 -
 lib/libevent/http-internal.h        |   155 -
 lib/libevent/http.c                 |  2748 --------------------------------
 lib/libevent/kqueue.c               |   422 -----
 lib/libevent/log.c                  |   177 --
 lib/libevent/log.h                  |    52 -
 lib/libevent/min_heap.h             |   150 -
 lib/libevent/poll.c                 |   376 ----
 lib/libevent/shlib_version          |     5 -
 lib/libevent/signal.c               |   339 ----
 regress/lib/libevent/Makefile       |    21 -
 regress/lib/libevent/regress.c      |  1658 -------------------
 regress/lib/libevent/regress.gen.c  |   872 ----------
 regress/lib/libevent/regress.gen.h  |   178 --
 regress/lib/libevent/regress.h      |    46 -
 regress/lib/libevent/regress_dns.c  |   360 ----
 regress/lib/libevent/regress_http.c |  1452 -----------------
 regress/lib/libevent/regress_rpc.c  |   625 -------
 37 files changed, 0 insertions(+), 19798 deletions(-)

diffs (truncated from 19946 to 300 lines):

diff -r b7c37d2f7b65 -r 9f09a129d33d compat/lib/libevent/Makefile
--- a/compat/lib/libevent/Makefile      Mon Nov 02 10:13:19 2009 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-#      $NetBSD: Makefile,v 1.5 2009/07/21 01:00:45 mrg Exp $
-#      Generated from: NetBSD: build-makefiles,v 1.7 2009/07/21 00:23:02 mrg Exp 
-
-NOLINT= # defined
-NOMAN= # defined
-NONLS= # defined
-NOINFO=        # defined
-NOSHARE=       # defined
-
-NOCHECKVER=    # defined
-
-.include <bsd.obj.mk>
-
-# Resolve pathnames in variables.
-_RESOLVE_VARS=  CFLAGS CPPFLAGS DPADD LDADD LIBDPLIBS LIB_ROOT_DIR
-.for var in ${_RESOLVE_VARS}
-${var}:=        ${${var}}
-.endfor
-
-.include <bsd.own.mk>
-
-_CURDIR:= ${.CURDIR}
-
-.PATH: ${NETBSDSRCDIR}/lib/libevent
-.CURDIR:=${NETBSDSRCDIR}/lib/libevent
-
-.include "${NETBSDSRCDIR}/compat/Makefile.compat"
-.include "${.CURDIR}/Makefile"
-
-# Resolve pathnames from "real" Makefile, and switch .CURDIR back.
-_RESOLVE_VARS=  CFLAGS CPPFLAGS DPADD LDADD ARCHDIR COMPATDIR COMPATARCHDIR LIBCDIR RPC_INCS RPC_XDIR LIBEDITDIR MODOBJDIR RUMPTOP
-.for var in ${_RESOLVE_VARS}
-${var}:=        ${${var}}
-.endfor
-
-.CURDIR:=       ${_CURDIR}
-.undef          _CURDIR
diff -r b7c37d2f7b65 -r 9f09a129d33d lib/libevent/Makefile
--- a/lib/libevent/Makefile     Mon Nov 02 10:13:19 2009 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,95 +0,0 @@
-#      $NetBSD: Makefile,v 1.8 2009/08/19 15:18:05 tls Exp $
-#      @(#)Makefile    8.1 (Berkeley) 6/4/93
-
-NOLINT=                # Until someone explains to me how to avoid lint stupidity
-USE_SHLIBDIR=  yes
-
-CPPFLAGS+=-I${.CURDIR} -fno-strict-aliasing
-.include <bsd.own.mk>
-
-LIB=   event
-SRCS=  buffer.c evbuffer.c evdns.c event.c event_tagging.c evrpc.c evutil.c \
-       http.c kqueue.c log.c poll.c signal.c
-
-INCS=  evdns.h event.h evhttp.h evrpc.h evutil.h event-config.h
-INCSDIR=/usr/include
-
-MAN=   evdns.3 event.3
-
-MLINKS+=event.3 event_init.3
-MLINKS+=event.3 event_dispatch.3
-MLINKS+=event.3 event_loop.3
-MLINKS+=event.3 event_loopexit.3
-MLINKS+=event.3 event_loopbreak.3
-MLINKS+=event.3 event_base_dispatch.3
-MLINKS+=event.3 event_base_free.3
-MLINKS+=event.3 event_base_loop.3
-MLINKS+=event.3 event_base_loopexit.3
-MLINKS+=event.3 event_base_loopbreak.3
-MLINKS+=event.3 event_base_set.3
-MLINKS+=event.3 event_set.3
-MLINKS+=event.3 event_add.3
-MLINKS+=event.3 event_del.3
-MLINKS+=event.3 event_once.3
-MLINKS+=event.3 event_base_once.3
-MLINKS+=event.3 event_pending.3
-MLINKS+=event.3 event_initialized.3
-
-MLINKS+=event.3 evtimer_set.3
-MLINKS+=event.3 evtimer_add.3
-MLINKS+=event.3 evtimer_del.3
-MLINKS+=event.3 evtimer_pending.3
-MLINKS+=event.3 evtimer_initialized.3
-
-MLINKS+=event.3 signal_set.3
-MLINKS+=event.3 signal_add.3
-MLINKS+=event.3 signal_del.3
-MLINKS+=event.3 signal_pending.3
-MLINKS+=event.3 signal_initialized.3
-
-MLINKS+=event.3 bufferevent_new.3
-MLINKS+=event.3 bufferevent_free.3
-MLINKS+=event.3 bufferevent_write.3
-MLINKS+=event.3 bufferevent_write_buffer.3
-MLINKS+=event.3 bufferevent_read.3
-MLINKS+=event.3 bufferevent_enable.3
-MLINKS+=event.3 bufferevent_disable.3
-MLINKS+=event.3 bufferevent_settimeout.3
-MLINKS+=event.3 bufferevent_base_set.3
-
-MLINKS+=event.3 evbuffer_new.3
-MLINKS+=event.3 evbuffer_free.3
-MLINKS+=event.3 evbuffer_add.3
-MLINKS+=event.3 evbuffer_add_buffer.3
-MLINKS+=event.3 evbuffer_add_printf.3
-MLINKS+=event.3 evbuffer_add_vprintf.3
-MLINKS+=event.3 evbuffer_drain.3
-MLINKS+=event.3 evbuffer_write.3
-MLINKS+=event.3 evbuffer_read.3
-MLINKS+=event.3 evbuffer_find.3
-MLINKS+=event.3 evbuffer_readline.3
-
-MLINKS+=event.3 evhttp_new.3
-MLINKS+=event.3 evhttp_bind_socket.3
-MLINKS+=event.3 evhttp_free.3
-
-MLINKS+=evdns.3 evdns_init.3
-MLINKS+=evdns.3 evdns_shutdown.3
-MLINKS+=evdns.3 evdns_err_to_string.3
-MLINKS+=evdns.3 evdns_nameserver_add.3
-MLINKS+=evdns.3 evdns_count_nameservers.3
-MLINKS+=evdns.3 evdns_clear_nameservers_and_suspend.3
-MLINKS+=evdns.3 evdns_resume.3
-MLINKS+=evdns.3 evdns_nameserver_ip_add.3
-MLINKS+=evdns.3 evdns_resolve_ipv4.3
-MLINKS+=evdns.3 evdns_resolve_reverse.3
-MLINKS+=evdns.3 evdns_resolv_conf_parse.3
-MLINKS+=evdns.3 evdns_search_clear.3
-MLINKS+=evdns.3 evdns_search_add.3
-MLINKS+=evdns.3 evdns_search_ndots_set.3
-MLINKS+=evdns.3 evdns_set_log_fn.3
-
-event-config.h:        config.h
-       sed -e 's/#define /#define _EVENT_/' ${.ALLSRC} > ${.OBJDIR}/${.TARGET}
-
-.include <bsd.lib.mk>
diff -r b7c37d2f7b65 -r 9f09a129d33d lib/libevent/buffer.c
--- a/lib/libevent/buffer.c     Mon Nov 02 10:13:19 2009 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,410 +0,0 @@
-/*     $NetBSD: buffer.c,v 1.5 2009/07/08 21:23:53 tls Exp $   */
-/*
- * Copyright (c) 2002, 2003 Niels Provos <provos%citi.umich.edu@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.
- * 3. The name of the author may not be used to endorse or promote products
- *    derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 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/types.h>
-#include <sys/time.h>
-#include <sys/ioctl.h>
-
-#include <assert.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdarg.h>
-#include <unistd.h>
-
-#include "event.h"
-#include "config.h"
-#include "evutil.h"
-
-struct evbuffer *
-evbuffer_new(void)
-{
-       struct evbuffer *buffer;
-       
-       buffer = calloc(1, sizeof(struct evbuffer));
-
-       return (buffer);
-}
-
-void
-evbuffer_free(struct evbuffer *buffer)
-{
-       if (buffer->orig_buffer != NULL)
-               free(buffer->orig_buffer);
-       free(buffer);
-}
-
-/* 
- * This is a destructive add.  The data from one buffer moves into
- * the other buffer.
- */
-
-#define SWAP(x,y) do { \
-       (x)->buffer = (y)->buffer; \
-       (x)->orig_buffer = (y)->orig_buffer; \
-       (x)->misalign = (y)->misalign; \
-       (x)->totallen = (y)->totallen; \
-       (x)->off = (y)->off; \
-} while (0)
-
-int
-evbuffer_add_buffer(struct evbuffer *outbuf, struct evbuffer *inbuf)
-{
-       int res;
-
-       /* Short cut for better performance */
-       if (outbuf->off == 0) {
-               struct evbuffer tmp;
-               size_t oldoff = inbuf->off;
-
-               /* Swap them directly */
-               SWAP(&tmp, outbuf);
-               SWAP(outbuf, inbuf);
-               SWAP(inbuf, &tmp);
-
-               /* 
-                * Optimization comes with a price; we need to notify the
-                * buffer if necessary of the changes. oldoff is the amount
-                * of data that we transfered from inbuf to outbuf
-                */
-               if (inbuf->off != oldoff && inbuf->cb != NULL)
-                       (*inbuf->cb)(inbuf, oldoff, inbuf->off, inbuf->cbarg);
-               if (oldoff && outbuf->cb != NULL)
-                       (*outbuf->cb)(outbuf, 0, oldoff, outbuf->cbarg);
-               
-               return (0);
-       }
-
-       res = evbuffer_add(outbuf, inbuf->buffer, inbuf->off);
-       if (res == 0) {
-               /* We drain the input buffer on success */
-               evbuffer_drain(inbuf, inbuf->off);
-       }
-
-       return (res);
-}
-
-int
-evbuffer_add_vprintf(struct evbuffer *buf, const char *fmt, va_list ap)
-{
-       char *buffer;
-       size_t space;
-       size_t oldoff = buf->off;
-       int sz;
-       va_list aq;
-
-       /* make sure that at least some space is available */
-       evbuffer_expand(buf, 64);
-       for (;;) {
-               size_t used = buf->misalign + buf->off;
-               buffer = (char *)buf->buffer + buf->off;
-               assert(buf->totallen >= used);
-               space = buf->totallen - used;
-
-               va_copy(aq, ap);
-
-               sz = evutil_vsnprintf(buffer, space, fmt, aq);
-
-               va_end(aq);
-
-               if (sz < 0)
-                       return (-1);
-               if ((size_t)sz < space) {
-                       buf->off += sz;
-                       if (buf->cb != NULL)
-                               (*buf->cb)(buf, oldoff, buf->off, buf->cbarg);
-                       return (sz);
-               }
-               if (evbuffer_expand(buf, sz + 1) == -1)
-                       return (-1);
-
-       }
-       /* NOTREACHED */
-}
-
-int
-evbuffer_add_printf(struct evbuffer *buf, const char *fmt, ...)
-{
-       int res = -1;
-       va_list ap;
-



Home | Main Index | Thread Index | Old Index