summaryrefslogtreecommitdiffstats
path: root/gl/fpurge.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/fpurge.c')
-rw-r--r--gl/fpurge.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gl/fpurge.c b/gl/fpurge.c
index 52a3dcef..0b69da3f 100644
--- a/gl/fpurge.c
+++ b/gl/fpurge.c
@@ -1,5 +1,5 @@
1/* Flushing buffers of a FILE stream. 1/* Flushing buffers of a FILE stream.
2 Copyright (C) 2007-2024 Free Software Foundation, Inc. 2 Copyright (C) 2007-2025 Free Software Foundation, Inc.
3 3
4 This file is free software: you can redistribute it and/or modify 4 This file is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as 5 it under the terms of the GNU Lesser General Public License as
@@ -37,7 +37,7 @@ fpurge (FILE *fp)
37 /* The __fpurge function does not have a return value. */ 37 /* The __fpurge function does not have a return value. */
38 return 0; 38 return 0;
39 39
40#elif HAVE_FPURGE /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin >= 1.7 */ 40#elif HAVE_FPURGE /* FreeBSD, NetBSD, 2.0 <= OpenBSD <= 7.7, DragonFly, Mac OS X, Cygwin >= 1.7 */
41 41
42 /* Call the system's fpurge function. */ 42 /* Call the system's fpurge function. */
43# undef fpurge 43# undef fpurge
@@ -46,7 +46,7 @@ fpurge (FILE *fp)
46# endif 46# endif
47 int result = fpurge (fp); 47 int result = fpurge (fp);
48# if defined __sferror || defined __DragonFly__ || defined __ANDROID__ 48# if defined __sferror || defined __DragonFly__ || defined __ANDROID__
49 /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ 49 /* FreeBSD, NetBSD, OpenBSD <= 7.7, DragonFly, Mac OS X, Cygwin, Minix 3, Android */
50 if (result == 0) 50 if (result == 0)
51 /* Correct the invariants that fpurge broke. 51 /* Correct the invariants that fpurge broke.
52 <stdio.h> on BSD systems says: 52 <stdio.h> on BSD systems says:
@@ -76,7 +76,7 @@ fpurge (FILE *fp)
76 } 76 }
77 return 0; 77 return 0;
78# elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ 78# elif defined __sferror || defined __DragonFly__ || defined __ANDROID__
79 /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ 79 /* FreeBSD, NetBSD, OpenBSD < 2.0, DragonFly, Mac OS X, Cygwin, Minix 3, Android */
80 fp_->_p = fp_->_bf._base; 80 fp_->_p = fp_->_bf._base;
81 fp_->_r = 0; 81 fp_->_r = 0;
82 fp_->_w = ((fp_->_flags & (__SLBF | __SNBF | __SRD)) == 0 /* fully buffered and not currently reading? */ 82 fp_->_w = ((fp_->_flags & (__SLBF | __SNBF | __SRD)) == 0 /* fully buffered and not currently reading? */