GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    :suya: (newt@stereophonic.space)'s status on Tuesday, 24-Mar-2026 02:48:39 JST:suya::suya:
    in reply to
    • SuperDicq
    • Phantasm

    @SuperDicq @phnt

    GNU Cat actually performs better than Busybox Cat because it does actual buffering and mmap trickery so it can handle large files better.

    Or they could just

    for(int i = 1; i < argc; i++) { struct stat st; stat(argv[i], &st); int fd = open(argv[i], O_RDONLY); sendfile(stdout, fd, NULL, st.st_size); close(fd); }

    Here. That's the entire cat for you, give or take error handling.

    In conversationabout 7 months ago from stereophonic.spacepermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.