Skip to contentSkip to conversation

tools: Use POSIX poll.h instead of sys/poll.h

PATCH In review Alistair Francis 5 participants 11 messages Apr 17, 2017 – Apr 18, 2017

lore
Share & tools
lore
#0 lore raw

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.html

This 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
index be24b76dfa..5d082c5704 100644
@@ -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
index ff4d289b45..238011e010 100644
@@ -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
index a87c9373c2..3fda487d49 100644
@@ -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
index f09fe6cf19..364a6fdad5 100644
@@ -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
#1 lore raw

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
index eecde3d23f..71315bb069 100644
@@ -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
Acked-by on v1 2/2
#2 lore raw

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.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#3 lore raw

Re: [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.

FWIW:

Thanks,
Razvan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#4 lore raw

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.html

This 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

FWIW:

Thanks!

Quoted 3 lines

Thanks,
Razvan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Acked-by on v1 2/2
#5 lore raw

[for-4.9] Re: [PATCH 2/2] tools: Use POSIX signal.h instead of sys/signal.h

In reply to Alistair Francis

Alistair 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

Acked-by on v1 1/2
#6 lore raw
In reply to Alistair Francis
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.

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

#7 lore raw
Quoted 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.html

This 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

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

#8 lore raw
In reply to Alistair Francis

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.html

This 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
index be24b76dfa..5d082c5704 100644
@@ -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
index ff4d289b45..238011e010 100644
@@ -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
index a87c9373c2..3fda487d49 100644
@@ -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
index f09fe6cf19..364a6fdad5 100644
@@ -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

#9 lore raw

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.html

This 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
index be24b76dfa..5d082c5704 100644
@@ -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
index ff4d289b45..238011e010 100644
@@ -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
index a87c9373c2..3fda487d49 100644
@@ -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
index f09fe6cf19..364a6fdad5 100644
@@ -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

#10 lore raw

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.html

This 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
index be24b76dfa..5d082c5704 100644
@@ -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
index ff4d289b45..238011e010 100644
@@ -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
index a87c9373c2..3fda487d49 100644
@@ -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
index f09fe6cf19..364a6fdad5 100644
@@ -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