{"id":19730576,"url":"https://github.com/begriffs/ringfifo","last_synced_at":"2025-02-27T20:22:24.186Z","repository":{"id":141768210,"uuid":"441303698","full_name":"begriffs/ringfifo","owner":"begriffs","description":"Nonblocking multi-use named pipes","archived":false,"fork":false,"pushed_at":"2021-12-23T21:53:30.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-10T17:50:14.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/begriffs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-23T21:53:11.000Z","updated_at":"2022-01-10T09:50:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"42c752a8-04d3-4259-8b2c-b1363bb37976","html_url":"https://github.com/begriffs/ringfifo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/begriffs%2Fringfifo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/begriffs%2Fringfifo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/begriffs%2Fringfifo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/begriffs%2Fringfifo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/begriffs","download_url":"https://codeload.github.com/begriffs/ringfifo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241055934,"owners_count":19901686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T00:16:50.358Z","updated_at":"2025-02-27T20:22:24.180Z","avatar_url":"https://github.com/begriffs.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Nonblocking multi-use named pipes\n\nRingfifo manages two named pipes to create a virtual fifo. As long as the\nprogram is running, writers are never blocked, and readers never get an EOF.\n\n```sh\n# create foo.in, foo.out and wait for data\n$ ringfifo foo \u0026\n\n# echo returns right away\n$ echo hi \u003e foo.in\n\n# empties buffer, waits for more\n$ cat foo.out\nhi\n```\n\nIn that example, you can pipe more data to `foo.in` and `cat` will continue to\nprint it. If you terminate `cat`, then `ringfifo` will again queue incoming\nlines for later.\n\nThe program has a configurable internal line limit, at which point it'll drop\nold lines from the buffer to make room for new lines.\n\n### Usage\n\n```\nringfifo fifo-name [max-lines]\n```\n\n* `fifo-name` base name of the virtual fifo. Creates named pipes `fifo-name.in`\n  and `fifo-name.out`.\n* `max-lines` line limit of the internal ring buffer. Default 8192.\n\nEach buffered line is currently limited to `BUFSIZ` characters. I haven't taken\nthe time to make that configurable, but it's an easy change.\n\n### Building\n\nRequires POSIX and [libderp](https://github.com/begriffs/libderp) 0.1.0.\nInstall libderp, and run `make`. The library will be statically linked into the\nexecutable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbegriffs%2Fringfifo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbegriffs%2Fringfifo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbegriffs%2Fringfifo/lists"}