diff options
author | Liav A <liavalb@gmail.com> | 2022-10-14 21:53:04 +0300 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-10-25 15:33:34 -0600 |
commit | c8a7a3e43fba6f6b1fb1cad986584eae4779bb4e (patch) | |
tree | a6ed04c29a2a4e42b744b02ccac35521e3105b11 /Ports/libuv | |
parent | 78ca32d14c13099ec303748183e7e91ae6c68572 (diff) | |
download | serenity-c8a7a3e43fba6f6b1fb1cad986584eae4779bb4e.zip |
Ports/libuv: Use new global variables at /sys/kernel/ directory
Diffstat (limited to 'Ports/libuv')
-rw-r--r-- | Ports/libuv/patches/0007-build-Add-platform-specific-stubs-and-implementation.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ports/libuv/patches/0007-build-Add-platform-specific-stubs-and-implementation.patch b/Ports/libuv/patches/0007-build-Add-platform-specific-stubs-and-implementation.patch index fe3d46298b..46c872d94b 100644 --- a/Ports/libuv/patches/0007-build-Add-platform-specific-stubs-and-implementation.patch +++ b/Ports/libuv/patches/0007-build-Add-platform-specific-stubs-and-implementation.patch @@ -66,9 +66,9 @@ index 0000000..5c34b75 +static uint64_t uv__read_proc_memstat(const char* what) { + uint64_t rc; + char* p; -+ char buf[4096]; /* Large enough to hold all of /proc/memstat. */ ++ char buf[4096]; /* Large enough to hold all of /sys/kernel/memstat. */ + -+ if (uv__slurp("/proc/memstat", buf, sizeof(buf))) ++ if (uv__slurp("/sys/kernel/memstat", buf, sizeof(buf))) + return 0; + + p = strstr(buf, what); @@ -104,9 +104,9 @@ index 0000000..5c34b75 + struct timespec now; + int r; + -+ /* Try /proc/uptime first, then fallback to clock_gettime(). */ ++ /* Try /sys/kernel/uptime first, then fallback to clock_gettime(). */ + -+ if (0 == uv__slurp("/proc/uptime", buf, sizeof(buf))) ++ if (0 == uv__slurp("/sys/kernel/uptime", buf, sizeof(buf))) + if (1 == sscanf(buf, "%lf", uptime)) + return 0; + |