aboutsummaryrefslogtreecommitdiff
path: root/docs/code
Commit message (Collapse)AuthorAge
* doc: free lib pointer before function return (#4720)mugitya032025-03-09
| | | | | | In function main, the pointer lib allocated at line 7 is passed as an argument to functions uv_dlopen at line 10, uv_dlerror at lines 11 and 17, and uv_dlsym at line 16, but it is never freed before the function returns at line 24. This results in a memory leak bug.
* doc: fix tty example segfault (#4322)hiiizxf2024-02-28
| | | Fixes: https://github.com/libuv/libuv/issues/4303
* docs: delete code Makefile (#3883)Jameson Nash2023-01-18
| | | | This Makefile was a fairly poor sample, while now we have CMake for these to use for testing.
* doc: make sample cross-platform build (#3592)Jiawen Geng2022-04-11
| | | Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
* doc/guide: update content and sample code (#3408)woclass2022-01-31
| | | | | | | | | | | | | | | | | | | | - Add `Makefile` for example codes. (cherry-pick from old uvbook repo) - Add a new example "Default loop" to "Basics of libuv"/"Default loop" - Document review and update: `Introduction`, `Basics of libuv`, `Filesystem` + Update the referenced libuv code snippet + Link update: http->https **Content Updates**: - `filesystem.rst`#L291-L297: Add note for `uv_fs_event_start` - `filesystem.rst`#L334: Add description of the callback function parameter `status` The following examples have been tested manually in WSL2 (Ubuntu 20.04) with libuv 1.42.0: - helloworld - default-loop - idle-basic - uvcat - uvtee - onchange (test on macOS) Co-authored-by: Nikhil Marathe <nsm.nikhil@gmail.com>
* doc: switch discussion forum to githubJameson Nash2021-06-30
| | | | | | | | | Freenode is gone (replaced by Libera.chat), but IRC was unused anyways. Fixes: https://github.com/libuv/libuv/issues/3157 Fixes: https://github.com/libuv/libuv/issues/3208 PR-URL: https://github.com/libuv/libuv/pull/3214 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
* doc: fix the order of arguments to calloc()MasterDuke172020-05-17
| | | | | PR-URL: https://github.com/libuv/libuv/pull/2835 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* stream: autodetect directionJameson Nash2018-09-19
| | | | | | | | | | | | | Previously, we required the user to specify the expected read/write flags for a pipe or tty. But we've already been asking the OS to tell us what they actually are (fcntl F_GETFL), so we can hopefully just use that information directly. Fixes: https://github.com/libuv/libuv/issues/1936 PR-URL: https://github.com/libuv/libuv/pull/1964 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
* doc: use valid pipe name in pipe-echo-serverBernardo Ramos2017-05-30
| | | | | | PR-URL: https://github.com/libuv/libuv/pull/1330 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* doc: fix memory leak in tcp-echo-server exampleBernardo Ramos2017-05-29
| | | | | | | Fixes: https://github.com/libuv/help/issues/4 PR-URL: https://github.com/libuv/libuv/pull/1363 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* doc: add code samples from uvbook (unadapted)Saúl Ibarra Corretgé2017-04-28
PR-URL: https://github.com/libuv/libuv/pull/1246 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>