mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 12:23:15 +00:00
Ports: Remove outdated stubs from the fio
patches
These have already been added to the system in the meantime.
This commit is contained in:
parent
43285eec8f
commit
867e103f5d
|
@ -21,7 +21,7 @@ new file mode 100644
|
|||
index 0000000..941bf09
|
||||
--- /dev/null
|
||||
+++ b/os/os-serenity.h
|
||||
@@ -0,0 +1,87 @@
|
||||
@@ -0,0 +1,61 @@
|
||||
+#ifndef FIO_OS_SERENITY_H
|
||||
+#define FIO_OS_SERENITY_H
|
||||
+
|
||||
|
@ -43,26 +43,6 @@ index 0000000..941bf09
|
|||
+
|
||||
+#define OS_MAP_ANON MAP_ANON
|
||||
+
|
||||
+/* Serenity doesn't support:
|
||||
+ * - MADV_RANDOM
|
||||
+ * - MADV_SEQUENTIAL
|
||||
+ *
|
||||
+ * So any values will work for these defines.
|
||||
+ */
|
||||
+#ifndef POSIX_MADV_RANDOM
|
||||
+#define POSIX_MADV_RANDOM 0
|
||||
+#endif
|
||||
+
|
||||
+#ifndef POSIX_MADV_SEQUENTIAL
|
||||
+#define POSIX_MADV_SEQUENTIAL 0
|
||||
+#endif
|
||||
+
|
||||
+/*
|
||||
+ * Serenity doesn't have O_SYNC, so define it here so it can be
|
||||
+ * rejected at runtime instead.
|
||||
+ */
|
||||
+#define O_SYNC 0x2000000
|
||||
+
|
||||
+static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
|
||||
+{
|
||||
+ // TODO: Implement
|
||||
|
@ -81,12 +61,6 @@ index 0000000..941bf09
|
|||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+static inline int nice(int incr)
|
||||
+{
|
||||
+ // TODO: Implement
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+static inline unsigned long long get_fs_free_size(const char *path)
|
||||
+{
|
||||
+ unsigned long long ret;
|
||||
|
|
Loading…
Reference in a new issue