/* The unique file descriptor returned by _PDCLIB_open(). */
typedef int _PDCLIB_fd_t;
+/* The value (of type _PDCLIB_fd_t) returned by _PDCLIB_open() if the operation
+ failed.
+*/
+#define _PDCLIB_NOHANDLE -1
+
/* A type in which to store file offsets. See fgetpos() / fsetpos(). */
+/* FIXME: The 'int' types here are placeholders. When changed, check out
+ stdinit.c, too. */
typedef struct
{
int position;
- int parse_state;
+ int mbstate;
} _PDCLIB_fpos_t;
/* The default size for file buffers. Must be at least 256. */