summaryrefslogtreecommitdiff
path: root/deps/uv/src/unix/freebsd.c
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-09-22 19:41:43 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-09-22 22:29:20 -0700
commit8d37b6c92b61d9ab66b48ca67fd3e42751f5cf43 (patch)
tree77288aaa8016931f0258337360103307c392e9b3 /deps/uv/src/unix/freebsd.c
parent74c02066fe0e963722b0d7d5a78c703fd14c0275 (diff)
downloadandroid-node-v8-8d37b6c92b61d9ab66b48ca67fd3e42751f5cf43.tar.gz
android-node-v8-8d37b6c92b61d9ab66b48ca67fd3e42751f5cf43.tar.bz2
android-node-v8-8d37b6c92b61d9ab66b48ca67fd3e42751f5cf43.zip
upgrade libuv
Diffstat (limited to 'deps/uv/src/unix/freebsd.c')
-rw-r--r--deps/uv/src/unix/freebsd.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/deps/uv/src/unix/freebsd.c b/deps/uv/src/unix/freebsd.c
index 6766538f03..449aad4c21 100644
--- a/deps/uv/src/unix/freebsd.c
+++ b/deps/uv/src/unix/freebsd.c
@@ -20,15 +20,18 @@
#include "uv.h"
+#include <assert.h>
#include <string.h>
-#include <time.h>
+#include <errno.h>
#include <sys/types.h>
#include <sys/sysctl.h>
+#include <time.h>
#undef NANOSEC
#define NANOSEC 1000000000
+
uint64_t uv_hrtime(void) {
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
@@ -63,3 +66,17 @@ int uv_exepath(char* buffer, size_t* size) {
return 0;
}
+
+
+int uv_fs_event_init(uv_loop_t* loop,
+ uv_fs_event_t* handle,
+ const char* filename,
+ uv_fs_event_cb cb) {
+ uv_err_new(loop, ENOSYS);
+ return -1;
+}
+
+
+void uv__fs_event_destroy(uv_fs_event_t* handle) {
+ assert(0 && "implement me");
+}