From 38592939d793cdd1dfa6374fab6f95d478bc759f Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 24 Jan 2018 15:51:24 +0000 Subject: [PATCH] docs: Clarify the definition of goffset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit off64_t doesn’t exist in any standard (definitely not C99), and so goffset is actually closer to off_t in 64-bit mode. However, goffset is always defined as gint64, so make that clear. Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=792856 --- glib/docs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glib/docs.c b/glib/docs.c index 19aad0e96..5031a6225 100644 --- a/glib/docs.c +++ b/glib/docs.c @@ -617,7 +617,9 @@ * goffset: * * A signed integer type that is used for file offsets, - * corresponding to the C99 type off64_t. + * corresponding to the POSIX type `off_t` as if compiling with + * `_FILE_OFFSET_BITS` set to 64. #goffset is always 64 bits wide, even on + * 32-bit architectures. * Values of this type can range from #G_MINOFFSET to * #G_MAXOFFSET. *