summaryrefslogtreecommitdiffhomepage
path: root/src/fcntl
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-04-05 17:05:57 -0400
committermidipix <writeonce@midipix.org>2015-04-05 17:05:57 -0400
commit296178913c5dfbc2b35842fc16ed680ef51fd402 (patch)
tree6720928dbc03c3d656229d2509eda38f6eb0628b /src/fcntl
parent20a5ca45ef2f5716e8f2dea42c7e8a6b3367619f (diff)
downloadmmglue-296178913c5dfbc2b35842fc16ed680ef51fd402.tar.bz2
mmglue-296178913c5dfbc2b35842fc16ed680ef51fd402.tar.xz
nt32: initial commit of core port files.
signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'src/fcntl')
-rw-r--r--src/fcntl/nt32/posix_fadvise.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/fcntl/nt32/posix_fadvise.c b/src/fcntl/nt32/posix_fadvise.c
new file mode 100644
index 0000000..c95d7f4
--- /dev/null
+++ b/src/fcntl/nt32/posix_fadvise.c
@@ -0,0 +1,14 @@
+#include "fcntl.h"
+#include "syscall_arch.h"
+
+int posix_fadvise (int fd, off_t base, off_t len, int advice)
+{
+ /**
+ * __syscall is needed here due to the odd semantics
+ * of posix_fadvise(), which for us means calling
+ * __sys_fadvise() directly.
+ **/
+
+ return 0; /* __sys_fadvise (fd, base, len, advice); */
+}
+