… | |
… | |
1713 | otherwise another method will be used as fallback. This is the preferred |
1713 | otherwise another method will be used as fallback. This is the preferred |
1714 | backend for \s-1BSD\s0 and BSD-like systems, although on most BSDs kqueue only |
1714 | backend for \s-1BSD\s0 and BSD-like systems, although on most BSDs kqueue only |
1715 | supports some types of fds correctly (the only platform we found that |
1715 | supports some types of fds correctly (the only platform we found that |
1716 | supports ptys for example was NetBSD), so kqueue might be compiled in, but |
1716 | supports ptys for example was NetBSD), so kqueue might be compiled in, but |
1717 | not be used unless explicitly requested. The best way to use it is to find |
1717 | not be used unless explicitly requested. The best way to use it is to find |
1718 | out wether kqueue supports your type of fd properly and use an embedded |
1718 | out whether kqueue supports your type of fd properly and use an embedded |
1719 | kqueue loop. |
1719 | kqueue loop. |
1720 | .IP "\s-1EV_USE_PORT\s0" 4 |
1720 | .IP "\s-1EV_USE_PORT\s0" 4 |
1721 | .IX Item "EV_USE_PORT" |
1721 | .IX Item "EV_USE_PORT" |
1722 | If defined to be \f(CW1\fR, libev will compile in support for the Solaris |
1722 | If defined to be \f(CW1\fR, libev will compile in support for the Solaris |
1723 | 10 port style backend. Its availability will be detected at runtime, |
1723 | 10 port style backend. Its availability will be detected at runtime, |
… | |
… | |
1797 | .Sp |
1797 | .Sp |
1798 | The usage in rxvt-unicode is simpler. It has a \fIev_cpp.h\fR header file |
1798 | The usage in rxvt-unicode is simpler. It has a \fIev_cpp.h\fR header file |
1799 | that everybody includes and which overrides some autoconf choices: |
1799 | that everybody includes and which overrides some autoconf choices: |
1800 | .Sp |
1800 | .Sp |
1801 | .Vb 4 |
1801 | .Vb 4 |
1802 | \& #define EV_USE_POLL 0 |
1802 | \& #define EV_USE_POLL 0 |
1803 | \& #define EV_MULTIPLICITY 0 |
1803 | \& #define EV_MULTIPLICITY 0 |
1804 | \& #define EV_PERIODICS 0 |
1804 | \& #define EV_PERIODICS 0 |
1805 | \& #define EV_CONFIG_H <config.h> |
1805 | \& #define EV_CONFIG_H <config.h> |
1806 | .Ve |
1806 | .Ve |
1807 | .Sp |
1807 | .Sp |
1808 | .Vb 1 |
1808 | .Vb 1 |
1809 | \& #include "ev++.h" |
1809 | \& #include "ev++.h" |
1810 | .Ve |
1810 | .Ve |
1811 | .Sp |
1811 | .Sp |
1812 | And a \fIev_cpp.C\fR implementation file that contains libev proper and is compiled: |
1812 | And a \fIev_cpp.C\fR implementation file that contains libev proper and is compiled: |
1813 | .Sp |
1813 | .Sp |
1814 | .Vb 1 |
|
|
1815 | \& #include "rxvttoolkit.h" |
|
|
1816 | .Ve |
|
|
1817 | .Sp |
|
|
1818 | .Vb 2 |
1814 | .Vb 2 |
1819 | \& /* darwin has problems with its header files in C++, requiring this namespace juggling */ |
1815 | \& #include "ev_cpp.h" |
1820 | \& using namespace ev; |
|
|
1821 | .Ve |
|
|
1822 | .Sp |
|
|
1823 | .Vb 1 |
|
|
1824 | \& #include "ev.c" |
1816 | \& #include "ev.c" |
1825 | .Ve |
1817 | .Ve |
1826 | .SH "AUTHOR" |
1818 | .SH "AUTHOR" |
1827 | .IX Header "AUTHOR" |
1819 | .IX Header "AUTHOR" |
1828 | Marc Lehmann <libev@schmorp.de>. |
1820 | Marc Lehmann <libev@schmorp.de>. |