Add missing header wrappers under include/

Message ID 87bm3hdrk5.fsf@oldenburg2.str.redhat.com
State Committed
Headers

Commit Message

Florian Weimer Feb. 12, 2019, 2:12 p.m. UTC
  * Florian Weimer:

> * Florian Weimer:
>
>> With a complete set of wrapper headers, it will be possible to check
>> for automatically for new installed headers which lack such wrappers.
>
> We also need include/rpcsvc/bootparam.h and include/rpcsvc/yp_prot.h if
> we want to go into this direction.

Here's a patch that does that.

Thanks,
Florian

Add missing header wrappers under include/

With a complete set of wrapper headers, it will be possible to check
for automatically for new installed headers which lack such wrappers.

2019-02-12  Florian Weimer  <fweimer@redhat.com>

	Add missing header wrappers under include/.
	* include/ar.h: New file.
	* include/bits/mqueue2.h: Likewise.
	* include/bits/stdio.h: Likewise.
	* include/bits/stdio2.h: Likewise.
	* include/fstab.h: Likewise.
	* include/fts.h: Likewise.
	* include/lastlog.h: Likewise.
	* include/netinet/icmp6.h: Likewise.
	* include/netinet/igmp.h: Likewise.
	* include/netinet/ip6.h: Likewise.
	* include/re_comp.h: Likewise.
	* include/regexp.h: Likewise.
	* include/rpcsvc/bootparam.h: Likewise.
	* include/rpcsvc/yp_prot.h: Likewise.
	* include/sys/random.h: Likewise.
	* include/sys/stropts.h: Likewise.
	* include/sys/ttychars.h: Likewise.
	* include/sys/vfs.h: Likewise.
	* include/wait.h: Likewise.
  

Comments

Carlos O'Donell Feb. 12, 2019, 2:54 p.m. UTC | #1
On 2/12/19 9:12 AM, Florian Weimer wrote:
> * Florian Weimer:
> 
>> * Florian Weimer:
>>
>>> With a complete set of wrapper headers, it will be possible to check
>>> for automatically for new installed headers which lack such wrappers.
>>
>> We also need include/rpcsvc/bootparam.h and include/rpcsvc/yp_prot.h if
>> we want to go into this direction.
> 
> Here's a patch that does that.
> 
> Thanks,
> Florian
> 
> Add missing header wrappers under include/
> 
> With a complete set of wrapper headers, it will be possible to check
> for automatically for new installed headers which lack such wrappers.
> 
> 2019-02-12  Florian Weimer  <fweimer@redhat.com>
> 
> 	Add missing header wrappers under include/.
> 	* include/ar.h: New file.
> 	* include/bits/mqueue2.h: Likewise.
> 	* include/bits/stdio.h: Likewise.
> 	* include/bits/stdio2.h: Likewise.
> 	* include/fstab.h: Likewise.
> 	* include/fts.h: Likewise.
> 	* include/lastlog.h: Likewise.
> 	* include/netinet/icmp6.h: Likewise.
> 	* include/netinet/igmp.h: Likewise.
> 	* include/netinet/ip6.h: Likewise.
> 	* include/re_comp.h: Likewise.
> 	* include/regexp.h: Likewise.
> 	* include/rpcsvc/bootparam.h: Likewise.
> 	* include/rpcsvc/yp_prot.h: Likewise.
> 	* include/sys/random.h: Likewise.
> 	* include/sys/stropts.h: Likewise.
> 	* include/sys/ttychars.h: Likewise.
> 	* include/sys/vfs.h: Likewise.
> 	* include/wait.h: Likewise.

OK for master. I like the direction this goes. Thanks for working on this.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>

> diff --git a/include/ar.h b/include/ar.h
> new file mode 100644
> index 0000000000..400167a53c
> --- /dev/null
> +++ b/include/ar.h
> @@ -0,0 +1 @@
> +#include <misc/ar.h>
> diff --git a/include/bits/mqueue2.h b/include/bits/mqueue2.h
> new file mode 100644
> index 0000000000..2d5c231181
> --- /dev/null
> +++ b/include/bits/mqueue2.h
> @@ -0,0 +1 @@
> +#include <rt/bits/mqueue2.h>
> diff --git a/include/bits/stdio.h b/include/bits/stdio.h
> new file mode 100644
> index 0000000000..55c51eadeb
> --- /dev/null
> +++ b/include/bits/stdio.h
> @@ -0,0 +1 @@
> +#include <libio/bits/stdio.h>
> diff --git a/include/bits/stdio2.h b/include/bits/stdio2.h
> new file mode 100644
> index 0000000000..6d7cf4306f
> --- /dev/null
> +++ b/include/bits/stdio2.h
> @@ -0,0 +1 @@
> +#include <libio/bits/stdio2.h>
> diff --git a/include/fstab.h b/include/fstab.h
> new file mode 100644
> index 0000000000..314aa3e3b9
> --- /dev/null
> +++ b/include/fstab.h
> @@ -0,0 +1 @@
> +#include <misc/fstab.h>
> diff --git a/include/fts.h b/include/fts.h
> new file mode 100644
> index 0000000000..145dce6779
> --- /dev/null
> +++ b/include/fts.h
> @@ -0,0 +1 @@
> +#include <io/fts.h>
> diff --git a/include/lastlog.h b/include/lastlog.h
> new file mode 100644
> index 0000000000..5c0ea0320e
> --- /dev/null
> +++ b/include/lastlog.h
> @@ -0,0 +1 @@
> +#include <login/lastlog.h>
> diff --git a/include/netinet/icmp6.h b/include/netinet/icmp6.h
> new file mode 100644
> index 0000000000..fee15fc531
> --- /dev/null
> +++ b/include/netinet/icmp6.h
> @@ -0,0 +1 @@
> +#include <inet/netinet/icmp6.h>
> diff --git a/include/netinet/igmp.h b/include/netinet/igmp.h
> new file mode 100644
> index 0000000000..63a9355f79
> --- /dev/null
> +++ b/include/netinet/igmp.h
> @@ -0,0 +1 @@
> +#include <inet/netinet/igmp.h>
> diff --git a/include/netinet/ip6.h b/include/netinet/ip6.h
> new file mode 100644
> index 0000000000..262c7c2405
> --- /dev/null
> +++ b/include/netinet/ip6.h
> @@ -0,0 +1 @@
> +#include <inet/netinet/ip6.h>
> diff --git a/include/re_comp.h b/include/re_comp.h
> new file mode 100644
> index 0000000000..130df7d956
> --- /dev/null
> +++ b/include/re_comp.h
> @@ -0,0 +1 @@
> +#include <posix/re_comp.h>
> diff --git a/include/regexp.h b/include/regexp.h
> new file mode 100644
> index 0000000000..3155371b17
> --- /dev/null
> +++ b/include/regexp.h
> @@ -0,0 +1 @@
> +#include <misc/regexp.h>
> diff --git a/include/rpcsvc/bootparam.h b/include/rpcsvc/bootparam.h
> new file mode 100644
> index 0000000000..87e4eef218
> --- /dev/null
> +++ b/include/rpcsvc/bootparam.h
> @@ -0,0 +1 @@
> +#include <sunrpc/rpcsvc/bootparam.h>
> diff --git a/include/rpcsvc/yp_prot.h b/include/rpcsvc/yp_prot.h
> new file mode 100644
> index 0000000000..ab1ca10a28
> --- /dev/null
> +++ b/include/rpcsvc/yp_prot.h
> @@ -0,0 +1 @@
> +#include <nis/rpcsvc/yp_prot.h>
> diff --git a/include/sys/random.h b/include/sys/random.h
> new file mode 100644
> index 0000000000..b33d114b74
> --- /dev/null
> +++ b/include/sys/random.h
> @@ -0,0 +1 @@
> +#include <stdlib/sys/random.h>
> diff --git a/include/sys/stropts.h b/include/sys/stropts.h
> new file mode 100644
> index 0000000000..711f1502dd
> --- /dev/null
> +++ b/include/sys/stropts.h
> @@ -0,0 +1 @@
> +#include <streams/sys/stropts.h>
> diff --git a/include/sys/ttychars.h b/include/sys/ttychars.h
> new file mode 100644
> index 0000000000..86cb77dd77
> --- /dev/null
> +++ b/include/sys/ttychars.h
> @@ -0,0 +1 @@
> +#include <termios/sys/ttychars.h>
> diff --git a/include/sys/vfs.h b/include/sys/vfs.h
> new file mode 100644
> index 0000000000..95f311dbd6
> --- /dev/null
> +++ b/include/sys/vfs.h
> @@ -0,0 +1 @@
> +#include <io/sys/vfs.h>
> diff --git a/include/wait.h b/include/wait.h
> new file mode 100644
> index 0000000000..ed3d08601e
> --- /dev/null
> +++ b/include/wait.h
> @@ -0,0 +1 @@
> +#include <posix/wait.h>
>
  

Patch

diff --git a/include/ar.h b/include/ar.h
new file mode 100644
index 0000000000..400167a53c
--- /dev/null
+++ b/include/ar.h
@@ -0,0 +1 @@ 
+#include <misc/ar.h>
diff --git a/include/bits/mqueue2.h b/include/bits/mqueue2.h
new file mode 100644
index 0000000000..2d5c231181
--- /dev/null
+++ b/include/bits/mqueue2.h
@@ -0,0 +1 @@ 
+#include <rt/bits/mqueue2.h>
diff --git a/include/bits/stdio.h b/include/bits/stdio.h
new file mode 100644
index 0000000000..55c51eadeb
--- /dev/null
+++ b/include/bits/stdio.h
@@ -0,0 +1 @@ 
+#include <libio/bits/stdio.h>
diff --git a/include/bits/stdio2.h b/include/bits/stdio2.h
new file mode 100644
index 0000000000..6d7cf4306f
--- /dev/null
+++ b/include/bits/stdio2.h
@@ -0,0 +1 @@ 
+#include <libio/bits/stdio2.h>
diff --git a/include/fstab.h b/include/fstab.h
new file mode 100644
index 0000000000..314aa3e3b9
--- /dev/null
+++ b/include/fstab.h
@@ -0,0 +1 @@ 
+#include <misc/fstab.h>
diff --git a/include/fts.h b/include/fts.h
new file mode 100644
index 0000000000..145dce6779
--- /dev/null
+++ b/include/fts.h
@@ -0,0 +1 @@ 
+#include <io/fts.h>
diff --git a/include/lastlog.h b/include/lastlog.h
new file mode 100644
index 0000000000..5c0ea0320e
--- /dev/null
+++ b/include/lastlog.h
@@ -0,0 +1 @@ 
+#include <login/lastlog.h>
diff --git a/include/netinet/icmp6.h b/include/netinet/icmp6.h
new file mode 100644
index 0000000000..fee15fc531
--- /dev/null
+++ b/include/netinet/icmp6.h
@@ -0,0 +1 @@ 
+#include <inet/netinet/icmp6.h>
diff --git a/include/netinet/igmp.h b/include/netinet/igmp.h
new file mode 100644
index 0000000000..63a9355f79
--- /dev/null
+++ b/include/netinet/igmp.h
@@ -0,0 +1 @@ 
+#include <inet/netinet/igmp.h>
diff --git a/include/netinet/ip6.h b/include/netinet/ip6.h
new file mode 100644
index 0000000000..262c7c2405
--- /dev/null
+++ b/include/netinet/ip6.h
@@ -0,0 +1 @@ 
+#include <inet/netinet/ip6.h>
diff --git a/include/re_comp.h b/include/re_comp.h
new file mode 100644
index 0000000000..130df7d956
--- /dev/null
+++ b/include/re_comp.h
@@ -0,0 +1 @@ 
+#include <posix/re_comp.h>
diff --git a/include/regexp.h b/include/regexp.h
new file mode 100644
index 0000000000..3155371b17
--- /dev/null
+++ b/include/regexp.h
@@ -0,0 +1 @@ 
+#include <misc/regexp.h>
diff --git a/include/rpcsvc/bootparam.h b/include/rpcsvc/bootparam.h
new file mode 100644
index 0000000000..87e4eef218
--- /dev/null
+++ b/include/rpcsvc/bootparam.h
@@ -0,0 +1 @@ 
+#include <sunrpc/rpcsvc/bootparam.h>
diff --git a/include/rpcsvc/yp_prot.h b/include/rpcsvc/yp_prot.h
new file mode 100644
index 0000000000..ab1ca10a28
--- /dev/null
+++ b/include/rpcsvc/yp_prot.h
@@ -0,0 +1 @@ 
+#include <nis/rpcsvc/yp_prot.h>
diff --git a/include/sys/random.h b/include/sys/random.h
new file mode 100644
index 0000000000..b33d114b74
--- /dev/null
+++ b/include/sys/random.h
@@ -0,0 +1 @@ 
+#include <stdlib/sys/random.h>
diff --git a/include/sys/stropts.h b/include/sys/stropts.h
new file mode 100644
index 0000000000..711f1502dd
--- /dev/null
+++ b/include/sys/stropts.h
@@ -0,0 +1 @@ 
+#include <streams/sys/stropts.h>
diff --git a/include/sys/ttychars.h b/include/sys/ttychars.h
new file mode 100644
index 0000000000..86cb77dd77
--- /dev/null
+++ b/include/sys/ttychars.h
@@ -0,0 +1 @@ 
+#include <termios/sys/ttychars.h>
diff --git a/include/sys/vfs.h b/include/sys/vfs.h
new file mode 100644
index 0000000000..95f311dbd6
--- /dev/null
+++ b/include/sys/vfs.h
@@ -0,0 +1 @@ 
+#include <io/sys/vfs.h>
diff --git a/include/wait.h b/include/wait.h
new file mode 100644
index 0000000000..ed3d08601e
--- /dev/null
+++ b/include/wait.h
@@ -0,0 +1 @@ 
+#include <posix/wait.h>