]> pd.if.org Git - pdclib/blobdiff - functions/stdio/_PDCLIB_fvopen.c
PDCLIB-8: First phase of intergation of new I/O backend system (with minimal
[pdclib] / functions / stdio / _PDCLIB_fvopen.c
similarity index 90%
rename from functions/stdio/_PDCLIB_fdopen.c
rename to functions/stdio/_PDCLIB_fvopen.c
index c628ebcd1e5da4ebf48131e2b9771c47c4d0cce1..466009b04d070f069a28d1aa8899f57ff39f0cce 100644 (file)
@@ -1,6 +1,6 @@
 /* $Id$ */\r
 \r
-/* _PDCLIB_fdopen( _PDCLIB_fd_t fd, const char * )\r
+/* _PDCLIB_fvopen( _PDCLIB_fd_t fd, _PDCLIB_fileops_t *  )\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
    Permission is granted to use, modify, and / or redistribute at will.\r
@@ -16,7 +16,8 @@
 \r
 extern struct _PDCLIB_file_t * _PDCLIB_filelist;\r
 \r
-struct _PDCLIB_file_t * _PDCLIB_fdopen( _PDCLIB_fd_t fd, \r
+struct _PDCLIB_file_t * _PDCLIB_fvopen( _PDCLIB_fd_t               fd, \r
+                                        const _PDCLIB_fileops_t *  ops,\r
                                         int mode,\r
                                         const char * _PDCLIB_restrict filename )\r
 {\r
@@ -47,6 +48,7 @@ struct _PDCLIB_file_t * _PDCLIB_fdopen( _PDCLIB_fd_t fd,
     }\r
 \r
     rc->status = mode;\r
+    rc->ops    = ops;\r
     rc->handle = fd;\r
     /* Setting pointers into the memory block allocated above */\r
     rc->ungetbuf = (unsigned char *)rc + sizeof( struct _PDCLIB_file_t );\r