{"id":21819936,"url":"https://github.com/dmoj/setbufsize.so","last_synced_at":"2026-05-18T11:35:48.564Z","repository":{"id":78821108,"uuid":"181383349","full_name":"DMOJ/setbufsize.so","owner":"DMOJ","description":"LD_PRELOAD library for controlling standard stream buffer sizes.","archived":false,"fork":false,"pushed_at":"2019-04-22T23:31:55.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-26T07:23:25.042Z","etag":null,"topics":["buffering","linux","override","unbuffered"],"latest_commit_sha":null,"homepage":"https://dmoj.ca/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DMOJ.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":"2019-04-14T23:59:25.000Z","updated_at":"2020-01-28T14:21:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d2e99d3-7f14-44fe-8255-adc70a6163ae","html_url":"https://github.com/DMOJ/setbufsize.so","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMOJ%2Fsetbufsize.so","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMOJ%2Fsetbufsize.so/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMOJ%2Fsetbufsize.so/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMOJ%2Fsetbufsize.so/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DMOJ","download_url":"https://codeload.github.com/DMOJ/setbufsize.so/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244782351,"owners_count":20509805,"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":["buffering","linux","override","unbuffered"],"created_at":"2024-11-27T16:27:16.188Z","updated_at":"2026-05-18T11:35:43.533Z","avatar_url":"https://github.com/DMOJ.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# setbufsize.so [![Linux Build Status](https://travis-ci.org/DMOJ/setbufsize.so.svg?branch=master)](https://travis-ci.org/DMOJ/setbufsize.so)\n\n`LD_PRELOAD` library for controlling standard stream buffer sizes.\n\nYou can grab prebuilt 32- and 64-bit binaries from the [Releases](https://github.com/DMOJ/setbufsize/releases) tab.\nThese are built by [Travis](https://travis-ci.org/DMOJ/setbufsize) on a [CentOS 5 Docker image](https://github.com/pypa/manylinux),\nso they should \"just work\" on any Linux distribution newer than that.\n\n## Example Usage\n\nFor instance, if you wished to set the `stdout` of a program `app` to be unbuffered when connected to a terminal\n(rather than the default line-buffering), the invocation would be:\n\n```bash\n$ LD_PRELOAD=/path/to/setbufsize64.so STDOUT_BUFFER_SIZE=0 ./app\n```\n\n`STDERR_BUFFER_SIZE` does the obvious thing, for `stderr`.\n\n## Caveats\n\nDue to its nature as an `LD_PRELOAD` object, `setbufsize` requires the target program to use `libc` for its output,\nand furthermore be dynamically linked.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmoj%2Fsetbufsize.so","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmoj%2Fsetbufsize.so","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmoj%2Fsetbufsize.so/lists"}