[Glibc-bsd-commits] r6085 - trunk/glibc-ports-2.24/kfreebsd/bits

aurel32 at alioth.debian.org aurel32 at alioth.debian.org
Fri Jul 8 10:13:43 UTC 2016


Author: aurel32
Date: 2016-07-08 10:13:42 +0000 (Fri, 08 Jul 2016)
New Revision: 6085

Modified:
   trunk/glibc-ports-2.24/kfreebsd/bits/siginfo.h
Log:
Cleanup sigevent_t structure


Modified: trunk/glibc-ports-2.24/kfreebsd/bits/siginfo.h
===================================================================
--- trunk/glibc-ports-2.24/kfreebsd/bits/siginfo.h	2016-07-08 07:38:33 UTC (rev 6084)
+++ trunk/glibc-ports-2.24/kfreebsd/bits/siginfo.h	2016-07-08 10:13:42 UTC (rev 6085)
@@ -234,6 +234,12 @@
 
 #include <sys/_types.h>		/* __lwpid_t */
 
+/* Forward declaration.  */
+# ifndef __have_pthread_attr_t
+typedef union pthread_attr_t pthread_attr_t;
+#  define __have_pthread_attr_t 1
+# endif
+
 /* Structure to transport application-defined values with signals.  */
 
 typedef struct sigevent
@@ -246,16 +252,16 @@
       __lwpid_t threadid;
       struct
       {
-	void (*function) (sigval_t);	/* Function to start.  */
-	void *attributes;		/* Really pthread_attr_t.  */
-      } thread;
-    } un;
+	void (*_function) (sigval_t);	/* Function to start.  */
+	pthread_attr_t *_attribute;	/* Really pthread_attr_t.  */
+      } _sigev_thread;
+    } _sigev_un;
   } sigevent_t;
 
 #define sigev_notify_kqueue	sigev_signo
-#define sigev_notify_function	un.thread.function
-#define sigev_notify_attributes	un.thread.attributes
-#define sigev_notify_thread_id	un.threadid
+#define sigev_notify_function   _sigev_un._sigev_thread._function	
+#define sigev_notify_attributes	_sigev_un._sigev_thread._attribute
+#define sigev_notify_thread_id	_sigev_un.threadid
 
 /* `sigev_notify' values.  */
 enum




More information about the Glibc-bsd-commits mailing list