summaryrefslogtreecommitdiff
path: root/mysys/my_chsize.c
diff options
context:
space:
mode:
authorunknown <salle@geopard.(none)>2002-07-09 18:59:52 +0300
committerunknown <salle@geopard.(none)>2002-07-09 18:59:52 +0300
commite797b466b4234c5960927de0fde2077fe6293626 (patch)
treed82e6a1ef9abf64d6b1a81940ad35dfedb93bfe7 /mysys/my_chsize.c
parentbfdddfa81f71850a73ac2538b25d80ba1c218a1e (diff)
downloadmariadb-git-e797b466b4234c5960927de0fde2077fe6293626.tar.gz
Rewrite function comments
mysys/array.c: Rewrite functions comments mysys/checksum.c: Rewrite function comment Style cleanup mysys/mulalloc.c: Rewrite function comment mysys/my_chsize.c: Rewrite function comment mysys/my_error.c: Rewrite comments mysys/my_once.c: Rewrite comments mysys/my_div.c: Rewrite comments mysys/my_open.c: Rewrite comments
Diffstat (limited to 'mysys/my_chsize.c')
-rw-r--r--mysys/my_chsize.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/mysys/my_chsize.c b/mysys/my_chsize.c
index aeab9e47ee2..54129f12897 100644
--- a/mysys/my_chsize.c
+++ b/mysys/my_chsize.c
@@ -18,8 +18,22 @@
#include "mysys_err.h"
#include "m_string.h"
- /* Change size of file. Truncate file if shorter, */
- /* else expand with zero. */
+/*
+ Change size of file.
+
+ SYNOPSIS
+ my_chsize()
+ fd File descriptor
+ new_length New file size
+ MyFlags Flags
+
+ DESCRIPTION
+ my_chsize() truncates file if shorter, else expand with zero.
+
+ RETURN VALUE
+ 0 Ok
+ 1 Error
+*/
int my_chsize(File fd, my_off_t newlength, myf MyFlags)
{