Displaying 1 result from an estimated 1 matches for "bufsz_def".
2010 Mar 20
1
[MODULE] COM32 module to time null-dumping a file, v1.1
...nclude <stdio.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <sys/times.h>
+#include <consoles.h>
+#include <minmax.h>
+#include <limits.h>
+#include <string.h>
+
+#ifdef __COM32__
+# define BUFSZ_DEF 2048
+/* What's optimal? Under 4k?
+ * layout.inc: xfer_buf_seg equ 1000h
+ */
+# define O_DIRECT 0
+
+static inline float get_tps(){ return 18.2; }
+
+#else /* __COM32__ */
+
+# define BUFSZ_DEF 16384
+/* Need to check what might be a "best" buffer/fetch block size here */
+
+stat...