binject: ctl cleanups
[fio.git] / os / os-freebsd.h
index 3115b605064bc7a55b5d162ab59c872475f4c8ee..4a50a3cf9c6a31ee9d39fdf965056087d6a792ee 100644 (file)
@@ -8,6 +8,7 @@
 #define FIO_HAVE_POSIXAIO
 #define FIO_HAVE_ODIRECT
 #define FIO_USE_GENERIC_RAND
+#define FIO_HAVE_CHARDEV_SIZE
 
 #define OS_MAP_ANON            MAP_ANON
 
@@ -22,9 +23,15 @@ static inline int blockdev_size(int fd, unsigned long long *bytes)
                return 0;
        }
 
+       *bytes = 0;
        return errno;
 }
 
+static inline int chardev_size(int fd, unsigned long long *bytes)
+{
+       return blockdev_size(fd, bytes);
+}
+
 static inline int blockdev_invalidate_cache(int fd)
 {
        return EINVAL;