File tree 4 files changed +669
-0
lines changed
4 files changed +669
-0
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,4 @@ ForEachMacros:
24
24
- hlist_for_each_entry
25
25
- rb_list_foreach
26
26
- rb_list_foreach_safe
27
+ - EV_FOREACH
Original file line number Diff line number Diff line change 12
12
- [ map-reduce] ( map-reduce/ ) : word counting using MapReduce.
13
13
- [ mpmc] ( mpmc/ ) : A multiple-producer/multiple-consumer (MPMC) queue.
14
14
- [ channel] ( channel/ ) : A Linux futex based Go channel implementation.
15
+ - [ redirect] ( redirect/ ) : An I/O multiplexer to monitor stdin redirect using ` timerfd ` and ` epoll ` .
15
16
16
17
## License
17
18
Original file line number Diff line number Diff line change
1
+ all :
2
+ gcc -Wall -Wextra -o redirect main.c
3
+
4
+ indent :
5
+ clang-format -i main.c
6
+ cloc main.c
7
+
8
+ check : all
9
+ (cat /proc/uptime ; sleep 2; cat /proc/uptime; sleep 2; cat /proc/uptime; sleep 2; cat /proc/uptime) | ./redirect
10
+ clean :
11
+ rm -f redirect
You can’t perform that action at this time.
0 commit comments