This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch roland/nacl-port/master updated. 470984353c80445e12c6a0a16eb040d0b378600f
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 7 May 2013 17:43:01 -0000
- Subject: GNU C Library master sources branch roland/nacl-port/master updated. 470984353c80445e12c6a0a16eb040d0b378600f
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, roland/nacl-port/master has been updated
via 470984353c80445e12c6a0a16eb040d0b378600f (commit)
via 6c10ae666b6ed02f8e31d17da0ea5eadefa6a66e (commit)
via bd899d0aaca8ceef7271aa7b5bab39cfc3768ba7 (commit)
via f2dc1636e754087a213d510118ef1302bfac48c1 (commit)
via 4a957c97c4a2b390f5ab47cf5645acf373803642 (commit)
via 07d11f21e061d9837d523cb6efc5af85257a2932 (commit)
via 45b90e41f752df6c417ce251aba43406debd0d7e (commit)
from 8638b8cc739ff7b775681d489c608e54a0883b39 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=470984353c80445e12c6a0a16eb040d0b378600f
commit 470984353c80445e12c6a0a16eb040d0b378600f
Author: Roland McGrath <roland@hack.frob.com>
Date: Mon May 6 16:14:29 2013 -0700
glob/glob64
diff --git a/sysdeps/nacl/glob.c b/sysdeps/nacl/glob.c
new file mode 100644
index 0000000..147bc10
--- /dev/null
+++ b/sysdeps/nacl/glob.c
@@ -0,0 +1,6 @@
+/* XXX temporary? hack */
+#include <unistd.h>
+#define getlogin_r(name, len) (ENOSYS)
+
+/* Fetch the version that defines glob64 as an alias. */
+#include <sysdeps/wordsize-64/glob.c>
diff --git a/sysdeps/nacl/glob64.c b/sysdeps/nacl/glob64.c
new file mode 100644
index 0000000..adca2d4
--- /dev/null
+++ b/sysdeps/nacl/glob64.c
@@ -0,0 +1 @@
+#include <sysdeps/wordsize-64/glob64.c>
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=6c10ae666b6ed02f8e31d17da0ea5eadefa6a66e
commit 6c10ae666b6ed02f8e31d17da0ea5eadefa6a66e
Author: Roland McGrath <roland@hack.frob.com>
Date: Mon May 6 16:14:10 2013 -0700
Stub profil.
diff --git a/sysdeps/nacl/profil.c b/sysdeps/nacl/profil.c
new file mode 100644
index 0000000..701d7ad
--- /dev/null
+++ b/sysdeps/nacl/profil.c
@@ -0,0 +1,2 @@
+/* Side-step sysdeps/posix/profil.c, which uses sigaction and setitimer. */
+#include <gmon/profil.c>
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=bd899d0aaca8ceef7271aa7b5bab39cfc3768ba7
commit bd899d0aaca8ceef7271aa7b5bab39cfc3768ba7
Author: Roland McGrath <roland@hack.frob.com>
Date: Mon May 6 16:13:51 2013 -0700
Simplified _dl_writev.
diff --git a/sysdeps/nacl/dl-writev.h b/sysdeps/nacl/dl-writev.h
new file mode 100644
index 0000000..843f9ce
--- /dev/null
+++ b/sysdeps/nacl/dl-writev.h
@@ -0,0 +1,45 @@
+/* Message-writing for the dynamic linker. NaCl version.
+ Copyright (C) 2013 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+#include <sys/uio.h>
+#include <nacl-interfaces.h>
+
+/* This is used from only one place: dl-misc.c:_dl_debug_vdprintf.
+ Hence it's in a header with the expectation it will be inlined.
+
+ This is writev, but with a constraint added and others loosened:
+
+ 1. Under RTLD_PRIVATE_ERRNO, it must not clobber the private errno
+ when another thread holds the dl_load_lock.
+ 2. It is not obliged to detect and report errors at all.
+ 3. It's not really obliged to deliver a single atomic write
+ (though it may be preferable). */
+
+static inline void
+_dl_writev (int fd, const struct iovec *iov, size_t niov)
+{
+ for (size_t i = 0; i < niov; ++i)
+ {
+ size_t wrote;
+ if (__nacl_irt_fdio.write (fd, iov[i].iov_base, iov[i].iov_len,
+ &wrote) != 0
+ || wrote != iov[i].iov_len)
+ /* The write failed, so don't bother trying any more. */
+ break;
+ }
+}
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=f2dc1636e754087a213d510118ef1302bfac48c1
commit f2dc1636e754087a213d510118ef1302bfac48c1
Author: Roland McGrath <roland@hack.frob.com>
Date: Mon May 6 09:59:17 2013 -0700
Update for open_2 cleanup.
diff --git a/sysdeps/nacl/open.c b/sysdeps/nacl/open.c
index 9ef5fe0..0e8a422 100644
--- a/sysdeps/nacl/open.c
+++ b/sysdeps/nacl/open.c
@@ -50,14 +50,3 @@ strong_alias (__libc_open, __libc_open64)
strong_alias (__libc_open64, __open64)
libc_hidden_def (__open64)
weak_alias (__libc_open64, open64)
-
-
-int
-__open_2 (const char *file, int oflag)
-{
- if (oflag & O_CREAT)
- __fortify_fail ("invalid open call: O_CREAT without mode");
-
- return __open (file, oflag);
-}
-strong_alias (__open_2, __open64_2)
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=4a957c97c4a2b390f5ab47cf5645acf373803642
commit 4a957c97c4a2b390f5ab47cf5645acf373803642
Author: Roland McGrath <roland@hack.frob.com>
Date: Fri May 3 15:16:11 2013 -0700
backtrace
diff --git a/sysdeps/arm/nacl/backtrace.c b/sysdeps/arm/nacl/backtrace.c
new file mode 100644
index 0000000..27ce597
--- /dev/null
+++ b/sysdeps/arm/nacl/backtrace.c
@@ -0,0 +1 @@
+#include <sysdeps/x86_64/backtrace.c>
diff --git a/sysdeps/nacl/backtrace.c b/sysdeps/nacl/backtrace.c
new file mode 100644
index 0000000..27ce597
--- /dev/null
+++ b/sysdeps/nacl/backtrace.c
@@ -0,0 +1 @@
+#include <sysdeps/x86_64/backtrace.c>
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=07d11f21e061d9837d523cb6efc5af85257a2932
commit 07d11f21e061d9837d523cb6efc5af85257a2932
Author: Roland McGrath <roland@hack.frob.com>
Date: Fri May 3 15:15:49 2013 -0700
Header order hell
diff --git a/sysdeps/nacl/nacl-interfaces.c b/sysdeps/nacl/nacl-interfaces.c
index 95b722e..a863d87 100644
--- a/sysdeps/nacl/nacl-interfaces.c
+++ b/sysdeps/nacl/nacl-interfaces.c
@@ -17,9 +17,8 @@
<http://www.gnu.org/licenses/>. */
#include <errno.h>
-#include "nacl-interfaces.h"
-
-#include <native_client/src/untrusted/irt/irt.h>
+#include <nacl-interfaces.h>
+#include <ldsodefs.h>
/* These magic symbols are provided implicitly by the linker to
diff --git a/sysdeps/nacl/nacl-interfaces.h b/sysdeps/nacl/nacl-interfaces.h
index 04545a5..e5fd5ed 100644
--- a/sysdeps/nacl/nacl-interfaces.h
+++ b/sysdeps/nacl/nacl-interfaces.h
@@ -22,7 +22,6 @@
#include <errno.h>
#include <stddef.h>
#include <stdint.h>
-#include <ldsodefs.h>
#include <sys/types.h>
/* <nacl-irt.h> is massaged from native_client/src/untrusted/irt/irt.h so
diff --git a/sysdeps/nacl/nacl_interface_query.c b/sysdeps/nacl/nacl_interface_query.c
index a8fcc19..57ac09b 100644
--- a/sysdeps/nacl/nacl_interface_query.c
+++ b/sysdeps/nacl/nacl_interface_query.c
@@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */
#include <nacl-interfaces.h>
+#include <ldsodefs.h>
#ifdef SHARED
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=45b90e41f752df6c417ce251aba43406debd0d7e
commit 45b90e41f752df6c417ce251aba43406debd0d7e
Author: Roland McGrath <roland@hack.frob.com>
Date: Fri May 3 15:15:35 2013 -0700
Fiddle xstat aliases
diff --git a/sysdeps/nacl/fxstat.c b/sysdeps/nacl/fxstat.c
index ead4833..a076e10 100644
--- a/sysdeps/nacl/fxstat.c
+++ b/sysdeps/nacl/fxstat.c
@@ -42,4 +42,4 @@ hidden_def (__fxstat)
weak_alias (__fxstat, _fxstat)
strong_alias (__fxstat, __fxstat64)
-hidden_def (__fxstat64)
+hidden_ver (__fxstat, __fxstat64)
diff --git a/sysdeps/nacl/fxstat64.c b/sysdeps/nacl/fxstat64.c
new file mode 100644
index 0000000..72aae12
--- /dev/null
+++ b/sysdeps/nacl/fxstat64.c
@@ -0,0 +1 @@
+/* fxstat.c defines __fxstat64 as an alias. */
diff --git a/sysdeps/nacl/xstat.c b/sysdeps/nacl/xstat.c
index d4c0045..a2f4b49 100644
--- a/sysdeps/nacl/xstat.c
+++ b/sysdeps/nacl/xstat.c
@@ -42,4 +42,4 @@ hidden_def (__xstat)
weak_alias (__xstat, _xstat)
strong_alias (__xstat, __xstat64)
-hidden_def (__xstat64)
+hidden_ver (__xstat, __xstat64)
diff --git a/sysdeps/nacl/xstat64.c b/sysdeps/nacl/xstat64.c
new file mode 100644
index 0000000..47db9b9
--- /dev/null
+++ b/sysdeps/nacl/xstat64.c
@@ -0,0 +1 @@
+/* xstat.c defines __xstat64 as an alias. */
-----------------------------------------------------------------------
Summary of changes:
sysdeps/arm/nacl/backtrace.c | 1 +
sysdeps/nacl/backtrace.c | 1 +
sysdeps/nacl/dl-writev.h | 45 +++++++++++++++++++++++++++++++++++
sysdeps/nacl/fxstat.c | 2 +-
sysdeps/nacl/fxstat64.c | 1 +
sysdeps/nacl/glob.c | 6 ++++
sysdeps/nacl/glob64.c | 1 +
sysdeps/nacl/nacl-interfaces.c | 5 +--
sysdeps/nacl/nacl-interfaces.h | 1 -
sysdeps/nacl/nacl_interface_query.c | 1 +
sysdeps/nacl/open.c | 11 --------
sysdeps/nacl/profil.c | 2 +
sysdeps/nacl/xstat.c | 2 +-
sysdeps/nacl/xstat64.c | 1 +
14 files changed, 63 insertions(+), 17 deletions(-)
create mode 100644 sysdeps/arm/nacl/backtrace.c
create mode 100644 sysdeps/nacl/backtrace.c
create mode 100644 sysdeps/nacl/dl-writev.h
create mode 100644 sysdeps/nacl/fxstat64.c
create mode 100644 sysdeps/nacl/glob.c
create mode 100644 sysdeps/nacl/glob64.c
create mode 100644 sysdeps/nacl/profil.c
create mode 100644 sysdeps/nacl/xstat64.c
hooks/post-receive
--
GNU C Library master sources