Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156985432
D4708.id11777.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
862 B
Referenced Files
None
Subscribers
None
D4708.id11777.diff
View Options
Index: head/lib/libc/stdio/findfp.c
===================================================================
--- head/lib/libc/stdio/findfp.c
+++ head/lib/libc/stdio/findfp.c
@@ -99,16 +99,7 @@
FILE *p;
size_t align;
- /*
- * FILE has a mbstate_t variable. This variable tries to be int64_t
- * aligned through its definition. int64_t may be larger than void *,
- * which is the size traditionally used for ALIGNBYTES. So, use our own
- * rounding instead of the MI ALIGN macros. If for some reason
- * ALIGNBYTES is larger than int64_t, respect that too. There appears to
- * be no portable way to ask for FILE's alignment requirements other
- * than just knowing here.
- */
- align = MAX(ALIGNBYTES, sizeof(int64_t));
+ align = __alignof__(FILE);
g = (struct glue *)malloc(sizeof(*g) + align + n * sizeof(FILE));
if (g == NULL)
return (NULL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 18, 7:39 PM (8 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33233412
Default Alt Text
D4708.id11777.diff (862 B)
Attached To
Mode
D4708: Align FILE to 8 byte boundary.
Attached
Detach File
Event Timeline
Log In to Comment