summaryrefslogtreecommitdiff
path: root/deps/uv/src/unix/cygwin.c
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-10-04 16:53:17 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-10-04 16:53:20 -0700
commit627f379f2273341426ab3d5cb7eb4d5c148d500a (patch)
tree70e7a29423d2572db04fd16ce664396e9bbf0426 /deps/uv/src/unix/cygwin.c
parentbc7cfd7cd7c2e513a9ac9a2820f3b6f7331735b5 (diff)
downloadandroid-node-v8-627f379f2273341426ab3d5cb7eb4d5c148d500a.tar.gz
android-node-v8-627f379f2273341426ab3d5cb7eb4d5c148d500a.tar.bz2
android-node-v8-627f379f2273341426ab3d5cb7eb4d5c148d500a.zip
upgrade libuv to 0303197
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,