From 1e4904f8dd2dc6765c071a69f243f5dd70943534 Mon Sep 17 00:00:00 2001 From: Rex Jolliff Date: Sun, 17 Jan 1999 17:57:38 +0000 Subject: [PATCH] added for crtdll svn path=/trunk/; revision=179 --- reactos/lib/crtdll/stdio/FILE.DOC | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 reactos/lib/crtdll/stdio/FILE.DOC diff --git a/reactos/lib/crtdll/stdio/FILE.DOC b/reactos/lib/crtdll/stdio/FILE.DOC new file mode 100644 index 00000000000..e3c7ae90091 --- /dev/null +++ b/reactos/lib/crtdll/stdio/FILE.DOC @@ -0,0 +1,47 @@ +meaning of struct FILE* members + +int _cnt; + +W: number of empty slots left in the buffer. +R: number of characters left in the buffer. + +char *_ptr; + +pointer inside the buffer we're using. +R: points to next character to read out. +W: points to next cell to put character in. + +char *_base; + +pointer to the start of the buffer we're using. + +int _bufsiz; + +size of the buffer + +int _flag; + +_IORW file is used for both read and write +_IOWRT file was last used for write +_IOREAD file was last used for read +_IOMYBUF buffer needs to be freed +_IOEOF file is at EOF +_IOERR error occurred +_IOSTRG sprintf +_IOAPPEND append mode +_IORMONCL remove file on close +_IOUNGETC buffer contents does not correspond to file + +int _file; + +dos file descriptor + +char *_name_to_remove; + +If nonzero, the named file is removed when the file is fclosed. + +int _fillsize; + +The number of bytes to read this time. Used to slow-start the read, +in case the program seeks a lot we won't waste time reading large +blocks, but if you read a lot, we use bigger transfers.