What is syacall/libc function df comannd call.

  • Atemu
    link
    2118 days 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
      418 days 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
        link
        fedilink
        16
        edit-2
        18 days 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
        link
        217 days ago

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

  • WasPentalive
    link
    fedilink
    418 days 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)