Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Apr 2022 15:25:05 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 6e1a003ffc5c - stable/13 - libsysdecode: Include required headers in sysdecode.h
Message-ID:  <202204221525.23MFP556082049@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=6e1a003ffc5c0f02519b4f9b802bee23e57c3d4c

commit 6e1a003ffc5c0f02519b4f9b802bee23e57c3d4c
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-04-15 14:22:29 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-04-22 14:36:29 +0000

    libsysdecode: Include required headers in sysdecode.h
    
    Make sysdecode.h self-contained rather than forcing all consumers to
    include dependencies.  No functional change intended.
    
    Reviewed by:    pauamma_gundo.com, jhb, emaste
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 354efc4c94078c3c83ea45d467c6377f3f92926e)
---
 lib/libsysdecode/sysdecode.3                      | 2 --
 lib/libsysdecode/sysdecode.h                      | 4 ++++
 lib/libsysdecode/sysdecode_abi_to_freebsd_errno.3 | 2 --
 lib/libsysdecode/sysdecode_cap_rights.3           | 3 ---
 lib/libsysdecode/sysdecode_cmsg_type.3            | 2 --
 lib/libsysdecode/sysdecode_enum.3                 | 2 --
 lib/libsysdecode/sysdecode_fcntl_arg.3            | 3 ---
 lib/libsysdecode/sysdecode_ioctlname.3            | 2 --
 lib/libsysdecode/sysdecode_kevent.3               | 3 ---
 lib/libsysdecode/sysdecode_mask.3                 | 3 ---
 lib/libsysdecode/sysdecode_quotactl_cmd.3         | 3 ---
 lib/libsysdecode/sysdecode_sctp_sinfo_flags.3     | 3 ---
 lib/libsysdecode/sysdecode_sigcode.3              | 2 --
 lib/libsysdecode/sysdecode_socket_protocol.3      | 2 --
 lib/libsysdecode/sysdecode_sockopt_name.3         | 2 --
 lib/libsysdecode/sysdecode_syscallnames.3         | 2 --
 lib/libsysdecode/sysdecode_utrace.3               | 3 ---
 17 files changed, 4 insertions(+), 39 deletions(-)

diff --git a/lib/libsysdecode/sysdecode.3 b/lib/libsysdecode/sysdecode.3
index 41faca95e7e1..cce4878f2fb5 100644
--- a/lib/libsysdecode/sysdecode.3
+++ b/lib/libsysdecode/sysdecode.3
@@ -33,8 +33,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
 .In sysdecode.h
 .Sh DESCRIPTION
 The
diff --git a/lib/libsysdecode/sysdecode.h b/lib/libsysdecode/sysdecode.h
index 47e37aeeed98..111cff4815c0 100644
--- a/lib/libsysdecode/sysdecode.h
+++ b/lib/libsysdecode/sysdecode.h
@@ -28,6 +28,10 @@
 #ifndef __SYSDECODE_H__
 #define	__SYSDECODE_H__
 
+#include <sys/types.h>
+#include <stdbool.h>
+#include <stdio.h>
+
 enum sysdecode_abi {
 	SYSDECODE_ABI_UNKNOWN = 0,
 	SYSDECODE_ABI_FREEBSD,
diff --git a/lib/libsysdecode/sysdecode_abi_to_freebsd_errno.3 b/lib/libsysdecode/sysdecode_abi_to_freebsd_errno.3
index e5efefbdbe3f..9081ba30e810 100644
--- a/lib/libsysdecode/sysdecode_abi_to_freebsd_errno.3
+++ b/lib/libsysdecode/sysdecode_abi_to_freebsd_errno.3
@@ -34,8 +34,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
 .In sysdecode.h
 .Ft int
 .Fn sysdecode_abi_to_freebsd_errno "enum sysdecode_abi abi" "int error"
diff --git a/lib/libsysdecode/sysdecode_cap_rights.3 b/lib/libsysdecode/sysdecode_cap_rights.3
index e165e3d43938..efc46b6375d3 100644
--- a/lib/libsysdecode/sysdecode_cap_rights.3
+++ b/lib/libsysdecode/sysdecode_cap_rights.3
@@ -33,9 +33,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
-.In stdio.h
 .In sysdecode.h
 .Ft void
 .Fn sysdecode_cap_rights "FILE *fp" "cap_rights_t *rightsp"
diff --git a/lib/libsysdecode/sysdecode_cmsg_type.3 b/lib/libsysdecode/sysdecode_cmsg_type.3
index 945a4a8f837d..6774e2dcee50 100644
--- a/lib/libsysdecode/sysdecode_cmsg_type.3
+++ b/lib/libsysdecode/sysdecode_cmsg_type.3
@@ -34,8 +34,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
 .In sysdecode.h
 .Ft const char *
 .Fn sysdecode_cmsg_type "int cmsg_level" "int cmsg_type"
diff --git a/lib/libsysdecode/sysdecode_enum.3 b/lib/libsysdecode/sysdecode_enum.3
index 722d82f27f29..2ea021b9933c 100644
--- a/lib/libsysdecode/sysdecode_enum.3
+++ b/lib/libsysdecode/sysdecode_enum.3
@@ -77,8 +77,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
 .In sysdecode.h
 .Ft const char *
 .Fn sysdecode_acltype "int type"
diff --git a/lib/libsysdecode/sysdecode_fcntl_arg.3 b/lib/libsysdecode/sysdecode_fcntl_arg.3
index a2fa360205fb..0fa7d6af9e17 100644
--- a/lib/libsysdecode/sysdecode_fcntl_arg.3
+++ b/lib/libsysdecode/sysdecode_fcntl_arg.3
@@ -34,9 +34,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
-.In stdio.h
 .In sysdecode.h
 .Ft void
 .Fn sysdecode_fcntl_arg "FILE *fp" "int cmd" "uintptr_t arg" "int base"
diff --git a/lib/libsysdecode/sysdecode_ioctlname.3 b/lib/libsysdecode/sysdecode_ioctlname.3
index 93b6f43c92f2..40250a24f3ed 100644
--- a/lib/libsysdecode/sysdecode_ioctlname.3
+++ b/lib/libsysdecode/sysdecode_ioctlname.3
@@ -33,8 +33,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
 .In sysdecode.h
 .Ft const char *
 .Fn sysdecode_ioctlname "unsigned long request"
diff --git a/lib/libsysdecode/sysdecode_kevent.3 b/lib/libsysdecode/sysdecode_kevent.3
index 4fbf2c0fded3..c3dc0ff5a28b 100644
--- a/lib/libsysdecode/sysdecode_kevent.3
+++ b/lib/libsysdecode/sysdecode_kevent.3
@@ -36,9 +36,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
-.In stdio.h
 .In sysdecode.h
 .Ft void
 .Fn sysdecode_kevent_fflags "FILE *fp" "short filter" "int fflags" "int base"
diff --git a/lib/libsysdecode/sysdecode_mask.3 b/lib/libsysdecode/sysdecode_mask.3
index 45464e333eb4..e602e8494f8e 100644
--- a/lib/libsysdecode/sysdecode_mask.3
+++ b/lib/libsysdecode/sysdecode_mask.3
@@ -64,9 +64,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
-.In stdio.h
 .In sysdecode.h
 .Ft bool
 .Fn sysdecode_access_mode "FILE *fp" "int mode" "int *rem"
diff --git a/lib/libsysdecode/sysdecode_quotactl_cmd.3 b/lib/libsysdecode/sysdecode_quotactl_cmd.3
index 3dc6669520e4..1e59632bf0b8 100644
--- a/lib/libsysdecode/sysdecode_quotactl_cmd.3
+++ b/lib/libsysdecode/sysdecode_quotactl_cmd.3
@@ -33,9 +33,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
-.In stdio.h
 .In sysdecode.h
 .Ft bool
 .Fn sysdecode_quotactl_cmd "FILE *fp" "int cmd"
diff --git a/lib/libsysdecode/sysdecode_sctp_sinfo_flags.3 b/lib/libsysdecode/sysdecode_sctp_sinfo_flags.3
index 121d85c0e056..6275ef4b24db 100644
--- a/lib/libsysdecode/sysdecode_sctp_sinfo_flags.3
+++ b/lib/libsysdecode/sysdecode_sctp_sinfo_flags.3
@@ -34,9 +34,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
-.In stdio.h
 .In sysdecode.h
 .Ft void
 .Fn sysdecode_sctp_sinfo_flags "FILE *fp" "int sinfo_flags"
diff --git a/lib/libsysdecode/sysdecode_sigcode.3 b/lib/libsysdecode/sysdecode_sigcode.3
index 79dc0a6efc5d..32edd98e72c4 100644
--- a/lib/libsysdecode/sysdecode_sigcode.3
+++ b/lib/libsysdecode/sysdecode_sigcode.3
@@ -33,8 +33,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
 .In sysdecode.h
 .Ft const char *
 .Fn sysdecode_sigcode "int signal" "int si_code"
diff --git a/lib/libsysdecode/sysdecode_socket_protocol.3 b/lib/libsysdecode/sysdecode_socket_protocol.3
index 266bdf3fd793..9a5e212b712a 100644
--- a/lib/libsysdecode/sysdecode_socket_protocol.3
+++ b/lib/libsysdecode/sysdecode_socket_protocol.3
@@ -33,8 +33,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
 .In sysdecode.h
 .Ft const char *
 .Fn sysdecode_socket_protocol "int domain" "int protocol"
diff --git a/lib/libsysdecode/sysdecode_sockopt_name.3 b/lib/libsysdecode/sysdecode_sockopt_name.3
index 4bd8ace8c0cb..083221943e73 100644
--- a/lib/libsysdecode/sysdecode_sockopt_name.3
+++ b/lib/libsysdecode/sysdecode_sockopt_name.3
@@ -33,8 +33,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
 .In sysdecode.h
 .Ft const char *
 .Fn sysdecode_sockopt_name "int level" "int optname"
diff --git a/lib/libsysdecode/sysdecode_syscallnames.3 b/lib/libsysdecode/sysdecode_syscallnames.3
index ae1170737f36..4fed4af3502c 100644
--- a/lib/libsysdecode/sysdecode_syscallnames.3
+++ b/lib/libsysdecode/sysdecode_syscallnames.3
@@ -33,8 +33,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
 .In sysdecode.h
 .Ft const char *
 .Fn sysdecode_syscallnames "enum sysdecode_abi abi" "unsigned int code"
diff --git a/lib/libsysdecode/sysdecode_utrace.3 b/lib/libsysdecode/sysdecode_utrace.3
index 507fd2164813..6e503187740b 100644
--- a/lib/libsysdecode/sysdecode_utrace.3
+++ b/lib/libsysdecode/sysdecode_utrace.3
@@ -33,9 +33,6 @@
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
-.In sys/types.h
-.In stdbool.h
-.In stdio.h
 .In sysdecode.h
 .Ft int
 .Fn sysdecode_utrace "FILE *fp" "void *buf" "size_t len" "int decimal"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204221525.23MFP556082049>