]> pd.if.org Git - pdclib/commit
PDCLIB-8: First phase of intergation of new I/O backend system (with minimal
authorOwen Shepherd <owen.shepherd@e43.eu>
Wed, 5 Dec 2012 02:20:16 +0000 (02:20 +0000)
committerOwen Shepherd <owen.shepherd@e43.eu>
Wed, 5 Dec 2012 02:20:16 +0000 (02:20 +0000)
commitc5d49235e09fbd58416f10dec2799e61cf3431c8
treeeb93ea1544e9e2427fb2588be722485df95032f9
parent4c7c56442f6b3e08c17594dd4e8095fca3aec9cf
PDCLIB-8: First phase of intergation of new I/O backend system (with minimal
disruption of existing code)
* _PDCLIB_fdopen: renamed _PDCLIB_fvopen to more clearly deliniate from POSIX
  fdopen function and state purpose
* _PDCLIB_fd_t is now a library provided union type
   Contains members of type void*, uintptr_t, intptr_t. If another type is
   required, define _PDCLIB_OSFD_T to that type in _PDCLIB_config.h
* _PDCLIB_fileops_t added. This structure contains the file operations
* _PDCLIB_fillbuffer, _PDCLIB_flushbuffer, _PDCLIB_seek become internal APIs
    (_PDCLIB_seek's days are numbered!)
* _PDCLIB_close is removed
* tmpfile() and fopen() should now call through to _PDCLIB_fvopen and provide
  a pointer to an appropriate _PDCLIB_fileops_t structure

Win32 port updated. Other ports are TODO
19 files changed:
functions/stdio/_PDCLIB_fillbuffer.c [moved from platform/win32/functions/_PDCLIB/_PDCLIB_fillbuffer.c with 62% similarity]
functions/stdio/_PDCLIB_flushbuffer.c [moved from platform/win32/functions/_PDCLIB/_PDCLIB_flushbuffer.c with 70% similarity]
functions/stdio/_PDCLIB_fvopen.c [moved from functions/stdio/_PDCLIB_fdopen.c with 90% similarity]
functions/stdio/_PDCLIB_seek.c [new file with mode: 0644]
functions/stdio/fclose.c
functions/stdio/fopen.c
functions/stdio/freopen.c
includes/stdio.h
internals/_PDCLIB_aux.h
internals/_PDCLIB_glue.h
internals/_PDCLIB_io.h
platform/win32/crt0.c
platform/win32/functions/_PDCLIB/_PDCLIB_close.c [deleted file]
platform/win32/functions/_PDCLIB/_PDCLIB_fileops.c [new file with mode: 0644]
platform/win32/functions/_PDCLIB/_PDCLIB_open.c
platform/win32/functions/_PDCLIB/_PDCLIB_seek.c [deleted file]
platform/win32/functions/_PDCLIB/_PDCLIB_stdinit.c
platform/win32/functions/stdio/tmpfile.c
platform/win32/internals/_PDCLIB_config.h