What is syacall/libc function df comannd call.

  • Atemu@lemmy.ml
    link
    fedilink
    arrow-up
    21
    arrow-down
    1
    ·
    7 months ago

    Why is this being downvoted? It’s clearly labelled as Japanese; if you don’t want to see foreign languages, filter them out.

    • nmtake@lemm.ee
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      7 months ago

      One of the reasons is it makes moderation (including soft moderation by users like downvotes or reports) harder. Users not familiar with Japanese can’t decide whether the post follows the rule and is on topic.

      • astraeus@programming.dev
        link
        fedilink
        arrow-up
        15
        ·
        edit-2
        7 months ago

        There are no rules against non-English posts. If you can’t understand it, don’t vote against it. That’s a discriminatory reaction, just keep scrolling if you don’t read Japanese. If the mods want to restrict languages, they have every ability to do so.

      • Atemu@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        7 months ago

        Not that I can tell; just an explanation how df works on Linux and macOS.

  • WasPentalive@lemmy.one
    link
    fedilink
    arrow-up
    5
    ·
    7 months ago

    You can check the CPU and memory statistics by looking at the files under /proc, but I was wondering how to get the file system capacity, so I looked at the df(1) code. . coreutils: df.c coreutils: fusage.c macOS: df.c Here is the code prepared to verify the operation of the library. Code to find out what df uses to output · GitHub For Linux On Linux, file system information can be obtained using statvfs(3). Although this is treated as a wrapper for the statfs(2) system call, it is basically recommended to use statvfs(3). (Via google translate)