summaryrefslogtreecommitdiff
path: root/docs/examples/ephiperfifo.c
Commit message (Collapse)AuthorAgeFilesLines
* copyright: update mismatched copyright yearsDaniel Stenberg2020-06-221-1/+1
|
* examples/ephiperfifo: turn off interval when setting timerfdkotoriのねこ2020-06-021-3/+3
| | | | | | Reported-by: therealhirudo on github Fixes #5485 Closes #5497
* defines: avoid underscore-prefixed definesDaniel Stenberg2019-08-231-8/+8
| | | | | | | | | | | Double-underscored or underscore plus uppercase letter at least. ... as they're claimed to be reserved. Reported-by: patnyb on github Fixes #4254 Closes #4255
* examples: Avoid reserved names in hiperfifo examplesBrad Spencer2019-07-251-15/+11
| | | | | | | | | | | | | | | - Trade in __attribute__((unused)) for the classic (void)x to silence unused symbols. Because the classic way is not gcc specific. Also because the prior method mapped to symbol _Unused, which starts with _ and a capital letter which is reserved. Assisted-by: The Infinnovation team Bug: https://github.com/curl/curl/issues/4120#issuecomment-512542108 Closes https://github.com/curl/curl/pull/4153
* examples: fix "clarify calculation precedence" warningsMarcel Raad2019-05-221-4/+4
| | | | Closes https://github.com/curl/curl/pull/3919
* examples: reduce variable scopesMarcel Raad2019-05-221-4/+3
| | | | Closes https://github.com/curl/curl/pull/3919
* examples: remove unused variablesMarcel Raad2019-05-211-2/+2
| | | | | | Fixes Codacy/CppCheck warnings. Closes
* cleanup: remove FIXME and TODO commentsDaniel Stenberg2019-05-161-3/+0
| | | | | | | | | They serve very little purpose and mostly just add noise. Most of them have been around for a very long time. I read them all before removing or rephrasing them. Ref: #3876 Closes #3883
* examples: only include <curl/curl.h>Daniel Stenberg2019-03-051-2/+1
| | | | | | | That's the only public curl header we should encourage use of. Reviewed-by: Marcel Raad Closes #3645
* examples: various fixes in ephiperfifo.cArnaud Rebillout2019-03-011-9/+12
| | | | | | | | | | | | | | | | | | | | The main change here is the timer value that was wrong, it was given in usecs (ms * 1000), while the itimerspec struct wants nsecs (ms * 1000 * 1000). This resulted in the callback being invoked WAY TOO OFTEN. As a quick check you can run this command before and after applying this commit: # shell 1 ./ephiperfifo 2>&1 | tee ephiperfifo.log # shell 2 echo http://hacking.elboulangero.com > hiper.fifo Then just compare the size of the logs files. Closes #3633 Fixes #3632 Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
* examples/ephiperfifo: report error when epoll_ctl failsRomain Fliedel2018-11-201-3/+9
|
* examples/ephiperfifo: checksrc complianceJay Satiro2018-07-291-19/+26
|
* docs/examples: add hiperfifo example using linux epoll/timerfdJosh Bialkowski2018-07-281-0/+540
Closes #2804