From 8cdf4d3f6f2ca9dbf0b396a0fe7407512372b06e Mon Sep 17 00:00:00 2001 From: Timur Bakeyev Date: Tue, 19 Jan 1999 02:23:30 +0000 Subject: [PATCH] add new header file - utilvfs.h. this intended to be a stock include, which provides proper order for common include files. --- vfs/ChangeLog | 9 +++++++++ vfs/utilvfs.h | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 vfs/utilvfs.h diff --git a/vfs/ChangeLog b/vfs/ChangeLog index a3e447034..041d7de64 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,12 @@ +Tue Jan 19 05:15:49 1999 Timur I. Bakeyev + + * Converted all occurences of DIR_SEP_CHAR and "/" to PATH_SEP and + PATH_SEP_STR. Additionall cleanups of the memory code. + + * utilvfs.h: Added several defenitions for common sizes for buffers. + It seems, most of us experience problems, when inventing size for new + buffer. This is much better and portable way to eliminate the problem. + 1999-01-18 Miguel de Icaza * vfs.h: The correct thing to use is PATH_SEP and PATH_SEP_STR diff --git a/vfs/utilvfs.h b/vfs/utilvfs.h new file mode 100644 index 000000000..05f917614 --- /dev/null +++ b/vfs/utilvfs.h @@ -0,0 +1,22 @@ +#include +#include "../src/fs.h" + +#include + +#include "../src/tty.h" /* enable/disable interrupt key */ +#include "../src/main.h" + +#include "../src/mem.h" +#include "../src/util.h" +#include "../src/mad.h" + + +#define BUF_4K 4096 +#define BUF_1K 1024 + +#define BUF_LARGE BUF_1K +#define BUF_MEDIUM 512 +#define BUF_SMALL 128 +#define BUF_TINY 64 + +char* append_path_sep (char *path);