tools: Use POSIX poll.h instead of sys/poll.h
PATCH 1/2 tools: Use POSIX poll.h instead of sys/poll.h
The POSIX spec specifies to use:
#include <poll.h>
instead of:
#include <sys/poll.h>
as seen here:
http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.htmlThis removes the warning:
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
when building with the musl C-library.
--- tools/libxl/libxl_internal.h | 2 +- tools/tests/xen-access/xen-access.c | 2 +- tools/xenstat/libxenstat/src/xenstat_qmp.c | 2 +- tools/xentrace/xentrace.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
tools/libxl/libxl_internal.h +1 -1
@@ -38,7 +38,7 @@#include <ctype.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/select.h> #include <sys/stat.h> #include <sys/time.h>
tools/tests/xen-access/xen-access.c +1 -1
@@ -36,7 +36,7 @@#include <signal.h> #include <unistd.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <xenctrl.h> #include <xenevtchn.h>
tools/xenstat/libxenstat/src/xenstat_qmp.c +1 -1
@@ -14,7 +14,7 @@#include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/un.h> #include <stdlib.h> #include <string.h>
tools/xentrace/xentrace.c +1 -1
@@ -24,7 +24,7 @@#include <getopt.h> #include <assert.h> #include <ctype.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/statvfs.h> #include <xen/xen.h>
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 2/2 tools: Use POSIX signal.h instead of sys/signal.h
The POSIX spec specifies to use:
#include <signal.h>
instead of:
#include <sys/signal.h>as seen here:
http://pubs.opengroup.org/onlinepubs/009695399/functions/signal.html
This removes the warning:
#warning redirecting incorrect #include <sys/signal.h> to <signal.h>
when building with the musl C-library.
--- tools/blktap2/drivers/tapdisk-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/blktap2/drivers/tapdisk-server.c +1 -1
@@ -30,7 +30,7 @@#include <unistd.h> #include <stdlib.h> #include <sys/ioctl.h> -#include <sys/signal.h> +#include <signal.h> #include "tapdisk-utils.h" #include "tapdisk-server.h"
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Re: [PATCH 2/2] tools: Use POSIX signal.h instead of sys/signal.h
Quoted 7 lines · Alistair Francis
The POSIX spec specifies to use:
#include <signal.h> instead of: #include <sys/signal.h> as seen here: http://pubs.opengroup.org/onlinepubs/009695399/functions/signal.html
Quoted 5 lines
This removes the warning:
#warning redirecting incorrect #include <sys/signal.h> to <signal.h>
when building with the musl C-library.Signed-off-by Alistair Francis <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Razvan Cojocaru
Acked-byRe: [PATCH 2/2] tools: Use POSIX signal.h instead of sys/signal.h
Quoted 8 lines · Wei Liu
Quoted 7 lines · Alistair Francis
The POSIX spec specifies to use:
#include <signal.h> instead of: #include <sys/signal.h> as seen here: http://pubs.opengroup.org/onlinepubs/009695399/functions/signal.html
Quoted 7 lines
Quoted 5 lines
This removes the warning:
#warning redirecting incorrect #include <sys/signal.h> to <signal.h>
when building with the musl C-library.Signed-off-by Alistair Francis <[email protected]>Acked-by Wei Liu <[email protected]>
FWIW:
Thanks,
Razvan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 2/2] tools: Use POSIX signal.h instead of sys/signal.h
Quoted 13 lines · Razvan Cojocaru
Quoted 12 lines · Wei Liu
Quoted 11 lines · Alistair Francis
The POSIX spec specifies to use:
#include <signal.h> instead of: #include <sys/signal.h> as seen here: http://pubs.opengroup.org/onlinepubs/009695399/functions/signal.htmlThis removes the warning:
#warning redirecting incorrect #include <sys/signal.h> to <signal.h>
when building with the musl C-library.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Alistair Francis <[email protected]>Acked-by Wei Liu <[email protected]>FWIW:
Acked-by Razvan Cojocaru <[email protected]>
Thanks!
Quoted 3 lines
Thanks,
Razvan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
[for-4.9] Re: [PATCH 2/2] tools: Use POSIX signal.h instead of sys/signal.h
In reply to Alistair FrancisAlistair Francis writes ("[PATCH 2/2] tools: Use POSIX signal.h instead of sys/signal.h"):
Quoted 6 lines
The POSIX spec specifies to use:
#include <signal.h> instead of: #include <sys/signal.h> as seen here: http://pubs.opengroup.org/onlinepubs/009695399/functions/signal.html
Both:
Julien, I think this pair are a candidate for 4.9.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 7 lines · Alistair Francis
The POSIX spec specifies to use:
#include <poll.h> instead of: #include <sys/poll.h> as seen here: http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.html
Quoted 5 lines
This removes the warning:
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
when building with the musl C-library.Signed-off-by Alistair Francis <[email protected]>
FAOD, these are just mechanical changes. I don't think acks from Tamas and George are strictly required.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Razvan Cojocaru
Acked-byQuoted 12 lines · Wei Liu
Quoted 11 lines · Alistair Francis
The POSIX spec specifies to use:
#include <poll.h> instead of: #include <sys/poll.h> as seen here: http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.htmlThis removes the warning:
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
when building with the musl C-library.
Quoted 6 lines
Quoted 1 line
Signed-off-by Alistair Francis <[email protected]>Acked-by Wei Liu <[email protected]>FAOD, these are just mechanical changes. I don't think acks from Tamas and George are strictly required.
FWIW:
Thanks,
Razvan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Cc Julien
I think these two patches should be in 4.9.
Quoted 74 lines · Alistair Francis
The POSIX spec specifies to use:
#include <poll.h> instead of: #include <sys/poll.h> as seen here: http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.htmlThis removes the warning:
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
when building with the musl C-library.Signed-off-by Alistair Francis <[email protected]>--- tools/libxl/libxl_internal.h | 2 +- tools/tests/xen-access/xen-access.c | 2 +- tools/xenstat/libxenstat/src/xenstat_qmp.c | 2 +- tools/xentrace/xentrace.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)tools/libxl/libxl_internal.h +1
-1@@ -38,7 +38,7 @@#include <ctype.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/select.h> #include <sys/stat.h> #include <sys/time.h> tools/tests/xen-access/xen-access.c +1
-1@@ -36,7 +36,7 @@#include <signal.h> #include <unistd.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <xenctrl.h> #include <xenevtchn.h> tools/xenstat/libxenstat/src/xenstat_qmp.c +1
-1@@ -14,7 +14,7 @@#include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/un.h> #include <stdlib.h> #include <string.h> tools/xentrace/xentrace.c +1
-1@@ -24,7 +24,7 @@#include <getopt.h> #include <assert.h> #include <ctype.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/statvfs.h> #include <xen/xen.h> Signature · 1 line
2.11.0
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Really CC Julien. :-/
Quoted 75 lines · Wei Liu
Cc Julien
I think these two patches should be in 4.9.
Quoted 70 lines · Alistair Francis
The POSIX spec specifies to use:
#include <poll.h> instead of: #include <sys/poll.h> as seen here: http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.htmlThis removes the warning:
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
when building with the musl C-library.Signed-off-by Alistair Francis <[email protected]>--- tools/libxl/libxl_internal.h | 2 +- tools/tests/xen-access/xen-access.c | 2 +- tools/xenstat/libxenstat/src/xenstat_qmp.c | 2 +- tools/xentrace/xentrace.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)tools/libxl/libxl_internal.h +1
-1@@ -38,7 +38,7 @@#include <ctype.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/select.h> #include <sys/stat.h> #include <sys/time.h> tools/tests/xen-access/xen-access.c +1
-1@@ -36,7 +36,7 @@#include <signal.h> #include <unistd.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <xenctrl.h> #include <xenevtchn.h> tools/xenstat/libxenstat/src/xenstat_qmp.c +1
-1@@ -14,7 +14,7 @@#include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/un.h> #include <stdlib.h> #include <string.h> tools/xentrace/xentrace.c +1
-1@@ -24,7 +24,7 @@#include <getopt.h> #include <assert.h> #include <ctype.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/statvfs.h>
Quoted 4 lines
Quoted 4 lines
tools/xentrace/xentrace.c +0
-0#include <xen/xen.h> Signature · 1 line
2.11.0
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Hi Wei,
Cheers,
Quoted 82 lines · Wei Liu
Really CC Julien. :-/
Quoted 79 lines · Wei Liu
Cc Julien
I think these two patches should be in 4.9.
Quoted 74 lines · Alistair Francis
The POSIX spec specifies to use:
#include <poll.h> instead of: #include <sys/poll.h> as seen here: http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.htmlThis removes the warning:
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
when building with the musl C-library.Signed-off-by Alistair Francis <[email protected]>--- tools/libxl/libxl_internal.h | 2 +- tools/tests/xen-access/xen-access.c | 2 +- tools/xenstat/libxenstat/src/xenstat_qmp.c | 2 +- tools/xentrace/xentrace.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)tools/libxl/libxl_internal.h +1
-1@@ -38,7 +38,7 @@#include <ctype.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/select.h> #include <sys/stat.h> #include <sys/time.h> tools/tests/xen-access/xen-access.c +1
-1@@ -36,7 +36,7 @@#include <signal.h> #include <unistd.h> #include <sys/mman.h> -#include <sys/poll.h> +#include <poll.h> #include <xenctrl.h> #include <xenevtchn.h> tools/xenstat/libxenstat/src/xenstat_qmp.c +1
-1@@ -14,7 +14,7 @@#include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/un.h> #include <stdlib.h> #include <string.h> tools/xentrace/xentrace.c +1
-2@@ -24,7 +24,7 @@#include <getopt.h> #include <assert.h> #include <ctype.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/statvfs.h> #include <xen/xen.h> --2.11.0
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel