Page MenuHomeFreeBSD

D58911.id184247.diff
No OneTemporary

D58911.id184247.diff

diff --git a/include/assert.h b/include/assert.h
--- a/include/assert.h
+++ b/include/assert.h
@@ -68,8 +68,10 @@
#endif /* __BSD_VISIBLE */
#endif /* NDEBUG */
-#ifndef __STDC_VERSION_ASSERT_H__
-#define __STDC_VERSION_ASSERT_H__ 202311L
+#ifndef _ASSERT_H_
+#define _ASSERT_H_
+
+#define __STDC_VERSION_ASSERT_H__ 202311L
/*
* Static assertions. In principle we could define static_assert for
@@ -92,4 +94,4 @@
void __assert(const char *, const char *, int, const char *) __dead2;
__END_DECLS
-#endif /* !__STDC_VERSION_ASSERT_H__ */
+#endif /* !_ASSERT_H_ */
diff --git a/include/limits.h b/include/limits.h
--- a/include/limits.h
+++ b/include/limits.h
@@ -29,7 +29,9 @@
* SUCH DAMAGE.
*/
-#ifndef __STDC_VERSION_LIMITS_H__
+#ifndef _LIMITS_H_
+#define _LIMITS_H_
+
#define __STDC_VERSION_LIMITS_H__ 202311L
#include <sys/cdefs.h>
@@ -148,4 +150,4 @@
#include <sys/syslimits.h>
#endif
-#endif /* !__STDC_VERSION_LIMITS_H__ */
+#endif /* !_LIMITS_H_ */
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h
--- a/include/rpc/xdr.h
+++ b/include/rpc/xdr.h
@@ -332,7 +332,7 @@
extern void xdrmem_create(XDR *, char *, u_int, enum xdr_op);
/* XDR using stdio library */
-#ifdef __STDC_VERSION_STDIO_H__
+#ifdef _STDIO_H_
extern void xdrstdio_create(XDR *, FILE *, enum xdr_op);
#endif
diff --git a/include/stdio.h b/include/stdio.h
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -32,7 +32,9 @@
* SUCH DAMAGE.
*/
-#ifndef __STDC_VERSION_STDIO_H__
+#ifndef _STDIO_H_
+#define _STDIO_H_
+
#define __STDC_VERSION_STDIO_H__ 202311L
#include <sys/cdefs.h>
@@ -540,4 +542,4 @@
__END_DECLS
__NULLABILITY_PRAGMA_POP
-#endif /* !__STDC_VERSION_STDIO_H__ */
+#endif /* !_STDIO_H_ */
diff --git a/include/xlocale.h b/include/xlocale.h
--- a/include/xlocale.h
+++ b/include/xlocale.h
@@ -68,7 +68,7 @@
#include <xlocale/_ctype.h>
#endif
-#ifdef __STDC_VERSION_STDIO_H__
+#ifdef _STDIO_H_
#include <xlocale/_stdio.h>
#endif
diff --git a/lib/libc/xdr/xdr.3 b/lib/libc/xdr/xdr.3
--- a/lib/libc/xdr/xdr.3
+++ b/lib/libc/xdr/xdr.3
@@ -572,7 +572,7 @@
using filter
.Fa func .
.Pp
-.It Li "#ifdef __STDC_VERSION_STDIO_H__"
+.It Li "#ifdef _STDIO_H_"
.It Li "/* XDR using stdio library */"
.It Xo
.Ft void
diff --git a/lib/libgeom/libgeom.h b/lib/libgeom/libgeom.h
--- a/lib/libgeom/libgeom.h
+++ b/lib/libgeom/libgeom.h
@@ -143,7 +143,7 @@
struct gctl_req;
-#ifdef __STDC_VERSION_STDIO_H__ /* limit #include pollution */
+#ifdef _STDIO_H_ /* limit #include pollution */
void gctl_dump(struct gctl_req *, FILE *);
#endif
void gctl_free(struct gctl_req *);
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
--- a/lib/libutil/libutil.h
+++ b/lib/libutil/libutil.h
@@ -151,7 +151,7 @@
* Conditionally prototype the following functions if the include
* files upon which they depend have been included.
*/
-#ifdef __STDC_VERSION_STDIO_H__
+#ifdef _STDIO_H_
char *fparseln(FILE *_fp, size_t *_len, size_t *_lineno,
const char _delim[3], int _flags);
#endif
diff --git a/stand/libsa/geli/geliboot_internal.h b/stand/libsa/geli/geliboot_internal.h
--- a/stand/libsa/geli/geliboot_internal.h
+++ b/stand/libsa/geli/geliboot_internal.h
@@ -28,15 +28,9 @@
#ifndef _GELIBOOT_INTERNAL_H_
#define _GELIBOOT_INTERNAL_H_
-/*
- * XXX:
- * The following deliberate defines are to keep g_eli.h from including
- * unnecessary headers. It would be preferable to conditionally include
- * them in a _STANDALONE branch there instead.
- */
#define _STRING_H_
#define _STRINGS_H_
-#define __STDC_VERSION_STDIO_H__ 202311L
+#define _STDIO_H_
#include <sys/endian.h>
#include <sys/queue.h>
diff --git a/sys/sys/stdatomic.h b/sys/sys/stdatomic.h
--- a/sys/sys/stdatomic.h
+++ b/sys/sys/stdatomic.h
@@ -27,7 +27,9 @@
* SUCH DAMAGE.
*/
-#ifndef __STDC_VERSION_STDATOMIC_H__
+#ifndef _STDATOMIC_H_
+#define _STDATOMIC_H_
+
#define __STDC_VERSION_STDATOMIC_H__ 202311L
#include <sys/cdefs.h>
@@ -438,4 +440,4 @@
#undef __bool_locally_defined
#endif
-#endif /* !__STDC_VERSION_STDATOMIC_H__ */
+#endif /* !_STDATOMIC_H_ */
diff --git a/sys/sys/syslimits.h b/sys/sys/syslimits.h
--- a/sys/sys/syslimits.h
+++ b/sys/sys/syslimits.h
@@ -33,7 +33,7 @@
#define _SYS_SYSLIMITS_H_
#if !defined(_STANDALONE) && !defined(_KERNEL) && \
- !defined(__STDC_VERSION_LIMITS_H__) && !defined(_SYS_PARAM_H_)
+ !defined(_LIMITS_H_) && !defined(_SYS_PARAM_H_)
#warning "No user-serviceable parts inside."
#endif

File Metadata

Mime Type
text/plain
Expires
Mon, Aug 31, 9:06 PM (4 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37534331
Default Alt Text
D58911.id184247.diff (4 KB)

Event Timeline