Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys sys/memfd.h: Tidy.
details: https://anonhg.NetBSD.org/src/rev/eb7df6093d7c
branches: trunk
changeset: 378282:eb7df6093d7c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Jul 29 08:46:58 2023 +0000
description:
sys/memfd.h: Tidy.
- Sort includes.
- #include <sys/types.h> for size_t.
diffstat:
sys/sys/memfd.h | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 4e137f8a0dbb -r eb7df6093d7c sys/sys/memfd.h
--- a/sys/sys/memfd.h Sat Jul 29 08:46:47 2023 +0000
+++ b/sys/sys/memfd.h Sat Jul 29 08:46:58 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: memfd.h,v 1.1 2023/07/29 08:46:47 riastradh Exp $ */
+/* $NetBSD: memfd.h,v 1.2 2023/07/29 08:46:58 riastradh Exp $ */
/*-
* Copyright (c) 2023 The NetBSD Foundation, Inc.
@@ -25,12 +25,15 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
+
#ifndef _SYS_MISCFD_H_
#define _SYS_MISCFD_H_
+#include <sys/types.h>
+
+#include <sys/mutex.h> /* for kmutex_t */
#include <sys/syslimits.h> /* for NAME_MAX */
#include <sys/timespec.h> /* for struct timespec */
-#include <sys/mutex.h> /* for kmutex_t */
struct memfd {
char mfd_name[NAME_MAX+1];
@@ -44,4 +47,4 @@ struct memfd {
struct timespec mfd_mtime;
};
-#endif /* _SYS_MISCFD_H_ */
+#endif /* _SYS_MISCFD_H_ */
Home |
Main Index |
Thread Index |
Old Index