diff options
author | mkindahl@dl145h.mysql.com <> | 2008-01-30 12:53:33 +0100 |
---|---|---|
committer | mkindahl@dl145h.mysql.com <> | 2008-01-30 12:53:33 +0100 |
commit | 018cb16b3a0a98bcf66fd7b90e380bb8e3482ecb (patch) | |
tree | 74b925b2949170822b288f1dccb6bf327fa36a08 /include | |
parent | 9294edeb432d03dca2b941f98cfe5feb648e5246 (diff) | |
parent | 3bcab5899dddf492bde3386cd5a43af7030709db (diff) | |
download | mariadb-git-018cb16b3a0a98bcf66fd7b90e380bb8e3482ecb.tar.gz |
Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.1-rpl
into dl145h.mysql.com:/data0/mkindahl/mysql-5.1-rpl-merge
Diffstat (limited to 'include')
-rw-r--r-- | include/my_sys.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h index e13c4cde78b..ee79806c40e 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -521,6 +521,11 @@ typedef int (*qsort2_cmp)(const void *, const void *, const void *); #define my_b_tell(info) ((info)->pos_in_file + \ (size_t) (*(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 */ int my_b_copy_to_file(IO_CACHE *cache, FILE *file); my_off_t my_b_append_tell(IO_CACHE* info); |