]> pd.if.org Git - pdclib/blobdiff - platform/posix/functions/stdio/_PDCLIB_fileops.c
PDCLib includes with quotes, not <>.
[pdclib] / platform / posix / functions / stdio / _PDCLIB_fileops.c
index 20138b722d4c5effd64393664cd866d229930969..cfcc533e72af437ef871c8cd8a7d6910bd898545 100644 (file)
@@ -5,13 +5,15 @@
 */
 
 #ifndef REGTEST
+#define _FILE_OFFSET_BITS 64
 #include <stdio.h>
 #include <stdint.h>
-#include <_PDCLIB_glue.h>
+#include "_PDCLIB_glue.h"
 #include <errno.h>
 #include <unistd.h>
+typedef int64_t off_t;
 
-static bool readf( _PDCLIB_fd_t fd, void * buf, size_t length, 
+static bool readf( _PDCLIB_fd_t fd, void * buf, size_t length,
                    size_t * numBytesRead )
 {
     ssize_t res = read(fd.sval, buf, length);
@@ -23,7 +25,7 @@ static bool readf( _PDCLIB_fd_t fd, void * buf, size_t length,
     }
 }
 
-static bool writef( _PDCLIB_fd_t fd, const void * buf, size_t length, 
+static bool writef( _PDCLIB_fd_t fd, const void * buf, size_t length,
                    size_t * numBytesWritten )
 {
     ssize_t res = write(fd.sval, buf, length);
@@ -64,7 +66,7 @@ const _PDCLIB_fileops_t _PDCLIB_fileops = {
 #endif
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
 
 int main( void )
 {