From 2aecdd1a91bf8386829146609ce0219c51793841 Mon Sep 17 00:00:00 2001 From: "monty@mashka.mysql.fi" <> Date: Tue, 11 Jun 2002 11:20:31 +0300 Subject: Big code cleanup/review before 4.0.2 release. (All commit emails since 4.0.1 checked) This had to be done now, before the 4.1 tree changes to much, to make it easy to propagate bug fixes to the 4.1 tree. --- mysys/my_read.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'mysys/my_read.c') diff --git a/mysys/my_read.c b/mysys/my_read.c index 0c8962e91a9..b7621ac99eb 100644 --- a/mysys/my_read.c +++ b/mysys/my_read.c @@ -19,13 +19,22 @@ #include - /* Read a chunk of bytes from a file */ +/* + Read a chunk of bytes from a file with retry's if needed + + The parameters are: + File descriptor + Buffer to hold at least Count bytes + Bytes to read + Flags on what to do on error + + Return: + -1 on error + 0 if flag has bits MY_NABP or MY_FNABP set + N number of bytes read. +*/ uint my_read(File Filedes, byte *Buffer, uint Count, myf MyFlags) - /* File descriptor */ - /* Buffer must be at least count bytes */ - /* Max number of bytes returnd */ - /* Flags on what to do on error */ { uint readbytes,save_count; DBUG_ENTER("my_read"); -- cgit v1.2.1