linux: Implement tmpfile with O_TMPFILE (BZ#21530)

Message ID alpine.DEB.2.20.1709011715210.25426@digraph.polyomino.org.uk
State New, archived
Headers

Commit Message

Joseph Myers Sept. 1, 2017, 5:16 p.m. UTC
  Fix committed for build breakage this caused on many architectures 
("implicit declaration of function 'strcmp'").

https://sourceware.org/ml/libc-testresults/2017-q3/msg00372.html
  

Comments

Adhemerval Zanella Netto Sept. 1, 2017, 5:42 p.m. UTC | #1
Thanks for catching it.

On 01/09/2017 14:16, Joseph Myers wrote:
> Fix committed for build breakage this caused on many architectures 
> ("implicit declaration of function 'strcmp'").
> 
> https://sourceware.org/ml/libc-testresults/2017-q3/msg00372.html
> 
> diff --git a/ChangeLog b/ChangeLog
> index fccac95..5c5dd35 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,7 @@
> +2017-09-01  Joseph Myers  <joseph@codesourcery.com>
> +
> +	* sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
> +
>  2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
>  
>  	* csu/version.c (banner): Remove "by Roland McGrath et al.".
> diff --git a/sysdeps/unix/sysv/linux/gentempfd.c b/sysdeps/unix/sysv/linux/gentempfd.c
> index 902cbe2..ff3a649 100644
> --- a/sysdeps/unix/sysv/linux/gentempfd.c
> +++ b/sysdeps/unix/sysv/linux/gentempfd.c
> @@ -19,6 +19,7 @@
>  #include <stdio.h>
>  #include <fcntl.h>
>  #include <errno.h>
> +#include <string.h>
>  
>  int
>  __gen_tempfd (int flags)
>
  

Patch

diff --git a/ChangeLog b/ChangeLog
index fccac95..5c5dd35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@ 
+2017-09-01  Joseph Myers  <joseph@codesourcery.com>
+
+	* sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
+
 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* csu/version.c (banner): Remove "by Roland McGrath et al.".
diff --git a/sysdeps/unix/sysv/linux/gentempfd.c b/sysdeps/unix/sysv/linux/gentempfd.c
index 902cbe2..ff3a649 100644
--- a/sysdeps/unix/sysv/linux/gentempfd.c
+++ b/sysdeps/unix/sysv/linux/gentempfd.c
@@ -19,6 +19,7 @@ 
 #include <stdio.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <string.h>
 
 int
 __gen_tempfd (int flags)