summaryrefslogtreecommitdiff
path: root/navit/support/libc/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/support/libc/write.c')
-rw-r--r--navit/support/libc/write.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/navit/support/libc/write.c b/navit/support/libc/write.c
deleted file mode 100644
index b9521aefc..000000000
--- a/navit/support/libc/write.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * write.c: write and _write implementations for WinCE.
- *
- * This file has no copyright assigned and is placed in the Public Domain.
- * This file is a part of the mingw-runtime package.
- * No warranty is given; refer to the file DISCLAIMER within the package.
- *
- * Written by Pedro Alves <pedro_alves@portugalmail.pt> Feb 2007
- *
- */
-#include <windows.h>
-#include <unistd.h>
-
-int
-_write (int fildes, const void *buf, unsigned int bufsize)
-{
- DWORD NumberOfBytesWritten;
- if (bufsize > 0x7fffffff)
- bufsize = 0x7fffffff;
- if (!WriteFile ((HANDLE) fildes, buf, bufsize, &NumberOfBytesWritten, NULL))
- return -1;
- return (int) NumberOfBytesWritten;
-}
-
-int
-write (int fildes, const void *buf, unsigned int bufsize)
-{
- return _write (fildes, buf, bufsize);
-}