We need to grab and mark the file open before jumping to an error path
[fio.git] / os / os-solaris.h
index 898da18e988d205004f8826c8ba08d6768ac2352..ac22bff154d4ecc9ade86d57ba6eb8dd2680d7ab 100644 (file)
@@ -1,13 +1,10 @@
 #ifndef FIO_OS_SOLARIS_H
 #define FIO_OS_SOLARIS_H
 
-#undef FIO_HAVE_LIBAIO
 #define FIO_HAVE_POSIXAIO
-#undef FIO_HAVE_FADVISE
-#undef FIO_HAVE_CPU_AFFINITY
-#undef FIO_HAVE_DISK_UTIL
-#undef FIO_HAVE_SGIO
-#undef FIO_HAVE_ODIRECT
+#define FIO_HAVE_SOLARISAIO
+#define FIO_HAVE_FALLOCATE
+#define FIO_HAVE_POSIXAIO_FSYNC
 
 #define OS_MAP_ANON            (MAP_ANON)
 
@@ -54,12 +51,4 @@ static inline long os_random_long(os_random_state_t *rs)
        return val;
 }
 
-static inline double os_random_double(os_random_state_t *rs)
-{
-       double val;
-
-       val = (double) rand_r(rs);
-       return val;
-}
-
 #endif