ext/noderb_extension/libuv/src/unix/freebsd.c in noderb-0.0.10 vs ext/noderb_extension/libuv/src/unix/freebsd.c in noderb-0.0.11
- old
+ new
@@ -18,19 +18,22 @@
* IN THE SOFTWARE.
*/
#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);
return (ts.tv_sec * NANOSEC + ts.tv_nsec);
}
@@ -60,6 +63,20 @@
return -1;
}
*size = strlen(buffer);
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");
}