{ "name": "libuv", "version": "1.53.0", "summary": "libuv: the asynchronous I/O event loop of Node.js (sockets, timers, files, processes, threads), for BIND 9 and ttyd", "category": "library", "license": "MIT", "homepage": "https://libuv.org/", "source": { "url": "https://dist.libuv.org/dist/v1.53.0/libuv-v1.53.0.tar.gz", "sha256": "cb0d6dd2128d5a95bd242c6cc982a24fe608fa93da57b6b4ec763b0018c53e64" }, "watch": {"kind": "index", "url": "https://dist.libuv.org/dist/", "regex": "v([0-9]+(?:\\.[0-9]+)+)/", "source": "https://dist.libuv.org/dist/v{version}/libuv-v{version}.tar.gz"}, "deps": [], "env_packages": [], "static": true, "nss": true, "check": "check_lib libuv uv.h 'uv_loop_t *l = uv_default_loop(); uv_timer_t tm; uv_fs_t w, r; static int fired; static char buf[16]; uv_buf_t b; char p[] = \"/tmp/bvs-uv-XXXXXX\"; int fd = mkstemp(p); if (fd < 0) return 1; void cb(uv_timer_t *h) { fired++; uv_close((uv_handle_t *)h, NULL); } uv_timer_init(l, &tm); uv_timer_start(&tm, cb, 20, 0); b = uv_buf_init(\"bvs-libuv\", 9); if (uv_fs_write(l, &w, fd, &b, 1, 0, NULL) != 9) return 2; b = uv_buf_init(buf, sizeof buf); if (uv_fs_read(l, &r, fd, &b, 1, 0, NULL) != 9) return 3; uv_run(l, UV_RUN_DEFAULT); close(fd); unlink(p); printf(\"libuv %s: a timer fired %d time, \\\"%.9s\\\" written and read back\\n\", uv_version_string(), fired, buf); return fired != 1 || memcmp(buf, \"bvs-libuv\", 9)'" }