summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormkindahl@dl145h.mysql.com <>2008-01-30 11:25:54 +0100
committermkindahl@dl145h.mysql.com <>2008-01-30 11:25:54 +0100
commit716c63ebaa1d53cb70e81f31bb9cd2b35e3af43b (patch)
tree09a25ebdb100cc9b38eef8149c29eae0b6daa411 /include
parente4bad7a8d08d5effc4387f080037a511ec2f5cef (diff)
parentafe8ac3128f36d5e3d078c78907760fb579dbca8 (diff)
downloadmariadb-git-716c63ebaa1d53cb70e81f31bb9cd2b35e3af43b.tar.gz
Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.0-rpl
into dl145h.mysql.com:/data0/mkindahl/mysql-5.0-rpl-merge
Diffstat (limited to 'include')
-rw-r--r--include/my_sys.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h
index f72aef13989..d656326e968 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -530,6 +530,12 @@ typedef int (*qsort2_cmp)(const void *, const void *, const void *);
#define my_b_tell(info) ((info)->pos_in_file + \
(uint) (*(info)->current_pos - (info)->request_pos))
+#define my_b_get_buffer_start(info) (info)->request_pos
+#define my_b_get_bytes_in_buffer(info) (char*) (info)->read_end - \
+ (char*) my_b_get_buffer_start(info)
+#define my_b_get_pos_in_file(info) (info)->pos_in_file
+
+
/* tell write offset in the SEQ_APPEND cache */
my_off_t my_b_append_tell(IO_CACHE* info);
my_off_t my_b_safe_tell(IO_CACHE* info); /* picks the correct tell() */