mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-24 20:32:04 +00:00
Add ToC and some kbd markup
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
5c7a6f1163
commit
2a6697d514
1 file changed
+21
-7
@@ -3,6 +3,20 @@ libuEv | Simple event loop for Linux
|
|||||||
[](https://travis-ci.org/troglobit/libuev)
|
[](https://travis-ci.org/troglobit/libuev)
|
||||||
[](https://scan.coverity.com/projects/3846)
|
[](https://scan.coverity.com/projects/3846)
|
||||||
|
|
||||||
|
|
||||||
|
Table of Contents
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
* [Introduction](#introduction)
|
||||||
|
* [API](#api)
|
||||||
|
* [Example](#example)
|
||||||
|
* [Build & Install](#build--install)
|
||||||
|
* [Origin & References](#origin--references)
|
||||||
|
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
------------
|
||||||
|
|
||||||
> “Why an event loop, why not use threads?”
|
> “Why an event loop, why not use threads?”
|
||||||
|
|
||||||
With the advent of light-weight processes (threads) programmers these
|
With the advent of light-weight processes (threads) programmers these
|
||||||
@@ -167,15 +181,15 @@ int main(void)
|
|||||||
To compile the program, save the code as `joystick.c` and call GCC with
|
To compile the program, save the code as `joystick.c` and call GCC with
|
||||||
`gcc -o joystick joystick.c io.c timer.c signal.c main.c` from this
|
`gcc -o joystick joystick.c io.c timer.c signal.c main.c` from this
|
||||||
directory, skips using a Makefile altogether. Alternatively, call the
|
directory, skips using a Makefile altogether. Alternatively, call the
|
||||||
`Makefile` with `make joystick` from this directory.
|
`Makefile` with <kbd>make joystick</kbd> from this directory.
|
||||||
|
|
||||||
For a more complete, and perhaps more relevant example, see the code for
|
For a more complete, and perhaps more relevant example, see the code for
|
||||||
the TFTP/FTP server [uftpd](https://github.com/troglobit/uftpd). It
|
the TFTP/FTP server [uftpd](https://github.com/troglobit/uftpd). It
|
||||||
uses libuEv as a GIT submodule.
|
uses libuEv as a GIT submodule.
|
||||||
|
|
||||||
Also, see the `bench.c` program (`make bench` from within the library)
|
Also, see the `bench.c` program (<kbd>make bench</kbd> from within the
|
||||||
for [reference benchmarks](http://libev.schmorp.de/bench.html) against
|
library) for [reference benchmarks](http://libev.schmorp.de/bench.html)
|
||||||
libevent and libev.
|
against libevent and libev.
|
||||||
|
|
||||||
|
|
||||||
Build & Install
|
Build & Install
|
||||||
@@ -186,9 +200,9 @@ use GCC and GNU Make specific extensions here and there. This is not on
|
|||||||
purpose and patches to correct this are most welcome. Particularly
|
purpose and patches to correct this are most welcome. Particularly
|
||||||
patches to support *BSD and its kqueue interface.
|
patches to support *BSD and its kqueue interface.
|
||||||
|
|
||||||
* `make all`: The library
|
* <kbd>make all</kbd>: The library
|
||||||
* `make test`: Test and showcase
|
* <kbd>make test</kbd>: Test and showcase
|
||||||
* `make install`: Honors `$prefix` and `$DESTDIR` environment variables
|
* <kbd>make install</kbd>: Honors `$prefix` and `$DESTDIR` environment variables
|
||||||
|
|
||||||
Size of libuEv:
|
Size of libuEv:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user