[glib] docs: Clarify the definition of goffset
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] docs: Clarify the definition of goffset
- Date: Fri, 2 Feb 2018 08:29:50 +0000 (UTC)
commit 38592939d793cdd1dfa6374fab6f95d478bc759f
Author: Philip Withnall <withnall endlessm com>
Date: Wed Jan 24 15:51:24 2018 +0000
docs: Clarify the definition of goffset
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 <withnall endlessm com>
https://bugzilla.gnome.org/show_bug.cgi?id=792856
glib/docs.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/glib/docs.c b/glib/docs.c
index 19aad0e..5031a62 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.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]