mirror of https://github.com/lukechilds/node.git
Ryan
16 years ago
162 changed files with 54859 additions and 3108 deletions
@ -0,0 +1,619 @@ |
|||||
|
# Makefile.in generated by automake 1.7.9 from Makefile.am.
|
||||
|
# @configure_input@
|
||||
|
|
||||
|
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
||||
|
# Free Software Foundation, Inc.
|
||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||
|
# with or without modifications, as long as this notice is preserved.
|
||||
|
|
||||
|
# This program is distributed in the hope that it will be useful,
|
||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
|
# PARTICULAR PURPOSE.
|
||||
|
|
||||
|
@SET_MAKE@ |
||||
|
|
||||
|
srcdir = @srcdir@ |
||||
|
top_srcdir = @top_srcdir@ |
||||
|
VPATH = @srcdir@ |
||||
|
pkgdatadir = $(datadir)/@PACKAGE@ |
||||
|
pkglibdir = $(libdir)/@PACKAGE@ |
||||
|
pkgincludedir = $(includedir)/@PACKAGE@ |
||||
|
top_builddir = . |
||||
|
|
||||
|
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
||||
|
INSTALL = @INSTALL@ |
||||
|
install_sh_DATA = $(install_sh) -c -m 644 |
||||
|
install_sh_PROGRAM = $(install_sh) -c |
||||
|
install_sh_SCRIPT = $(install_sh) -c |
||||
|
INSTALL_HEADER = $(INSTALL_DATA) |
||||
|
transform = $(program_transform_name) |
||||
|
NORMAL_INSTALL = : |
||||
|
PRE_INSTALL = : |
||||
|
POST_INSTALL = : |
||||
|
NORMAL_UNINSTALL = : |
||||
|
PRE_UNINSTALL = : |
||||
|
POST_UNINSTALL = : |
||||
|
host_triplet = @host@ |
||||
|
ACLOCAL = @ACLOCAL@ |
||||
|
AMDEP_FALSE = @AMDEP_FALSE@ |
||||
|
AMDEP_TRUE = @AMDEP_TRUE@ |
||||
|
AMTAR = @AMTAR@ |
||||
|
AR = @AR@ |
||||
|
AUTOCONF = @AUTOCONF@ |
||||
|
AUTOHEADER = @AUTOHEADER@ |
||||
|
AUTOMAKE = @AUTOMAKE@ |
||||
|
AWK = @AWK@ |
||||
|
CC = @CC@ |
||||
|
CCDEPMODE = @CCDEPMODE@ |
||||
|
CFLAGS = @CFLAGS@ |
||||
|
CPP = @CPP@ |
||||
|
CPPFLAGS = @CPPFLAGS@ |
||||
|
CXX = @CXX@ |
||||
|
CXXCPP = @CXXCPP@ |
||||
|
CXXDEPMODE = @CXXDEPMODE@ |
||||
|
CXXFLAGS = @CXXFLAGS@ |
||||
|
CYGPATH_W = @CYGPATH_W@ |
||||
|
DEFS = @DEFS@ |
||||
|
DEPDIR = @DEPDIR@ |
||||
|
DSYMUTIL = @DSYMUTIL@ |
||||
|
ECHO = @ECHO@ |
||||
|
ECHO_C = @ECHO_C@ |
||||
|
ECHO_N = @ECHO_N@ |
||||
|
ECHO_T = @ECHO_T@ |
||||
|
EGREP = @EGREP@ |
||||
|
EXEEXT = @EXEEXT@ |
||||
|
F77 = @F77@ |
||||
|
FFLAGS = @FFLAGS@ |
||||
|
GREP = @GREP@ |
||||
|
INSTALL_DATA = @INSTALL_DATA@ |
||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
||||
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
||||
|
LDFLAGS = @LDFLAGS@ |
||||
|
LIBOBJS = @LIBOBJS@ |
||||
|
LIBS = @LIBS@ |
||||
|
LIBTOOL = @LIBTOOL@ |
||||
|
LN_S = @LN_S@ |
||||
|
LTLIBOBJS = @LTLIBOBJS@ |
||||
|
MAINT = @MAINT@ |
||||
|
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ |
||||
|
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ |
||||
|
MAKEINFO = @MAKEINFO@ |
||||
|
NMEDIT = @NMEDIT@ |
||||
|
OBJEXT = @OBJEXT@ |
||||
|
PACKAGE = @PACKAGE@ |
||||
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
||||
|
PACKAGE_NAME = @PACKAGE_NAME@ |
||||
|
PACKAGE_STRING = @PACKAGE_STRING@ |
||||
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
||||
|
PACKAGE_VERSION = @PACKAGE_VERSION@ |
||||
|
PATH_SEPARATOR = @PATH_SEPARATOR@ |
||||
|
RANLIB = @RANLIB@ |
||||
|
SED = @SED@ |
||||
|
SET_MAKE = @SET_MAKE@ |
||||
|
SHELL = @SHELL@ |
||||
|
STRIP = @STRIP@ |
||||
|
VERSION = @VERSION@ |
||||
|
ac_ct_CC = @ac_ct_CC@ |
||||
|
ac_ct_CXX = @ac_ct_CXX@ |
||||
|
ac_ct_F77 = @ac_ct_F77@ |
||||
|
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ |
||||
|
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ |
||||
|
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ |
||||
|
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ |
||||
|
am__include = @am__include@ |
||||
|
am__leading_dot = @am__leading_dot@ |
||||
|
am__quote = @am__quote@ |
||||
|
bindir = @bindir@ |
||||
|
build = @build@ |
||||
|
build_alias = @build_alias@ |
||||
|
build_cpu = @build_cpu@ |
||||
|
build_os = @build_os@ |
||||
|
build_vendor = @build_vendor@ |
||||
|
datadir = @datadir@ |
||||
|
datarootdir = @datarootdir@ |
||||
|
docdir = @docdir@ |
||||
|
dvidir = @dvidir@ |
||||
|
exec_prefix = @exec_prefix@ |
||||
|
host = @host@ |
||||
|
host_alias = @host_alias@ |
||||
|
host_cpu = @host_cpu@ |
||||
|
host_os = @host_os@ |
||||
|
host_vendor = @host_vendor@ |
||||
|
htmldir = @htmldir@ |
||||
|
includedir = @includedir@ |
||||
|
infodir = @infodir@ |
||||
|
install_sh = @install_sh@ |
||||
|
libdir = @libdir@ |
||||
|
libexecdir = @libexecdir@ |
||||
|
localedir = @localedir@ |
||||
|
localstatedir = @localstatedir@ |
||||
|
mandir = @mandir@ |
||||
|
oldincludedir = @oldincludedir@ |
||||
|
pdfdir = @pdfdir@ |
||||
|
prefix = @prefix@ |
||||
|
program_transform_name = @program_transform_name@ |
||||
|
psdir = @psdir@ |
||||
|
sbindir = @sbindir@ |
||||
|
sharedstatedir = @sharedstatedir@ |
||||
|
sysconfdir = @sysconfdir@ |
||||
|
target_alias = @target_alias@ |
||||
|
AUTOMAKE_OPTIONS = foreign no-dependencies |
||||
|
|
||||
|
VERSION_INFO = 3:0 |
||||
|
|
||||
|
EXTRA_DIST = LICENSE Changes libev.m4 autogen.sh \
|
||||
|
ev_vars.h ev_wrap.h \
|
||||
|
ev_epoll.c ev_select.c ev_poll.c ev_kqueue.c ev_port.c ev_win32.c \
|
||||
|
ev.3 ev.pod |
||||
|
|
||||
|
|
||||
|
man_MANS = ev.3 |
||||
|
|
||||
|
include_HEADERS = ev.h ev++.h event.h |
||||
|
|
||||
|
lib_LTLIBRARIES = libev.la |
||||
|
|
||||
|
libev_la_SOURCES = ev.c event.c |
||||
|
libev_la_LDFLAGS = -version-info $(VERSION_INFO) |
||||
|
subdir = . |
||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
||||
|
CONFIG_HEADER = config.h |
||||
|
CONFIG_CLEAN_FILES = |
||||
|
LTLIBRARIES = $(lib_LTLIBRARIES) |
||||
|
|
||||
|
libev_la_LIBADD = |
||||
|
am_libev_la_OBJECTS = ev.lo event.lo |
||||
|
libev_la_OBJECTS = $(am_libev_la_OBJECTS) |
||||
|
|
||||
|
DEFAULT_INCLUDES = -I. -I$(srcdir) -I. |
||||
|
depcomp = |
||||
|
am__depfiles_maybe = |
||||
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
||||
|
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
|
||||
|
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
||||
|
CCLD = $(CC) |
||||
|
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
|
$(AM_LDFLAGS) $(LDFLAGS) -o $@ |
||||
|
DIST_SOURCES = $(libev_la_SOURCES) |
||||
|
|
||||
|
NROFF = nroff |
||||
|
MANS = $(man_MANS) |
||||
|
HEADERS = $(include_HEADERS) |
||||
|
|
||||
|
DIST_COMMON = README $(include_HEADERS) $(srcdir)/Makefile.in \
|
||||
|
$(srcdir)/configure Makefile.am aclocal.m4 config.guess \
|
||||
|
config.h.in config.sub configure configure.ac install-sh \
|
||||
|
ltmain.sh missing mkinstalldirs |
||||
|
SOURCES = $(libev_la_SOURCES) |
||||
|
|
||||
|
all: config.h |
||||
|
$(MAKE) $(AM_MAKEFLAGS) all-am |
||||
|
|
||||
|
.SUFFIXES: |
||||
|
.SUFFIXES: .c .lo .o .obj |
||||
|
|
||||
|
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
|
configure.lineno |
||||
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) |
||||
|
cd $(top_srcdir) && \
|
||||
|
$(AUTOMAKE) --foreign Makefile |
||||
|
Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status |
||||
|
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe) |
||||
|
|
||||
|
$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
||||
|
$(SHELL) ./config.status --recheck |
||||
|
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) |
||||
|
cd $(srcdir) && $(AUTOCONF) |
||||
|
|
||||
|
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.ac |
||||
|
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
||||
|
|
||||
|
config.h: stamp-h1 |
||||
|
@if test ! -f $@; then \
|
||||
|
rm -f stamp-h1; \
|
||||
|
$(MAKE) stamp-h1; \
|
||||
|
else :; fi |
||||
|
|
||||
|
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
||||
|
@rm -f stamp-h1 |
||||
|
cd $(top_builddir) && $(SHELL) ./config.status config.h |
||||
|
|
||||
|
$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(top_srcdir)/configure.ac $(ACLOCAL_M4) |
||||
|
cd $(top_srcdir) && $(AUTOHEADER) |
||||
|
touch $(srcdir)/config.h.in |
||||
|
|
||||
|
distclean-hdr: |
||||
|
-rm -f config.h stamp-h1 |
||||
|
libLTLIBRARIES_INSTALL = $(INSTALL) |
||||
|
install-libLTLIBRARIES: $(lib_LTLIBRARIES) |
||||
|
@$(NORMAL_INSTALL) |
||||
|
$(mkinstalldirs) $(DESTDIR)$(libdir) |
||||
|
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
|
if test -f $$p; then \
|
||||
|
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
||||
|
echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f"; \
|
||||
|
$(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \
|
||||
|
else :; fi; \
|
||||
|
done |
||||
|
|
||||
|
uninstall-libLTLIBRARIES: |
||||
|
@$(NORMAL_UNINSTALL) |
||||
|
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
|
p="`echo $$p | sed -e 's|^.*/||'`"; \
|
||||
|
echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
|
||||
|
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
|
||||
|
done |
||||
|
|
||||
|
clean-libLTLIBRARIES: |
||||
|
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) |
||||
|
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
|
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
||||
|
test "$$dir" = "$$p" && dir=.; \
|
||||
|
echo "rm -f \"$${dir}/so_locations\""; \
|
||||
|
rm -f "$${dir}/so_locations"; \
|
||||
|
done |
||||
|
libev.la: $(libev_la_OBJECTS) $(libev_la_DEPENDENCIES) |
||||
|
$(LINK) -rpath $(libdir) $(libev_la_LDFLAGS) $(libev_la_OBJECTS) $(libev_la_LIBADD) $(LIBS) |
||||
|
|
||||
|
mostlyclean-compile: |
||||
|
-rm -f *.$(OBJEXT) core *.core |
||||
|
|
||||
|
distclean-compile: |
||||
|
-rm -f *.tab.c |
||||
|
|
||||
|
.c.o: |
||||
|
$(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< |
||||
|
|
||||
|
.c.obj: |
||||
|
$(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` |
||||
|
|
||||
|
.c.lo: |
||||
|
$(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< |
||||
|
|
||||
|
mostlyclean-libtool: |
||||
|
-rm -f *.lo |
||||
|
|
||||
|
clean-libtool: |
||||
|
-rm -rf .libs _libs |
||||
|
|
||||
|
distclean-libtool: |
||||
|
-rm -f libtool |
||||
|
uninstall-info-am: |
||||
|
|
||||
|
man3dir = $(mandir)/man3 |
||||
|
install-man3: $(man3_MANS) $(man_MANS) |
||||
|
@$(NORMAL_INSTALL) |
||||
|
$(mkinstalldirs) $(DESTDIR)$(man3dir) |
||||
|
@list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
|
||||
|
l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
|
||||
|
for i in $$l2; do \
|
||||
|
case "$$i" in \
|
||||
|
*.3*) list="$$list $$i" ;; \
|
||||
|
esac; \
|
||||
|
done; \
|
||||
|
for i in $$list; do \
|
||||
|
if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
|
||||
|
else file=$$i; fi; \
|
||||
|
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||
|
case "$$ext" in \
|
||||
|
3*) ;; \
|
||||
|
*) ext='3' ;; \
|
||||
|
esac; \
|
||||
|
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||
|
inst=`echo $$inst | sed -e 's/^.*\///'`; \
|
||||
|
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||
|
echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man3dir)/$$inst"; \
|
||||
|
$(INSTALL_DATA) $$file $(DESTDIR)$(man3dir)/$$inst; \
|
||||
|
done |
||||
|
uninstall-man3: |
||||
|
@$(NORMAL_UNINSTALL) |
||||
|
@list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
|
||||
|
l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
|
||||
|
for i in $$l2; do \
|
||||
|
case "$$i" in \
|
||||
|
*.3*) list="$$list $$i" ;; \
|
||||
|
esac; \
|
||||
|
done; \
|
||||
|
for i in $$list; do \
|
||||
|
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||
|
case "$$ext" in \
|
||||
|
3*) ;; \
|
||||
|
*) ext='3' ;; \
|
||||
|
esac; \
|
||||
|
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||
|
inst=`echo $$inst | sed -e 's/^.*\///'`; \
|
||||
|
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||
|
echo " rm -f $(DESTDIR)$(man3dir)/$$inst"; \
|
||||
|
rm -f $(DESTDIR)$(man3dir)/$$inst; \
|
||||
|
done |
||||
|
includeHEADERS_INSTALL = $(INSTALL_HEADER) |
||||
|
install-includeHEADERS: $(include_HEADERS) |
||||
|
@$(NORMAL_INSTALL) |
||||
|
$(mkinstalldirs) $(DESTDIR)$(includedir) |
||||
|
@list='$(include_HEADERS)'; for p in $$list; do \
|
||||
|
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
|
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
||||
|
echo " $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
|
||||
|
$(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f; \
|
||||
|
done |
||||
|
|
||||
|
uninstall-includeHEADERS: |
||||
|
@$(NORMAL_UNINSTALL) |
||||
|
@list='$(include_HEADERS)'; for p in $$list; do \
|
||||
|
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
||||
|
echo " rm -f $(DESTDIR)$(includedir)/$$f"; \
|
||||
|
rm -f $(DESTDIR)$(includedir)/$$f; \
|
||||
|
done |
||||
|
|
||||
|
ETAGS = etags |
||||
|
ETAGSFLAGS = |
||||
|
|
||||
|
CTAGS = ctags |
||||
|
CTAGSFLAGS = |
||||
|
|
||||
|
tags: TAGS |
||||
|
|
||||
|
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
|
unique=`for i in $$list; do \
|
||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
|
done | \
|
||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||
|
END { for (i in files) print i; }'`; \
|
||||
|
mkid -fID $$unique |
||||
|
|
||||
|
TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
||||
|
$(TAGS_FILES) $(LISP) |
||||
|
tags=; \
|
||||
|
here=`pwd`; \
|
||||
|
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
|
unique=`for i in $$list; do \
|
||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
|
done | \
|
||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||
|
END { for (i in files) print i; }'`; \
|
||||
|
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|
||||
|
|| $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
|
$$tags $$unique |
||||
|
|
||||
|
ctags: CTAGS |
||||
|
CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
||||
|
$(TAGS_FILES) $(LISP) |
||||
|
tags=; \
|
||||
|
here=`pwd`; \
|
||||
|
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
|
unique=`for i in $$list; do \
|
||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
|
done | \
|
||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||
|
END { for (i in files) print i; }'`; \
|
||||
|
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
|
$$tags $$unique |
||||
|
|
||||
|
GTAGS: |
||||
|
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
|
&& cd $(top_srcdir) \
|
||||
|
&& gtags -i $(GTAGS_ARGS) $$here |
||||
|
|
||||
|
distclean-tags: |
||||
|
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
||||
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
||||
|
|
||||
|
top_distdir = . |
||||
|
distdir = $(PACKAGE)-$(VERSION) |
||||
|
|
||||
|
am__remove_distdir = \
|
||||
|
{ test ! -d $(distdir) \
|
||||
|
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
|
&& rm -fr $(distdir); }; } |
||||
|
|
||||
|
GZIP_ENV = --best |
||||
|
distuninstallcheck_listfiles = find . -type f -print |
||||
|
distcleancheck_listfiles = find . -type f -print |
||||
|
|
||||
|
distdir: $(DISTFILES) |
||||
|
$(am__remove_distdir) |
||||
|
mkdir $(distdir) |
||||
|
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
|
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
|
list='$(DISTFILES)'; for file in $$list; do \
|
||||
|
case $$file in \
|
||||
|
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
|
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
|
esac; \
|
||||
|
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
|
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
|
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
|
dir="/$$dir"; \
|
||||
|
$(mkinstalldirs) "$(distdir)$$dir"; \
|
||||
|
else \
|
||||
|
dir=''; \
|
||||
|
fi; \
|
||||
|
if test -d $$d/$$file; then \
|
||||
|
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
|
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
|
fi; \
|
||||
|
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
|
else \
|
||||
|
test -f $(distdir)/$$file \
|
||||
|
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|
|| exit 1; \
|
||||
|
fi; \
|
||||
|
done |
||||
|
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
|
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
|
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
|
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||
|
|| chmod -R a+r $(distdir) |
||||
|
dist-gzip: distdir |
||||
|
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
||||
|
$(am__remove_distdir) |
||||
|
|
||||
|
dist dist-all: distdir |
||||
|
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
||||
|
$(am__remove_distdir) |
||||
|
|
||||
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
|
# it guarantees that the distribution is self-contained by making another
|
||||
|
# tarfile.
|
||||
|
distcheck: dist |
||||
|
$(am__remove_distdir) |
||||
|
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - |
||||
|
chmod -R a-w $(distdir); chmod a+w $(distdir) |
||||
|
mkdir $(distdir)/_build |
||||
|
mkdir $(distdir)/_inst |
||||
|
chmod a-w $(distdir) |
||||
|
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
|
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
|
&& cd $(distdir)/_build \
|
||||
|
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||
|
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
|
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
|
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
|
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
|
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
|
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||
|
distuninstallcheck \
|
||||
|
&& chmod -R a-w "$$dc_install_base" \
|
||||
|
&& ({ \
|
||||
|
(cd ../.. && $(mkinstalldirs) "$$dc_destdir") \
|
||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||
|
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||
|
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||
|
&& rm -rf "$$dc_destdir" \
|
||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
|
||||
|
&& rm -f $(distdir).tar.gz \
|
||||
|
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck |
||||
|
$(am__remove_distdir) |
||||
|
@echo "$(distdir).tar.gz is ready for distribution" | \
|
||||
|
sed 'h;s/./=/g;p;x;p;x' |
||||
|
distuninstallcheck: |
||||
|
@cd $(distuninstallcheck_dir) \
|
||||
|
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||
|
|| { echo "ERROR: files left after uninstall:" ; \
|
||||
|
if test -n "$(DESTDIR)"; then \
|
||||
|
echo " (check DESTDIR support)"; \
|
||||
|
fi ; \
|
||||
|
$(distuninstallcheck_listfiles) ; \
|
||||
|
exit 1; } >&2 |
||||
|
distcleancheck: distclean |
||||
|
@if test '$(srcdir)' = . ; then \
|
||||
|
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||
|
exit 1 ; \
|
||||
|
fi |
||||
|
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||
|
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||
|
$(distcleancheck_listfiles) ; \
|
||||
|
exit 1; } >&2 |
||||
|
check-am: all-am |
||||
|
check: check-am |
||||
|
all-am: Makefile $(LTLIBRARIES) $(MANS) $(HEADERS) config.h |
||||
|
|
||||
|
installdirs: |
||||
|
$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(man3dir) $(DESTDIR)$(includedir) |
||||
|
install: install-am |
||||
|
install-exec: install-exec-am |
||||
|
install-data: install-data-am |
||||
|
uninstall: uninstall-am |
||||
|
|
||||
|
install-am: all-am |
||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
||||
|
|
||||
|
installcheck: installcheck-am |
||||
|
install-strip: |
||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
|
`test -z '$(STRIP)' || \
|
||||
|
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install |
||||
|
mostlyclean-generic: |
||||
|
|
||||
|
clean-generic: |
||||
|
|
||||
|
distclean-generic: |
||||
|
-rm -f $(CONFIG_CLEAN_FILES) |
||||
|
|
||||
|
maintainer-clean-generic: |
||||
|
@echo "This command is intended for maintainers to use" |
||||
|
@echo "it deletes files that may require special tools to rebuild." |
||||
|
clean: clean-am |
||||
|
|
||||
|
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ |
||||
|
mostlyclean-am |
||||
|
|
||||
|
distclean: distclean-am |
||||
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES) |
||||
|
-rm -f Makefile |
||||
|
distclean-am: clean-am distclean-compile distclean-generic distclean-hdr \ |
||||
|
distclean-libtool distclean-tags |
||||
|
|
||||
|
dvi: dvi-am |
||||
|
|
||||
|
dvi-am: |
||||
|
|
||||
|
info: info-am |
||||
|
|
||||
|
info-am: |
||||
|
|
||||
|
install-data-am: install-includeHEADERS install-man |
||||
|
|
||||
|
install-exec-am: install-libLTLIBRARIES |
||||
|
|
||||
|
install-info: install-info-am |
||||
|
|
||||
|
install-man: install-man3 |
||||
|
|
||||
|
installcheck-am: |
||||
|
|
||||
|
maintainer-clean: maintainer-clean-am |
||||
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES) |
||||
|
-rm -rf $(top_srcdir)/autom4te.cache |
||||
|
-rm -f Makefile |
||||
|
maintainer-clean-am: distclean-am maintainer-clean-generic |
||||
|
|
||||
|
mostlyclean: mostlyclean-am |
||||
|
|
||||
|
mostlyclean-am: mostlyclean-compile mostlyclean-generic \ |
||||
|
mostlyclean-libtool |
||||
|
|
||||
|
pdf: pdf-am |
||||
|
|
||||
|
pdf-am: |
||||
|
|
||||
|
ps: ps-am |
||||
|
|
||||
|
ps-am: |
||||
|
|
||||
|
uninstall-am: uninstall-includeHEADERS uninstall-info-am \ |
||||
|
uninstall-libLTLIBRARIES uninstall-man |
||||
|
|
||||
|
uninstall-man: uninstall-man3 |
||||
|
|
||||
|
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ |
||||
|
clean-libLTLIBRARIES clean-libtool ctags dist dist-all \
|
||||
|
dist-gzip distcheck distclean distclean-compile \
|
||||
|
distclean-generic distclean-hdr distclean-libtool \
|
||||
|
distclean-tags distcleancheck distdir distuninstallcheck dvi \
|
||||
|
dvi-am info info-am install install-am install-data \
|
||||
|
install-data-am install-exec install-exec-am \
|
||||
|
install-includeHEADERS install-info install-info-am \
|
||||
|
install-libLTLIBRARIES install-man install-man3 install-strip \
|
||||
|
installcheck installcheck-am installdirs maintainer-clean \
|
||||
|
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
|
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
|
tags uninstall uninstall-am uninstall-includeHEADERS \
|
||||
|
uninstall-info-am uninstall-libLTLIBRARIES uninstall-man \
|
||||
|
uninstall-man3 |
||||
|
|
||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
|
.NOEXPORT: |
@ -1,3 +0,0 @@ |
|||||
This file is now included in the main libev documentation, see |
|
||||
|
|
||||
http://cvs.schmorp.de/libev/ev.html |
|
@ -1,62 +0,0 @@ |
|||||
ev_async_send |
|
||||
ev_async_start |
|
||||
ev_async_stop |
|
||||
ev_backend |
|
||||
ev_check_start |
|
||||
ev_check_stop |
|
||||
ev_child_start |
|
||||
ev_child_stop |
|
||||
ev_clear_pending |
|
||||
ev_default_destroy |
|
||||
ev_default_fork |
|
||||
ev_default_loop_init |
|
||||
ev_default_loop_ptr |
|
||||
ev_embed_start |
|
||||
ev_embed_stop |
|
||||
ev_embed_sweep |
|
||||
ev_embeddable_backends |
|
||||
ev_feed_event |
|
||||
ev_feed_fd_event |
|
||||
ev_feed_signal_event |
|
||||
ev_fork_start |
|
||||
ev_fork_stop |
|
||||
ev_idle_start |
|
||||
ev_idle_stop |
|
||||
ev_invoke |
|
||||
ev_io_start |
|
||||
ev_io_stop |
|
||||
ev_loop |
|
||||
ev_loop_count |
|
||||
ev_loop_destroy |
|
||||
ev_loop_fork |
|
||||
ev_loop_new |
|
||||
ev_loop_verify |
|
||||
ev_now |
|
||||
ev_now_update |
|
||||
ev_once |
|
||||
ev_periodic_again |
|
||||
ev_periodic_start |
|
||||
ev_periodic_stop |
|
||||
ev_prepare_start |
|
||||
ev_prepare_stop |
|
||||
ev_recommended_backends |
|
||||
ev_ref |
|
||||
ev_set_allocator |
|
||||
ev_set_io_collect_interval |
|
||||
ev_set_syserr_cb |
|
||||
ev_set_timeout_collect_interval |
|
||||
ev_signal_start |
|
||||
ev_signal_stop |
|
||||
ev_sleep |
|
||||
ev_stat_start |
|
||||
ev_stat_stat |
|
||||
ev_stat_stop |
|
||||
ev_supported_backends |
|
||||
ev_time |
|
||||
ev_timer_again |
|
||||
ev_timer_start |
|
||||
ev_timer_stop |
|
||||
ev_unloop |
|
||||
ev_unref |
|
||||
ev_version_major |
|
||||
ev_version_minor |
|
@ -1,21 +0,0 @@ |
|||||
event_active |
|
||||
event_add |
|
||||
event_base_dispatch |
|
||||
event_base_free |
|
||||
event_base_loop |
|
||||
event_base_loopexit |
|
||||
event_base_once |
|
||||
event_base_priority_init |
|
||||
event_base_set |
|
||||
event_del |
|
||||
event_dispatch |
|
||||
event_get_method |
|
||||
event_get_version |
|
||||
event_init |
|
||||
event_loop |
|
||||
event_loopexit |
|
||||
event_once |
|
||||
event_pending |
|
||||
event_priority_init |
|
||||
event_priority_set |
|
||||
event_set |
|
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,115 @@ |
|||||
|
/* config.h.in. Generated from configure.ac by autoheader. */ |
||||
|
|
||||
|
/* Define to 1 if you have the `clock_gettime' function. */ |
||||
|
#undef HAVE_CLOCK_GETTIME |
||||
|
|
||||
|
/* "use syscall interface for clock_gettime" */ |
||||
|
#undef HAVE_CLOCK_SYSCALL |
||||
|
|
||||
|
/* Define to 1 if you have the <dlfcn.h> header file. */ |
||||
|
#undef HAVE_DLFCN_H |
||||
|
|
||||
|
/* Define to 1 if you have the `epoll_ctl' function. */ |
||||
|
#undef HAVE_EPOLL_CTL |
||||
|
|
||||
|
/* Define to 1 if you have the `eventfd' function. */ |
||||
|
#undef HAVE_EVENTFD |
||||
|
|
||||
|
/* Define to 1 if you have the `inotify_init' function. */ |
||||
|
#undef HAVE_INOTIFY_INIT |
||||
|
|
||||
|
/* Define to 1 if you have the <inttypes.h> header file. */ |
||||
|
#undef HAVE_INTTYPES_H |
||||
|
|
||||
|
/* Define to 1 if you have the `kqueue' function. */ |
||||
|
#undef HAVE_KQUEUE |
||||
|
|
||||
|
/* Define to 1 if you have the `m' library (-lm). */ |
||||
|
#undef HAVE_LIBM |
||||
|
|
||||
|
/* Define to 1 if you have the `rt' library (-lrt). */ |
||||
|
#undef HAVE_LIBRT |
||||
|
|
||||
|
/* Define to 1 if you have the <memory.h> header file. */ |
||||
|
#undef HAVE_MEMORY_H |
||||
|
|
||||
|
/* Define to 1 if you have the `nanosleep' function. */ |
||||
|
#undef HAVE_NANOSLEEP |
||||
|
|
||||
|
/* Define to 1 if you have the `poll' function. */ |
||||
|
#undef HAVE_POLL |
||||
|
|
||||
|
/* Define to 1 if you have the <poll.h> header file. */ |
||||
|
#undef HAVE_POLL_H |
||||
|
|
||||
|
/* Define to 1 if you have the `port_create' function. */ |
||||
|
#undef HAVE_PORT_CREATE |
||||
|
|
||||
|
/* Define to 1 if you have the <port.h> header file. */ |
||||
|
#undef HAVE_PORT_H |
||||
|
|
||||
|
/* Define to 1 if you have the `select' function. */ |
||||
|
#undef HAVE_SELECT |
||||
|
|
||||
|
/* Define to 1 if you have the <stdint.h> header file. */ |
||||
|
#undef HAVE_STDINT_H |
||||
|
|
||||
|
/* Define to 1 if you have the <stdlib.h> header file. */ |
||||
|
#undef HAVE_STDLIB_H |
||||
|
|
||||
|
/* Define to 1 if you have the <strings.h> header file. */ |
||||
|
#undef HAVE_STRINGS_H |
||||
|
|
||||
|
/* Define to 1 if you have the <string.h> header file. */ |
||||
|
#undef HAVE_STRING_H |
||||
|
|
||||
|
/* Define to 1 if you have the <sys/epoll.h> header file. */ |
||||
|
#undef HAVE_SYS_EPOLL_H |
||||
|
|
||||
|
/* Define to 1 if you have the <sys/eventfd.h> header file. */ |
||||
|
#undef HAVE_SYS_EVENTFD_H |
||||
|
|
||||
|
/* Define to 1 if you have the <sys/event.h> header file. */ |
||||
|
#undef HAVE_SYS_EVENT_H |
||||
|
|
||||
|
/* Define to 1 if you have the <sys/inotify.h> header file. */ |
||||
|
#undef HAVE_SYS_INOTIFY_H |
||||
|
|
||||
|
/* Define to 1 if you have the <sys/queue.h> header file. */ |
||||
|
#undef HAVE_SYS_QUEUE_H |
||||
|
|
||||
|
/* Define to 1 if you have the <sys/select.h> header file. */ |
||||
|
#undef HAVE_SYS_SELECT_H |
||||
|
|
||||
|
/* Define to 1 if you have the <sys/stat.h> header file. */ |
||||
|
#undef HAVE_SYS_STAT_H |
||||
|
|
||||
|
/* Define to 1 if you have the <sys/types.h> header file. */ |
||||
|
#undef HAVE_SYS_TYPES_H |
||||
|
|
||||
|
/* Define to 1 if you have the <unistd.h> header file. */ |
||||
|
#undef HAVE_UNISTD_H |
||||
|
|
||||
|
/* Name of package */ |
||||
|
#undef PACKAGE |
||||
|
|
||||
|
/* Define to the address where bug reports for this package should be sent. */ |
||||
|
#undef PACKAGE_BUGREPORT |
||||
|
|
||||
|
/* Define to the full name of this package. */ |
||||
|
#undef PACKAGE_NAME |
||||
|
|
||||
|
/* Define to the full name and version of this package. */ |
||||
|
#undef PACKAGE_STRING |
||||
|
|
||||
|
/* Define to the one symbol short name of this package. */ |
||||
|
#undef PACKAGE_TARNAME |
||||
|
|
||||
|
/* Define to the version of this package. */ |
||||
|
#undef PACKAGE_VERSION |
||||
|
|
||||
|
/* Define to 1 if you have the ANSI C header files. */ |
||||
|
#undef STDC_HEADERS |
||||
|
|
||||
|
/* Version number of package */ |
||||
|
#undef VERSION |
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,226 +0,0 @@ |
|||||
/*
|
|
||||
* Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu> |
|
||||
* Copyright (c) 2008 Marc Alexander Lehmann <libev@schmorp.de> |
|
||||
* 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. |
|
||||
*/ |
|
||||
#ifdef __cplusplus |
|
||||
extern "C" { |
|
||||
#endif |
|
||||
|
|
||||
#ifdef _WIN32 |
|
||||
# define WIN32_LEAN_AND_MEAN |
|
||||
# include <windows.h> |
|
||||
# undef WIN32_LEAN_AND_MEAN |
|
||||
typedef unsigned char u_char; |
|
||||
typedef unsigned short u_short; |
|
||||
#else |
|
||||
# include <sys/types.h> |
|
||||
# include <sys/time.h> |
|
||||
# include <inttypes.h> |
|
||||
#endif |
|
||||
|
|
||||
#include <stdarg.h> |
|
||||
|
|
||||
/* Fix so that ppl dont have to run with <sys/queue.h> */ |
|
||||
#ifndef TAILQ_ENTRY |
|
||||
#define _EVENT_DEFINED_TQENTRY |
|
||||
#define TAILQ_ENTRY(type) \ |
|
||||
struct { \ |
|
||||
struct type *tqe_next; /* next element */ \ |
|
||||
struct type **tqe_prev; /* address of previous next element */ \ |
|
||||
} |
|
||||
#endif /* !TAILQ_ENTRY */ |
|
||||
#ifndef RB_ENTRY |
|
||||
#define _EVENT_DEFINED_RBENTRY |
|
||||
#define RB_ENTRY(type) \ |
|
||||
struct { \ |
|
||||
struct type *rbe_left; /* left element */ \ |
|
||||
struct type *rbe_right; /* right element */ \ |
|
||||
struct type *rbe_parent; /* parent element */ \ |
|
||||
int rbe_color; /* node color */ \ |
|
||||
} |
|
||||
#endif /* !RB_ENTRY */ |
|
||||
|
|
||||
/*
|
|
||||
* Key-Value pairs. Can be used for HTTP headers but also for |
|
||||
* query argument parsing. |
|
||||
*/ |
|
||||
struct evkeyval { |
|
||||
TAILQ_ENTRY(evkeyval) next; |
|
||||
|
|
||||
char *key; |
|
||||
char *value; |
|
||||
}; |
|
||||
|
|
||||
#ifdef _EVENT_DEFINED_TQENTRY |
|
||||
#undef TAILQ_ENTRY |
|
||||
struct event_list; |
|
||||
struct evkeyvalq; |
|
||||
#undef _EVENT_DEFINED_TQENTRY |
|
||||
#else |
|
||||
TAILQ_HEAD (event_list, event); |
|
||||
TAILQ_HEAD (evkeyvalq, evkeyval); |
|
||||
#endif /* _EVENT_DEFINED_TQENTRY */ |
|
||||
#ifdef _EVENT_DEFINED_RBENTRY |
|
||||
#undef RB_ENTRY |
|
||||
#undef _EVENT_DEFINED_RBENTRY |
|
||||
#endif /* _EVENT_DEFINED_RBENTRY */ |
|
||||
|
|
||||
struct eventop { |
|
||||
char *name; |
|
||||
void *(*init)(struct event_base *); |
|
||||
int (*add)(void *, struct event *); |
|
||||
int (*del)(void *, struct event *); |
|
||||
int (*recalc)(struct event_base *, void *, int); |
|
||||
int (*dispatch)(struct event_base *, void *, struct timeval *); |
|
||||
void (*dealloc)(struct event_base *, void *); |
|
||||
}; |
|
||||
|
|
||||
/* These functions deal with buffering input and output */ |
|
||||
|
|
||||
struct evbuffer { |
|
||||
u_char *buffer; |
|
||||
u_char *orig_buffer; |
|
||||
|
|
||||
size_t misalign; |
|
||||
size_t totallen; |
|
||||
size_t off; |
|
||||
|
|
||||
void (*cb)(struct evbuffer *, size_t, size_t, void *); |
|
||||
void *cbarg; |
|
||||
}; |
|
||||
|
|
||||
/* Just for error reporting - use other constants otherwise */ |
|
||||
#define EVBUFFER_READ 0x01 |
|
||||
#define EVBUFFER_WRITE 0x02 |
|
||||
#define EVBUFFER_EOF 0x10 |
|
||||
#define EVBUFFER_ERROR 0x20 |
|
||||
#define EVBUFFER_TIMEOUT 0x40 |
|
||||
|
|
||||
struct bufferevent; |
|
||||
typedef void (*evbuffercb)(struct bufferevent *, void *); |
|
||||
typedef void (*everrorcb)(struct bufferevent *, short what, void *); |
|
||||
|
|
||||
struct event_watermark { |
|
||||
size_t low; |
|
||||
size_t high; |
|
||||
}; |
|
||||
|
|
||||
struct bufferevent { |
|
||||
struct event ev_read; |
|
||||
struct event ev_write; |
|
||||
|
|
||||
struct evbuffer *input; |
|
||||
struct evbuffer *output; |
|
||||
|
|
||||
struct event_watermark wm_read; |
|
||||
struct event_watermark wm_write; |
|
||||
|
|
||||
evbuffercb readcb; |
|
||||
evbuffercb writecb; |
|
||||
everrorcb errorcb; |
|
||||
void *cbarg; |
|
||||
|
|
||||
int timeout_read; /* in seconds */ |
|
||||
int timeout_write; /* in seconds */ |
|
||||
|
|
||||
short enabled; /* events that are currently enabled */ |
|
||||
}; |
|
||||
|
|
||||
struct bufferevent *bufferevent_new(int fd, |
|
||||
evbuffercb readcb, evbuffercb writecb, everrorcb errorcb, void *cbarg); |
|
||||
int bufferevent_base_set(struct event_base *base, struct bufferevent *bufev); |
|
||||
int bufferevent_priority_set(struct bufferevent *bufev, int pri); |
|
||||
void bufferevent_free(struct bufferevent *bufev); |
|
||||
int bufferevent_write(struct bufferevent *bufev, const void *data, size_t size); |
|
||||
int bufferevent_write_buffer(struct bufferevent *bufev, struct evbuffer *buf); |
|
||||
size_t bufferevent_read(struct bufferevent *bufev, void *data, size_t size); |
|
||||
int bufferevent_enable(struct bufferevent *bufev, short event); |
|
||||
int bufferevent_disable(struct bufferevent *bufev, short event); |
|
||||
void bufferevent_settimeout(struct bufferevent *bufev, |
|
||||
int timeout_read, int timeout_write); |
|
||||
|
|
||||
#define EVBUFFER_LENGTH(x) (x)->off |
|
||||
#define EVBUFFER_DATA(x) (x)->buffer |
|
||||
#define EVBUFFER_INPUT(x) (x)->input |
|
||||
#define EVBUFFER_OUTPUT(x) (x)->output |
|
||||
|
|
||||
struct evbuffer *evbuffer_new(void); |
|
||||
void evbuffer_free(struct evbuffer *); |
|
||||
int evbuffer_expand(struct evbuffer *, size_t); |
|
||||
int evbuffer_add(struct evbuffer *, const void *, size_t); |
|
||||
int evbuffer_remove(struct evbuffer *, void *, size_t); |
|
||||
char *evbuffer_readline(struct evbuffer *); |
|
||||
int evbuffer_add_buffer(struct evbuffer *, struct evbuffer *); |
|
||||
int evbuffer_add_printf(struct evbuffer *, const char *fmt, ...); |
|
||||
int evbuffer_add_vprintf(struct evbuffer *, const char *fmt, va_list ap); |
|
||||
void evbuffer_drain(struct evbuffer *, size_t); |
|
||||
int evbuffer_write(struct evbuffer *, int); |
|
||||
int evbuffer_read(struct evbuffer *, int, int); |
|
||||
u_char *evbuffer_find(struct evbuffer *, const u_char *, size_t); |
|
||||
void evbuffer_setcb(struct evbuffer *, void (*)(struct evbuffer *, size_t, size_t, void *), void *); |
|
||||
|
|
||||
/*
|
|
||||
* Marshaling tagged data - We assume that all tags are inserted in their |
|
||||
* numeric order - so that unknown tags will always be higher than the |
|
||||
* known ones - and we can just ignore the end of an event buffer. |
|
||||
*/ |
|
||||
|
|
||||
void evtag_init(void); |
|
||||
|
|
||||
void evtag_marshal(struct evbuffer *evbuf, uint32_t tag, const void *data, |
|
||||
uint32_t len); |
|
||||
|
|
||||
void encode_int(struct evbuffer *evbuf, uint32_t number); |
|
||||
|
|
||||
void evtag_marshal_int(struct evbuffer *evbuf, uint32_t tag, uint32_t integer); |
|
||||
|
|
||||
void evtag_marshal_string(struct evbuffer *buf, uint32_t tag, |
|
||||
const char *string); |
|
||||
|
|
||||
void evtag_marshal_timeval(struct evbuffer *evbuf, uint32_t tag, |
|
||||
struct timeval *tv); |
|
||||
|
|
||||
int evtag_unmarshal(struct evbuffer *src, uint32_t *ptag, struct evbuffer *dst); |
|
||||
int evtag_peek(struct evbuffer *evbuf, uint32_t *ptag); |
|
||||
int evtag_peek_length(struct evbuffer *evbuf, uint32_t *plength); |
|
||||
int evtag_payload_length(struct evbuffer *evbuf, uint32_t *plength); |
|
||||
int evtag_consume(struct evbuffer *evbuf); |
|
||||
|
|
||||
int evtag_unmarshal_int(struct evbuffer *evbuf, uint32_t need_tag, |
|
||||
uint32_t *pinteger); |
|
||||
|
|
||||
int evtag_unmarshal_fixed(struct evbuffer *src, uint32_t need_tag, void *data, |
|
||||
size_t len); |
|
||||
|
|
||||
int evtag_unmarshal_string(struct evbuffer *evbuf, uint32_t need_tag, |
|
||||
char **pstring); |
|
||||
|
|
||||
int evtag_unmarshal_timeval(struct evbuffer *evbuf, uint32_t need_tag, |
|
||||
struct timeval *ptv); |
|
||||
|
|
||||
#ifdef __cplusplus |
|
||||
} |
|
||||
#endif |
|
@ -1,131 +0,0 @@ |
|||||
#!/bin/sh |
|
||||
|
|
||||
LE=../libevent-1.4.3-stable |
|
||||
|
|
||||
if ! [ -e evbuffer.c ]; then |
|
||||
echo do not run this programm unless you know what you are doing |
|
||||
exit 1 |
|
||||
fi |
|
||||
|
|
||||
# this program combines libev and libevent into a single package |
|
||||
|
|
||||
cvs update -AdP libev |
|
||||
rsync -avP libev/. . --exclude CVS |
|
||||
|
|
||||
rm -f configure.ac |
|
||||
|
|
||||
cp $LE/evdns.h . |
|
||||
|
|
||||
perl -i -pe 's%^/.libevent-include./%#include "event_compat.h"%' event.h |
|
||||
|
|
||||
perl -ne ' |
|
||||
s/\s+char buf\[64\];/\tchar buf[96];/; |
|
||||
if (/#include "event.h"/) { |
|
||||
print "#ifndef EV_STANDALONE\n$_#endif\n"; |
|
||||
next; |
|
||||
} |
|
||||
if (/#include "misc.h"/) { |
|
||||
print "#ifndef EV_STANDALONE\n$_#endif\n"; |
|
||||
next; |
|
||||
} |
|
||||
if (/#include "(unistd.h|sys\/time.h)"/) { |
|
||||
print "#ifndef WIN32\n$_#endif\n"; |
|
||||
next; |
|
||||
} |
|
||||
next if /#include "log.h"/; |
|
||||
|
|
||||
print; |
|
||||
' <$LE/evdns.c >evdns.c |
|
||||
|
|
||||
cp $LE/autogen.sh . |
|
||||
cp $LE/epoll_sub.c . |
|
||||
cp $LE/evbuffer.c . |
|
||||
cp $LE/buffer.c . |
|
||||
cp $LE/evhttp.h . |
|
||||
cp $LE/evutil.h . |
|
||||
cp $LE/evutil.c . |
|
||||
cp $LE/event-config.h . |
|
||||
cp $LE/event-internal.h . |
|
||||
cp $LE/evrpc.h . |
|
||||
cp $LE/evrpc.c . |
|
||||
cp $LE/evrpc-internal.h . |
|
||||
cp $LE/http.c . |
|
||||
cp $LE/event_tagging.c . |
|
||||
cp $LE/http-internal.h . |
|
||||
cp $LE/strlcpy-internal.h . |
|
||||
cp $LE/log.c . |
|
||||
cp $LE/log.h . |
|
||||
cp $LE/strlcpy.c . |
|
||||
rsync -a $LE/WIN32* $LE/sample $LE/test $LE/compat . --del |
|
||||
#rename 's/libevent/libev/' WIN32-Prj/lib* |
|
||||
cp $LE/aclocal.m4 . |
|
||||
#cp $LE/acconfig.h . |
|
||||
cp $LE/config.h.in . |
|
||||
cp $LE/event_rpcgen.py . |
|
||||
cp $LE/*.3 . |
|
||||
|
|
||||
#perl -i -pe 's/libevent/libev/g' sample/Makefile.am |
|
||||
#perl -i -pe 's/libevent/libev/g' test/Makefile.am |
|
||||
|
|
||||
perl -i -pe 's/#include <event.h>$/#include "event.h"/' test/*.c |
|
||||
|
|
||||
perl -i -ne ' |
|
||||
next if /"event-internal.h"/; |
|
||||
s/base\d?->sig.ev_signal_added/0/; |
|
||||
s/base\d?->sig.ev_signal_pair\[0\]/-1/; |
|
||||
s/base->sig.evsignal_caught/0/; |
|
||||
next if /^\ttest_signal_(dealloc|pipeloss|switchbase|assert|restore)\(\)/; |
|
||||
next if /^\ttest_simplesignal\(\)/; # non-default-loop |
|
||||
next if /^\ttest_immediatesignal\(\)/; # non-default-loop |
|
||||
next if /test_priorities\(\d\)/; |
|
||||
print; |
|
||||
' test/regress.c |
|
||||
|
|
||||
perl -ne ' |
|
||||
s/\bmin_heap.h\b//g; |
|
||||
s/\bsignal.c\b//g; |
|
||||
s/\bevport.c\b//g; |
|
||||
s/\bkqueue.c\b//g; |
|
||||
s/\bdevpoll.c\b//g; |
|
||||
s/\brtsig.c\b//g; |
|
||||
s/\bselect.c\b//g; |
|
||||
s/\bpoll.c\b//g; |
|
||||
s/\bepoll.c\b//g; |
|
||||
s/\bepoll_sub.c\b//g; |
|
||||
s/\bevent-internal.h\b//g; |
|
||||
s/\bevsignal.h\b//g; |
|
||||
s/^(man_MANS\s*=)/$1 ev.3 /; |
|
||||
s/^(EXTRA_DIST\s*=)/$1 libev.m4 ev.h ev_vars.h ev_wrap.h event_compat.h ev++.h ev_epoll.c ev_select.c ev_poll.c ev_kqueue.c ev_port.c ev_win32.c ev.3 ev.pod /; |
|
||||
s/^(include_HEADERS\s*=)/$1 ev.h event_compat.h ev++.h /; |
|
||||
s/^(CORE_SRC\s*=)/$1 ev.c /; |
|
||||
s/^(SYS_LIBS\s*=)/$1 -lm /; |
|
||||
#s/libevent/libev/g; |
|
||||
print; |
|
||||
' <$LE/Makefile.am >Makefile.am |
|
||||
|
|
||||
perl -ne ' |
|
||||
#s/-Wall/-Wall -Wno-comment -Wunused-function -Wno-unused-value/; |
|
||||
s/-Wall//g; |
|
||||
#s/libevent/libev/g; |
|
||||
#VERSION |
|
||||
s/AM_INIT_AUTOMAKE\s*\(.*,(.*)\)/AM_INIT_AUTOMAKE(libevent-$1+libev,3.1)/; |
|
||||
s/AC_LIBOBJ\(select\)/: ;/g; |
|
||||
s/AC_LIBOBJ\(poll\)/: ;/g; |
|
||||
s/AC_LIBOBJ\(kqueue\)/: ;/g; |
|
||||
s/AC_LIBOBJ\(epoll\)/: ;/g; |
|
||||
s/AC_LIBOBJ\(devpoll\)/: ;/g; |
|
||||
s/AC_LIBOBJ\(evport\)/: ;/g; |
|
||||
s/AC_LIBOBJ\(signal\)/: ;/g; |
|
||||
s/AC_LIBOBJ\(rtsig\)/: ;/g; |
|
||||
print "m4_include([libev.m4])\n" if /^AC_OUTPUT/; |
|
||||
print; |
|
||||
' <$LE/configure.in >configure.in |
|
||||
|
|
||||
aclocal-1.7 |
|
||||
automake-1.7 --add-missing |
|
||||
autoconf |
|
||||
autoheader |
|
||||
libtoolize |
|
||||
CC="ccache gcc" ./configure --prefix=/opt/libev --disable-shared "$@" |
|
||||
|
|
||||
|
|
@ -0,0 +1,294 @@ |
|||||
|
#!/bin/sh |
||||
|
# |
||||
|
# install - install a program, script, or datafile |
||||
|
# |
||||
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was |
||||
|
# later released in X11R6 (xc/config/util/install.sh) with the |
||||
|
# following copyright and license. |
||||
|
# |
||||
|
# Copyright (C) 1994 X Consortium |
||||
|
# |
||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
|
# of this software and associated documentation files (the "Software"), to |
||||
|
# deal in the Software without restriction, including without limitation the |
||||
|
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
||||
|
# sell copies of the Software, and to permit persons to whom the Software is |
||||
|
# furnished to do so, subject to the following conditions: |
||||
|
# |
||||
|
# The above copyright notice and this permission notice shall be included in |
||||
|
# all copies or substantial portions of the Software. |
||||
|
# |
||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
|
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
||||
|
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- |
||||
|
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
||||
|
# |
||||
|
# Except as contained in this notice, the name of the X Consortium shall not |
||||
|
# be used in advertising or otherwise to promote the sale, use or other deal- |
||||
|
# ings in this Software without prior written authorization from the X Consor- |
||||
|
# tium. |
||||
|
# |
||||
|
# |
||||
|
# FSF changes to this file are in the public domain. |
||||
|
# |
||||
|
# Calling this script install-sh is preferred over install.sh, to prevent |
||||
|
# `make' implicit rules from creating a file called install from it |
||||
|
# when there is no Makefile. |
||||
|
# |
||||
|
# This script is compatible with the BSD install script, but was written |
||||
|
# from scratch. It can only install one file at a time, a restriction |
||||
|
# shared with many OS's install programs. |
||||
|
|
||||
|
|
||||
|
# set DOITPROG to echo to test this script |
||||
|
|
||||
|
# Don't use :- since 4.3BSD and earlier shells don't like it. |
||||
|
doit="${DOITPROG-}" |
||||
|
|
||||
|
|
||||
|
# put in absolute paths if you don't have them in your path; or use env. vars. |
||||
|
|
||||
|
mvprog="${MVPROG-mv}" |
||||
|
cpprog="${CPPROG-cp}" |
||||
|
chmodprog="${CHMODPROG-chmod}" |
||||
|
chownprog="${CHOWNPROG-chown}" |
||||
|
chgrpprog="${CHGRPPROG-chgrp}" |
||||
|
stripprog="${STRIPPROG-strip}" |
||||
|
rmprog="${RMPROG-rm}" |
||||
|
mkdirprog="${MKDIRPROG-mkdir}" |
||||
|
|
||||
|
transformbasename="" |
||||
|
transform_arg="" |
||||
|
instcmd="$mvprog" |
||||
|
chmodcmd="$chmodprog 0755" |
||||
|
chowncmd="" |
||||
|
chgrpcmd="" |
||||
|
stripcmd="" |
||||
|
rmcmd="$rmprog -f" |
||||
|
mvcmd="$mvprog" |
||||
|
src="" |
||||
|
dst="" |
||||
|
dir_arg="" |
||||
|
|
||||
|
while [ x"$1" != x ]; do |
||||
|
case $1 in |
||||
|
-c) instcmd=$cpprog |
||||
|
shift |
||||
|
continue;; |
||||
|
|
||||
|
-d) dir_arg=true |
||||
|
shift |
||||
|
continue;; |
||||
|
|
||||
|
-m) chmodcmd="$chmodprog $2" |
||||
|
shift |
||||
|
shift |
||||
|
continue;; |
||||
|
|
||||
|
-o) chowncmd="$chownprog $2" |
||||
|
shift |
||||
|
shift |
||||
|
continue;; |
||||
|
|
||||
|
-g) chgrpcmd="$chgrpprog $2" |
||||
|
shift |
||||
|
shift |
||||
|
continue;; |
||||
|
|
||||
|
-s) stripcmd=$stripprog |
||||
|
shift |
||||
|
continue;; |
||||
|
|
||||
|
-t=*) transformarg=`echo $1 | sed 's/-t=//'` |
||||
|
shift |
||||
|
continue;; |
||||
|
|
||||
|
-b=*) transformbasename=`echo $1 | sed 's/-b=//'` |
||||
|
shift |
||||
|
continue;; |
||||
|
|
||||
|
*) if [ x"$src" = x ] |
||||
|
then |
||||
|
src=$1 |
||||
|
else |
||||
|
# this colon is to work around a 386BSD /bin/sh bug |
||||
|
: |
||||
|
dst=$1 |
||||
|
fi |
||||
|
shift |
||||
|
continue;; |
||||
|
esac |
||||
|
done |
||||
|
|
||||
|
if [ x"$src" = x ] |
||||
|
then |
||||
|
echo "$0: no input file specified" >&2 |
||||
|
exit 1 |
||||
|
else |
||||
|
: |
||||
|
fi |
||||
|
|
||||
|
if [ x"$dir_arg" != x ]; then |
||||
|
dst=$src |
||||
|
src="" |
||||
|
|
||||
|
if [ -d "$dst" ]; then |
||||
|
instcmd=: |
||||
|
chmodcmd="" |
||||
|
else |
||||
|
instcmd=$mkdirprog |
||||
|
fi |
||||
|
else |
||||
|
|
||||
|
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command |
||||
|
# might cause directories to be created, which would be especially bad |
||||
|
# if $src (and thus $dsttmp) contains '*'. |
||||
|
|
||||
|
if [ -f "$src" ] || [ -d "$src" ] |
||||
|
then |
||||
|
: |
||||
|
else |
||||
|
echo "$0: $src does not exist" >&2 |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
if [ x"$dst" = x ] |
||||
|
then |
||||
|
echo "$0: no destination specified" >&2 |
||||
|
exit 1 |
||||
|
else |
||||
|
: |
||||
|
fi |
||||
|
|
||||
|
# If destination is a directory, append the input filename; if your system |
||||
|
# does not like double slashes in filenames, you may need to add some logic |
||||
|
|
||||
|
if [ -d "$dst" ] |
||||
|
then |
||||
|
dst=$dst/`basename "$src"` |
||||
|
else |
||||
|
: |
||||
|
fi |
||||
|
fi |
||||
|
|
||||
|
## this sed command emulates the dirname command |
||||
|
dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` |
||||
|
|
||||
|
# Make sure that the destination directory exists. |
||||
|
# this part is taken from Noah Friedman's mkinstalldirs script |
||||
|
|
||||
|
# Skip lots of stat calls in the usual case. |
||||
|
if [ ! -d "$dstdir" ]; then |
||||
|
defaultIFS=' |
||||
|
' |
||||
|
IFS="${IFS-$defaultIFS}" |
||||
|
|
||||
|
oIFS=$IFS |
||||
|
# Some sh's can't handle IFS=/ for some reason. |
||||
|
IFS='%' |
||||
|
set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` |
||||
|
IFS=$oIFS |
||||
|
|
||||
|
pathcomp='' |
||||
|
|
||||
|
while [ $# -ne 0 ] ; do |
||||
|
pathcomp=$pathcomp$1 |
||||
|
shift |
||||
|
|
||||
|
if [ ! -d "$pathcomp" ] ; |
||||
|
then |
||||
|
$mkdirprog "$pathcomp" |
||||
|
else |
||||
|
: |
||||
|
fi |
||||
|
|
||||
|
pathcomp=$pathcomp/ |
||||
|
done |
||||
|
fi |
||||
|
|
||||
|
if [ x"$dir_arg" != x ] |
||||
|
then |
||||
|
$doit $instcmd "$dst" && |
||||
|
|
||||
|
if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi && |
||||
|
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi && |
||||
|
if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi && |
||||
|
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi |
||||
|
else |
||||
|
|
||||
|
# If we're going to rename the final executable, determine the name now. |
||||
|
|
||||
|
if [ x"$transformarg" = x ] |
||||
|
then |
||||
|
dstfile=`basename "$dst"` |
||||
|
else |
||||
|
dstfile=`basename "$dst" $transformbasename | |
||||
|
sed $transformarg`$transformbasename |
||||
|
fi |
||||
|
|
||||
|
# don't allow the sed command to completely eliminate the filename |
||||
|
|
||||
|
if [ x"$dstfile" = x ] |
||||
|
then |
||||
|
dstfile=`basename "$dst"` |
||||
|
else |
||||
|
: |
||||
|
fi |
||||
|
|
||||
|
# Make a couple of temp file names in the proper directory. |
||||
|
|
||||
|
dsttmp=$dstdir/_inst.$$_ |
||||
|
rmtmp=$dstdir/_rm.$$_ |
||||
|
|
||||
|
# Trap to clean up temp files at exit. |
||||
|
|
||||
|
trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 |
||||
|
trap '(exit $?); exit' 1 2 13 15 |
||||
|
|
||||
|
# Move or copy the file name to the temp name |
||||
|
|
||||
|
$doit $instcmd "$src" "$dsttmp" && |
||||
|
|
||||
|
# and set any options; do chmod last to preserve setuid bits |
||||
|
|
||||
|
# If any of these fail, we abort the whole thing. If we want to |
||||
|
# ignore errors from any of these, just make sure not to ignore |
||||
|
# errors from the above "$doit $instcmd $src $dsttmp" command. |
||||
|
|
||||
|
if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi && |
||||
|
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi && |
||||
|
if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi && |
||||
|
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi && |
||||
|
|
||||
|
# Now remove or move aside any old file at destination location. We try this |
||||
|
# two ways since rm can't unlink itself on some systems and the destination |
||||
|
# file might be busy for other reasons. In this case, the final cleanup |
||||
|
# might fail but the new file should still install successfully. |
||||
|
|
||||
|
{ |
||||
|
if [ -f "$dstdir/$dstfile" ] |
||||
|
then |
||||
|
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null || |
||||
|
$doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null || |
||||
|
{ |
||||
|
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 |
||||
|
(exit 1); exit |
||||
|
} |
||||
|
else |
||||
|
: |
||||
|
fi |
||||
|
} && |
||||
|
|
||||
|
# Now rename the file to the real destination. |
||||
|
|
||||
|
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile" |
||||
|
|
||||
|
fi && |
||||
|
|
||||
|
# The final little trick to "correctly" pass the exit status to the exit trap. |
||||
|
|
||||
|
{ |
||||
|
(exit 0); exit |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,336 @@ |
|||||
|
#! /bin/sh |
||||
|
# Common stub for a few missing GNU programs while installing. |
||||
|
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc. |
||||
|
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
||||
|
|
||||
|
# This program is free software; you can redistribute it and/or modify |
||||
|
# it under the terms of the GNU General Public License as published by |
||||
|
# the Free Software Foundation; either version 2, or (at your option) |
||||
|
# any later version. |
||||
|
|
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU General Public License for more details. |
||||
|
|
||||
|
# You should have received a copy of the GNU General Public License |
||||
|
# along with this program; if not, write to the Free Software |
||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
||||
|
# 02111-1307, USA. |
||||
|
|
||||
|
# As a special exception to the GNU General Public License, if you |
||||
|
# distribute this file as part of a program that contains a |
||||
|
# configuration script generated by Autoconf, you may include it under |
||||
|
# the same distribution terms that you use for the rest of that program. |
||||
|
|
||||
|
if test $# -eq 0; then |
||||
|
echo 1>&2 "Try \`$0 --help' for more information" |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
run=: |
||||
|
|
||||
|
# In the cases where this matters, `missing' is being run in the |
||||
|
# srcdir already. |
||||
|
if test -f configure.ac; then |
||||
|
configure_ac=configure.ac |
||||
|
else |
||||
|
configure_ac=configure.in |
||||
|
fi |
||||
|
|
||||
|
case "$1" in |
||||
|
--run) |
||||
|
# Try to run requested program, and just exit if it succeeds. |
||||
|
run= |
||||
|
shift |
||||
|
"$@" && exit 0 |
||||
|
;; |
||||
|
esac |
||||
|
|
||||
|
# If it does not exist, or fails to run (possibly an outdated version), |
||||
|
# try to emulate it. |
||||
|
case "$1" in |
||||
|
|
||||
|
-h|--h|--he|--hel|--help) |
||||
|
echo "\ |
||||
|
$0 [OPTION]... PROGRAM [ARGUMENT]... |
||||
|
|
||||
|
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an |
||||
|
error status if there is no known handling for PROGRAM. |
||||
|
|
||||
|
Options: |
||||
|
-h, --help display this help and exit |
||||
|
-v, --version output version information and exit |
||||
|
--run try to run the given command, and emulate it if it fails |
||||
|
|
||||
|
Supported PROGRAM values: |
||||
|
aclocal touch file \`aclocal.m4' |
||||
|
autoconf touch file \`configure' |
||||
|
autoheader touch file \`config.h.in' |
||||
|
automake touch all \`Makefile.in' files |
||||
|
bison create \`y.tab.[ch]', if possible, from existing .[ch] |
||||
|
flex create \`lex.yy.c', if possible, from existing .c |
||||
|
help2man touch the output file |
||||
|
lex create \`lex.yy.c', if possible, from existing .c |
||||
|
makeinfo touch the output file |
||||
|
tar try tar, gnutar, gtar, then tar without non-portable flags |
||||
|
yacc create \`y.tab.[ch]', if possible, from existing .[ch]" |
||||
|
;; |
||||
|
|
||||
|
-v|--v|--ve|--ver|--vers|--versi|--versio|--version) |
||||
|
echo "missing 0.4 - GNU automake" |
||||
|
;; |
||||
|
|
||||
|
-*) |
||||
|
echo 1>&2 "$0: Unknown \`$1' option" |
||||
|
echo 1>&2 "Try \`$0 --help' for more information" |
||||
|
exit 1 |
||||
|
;; |
||||
|
|
||||
|
aclocal*) |
||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
||||
|
# We have it, but it failed. |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
echo 1>&2 "\ |
||||
|
WARNING: \`$1' is missing on your system. You should only need it if |
||||
|
you modified \`acinclude.m4' or \`${configure_ac}'. You might want |
||||
|
to install the \`Automake' and \`Perl' packages. Grab them from |
||||
|
any GNU archive site." |
||||
|
touch aclocal.m4 |
||||
|
;; |
||||
|
|
||||
|
autoconf) |
||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
||||
|
# We have it, but it failed. |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
echo 1>&2 "\ |
||||
|
WARNING: \`$1' is missing on your system. You should only need it if |
||||
|
you modified \`${configure_ac}'. You might want to install the |
||||
|
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU |
||||
|
archive site." |
||||
|
touch configure |
||||
|
;; |
||||
|
|
||||
|
autoheader) |
||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
||||
|
# We have it, but it failed. |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
echo 1>&2 "\ |
||||
|
WARNING: \`$1' is missing on your system. You should only need it if |
||||
|
you modified \`acconfig.h' or \`${configure_ac}'. You might want |
||||
|
to install the \`Autoconf' and \`GNU m4' packages. Grab them |
||||
|
from any GNU archive site." |
||||
|
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` |
||||
|
test -z "$files" && files="config.h" |
||||
|
touch_files= |
||||
|
for f in $files; do |
||||
|
case "$f" in |
||||
|
*:*) touch_files="$touch_files "`echo "$f" | |
||||
|
sed -e 's/^[^:]*://' -e 's/:.*//'`;; |
||||
|
*) touch_files="$touch_files $f.in";; |
||||
|
esac |
||||
|
done |
||||
|
touch $touch_files |
||||
|
;; |
||||
|
|
||||
|
automake*) |
||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
||||
|
# We have it, but it failed. |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
echo 1>&2 "\ |
||||
|
WARNING: \`$1' is missing on your system. You should only need it if |
||||
|
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. |
||||
|
You might want to install the \`Automake' and \`Perl' packages. |
||||
|
Grab them from any GNU archive site." |
||||
|
find . -type f -name Makefile.am -print | |
||||
|
sed 's/\.am$/.in/' | |
||||
|
while read f; do touch "$f"; done |
||||
|
;; |
||||
|
|
||||
|
autom4te) |
||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
||||
|
# We have it, but it failed. |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
echo 1>&2 "\ |
||||
|
WARNING: \`$1' is needed, and you do not seem to have it handy on your |
||||
|
system. You might have modified some files without having the |
||||
|
proper tools for further handling them. |
||||
|
You can get \`$1' as part of \`Autoconf' from any GNU |
||||
|
archive site." |
||||
|
|
||||
|
file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` |
||||
|
test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` |
||||
|
if test -f "$file"; then |
||||
|
touch $file |
||||
|
else |
||||
|
test -z "$file" || exec >$file |
||||
|
echo "#! /bin/sh" |
||||
|
echo "# Created by GNU Automake missing as a replacement of" |
||||
|
echo "# $ $@" |
||||
|
echo "exit 0" |
||||
|
chmod +x $file |
||||
|
exit 1 |
||||
|
fi |
||||
|
;; |
||||
|
|
||||
|
bison|yacc) |
||||
|
echo 1>&2 "\ |
||||
|
WARNING: \`$1' is missing on your system. You should only need it if |
||||
|
you modified a \`.y' file. You may need the \`Bison' package |
||||
|
in order for those modifications to take effect. You can get |
||||
|
\`Bison' from any GNU archive site." |
||||
|
rm -f y.tab.c y.tab.h |
||||
|
if [ $# -ne 1 ]; then |
||||
|
eval LASTARG="\${$#}" |
||||
|
case "$LASTARG" in |
||||
|
*.y) |
||||
|
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` |
||||
|
if [ -f "$SRCFILE" ]; then |
||||
|
cp "$SRCFILE" y.tab.c |
||||
|
fi |
||||
|
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` |
||||
|
if [ -f "$SRCFILE" ]; then |
||||
|
cp "$SRCFILE" y.tab.h |
||||
|
fi |
||||
|
;; |
||||
|
esac |
||||
|
fi |
||||
|
if [ ! -f y.tab.h ]; then |
||||
|
echo >y.tab.h |
||||
|
fi |
||||
|
if [ ! -f y.tab.c ]; then |
||||
|
echo 'main() { return 0; }' >y.tab.c |
||||
|
fi |
||||
|
;; |
||||
|
|
||||
|
lex|flex) |
||||
|
echo 1>&2 "\ |
||||
|
WARNING: \`$1' is missing on your system. You should only need it if |
||||
|
you modified a \`.l' file. You may need the \`Flex' package |
||||
|
in order for those modifications to take effect. You can get |
||||
|
\`Flex' from any GNU archive site." |
||||
|
rm -f lex.yy.c |
||||
|
if [ $# -ne 1 ]; then |
||||
|
eval LASTARG="\${$#}" |
||||
|
case "$LASTARG" in |
||||
|
*.l) |
||||
|
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` |
||||
|
if [ -f "$SRCFILE" ]; then |
||||
|
cp "$SRCFILE" lex.yy.c |
||||
|
fi |
||||
|
;; |
||||
|
esac |
||||
|
fi |
||||
|
if [ ! -f lex.yy.c ]; then |
||||
|
echo 'main() { return 0; }' >lex.yy.c |
||||
|
fi |
||||
|
;; |
||||
|
|
||||
|
help2man) |
||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then |
||||
|
# We have it, but it failed. |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
echo 1>&2 "\ |
||||
|
WARNING: \`$1' is missing on your system. You should only need it if |
||||
|
you modified a dependency of a manual page. You may need the |
||||
|
\`Help2man' package in order for those modifications to take |
||||
|
effect. You can get \`Help2man' from any GNU archive site." |
||||
|
|
||||
|
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` |
||||
|
if test -z "$file"; then |
||||
|
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` |
||||
|
fi |
||||
|
if [ -f "$file" ]; then |
||||
|
touch $file |
||||
|
else |
||||
|
test -z "$file" || exec >$file |
||||
|
echo ".ab help2man is required to generate this page" |
||||
|
exit 1 |
||||
|
fi |
||||
|
;; |
||||
|
|
||||
|
makeinfo) |
||||
|
if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then |
||||
|
# We have makeinfo, but it failed. |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
echo 1>&2 "\ |
||||
|
WARNING: \`$1' is missing on your system. You should only need it if |
||||
|
you modified a \`.texi' or \`.texinfo' file, or any other file |
||||
|
indirectly affecting the aspect of the manual. The spurious |
||||
|
call might also be the consequence of using a buggy \`make' (AIX, |
||||
|
DU, IRIX). You might want to install the \`Texinfo' package or |
||||
|
the \`GNU make' package. Grab either from any GNU archive site." |
||||
|
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` |
||||
|
if test -z "$file"; then |
||||
|
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` |
||||
|
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` |
||||
|
fi |
||||
|
touch $file |
||||
|
;; |
||||
|
|
||||
|
tar) |
||||
|
shift |
||||
|
if test -n "$run"; then |
||||
|
echo 1>&2 "ERROR: \`tar' requires --run" |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
# We have already tried tar in the generic part. |
||||
|
# Look for gnutar/gtar before invocation to avoid ugly error |
||||
|
# messages. |
||||
|
if (gnutar --version > /dev/null 2>&1); then |
||||
|
gnutar "$@" && exit 0 |
||||
|
fi |
||||
|
if (gtar --version > /dev/null 2>&1); then |
||||
|
gtar "$@" && exit 0 |
||||
|
fi |
||||
|
firstarg="$1" |
||||
|
if shift; then |
||||
|
case "$firstarg" in |
||||
|
*o*) |
||||
|
firstarg=`echo "$firstarg" | sed s/o//` |
||||
|
tar "$firstarg" "$@" && exit 0 |
||||
|
;; |
||||
|
esac |
||||
|
case "$firstarg" in |
||||
|
*h*) |
||||
|
firstarg=`echo "$firstarg" | sed s/h//` |
||||
|
tar "$firstarg" "$@" && exit 0 |
||||
|
;; |
||||
|
esac |
||||
|
fi |
||||
|
|
||||
|
echo 1>&2 "\ |
||||
|
WARNING: I can't seem to be able to run \`tar' with the given arguments. |
||||
|
You may want to install GNU tar or Free paxutils, or check the |
||||
|
command line arguments." |
||||
|
exit 1 |
||||
|
;; |
||||
|
|
||||
|
*) |
||||
|
echo 1>&2 "\ |
||||
|
WARNING: \`$1' is needed, and you do not seem to have it handy on your |
||||
|
system. You might have modified some files without having the |
||||
|
proper tools for further handling them. Check the \`README' file, |
||||
|
it often tells you about the needed prerequisites for installing |
||||
|
this package. You may also peek at any GNU archive site, in case |
||||
|
some other package would contain this missing \`$1' program." |
||||
|
exit 1 |
||||
|
;; |
||||
|
esac |
||||
|
|
||||
|
exit 0 |
@ -0,0 +1,111 @@ |
|||||
|
#! /bin/sh |
||||
|
# mkinstalldirs --- make directory hierarchy |
||||
|
# Author: Noah Friedman <friedman@prep.ai.mit.edu> |
||||
|
# Created: 1993-05-16 |
||||
|
# Public domain |
||||
|
|
||||
|
errstatus=0 |
||||
|
dirmode="" |
||||
|
|
||||
|
usage="\ |
||||
|
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." |
||||
|
|
||||
|
# process command line arguments |
||||
|
while test $# -gt 0 ; do |
||||
|
case $1 in |
||||
|
-h | --help | --h*) # -h for help |
||||
|
echo "$usage" 1>&2 |
||||
|
exit 0 |
||||
|
;; |
||||
|
-m) # -m PERM arg |
||||
|
shift |
||||
|
test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } |
||||
|
dirmode=$1 |
||||
|
shift |
||||
|
;; |
||||
|
--) # stop option processing |
||||
|
shift |
||||
|
break |
||||
|
;; |
||||
|
-*) # unknown option |
||||
|
echo "$usage" 1>&2 |
||||
|
exit 1 |
||||
|
;; |
||||
|
*) # first non-opt arg |
||||
|
break |
||||
|
;; |
||||
|
esac |
||||
|
done |
||||
|
|
||||
|
for file |
||||
|
do |
||||
|
if test -d "$file"; then |
||||
|
shift |
||||
|
else |
||||
|
break |
||||
|
fi |
||||
|
done |
||||
|
|
||||
|
case $# in |
||||
|
0) exit 0 ;; |
||||
|
esac |
||||
|
|
||||
|
case $dirmode in |
||||
|
'') |
||||
|
if mkdir -p -- . 2>/dev/null; then |
||||
|
echo "mkdir -p -- $*" |
||||
|
exec mkdir -p -- "$@" |
||||
|
fi |
||||
|
;; |
||||
|
*) |
||||
|
if mkdir -m "$dirmode" -p -- . 2>/dev/null; then |
||||
|
echo "mkdir -m $dirmode -p -- $*" |
||||
|
exec mkdir -m "$dirmode" -p -- "$@" |
||||
|
fi |
||||
|
;; |
||||
|
esac |
||||
|
|
||||
|
for file |
||||
|
do |
||||
|
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` |
||||
|
shift |
||||
|
|
||||
|
pathcomp= |
||||
|
for d |
||||
|
do |
||||
|
pathcomp="$pathcomp$d" |
||||
|
case $pathcomp in |
||||
|
-*) pathcomp=./$pathcomp ;; |
||||
|
esac |
||||
|
|
||||
|
if test ! -d "$pathcomp"; then |
||||
|
echo "mkdir $pathcomp" |
||||
|
|
||||
|
mkdir "$pathcomp" || lasterr=$? |
||||
|
|
||||
|
if test ! -d "$pathcomp"; then |
||||
|
errstatus=$lasterr |
||||
|
else |
||||
|
if test ! -z "$dirmode"; then |
||||
|
echo "chmod $dirmode $pathcomp" |
||||
|
lasterr="" |
||||
|
chmod "$dirmode" "$pathcomp" || lasterr=$? |
||||
|
|
||||
|
if test ! -z "$lasterr"; then |
||||
|
errstatus=$lasterr |
||||
|
fi |
||||
|
fi |
||||
|
fi |
||||
|
fi |
||||
|
|
||||
|
pathcomp="$pathcomp/" |
||||
|
done |
||||
|
done |
||||
|
|
||||
|
exit $errstatus |
||||
|
|
||||
|
# Local Variables: |
||||
|
# mode: shell-script |
||||
|
# sh-indentation: 2 |
||||
|
# End: |
||||
|
# mkinstalldirs ends here |
@ -1,19 +0,0 @@ |
|||||
#!/bin/sh |
|
||||
|
|
||||
( |
|
||||
echo '#define VAR(name,decl) name' |
|
||||
echo '#define EV_GENWRAP 1' |
|
||||
cat ev_vars.h |
|
||||
) | cc -E -o - - | perl -ne ' |
|
||||
while (<>) { |
|
||||
push @syms, $1 if /(^\w+)/; |
|
||||
} |
|
||||
print "/* DO NOT EDIT, automatically generated by update_ev_wrap */\n", |
|
||||
"#ifndef EV_WRAP_H\n", |
|
||||
"#define EV_WRAP_H\n", |
|
||||
(map "#define $_ ((loop)->$_)\n", @syms), |
|
||||
"#else\n", |
|
||||
"#undef EV_WRAP_H\n", |
|
||||
(map "#undef $_\n", @syms), |
|
||||
"#endif\n"; |
|
||||
' >ev_wrap.h |
|
@ -1,7 +0,0 @@ |
|||||
#!/bin/sh |
|
||||
|
|
||||
make ev.o event.o || exit |
|
||||
|
|
||||
nm ev.o | perl -ne 'print "$1\n" if /\S+ [A-Z] (\S+)/' > Symbols.ev |
|
||||
nm event.o | perl -ne 'print "$1\n" if /\S+ [A-Z] (\S+)/' > Symbols.event |
|
||||
|
|
@ -0,0 +1,126 @@ |
|||||
|
// Copyright 2006-2009 the V8 project authors. All rights reserved.
|
||||
|
// Redistribution and use in source and binary forms, with or without
|
||||
|
// modification, are permitted provided that the following conditions are
|
||||
|
// met:
|
||||
|
//
|
||||
|
// * Redistributions of source code must retain the above copyright
|
||||
|
// notice, this list of conditions and the following disclaimer.
|
||||
|
// * 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.
|
||||
|
// * Neither the name of Google Inc. 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 COPYRIGHT HOLDERS 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 COPYRIGHT
|
||||
|
// OWNER 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 V8_LOG_INL_H_ |
||||
|
#define V8_LOG_INL_H_ |
||||
|
|
||||
|
#include "log.h" |
||||
|
|
||||
|
namespace v8 { |
||||
|
namespace internal { |
||||
|
|
||||
|
//
|
||||
|
// VMState class implementation. A simple stack of VM states held by the
|
||||
|
// logger and partially threaded through the call stack. States are pushed by
|
||||
|
// VMState construction and popped by destruction.
|
||||
|
//
|
||||
|
#ifdef ENABLE_LOGGING_AND_PROFILING |
||||
|
inline const char* StateToString(StateTag state) { |
||||
|
switch (state) { |
||||
|
case JS: |
||||
|
return "JS"; |
||||
|
case GC: |
||||
|
return "GC"; |
||||
|
case COMPILER: |
||||
|
return "COMPILER"; |
||||
|
case OTHER: |
||||
|
return "OTHER"; |
||||
|
default: |
||||
|
UNREACHABLE(); |
||||
|
return NULL; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
VMState::VMState(StateTag state) : disabled_(true) { |
||||
|
if (!Logger::is_logging()) { |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
disabled_ = false; |
||||
|
#if !defined(ENABLE_HEAP_PROTECTION) |
||||
|
// When not protecting the heap, there is no difference between
|
||||
|
// EXTERNAL and OTHER. As an optimization in that case, we will not
|
||||
|
// perform EXTERNAL->OTHER transitions through the API. We thus
|
||||
|
// compress the two states into one.
|
||||
|
if (state == EXTERNAL) state = OTHER; |
||||
|
#endif |
||||
|
state_ = state; |
||||
|
previous_ = Logger::current_state_; |
||||
|
Logger::current_state_ = this; |
||||
|
|
||||
|
if (FLAG_log_state_changes) { |
||||
|
LOG(UncheckedStringEvent("Entering", StateToString(state_))); |
||||
|
if (previous_ != NULL) { |
||||
|
LOG(UncheckedStringEvent("From", StateToString(previous_->state_))); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#ifdef ENABLE_HEAP_PROTECTION |
||||
|
if (FLAG_protect_heap && previous_ != NULL) { |
||||
|
if (state_ == EXTERNAL) { |
||||
|
// We are leaving V8.
|
||||
|
ASSERT(previous_->state_ != EXTERNAL); |
||||
|
Heap::Protect(); |
||||
|
} else if (previous_->state_ == EXTERNAL) { |
||||
|
// We are entering V8.
|
||||
|
Heap::Unprotect(); |
||||
|
} |
||||
|
} |
||||
|
#endif |
||||
|
} |
||||
|
|
||||
|
|
||||
|
VMState::~VMState() { |
||||
|
if (disabled_) return; |
||||
|
Logger::current_state_ = previous_; |
||||
|
|
||||
|
if (FLAG_log_state_changes) { |
||||
|
LOG(UncheckedStringEvent("Leaving", StateToString(state_))); |
||||
|
if (previous_ != NULL) { |
||||
|
LOG(UncheckedStringEvent("To", StateToString(previous_->state_))); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#ifdef ENABLE_HEAP_PROTECTION |
||||
|
if (FLAG_protect_heap && previous_ != NULL) { |
||||
|
if (state_ == EXTERNAL) { |
||||
|
// We are reentering V8.
|
||||
|
ASSERT(previous_->state_ != EXTERNAL); |
||||
|
Heap::Unprotect(); |
||||
|
} else if (previous_->state_ == EXTERNAL) { |
||||
|
// We are leaving V8.
|
||||
|
Heap::Protect(); |
||||
|
} |
||||
|
} |
||||
|
#endif |
||||
|
} |
||||
|
#endif |
||||
|
|
||||
|
|
||||
|
} } // namespace v8::internal
|
||||
|
|
||||
|
#endif // V8_LOG_INL_H_
|
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue