Skip to content

Commit aa7753a

Browse files
authored
Merge pull request #2 from lindig/master
Administrative updates after fork
2 parents 713ffc0 + 6af0eb8 commit aa7753a

2 files changed

Lines changed: 19 additions & 24 deletions

File tree

README.md

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,40 @@
1-
2-
![Build Status](https://github.com/lindig/polly/actions/workflows/workflow.yml/badge.svg)
1+
![Build Status](https://github.com/xapi-project/polly/actions/workflows/workflow.yml/badge.svg)
32

43
# Polly
54

65
Polly is an [OCaml] binding for the Linux [epoll] system call:
76

8-
* Small, simple, and self-contained
9-
* Avoids most allocation in the event loop
10-
* MIT licensed
7+
- Small, simple, and self-contained
8+
- Avoids most allocation in the event loop
9+
- MIT licensed
1110

1211
Note that [epoll] is specific to Linux and that this library won't
1312
compile on macOS, for example.
1413

15-
## Installation
16-
17-
As of version 0.2.2, Polly is now in [Opam] and can be installed from
18-
there:
19-
20-
```
21-
opam install polly
22-
```
14+
## Fork
2315

24-
Most recently version 0.4.1 was [submitted] to [Opam].
16+
This repository is a fork from https://github.com/lindig/polly, which up to
17+
version 0.4.1 is the source for the polly package in [Opam].
2518

2619
## Using inside utop
2720

28-
* `make utop` or
29-
* `dune utop`
21+
- `make utop` or
22+
- `dune utop`
3023

3124
launches a utop toplevel that has the library loaded for interactive
3225
use.
3326

34-
3527
## Other Epoll Bindings
3628

37-
* [OCaml Backpack](https://github.com/jimenezrick/ocaml-backpack/)
38-
* [Jane Street Core](https://github.com/janestreet/core)
29+
- [OCaml Backpack](https://github.com/jimenezrick/ocaml-backpack/)
30+
- [Jane Street Core](https://github.com/janestreet/core)
3931

4032
## Contribute
4133

4234
If you find this useful, please contribute back by raising pull
4335
requests for improvements you made.
4436

45-
[OCaml]: https://www.ocaml.org/
46-
[epoll]: http://man7.org/linux/man-pages/man2/epoll_wait.2.html
47-
[Opam]: http://opam.ocaml.org/
37+
[OCaml]: https://www.ocaml.org/
38+
[epoll]: http://man7.org/linux/man-pages/man2/epoll_wait.2.html
39+
[Opam]: http://opam.ocaml.org/
4840
[submitted]: https://github.com/ocaml/opam-repository/pull/24212
49-

src/constants.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
/*
2+
* This code is used at compile time to generate OCaml code for constants
3+
* to use the epoll bindings.
4+
*/
5+
16
#include <sys/epoll.h>
27
#include <sys/eventfd.h>
38
#include <stdio.h>
4-
#include <stdlib.h>
59

610
void constant(const char *name, int value)
711
{

0 commit comments

Comments
 (0)