summaryrefslogtreecommitdiff
path: root/deps/uv/src/unix/cygwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/uv/src/unix/cygwin.c')
-rw-r--r--deps/uv/src/unix/cygwin.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/uv/src/unix/cygwin.c b/deps/uv/src/unix/cygwin.c
index 91681248e9..bafe83bfb3 100644
--- a/deps/uv/src/unix/cygwin.c
+++ b/deps/uv/src/unix/cygwin.c
@@ -36,6 +36,11 @@ uint64_t uv_hrtime() {
return (ts.tv_sec * NANOSEC + ts.tv_nsec);
}
+void uv_loadavg(double avg[3]) {
+ /* Unsupported as of cygwin 1.7.7 */
+ avg[0] = avg[1] = avg[2] = 0;
+}
+
int uv_exepath(char* buffer, size_t* size) {
uint32_t usize;
@@ -53,6 +58,13 @@ int uv_exepath(char* buffer, size_t* size) {
return 0;
}
+double uv_get_free_memory(void) {
+ return (double) sysconf(_SC_PAGESIZE) * sysconf(_SC_AVPHYS_PAGES);
+}
+
+double uv_get_total_memory(void) {
+ return (double) sysconf(_SC_PAGESIZE) * sysconf(_SC_PHYS_PAGES);
+}
int uv_fs_event_init(uv_loop_t* loop,
uv_fs_event_t* handle,