This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.17-192-g573c29b
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 5 Feb 2013 20:37:34 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.17-192-g573c29b
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, master has been updated
via 573c29b288d5cb88f3a09b9b7b5bcf0db762fd5d (commit)
via b2e25af00c4b6268624a06472477112fc015e7d8 (commit)
from eab55bfb14f5e1ea6f522d81632ce5a1b8a8c942 (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://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=573c29b288d5cb88f3a09b9b7b5bcf0db762fd5d
commit 573c29b288d5cb88f3a09b9b7b5bcf0db762fd5d
Author: Roland McGrath <roland@hack.frob.com>
Date: Tue Feb 5 12:15:56 2013 -0800
Replace an alloca use with a variable-length array.
diff --git a/ChangeLog b/ChangeLog
index 1661df9..818edb4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2013-02-05 Roland McGrath <roland@hack.frob.com>
+ * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
+ instead of calling alloca.
+
* io/lseek.c (__lseek): Rename to __libc_lseek.
Define __lseek as an alias.
diff --git a/elf/dl-hwcaps.c b/elf/dl-hwcaps.c
index 3805949..d3214e5 100644
--- a/elf/dl-hwcaps.c
+++ b/elf/dl-hwcaps.c
@@ -42,7 +42,6 @@ _dl_important_hwcaps (const char *platform, size_t platform_len, size_t *sz,
size_t cnt = platform != NULL;
size_t n, m;
size_t total;
- struct r_strlenpair *temp;
struct r_strlenpair *result;
struct r_strlenpair *rp;
char *cp;
@@ -103,7 +102,7 @@ _dl_important_hwcaps (const char *platform, size_t platform_len, size_t *sz,
++cnt;
/* Create temporary data structure to generate result table. */
- temp = (struct r_strlenpair *) alloca (cnt * sizeof (*temp));
+ struct r_strlenpair temp[cnt];
m = 0;
#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO
if (dsocaps != NULL)
@@ -199,7 +198,7 @@ _dl_important_hwcaps (const char *platform, size_t platform_len, size_t *sz,
}
/* Fill in the information. This follows the following scheme
- (indeces from TEMP for four strings):
+ (indices from TEMP for four strings):
entry #0: 0, 1, 2, 3 binary: 1111
#1: 0, 1, 3 1101
#2: 0, 2, 3 1011
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b2e25af00c4b6268624a06472477112fc015e7d8
commit b2e25af00c4b6268624a06472477112fc015e7d8
Author: Roland McGrath <roland@hack.frob.com>
Date: Tue Feb 5 11:38:14 2013 -0800
Fix aliases in stub lseek.
diff --git a/ChangeLog b/ChangeLog
index 9c97e4b..1661df9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2013-02-05 Roland McGrath <roland@hack.frob.com>
+ * io/lseek.c (__lseek): Rename to __libc_lseek.
+ Define __lseek as an alias.
+
* sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
2013-02-04 Carlos O'Donell <carlos@redhat.com>
diff --git a/io/lseek.c b/io/lseek.c
index b65c50d..63cd75f 100644
--- a/io/lseek.c
+++ b/io/lseek.c
@@ -21,7 +21,7 @@
/* Seek to OFFSET on FD, starting from WHENCE. */
off_t
-__lseek (fd, offset, whence)
+__libc_lseek (fd, offset, whence)
int fd;
off_t offset;
int whence;
@@ -45,7 +45,8 @@ __lseek (fd, offset, whence)
__set_errno (ENOSYS);
return -1;
}
+weak_alias (__libc_lseek, __lseek)
+weak_alias (__libc_lseek, lseek)
stub_warning (lseek)
-libc_hidden_def (__lseek)
-weak_alias (__lseek, lseek)
+libc_hidden_def (__lseek)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
elf/dl-hwcaps.c | 5 ++---
io/lseek.c | 7 ++++---
3 files changed, 12 insertions(+), 6 deletions(-)
hooks/post-receive
--
GNU C Library master sources