Skip to content

Commit

Permalink
Updated to fedora-glibc-20060424T0820
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Jelinek committed Apr 24, 2006
1 parent f5ce81c commit d0145e0
Show file tree
Hide file tree
Showing 232 changed files with 4,925 additions and 1,766 deletions.
520 changes: 518 additions & 2 deletions ChangeLog

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
GNU C Library NEWS -- history of user-visible changes. 2006-03-01
GNU C Library NEWS -- history of user-visible changes. 2006-04-16
Copyright (C) 1992-2002,2003,2004,2005,2006 Free Software Foundation, Inc.
See the end for copying conditions.

Please send GNU C library bug reports via <http://sources.redhat.com/bugzilla/>
using `glibc' in the "product" field.

Version 2.5

* For Linux, the sorting of addresses returned by getaddrinfo now also
handles rules 3 and 7 from RFC 3484. Implemented by Ulrich Drepper.

* New Linux interfaces: splice, tee, sync_file_range.


Version 2.4

Expand Down
1 change: 1 addition & 0 deletions Versions.def
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ libc {
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
%ifdef USE_IN_LIBIO
HURD_CTHREADS_0.3
%endif
Expand Down
5 changes: 3 additions & 2 deletions argp/argp.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Hierarchial argument parsing, layered over getopt.
Copyright (C) 1995-1999,2003,2004,2005 Free Software Foundation, Inc.
Copyright (C) 1995-1999,2003,2004,2005,2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Miles Bader <miles@gnu.ai.mit.edu>.
Expand All @@ -24,6 +24,7 @@
#include <stdio.h>
#include <ctype.h>
#include <getopt.h>
#include <limits.h>

#define __need_error_t
#include <errno.h>
Expand Down Expand Up @@ -574,7 +575,7 @@ __NTH (__option_is_short (__const struct argp_option *__opt))
else
{
int __key = __opt->key;
return __key > 0 && isprint (__key);
return __key > 0 && __key <= UCHAR_MAX && isprint (__key);
}
}

Expand Down
2 changes: 1 addition & 1 deletion bits/siginfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ enum
{
ILL_ILLOPC = 1, /* Illegal opcode. */
# define ILL_ILLOPC ILL_ILLOPC
ILL_ILL_OPN, /* Illegal operand. */
ILL_ILLOPN, /* Illegal operand. */
# define ILL_ILLOPN ILL_ILLOPN
ILL_ILLADR, /* Illegal addressing mode. */
# define ILL_ILLADR ILL_ILLADR
Expand Down
13 changes: 7 additions & 6 deletions elf/cache.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* Copyright (C) 1999,2000,2001,2002,2003,2005
Free Software Foundation, Inc.
/* Copyright (C) 1999-2003,2005,2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Jaeger <aj@suse.de>, 1999.
Expand Down Expand Up @@ -421,7 +420,7 @@ save_cache (const char *cache_name)
if (opt_format != 2)
{
if (write (fd, file_entries, file_entries_size)
!= (ssize_t)file_entries_size)
!= (ssize_t) file_entries_size)
error (EXIT_FAILURE, errno, _("Writing of cache data failed"));
}
if (opt_format != 0)
Expand All @@ -430,15 +429,16 @@ save_cache (const char *cache_name)
if (opt_format != 2)
{
char zero[pad];
if (write (fd, zero, pad) != (ssize_t)pad)
memset (zero, '\0', pad);
if (write (fd, zero, pad) != (ssize_t) pad)
error (EXIT_FAILURE, errno, _("Writing of cache data failed"));
}
if (write (fd, file_entries_new, file_entries_new_size)
!= (ssize_t)file_entries_new_size)
!= (ssize_t) file_entries_new_size)
error (EXIT_FAILURE, errno, _("Writing of cache data failed"));
}

if (write (fd, strings, total_strlen) != (ssize_t)total_strlen)
if (write (fd, strings, total_strlen) != (ssize_t) total_strlen)
error (EXIT_FAILURE, errno, _("Writing of cache data failed."));

close (fd);
Expand All @@ -455,6 +455,7 @@ save_cache (const char *cache_name)
cache_name);

/* Free all allocated memory. */
free (file_entries_new);
free (file_entries);
free (strings);

Expand Down
2 changes: 1 addition & 1 deletion elf/ldconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ main (int argc, char **argv)
if (opt_chroot)
{
/* Normalize the path a bit, we might need it for printing later. */
char *endp = strchr (opt_chroot, '\0');
char *endp = rawmemchr (opt_chroot, '\0');
while (endp > opt_chroot && endp[-1] == '/')
--endp;
*endp = '\0';
Expand Down
5 changes: 4 additions & 1 deletion elf/ldd.bash.in
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,12 @@ for file do
*) file=./$file
;;
esac
if test ! -f "$file"; then
if test ! -e "$file"; then
echo "ldd: ${file}:" $"No such file or directory" >&2
result=1
elif test ! -f "$file"; then
echo "ldd: ${file}:" $"not regular file" >&2
result=1
elif test -r "$file"; then
test -x "$file" || echo 'ldd:' $"\
warning: you do not have execution permission for" "\`$file'" >&2
Expand Down
2 changes: 1 addition & 1 deletion elf/rtld.c
Original file line number Diff line number Diff line change
Expand Up @@ -2624,7 +2624,7 @@ process_envvars (enum mode *modep)
}

if (memcmp (envline, "POINTER_GUARD", 13) == 0)
GLRO(dl_pointer_guard) = envline[14] == '0';
GLRO(dl_pointer_guard) = envline[14] != '0';
break;

case 14:
Expand Down
4 changes: 2 additions & 2 deletions fedora/branch.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ glibc-branch := fedora
glibc-base := HEAD
DIST_BRANCH := devel
COLLECTION := dist-fc4
fedora-sync-date := 2006-03-28 09:00 UTC
fedora-sync-tag := fedora-glibc-20060328T0900
fedora-sync-date := 2006-04-24 08:20 UTC
fedora-sync-tag := fedora-glibc-20060424T0820
4 changes: 3 additions & 1 deletion fedora/glibc.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ cat > override_headers/asm/unistd.h <<EOF
#define __NR_mknodat 297
#define __NR_fchownat 298
#define __NR_futimesat 299
#define __NR_fstatat64 300
#define __NR_unlinkat 301
#define __NR_renameat 302
#define __NR_linkat 303
Expand All @@ -304,6 +303,9 @@ cat > override_headers/asm/unistd.h <<EOF
#define __NR_fchmodat 306
#define __NR_faccessat 307
#endif
#ifndef __NR_fstatat64
#define __NR_fstatat64 300
#endif
#ifndef __NR_pselect6
#define __NR_pselect6 308
#define __NR_ppoll 309
Expand Down
4 changes: 2 additions & 2 deletions iconv/iconv_charmap.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Convert using charmaps and possibly iconv().
Copyright (C) 2001, 2005 Free Software Foundation, Inc.
Copyright (C) 2001, 2005, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2001.
Expand Down Expand Up @@ -488,7 +488,7 @@ process_fd (struct convtable *tbl, int fd, FILE *output)
process it in one step. */
static char *inbuf = NULL;
static size_t maxlen = 0;
char *inptr = NULL;
char *inptr = inbuf;
size_t actlen = 0;

while (actlen < maxlen)
Expand Down
8 changes: 4 additions & 4 deletions iconvdata/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 1997-2004, 2005 Free Software Foundation, Inc.
# Copyright (C) 1997-2004,2005,2006 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
Expand Down Expand Up @@ -255,14 +255,14 @@ export AWK

define generate-8bit-table
$(make-target-directory)
$(SHELL) ./gen-8bit.sh $< > $(@:stmp=T)
LC_ALL=C $(SHELL) ./gen-8bit.sh $< > $(@:stmp=T)
$(move-if-change) $(@:stmp=T) $(@:stmp=h)
touch $@
endef

define generate-8bit-gap-table
$(make-target-directory)
$(SHELL) ./gen-8bit-gap.sh $< > $(@:stmp=T)
LC_ALL=C $(SHELL) ./gen-8bit-gap.sh $< > $(@:stmp=T)
$(move-if-change) $(@:stmp=T) $(@:stmp=h)
touch $@
endef
Expand Down Expand Up @@ -304,7 +304,7 @@ $(gen-8bit-gap-modules:%=$(objpfx)%.stmp): $(objpfx)%.stmp: $(objpfx)iconv-rules

$(objpfx)iso8859-7jp.stmp: $(charmaps)/ISO-8859-7 gen-8bit-gap-1.sh
$(make-target-directory)
$(SHELL) ./gen-8bit-gap-1.sh $< > $(@:stmp=T)
LC_ALL=C $(SHELL) ./gen-8bit-gap-1.sh $< > $(@:stmp=T)
$(move-if-change) $(@:stmp=T) $(@:stmp=h)
touch $@

Expand Down
4 changes: 2 additions & 2 deletions iconvdata/ibm437.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Conversion from and to IBM437.
Copyright (C) 1998 Free Software Foundation, Inc.
Copyright (C) 1998, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
Expand All @@ -24,6 +24,6 @@
#define TABLES <ibm437.h>

#define CHARSET_NAME "IBM437//"
#define HAS_HOLES 1 /* Not all 256 character are defined. */
#define HAS_HOLES 0 /* All 256 character are defined. */

#include <8bit-gap.c>
4 changes: 2 additions & 2 deletions iconvdata/ibm861.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Conversion from and to IBM861.
Copyright (C) 1998 Free Software Foundation, Inc.
Copyright (C) 1998, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
Expand All @@ -24,6 +24,6 @@
#define TABLES <ibm861.h>

#define CHARSET_NAME "IBM861//"
#define HAS_HOLES 1 /* Not all 256 character are defined. */
#define HAS_HOLES 0 /* All 256 character are defined. */

#include <8bit-gap.c>
4 changes: 2 additions & 2 deletions iconvdata/ibm862.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Conversion from and to IBM862.
Copyright (C) 1998 Free Software Foundation, Inc.
Copyright (C) 1998, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
Expand All @@ -24,6 +24,6 @@
#define TABLES <ibm862.h>

#define CHARSET_NAME "IBM862//"
#define HAS_HOLES 1 /* Not all 256 character are defined. */
#define HAS_HOLES 0 /* All 256 character are defined. */

#include <8bit-gap.c>
4 changes: 2 additions & 2 deletions iconvdata/ibm863.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Conversion from and to IBM863.
Copyright (C) 1998 Free Software Foundation, Inc.
Copyright (C) 1998, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
Expand All @@ -24,6 +24,6 @@
#define TABLES <ibm863.h>

#define CHARSET_NAME "IBM863//"
#define HAS_HOLES 1 /* Not all 256 character are defined. */
#define HAS_HOLES 0 /* All 256 character are defined. */

#include <8bit-gap.c>
4 changes: 2 additions & 2 deletions iconvdata/ibm865.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Conversion from and to IBM865.
Copyright (C) 1998 Free Software Foundation, Inc.
Copyright (C) 1998, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
Expand All @@ -24,6 +24,6 @@
#define TABLES <ibm865.h>

#define CHARSET_NAME "IBM865//"
#define HAS_HOLES 1 /* Not all 256 character are defined. */
#define HAS_HOLES 0 /* All 256 character are defined. */

#include <8bit-gap.c>
14 changes: 13 additions & 1 deletion include/ifaddrs.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
#ifndef _IFADDRS_H
#include <inet/ifaddrs.h>
#include <stdbool.h>
#include <stdint.h>

libc_hidden_proto (getifaddrs)
libc_hidden_proto (freeifaddrs)

extern void __check_pf (bool *seen_ipv4, bool *seen_ipv6) attribute_hidden;
struct in6addrinfo
{
enum {
in6ai_deprecated = 1,
in6ai_temporary = 2
} flags;
uint32_t addr[4];
};

extern void __check_pf (bool *seen_ipv4, bool *seen_ipv6,
struct in6addrinfo **in6ai, size_t *in6ailen)
attribute_hidden;

#endif /* ifaddrs.h */
10 changes: 8 additions & 2 deletions inet/check_pf.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Determine protocol families for which interfaces exist. Generic version.
Copyright (C) 2003 Free Software Foundation, Inc.
Copyright (C) 2003, 2006 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
Expand All @@ -23,8 +23,14 @@

void
attribute_hidden
__check_pf (bool *seen_ipv4, bool *seen_ipv6)
__check_pf (bool *seen_ipv4, bool *seen_ipv6,
struct in6addrinfo **in6ai, size_t *in6ailen)
{
/* By default we have no way to determine information about
deprecated and temporary addresses. */
*in6ai = NULL;
*in6ailen = 0;

/* Get the interface list via getifaddrs. */
struct ifaddrs *ifa = NULL;
if (getifaddrs (&ifa) != 0)
Expand Down
25 changes: 8 additions & 17 deletions inet/getnameinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,25 +403,16 @@ getnameinfo (const struct sockaddr *sa, socklen_t addrlen, char *host,
if (!(flags & NI_NUMERICSERV))
{
struct servent *s, ts;
while (__getservbyport_r (((const struct sockaddr_in *) sa)->sin_port,
((flags & NI_DGRAM) ? "udp" : "tcp"),
&ts, tmpbuf, tmpbuflen, &s))
int e;
while ((e = __getservbyport_r (((const struct sockaddr_in *) sa)->sin_port,
((flags & NI_DGRAM)
? "udp" : "tcp"),
&ts, tmpbuf, tmpbuflen, &s)))
{
if (herrno == NETDB_INTERNAL)
{
if (errno == ERANGE)
tmpbuf = extend_alloca (tmpbuf, tmpbuflen,
2 * tmpbuflen);
else
{
__set_errno (serrno);
return EAI_SYSTEM;
}
}
if (e == ERANGE)
tmpbuf = extend_alloca (tmpbuf, tmpbuflen, 2 * tmpbuflen);
else
{
break;
}
break;
}
if (s)
{
Expand Down
6 changes: 3 additions & 3 deletions inet/inet6_option.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 2003 Free Software Foundation, Inc.
/* Copyright (C) 2003, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
Expand Down Expand Up @@ -251,7 +251,7 @@ inet6_option_next (cmsg, tptrp)
const uint8_t *endp = CMSG_DATA (cmsg) + (ip6e->ip6e_len + 1) * 8;

const uint8_t *result;
if (tptrp == NULL)
if (*tptrp == NULL)
/* This is the first call, return the first option if there is one. */
result = (const uint8_t *) (ip6e + 1);
else
Expand Down Expand Up @@ -308,7 +308,7 @@ inet6_option_find (cmsg, tptrp, type)
const uint8_t *endp = CMSG_DATA (cmsg) + (ip6e->ip6e_len + 1) * 8;

const uint8_t *next;
if (tptrp == NULL)
if (*tptrp == NULL)
/* This is the first call, return the first option if there is one. */
next = (const uint8_t *) (ip6e + 1);
else
Expand Down
Loading

0 comments on commit d0145e0

Please sign in to comment.