mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +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
1 changed files with 1 additions and 27 deletions
|
@ -21,7 +21,7 @@ new file mode 100644
|
||||||
index 0000000..941bf09
|
index 0000000..941bf09
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/os/os-serenity.h
|
+++ b/os/os-serenity.h
|
||||||
@@ -0,0 +1,87 @@
|
@@ -0,0 +1,61 @@
|
||||||
+#ifndef FIO_OS_SERENITY_H
|
+#ifndef FIO_OS_SERENITY_H
|
||||||
+#define FIO_OS_SERENITY_H
|
+#define FIO_OS_SERENITY_H
|
||||||
+
|
+
|
||||||
|
@ -43,26 +43,6 @@ index 0000000..941bf09
|
||||||
+
|
+
|
||||||
+#define OS_MAP_ANON MAP_ANON
|
+#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)
|
+static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
|
||||||
+{
|
+{
|
||||||
+ // TODO: Implement
|
+ // TODO: Implement
|
||||||
|
@ -81,12 +61,6 @@ index 0000000..941bf09
|
||||||
+ return 0;
|
+ return 0;
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+static inline int nice(int incr)
|
|
||||||
+{
|
|
||||||
+ // TODO: Implement
|
|
||||||
+ return 0;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static inline unsigned long long get_fs_free_size(const char *path)
|
+static inline unsigned long long get_fs_free_size(const char *path)
|
||||||
+{
|
+{
|
||||||
+ unsigned long long ret;
|
+ unsigned long long ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue