Another round of documentation.
Bug: N/A
Test: N/A
Change-Id: I1b818fbb36ddd6d084dee56828290c2717a0c9b0
diff --git a/libc/include/bits/epoll_event.h b/libc/include/bits/epoll_event.h
index 054323c..b2b4c87 100644
--- a/libc/include/bits/epoll_event.h
+++ b/libc/include/bits/epoll_event.h
@@ -26,12 +26,17 @@
* SUCH DAMAGE.
*/
-#ifndef _BITS_EPOLL_EVENT_H_
-#define _BITS_EPOLL_EVENT_H_
+#pragma once
+
+/**
+ * @file bits/epoll_event.h
+ * @brief Types for epoll().
+ */
#include <sys/cdefs.h>
#include <stdint.h>
+/** The union of possible data types for an `epoll_event`. */
typedef union epoll_data {
void* ptr;
int fd;
@@ -39,6 +44,7 @@
uint64_t u64;
} epoll_data_t;
+/** The type representing an epoll() event. */
struct epoll_event {
uint32_t events;
epoll_data_t data;
@@ -47,5 +53,3 @@
__packed
#endif
;
-
-#endif