1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/runtime/ops
Divy Srivastava ab7e80bde4
chore(runtime): remove dependency on sys-info crate (#16441)
Fixes #9862 

`loadavg`

| Target family | Syscall | Description |
| ------------- | ------- | ----------- |
| Linux | `sysinfo` | - |
| Windows | - | Returns `DEFAULT_LOADAVG`. There is no concept of
loadavg on Windows |
| macOS, BSD | `getloadavg` |
https://www.freebsd.org/cgi/man.cgi?query=getloadavg |

`os_release`

| Target family | Syscall | Description |
| ------------- | ------- | ----------- |
| Linux | `/proc/sys/kernel/osrelease` | - |
| Windows |
[`RtlGetVersion`](https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-rtlgetversion)
| dwMajorVersion . dwMinorVersion . dwBuildNumber |
| macOS | `sysctl([CTL_KERN, KERN_OSRELEASE])` | - |

`hostname`

| Target family | Syscall | Description |
| ------------- | ------- | ----------- |
| Unix | `gethostname(sysconf(_SC_HOST_NAME_MAX))` | - |
| Windows | `GetHostNameW` | - |

`mem_info`

| Target family | Syscall | Description |
| ------------- | ------- | ----------- |
| Linux | sysinfo | - |
| Windows | `sysinfoapi::GlobalMemoryStatusEx` | - |
| macOS | <br> <pre> sysctl([CTL_HW, HW_MEMSIZE]); <br> sysctl([CTL_VM,
VM_SWAPUSAGE]); <br> host_statistics64(mach_host_self(), HOST_VM_INFO64)
</pre> | - |
2022-11-02 12:47:00 +05:30
..
os chore(runtime): remove dependency on sys-info crate (#16441) 2022-11-02 12:47:00 +05:30
web_worker feat(core): codegen ops (#13861) 2022-03-14 18:44:15 +01:00
fs.rs feat: stabilize Deno.utime() and Deno.utimeSync() (#16421) 2022-10-25 15:23:36 -04:00
fs_events.rs feat: Add requesting API name to permission prompt (#15936) 2022-09-27 22:36:33 +02:00
http.rs fix(ext/net): return an error from startTls and serveHttp if the original connection is captured elsewhere (#16242) 2022-10-18 11:28:27 +09:00
io.rs feat(core): improve resource read & write traits (#16115) 2022-10-09 14:49:25 +00:00
mod.rs feat(runtime): two-tier subprocess API (#11618) 2022-04-21 00:20:33 +02:00
permissions.rs refactor(cli): use shared sys kind parser in flags.rs (#16087) 2022-09-29 19:34:16 +09:00
process.rs feat: Add requesting API name to permission prompt (#15936) 2022-09-27 22:36:33 +02:00
runtime.rs feat: Add requesting API name to permission prompt (#15936) 2022-09-27 22:36:33 +02:00
signal.rs feat(runtime/signal): implement SIGINT and SIGBREAK for windows (#14694) 2022-06-13 22:39:46 +02:00
spawn.rs feat(unstable): add windowsRawArguments to SpawnOptions (#16319) 2022-10-17 19:51:25 +09:00
tty.rs feat: Stabilize Deno.consoleSize() API (#15933) 2022-10-26 00:23:21 +02:00
utils.rs chore: fix flaky stdout_write_all test (#15772) 2022-09-05 09:05:48 -04:00
web_worker.rs perf(runtime): short-circuit queue_async_op for Poll::Ready (#15773) 2022-09-06 23:08:37 +05:30
worker_host.rs feat(runtime): add pre_execute_module_cb (#15485) 2022-08-16 21:00:35 -04:00