* [hurd,commited 1/7] hurd: fix warning
2018-01-27 22:16 [hurd,commited 0/7] warning fixes Samuel Thibault
@ 2018-01-27 22:29 ` Samuel Thibault
2018-01-27 22:51 ` [hurd,commited 7/7] " Samuel Thibault
` (5 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Samuel Thibault @ 2018-01-27 22:29 UTC (permalink / raw)
To: libc-alpha; +Cc: Samuel Thibault
* sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
---
ChangeLog | 4 ++++
sysdeps/mach/hurd/xmknodat.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 8e3c150aca..e6392de4e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
+
2018-01-27 James Clarke <jrtc27@jrtc27.com>
* sysdeps/hppa/fpu/libm-test-ulps: Update.
diff --git a/sysdeps/mach/hurd/xmknodat.c b/sysdeps/mach/hurd/xmknodat.c
index d824281476..40d86aa2c0 100644
--- a/sysdeps/mach/hurd/xmknodat.c
+++ b/sysdeps/mach/hurd/xmknodat.c
@@ -25,6 +25,7 @@
#include <_itoa.h>
#include <string.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
/* Create a device file named PATH relative to FD, with permission and
special bits MODE and device number DEV (which can be constructed
--
2.15.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [hurd,commited 7/7] hurd: fix warning
2018-01-27 22:16 [hurd,commited 0/7] warning fixes Samuel Thibault
2018-01-27 22:29 ` [hurd,commited 1/7] hurd: fix warning Samuel Thibault
@ 2018-01-27 22:51 ` Samuel Thibault
2018-01-27 22:51 ` [hurd,commited 6/7] hurd: fix warnings Samuel Thibault
` (4 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Samuel Thibault @ 2018-01-27 22:51 UTC (permalink / raw)
To: libc-alpha; +Cc: Samuel Thibault
* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
vm_address_t * to ElfW(Addr) * for dl_main parameter.
---
ChangeLog | 2 ++
sysdeps/mach/hurd/dl-sysdep.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index c52aa4266c..f2a771781e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,8 @@
* sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
__sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
return 0.
+ * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
+ vm_address_t * to ElfW(Addr) * for dl_main parameter.
2018-01-27 James Clarke <jrtc27@jrtc27.com>
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index 7f2ba8c78b..2cd63bb83a 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -204,7 +204,7 @@ unfmh(); /* XXX */
up and leave us to transfer control to USER_ENTRY. */
(*dl_main) ((const ElfW(Phdr) *) _dl_hurd_data->phdr,
_dl_hurd_data->phdrsz / sizeof (ElfW(Phdr)),
- &_dl_hurd_data->user_entry, NULL);
+ (ElfW(Addr) *) &_dl_hurd_data->user_entry, NULL);
/* The call above might screw a few things up.
--
2.15.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [hurd,commited 6/7] hurd: fix warnings
2018-01-27 22:16 [hurd,commited 0/7] warning fixes Samuel Thibault
2018-01-27 22:29 ` [hurd,commited 1/7] hurd: fix warning Samuel Thibault
2018-01-27 22:51 ` [hurd,commited 7/7] " Samuel Thibault
@ 2018-01-27 22:51 ` Samuel Thibault
2018-01-27 22:51 ` [hurd,commited 5/7] hurd: fix warning Samuel Thibault
` (3 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Samuel Thibault @ 2018-01-27 22:51 UTC (permalink / raw)
To: libc-alpha; +Cc: Samuel Thibault
* sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
__sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
return 0.
---
ChangeLog | 3 +++
sysdeps/generic/sigsetops.h | 12 ++++++------
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7284b25b78..c52aa4266c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,9 @@
<sys/wait.h>, <time.h>, <sys/uio.h>.
(NOT_CANCEL_H): Add inclusion guard.
* sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
+ * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
+ __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
+ return 0.
2018-01-27 James Clarke <jrtc27@jrtc27.com>
diff --git a/sysdeps/generic/sigsetops.h b/sysdeps/generic/sigsetops.h
index 02bc728c06..52b0e79071 100644
--- a/sysdeps/generic/sigsetops.h
+++ b/sysdeps/generic/sigsetops.h
@@ -28,12 +28,12 @@
#define __sigemptyset(set) \
(__extension__ ({ \
*(set) = (__sigset_t) 0; \
- (void)0; \
+ 0; \
}))
#define __sigfillset(set) \
(__extension__ ({ \
*(set) = ~(__sigset_t) 0; \
- (void)0; \
+ 0; \
}))
# define __sigisemptyset(set) \
@@ -42,13 +42,13 @@
# define __sigandset(dest, left, right) \
(__extension__ ({ \
*(dest) = *(left) & *(right); \
- (void)0; \
+ 0; \
}))
# define __sigorset(dest, left, right) \
(__extension__ ({ \
*(dest) = *(left) | *(right); \
- (void)0; \
+ 0; \
}))
/* These macros needn't check for a bogus signal number;
@@ -63,14 +63,14 @@
(__extension__ ({ \
__sigset_t __mask = __sigmask (sig); \
*(set) |= __mask; \
- (void)0; \
+ 0; \
}))
# define __sigdelset(set, sig) \
(__extension__ ({ \
__sigset_t __mask = __sigmask (sig); \
*(set) &= ~__mask; \
- (void)0; \
+ 0; \
}))
#endif
--
2.15.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [hurd,commited 5/7] hurd: fix warning
2018-01-27 22:16 [hurd,commited 0/7] warning fixes Samuel Thibault
` (2 preceding siblings ...)
2018-01-27 22:51 ` [hurd,commited 6/7] hurd: fix warnings Samuel Thibault
@ 2018-01-27 22:51 ` Samuel Thibault
2018-01-27 22:51 ` [hurd,commited 2/7] " Samuel Thibault
` (2 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Samuel Thibault @ 2018-01-27 22:51 UTC (permalink / raw)
To: libc-alpha; +Cc: Samuel Thibault
* sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
---
ChangeLog | 1 +
sysdeps/generic/sigset-cvt-mask.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index f9770b1554..7284b25b78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
* sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
<sys/wait.h>, <time.h>, <sys/uio.h>.
(NOT_CANCEL_H): Add inclusion guard.
+ * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
2018-01-27 James Clarke <jrtc27@jrtc27.com>
diff --git a/sysdeps/generic/sigset-cvt-mask.h b/sysdeps/generic/sigset-cvt-mask.h
index 78e15c3386..ad4b8b2d2d 100644
--- a/sysdeps/generic/sigset-cvt-mask.h
+++ b/sysdeps/generic/sigset-cvt-mask.h
@@ -20,6 +20,8 @@
/* Convert between an old-style 32-bit signal mask and a POSIX sigset_t. */
+#include <sigsetops.h>
+
/* Perform *SET = MASK. Unused bits of *SET are set to 0.
Returns zero for success or -1 for errors (from sigaddset/sigemptyset). */
static inline int __attribute__ ((unused))
--
2.15.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [hurd,commited 2/7] hurd: fix warning
2018-01-27 22:16 [hurd,commited 0/7] warning fixes Samuel Thibault
` (3 preceding siblings ...)
2018-01-27 22:51 ` [hurd,commited 5/7] hurd: fix warning Samuel Thibault
@ 2018-01-27 22:51 ` Samuel Thibault
2018-01-27 22:51 ` [hurd,commited 3/7] " Samuel Thibault
2018-01-27 22:51 ` [hurd,commited 4/7] hurd: fix warnings Samuel Thibault
6 siblings, 0 replies; 9+ messages in thread
From: Samuel Thibault @ 2018-01-27 22:51 UTC (permalink / raw)
To: libc-alpha; +Cc: Samuel Thibault
* sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
a `c' variable.
---
ChangeLog | 2 ++
sysdeps/mach/hurd/profil.c | 6 +++---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e6392de4e8..d923c6444f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
* sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
+ * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
+ a `c' variable.
2018-01-27 James Clarke <jrtc27@jrtc27.com>
diff --git a/sysdeps/mach/hurd/profil.c b/sysdeps/mach/hurd/profil.c
index 1323457acb..2fe8f9de56 100644
--- a/sysdeps/mach/hurd/profil.c
+++ b/sysdeps/mach/hurd/profil.c
@@ -154,14 +154,14 @@ fetch_samples (void)
pc_samples, &nsamples);
if (err)
{
- static error_t special_profil_failure;
- static volatile int a, b, c;
+ static volatile error_t special_profil_failure;
+ static volatile int a, b;
special_profil_failure = err;
a = 1;
b = 0;
while (1)
- c = a / b;
+ a = a / b;
}
for (i = 0; i < nsamples; ++i)
--
2.15.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [hurd,commited 3/7] hurd: fix warning
2018-01-27 22:16 [hurd,commited 0/7] warning fixes Samuel Thibault
` (4 preceding siblings ...)
2018-01-27 22:51 ` [hurd,commited 2/7] " Samuel Thibault
@ 2018-01-27 22:51 ` Samuel Thibault
2018-01-27 22:51 ` [hurd,commited 4/7] hurd: fix warnings Samuel Thibault
6 siblings, 0 replies; 9+ messages in thread
From: Samuel Thibault @ 2018-01-27 22:51 UTC (permalink / raw)
To: libc-alpha; +Cc: Samuel Thibault
* resolv/res-close.c: Include <stdlib.h>.
---
ChangeLog | 1 +
resolv/res-close.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index d923c6444f..9bdd0a48bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
* sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
* sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
a `c' variable.
+ * resolv/res-close.c: Include <stdlib.h>.
2018-01-27 James Clarke <jrtc27@jrtc27.com>
diff --git a/resolv/res-close.c b/resolv/res-close.c
index 43b9292857..e02f5afa15 100644
--- a/resolv/res-close.c
+++ b/resolv/res-close.c
@@ -86,6 +86,7 @@
#include <resolv_context.h>
#include <resolv_conf.h>
#include <not-cancel.h>
+#include <stdlib.h>
/* Close all open sockets. If FREE_ADDR is true, deallocate any
separately allocated name server addresses. */
--
2.15.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [hurd,commited 4/7] hurd: fix warnings
2018-01-27 22:16 [hurd,commited 0/7] warning fixes Samuel Thibault
` (5 preceding siblings ...)
2018-01-27 22:51 ` [hurd,commited 3/7] " Samuel Thibault
@ 2018-01-27 22:51 ` Samuel Thibault
6 siblings, 0 replies; 9+ messages in thread
From: Samuel Thibault @ 2018-01-27 22:51 UTC (permalink / raw)
To: libc-alpha; +Cc: Samuel Thibault
* sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
<sys/wait.h>, <time.h>, <sys/uio.h>.
(NOT_CANCEL_H): Add inclusion guard.
---
ChangeLog | 3 +++
sysdeps/generic/not-cancel.h | 11 +++++++++++
2 files changed, 14 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 9bdd0a48bc..f9770b1554 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
* sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
a `c' variable.
* resolv/res-close.c: Include <stdlib.h>.
+ * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
+ <sys/wait.h>, <time.h>, <sys/uio.h>.
+ (NOT_CANCEL_H): Add inclusion guard.
2018-01-27 James Clarke <jrtc27@jrtc27.com>
diff --git a/sysdeps/generic/not-cancel.h b/sysdeps/generic/not-cancel.h
index 631216ee4a..19ad8cbc4c 100644
--- a/sysdeps/generic/not-cancel.h
+++ b/sysdeps/generic/not-cancel.h
@@ -17,6 +17,15 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+#ifndef NOT_CANCEL_H
+# define NOT_CANCEL_H
+
+#include <fcntl.h>
+#include <unistd.h>
+#include <sys/wait.h>
+#include <time.h>
+#include <sys/uio.h>
+
/* By default we have none. Map the name to the normal functions. */
#define __open_nocancel(...) \
__open (__VA_ARGS__)
@@ -44,3 +53,5 @@
__nanosleep (requested_time, remaining)
#define __fcntl_nocancel(fd, cmd, ...) \
__fcntl (fd, cmd, __VA_ARGS__)
+
+#endif /* NOT_CANCEL_H */
--
2.15.1
^ permalink raw reply [flat|nested] 9+ messages in thread