source:
clfs-sysroot/patches/glibc-2.5-branch_update-1.patch@
24c015b
Last change on this file since 24c015b was 5ed871a, checked in by , 18 years ago | |
---|---|
|
|
File size: 18.0 KB |
-
ChangeLog
Submitted By: Robert Connolly <robert at linuxfromscratch dot org> (ashes) Date: 2006-12-03 Initial Package Version: 2.5 Upstream Status: From Upstream Origin: Robert Connolly (Concept) cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc \ co -rglibc-2_5-branch libc Description: This is a branch update for Glibc-2.5, and should be rechecked periodically. See the "Changelog" and "localedata/ChangeLog" for specific details. diff -Naur glibc-2.5/ChangeLog libc/ChangeLog
old new 1 2006-10-06 Andreas Jaeger <aj@suse.de> 2 3 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now. 4 5 2006-10-06 Ulrich Drepper <drepper@redhat.com> 6 7 * po/pl.po: Update from translation team. 8 9 * nscd/nscd.c (main): Fix typo in message. 10 Patch by Jakub Bogsz <qboosh@pld-linux.org>. 11 12 2006-10-02 Jakub Jelinek <jakub@redhat.com> 13 14 [BZ #3291] 15 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include 16 errno.h, signal.h, unistd.h and sysdep-cancel.h. 17 (__sigprocmask): Define. 18 19 2006-10-02 Ulrich Drepper <drepper@redhat.com> 20 21 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is 22 used. 23 24 2006-10-02 Jakub Jelinek <jakub@redhat.com> 25 26 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes 27 in oldtotal and newtotal calculation. 28 * nscd/nscd-client.h (struct mapped_database): Add datasize 29 field. 30 * nscd/nscd_helper.c (get_mapping): Initialize datasize field. 31 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size 32 increased. 33 (__nscd_cache_search): Add checks to make sure we never reference 34 data beyond the current mapping. 35 36 2006-10-02 Dmitry V. Levin <ldv@altlinux.org> 37 38 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val 39 variables const to avoid compiler warnings. 40 41 * io/fts.c (fts_close): Remove redundant checks. 42 (fts_build): Likewise. 43 (fts_palloc): Likewise. 44 45 * manual/message.texi (Advanced gettext functions, 46 Using gettextized software): Fix typos. 47 48 2006-09-30 Ulrich Drepper <drepper@redhat.com> 49 50 * posix/glob.c (glob_in_dir): Add some comments and asserts to 51 explain why there are no leaks. 52 1 53 2006-09-29 Ulrich Drepper <drepper@redhat.com> 2 54 55 * libio/wmemstream.c: Include <wchar.h>. 56 * libio/bug-wmemstream1.c: Likewise. 57 * libio/tst-wmemstream1.c: Likewise. 58 * libio/tst-wmemstream2.c: Likewise. 59 3 60 * version.h (RELEASE): Bump to 2.5. 4 61 * README: Regenerated. 5 62 -
elf/rtld.c
diff -Naur glibc-2.5/elf/rtld.c libc/elf/rtld.c
old new 2087 2087 } 2088 2088 2089 2089 if (main_map->l_info[ADDRIDX (DT_GNU_LIBLIST)] 2090 && ! __builtin_expect (GLRO(dl_profile) != NULL, 0)) 2090 && ! __builtin_expect (GLRO(dl_profile) != NULL, 0) 2091 && ! __builtin_expect (GLRO(dl_dynamic_weak), 0)) 2091 2092 { 2092 2093 ElfW(Lib) *liblist, *liblistend; 2093 2094 struct link_map **r_list, **r_listend, *l; -
include/features.h
diff -Naur glibc-2.5/include/features.h libc/include/features.h
old new 304 304 /* Major and minor version number of the GNU C library package. Use 305 305 these macros to test for features in specific releases. */ 306 306 #define __GLIBC__ 2 307 #define __GLIBC_MINOR__ 4307 #define __GLIBC_MINOR__ 5 308 308 309 309 #define __GLIBC_PREREQ(maj, min) \ 310 310 ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min)) -
io/fts.c
diff -Naur glibc-2.5/io/fts.c libc/io/fts.c
old new 251 251 /* Free up child linked list, sort array, path buffer. */ 252 252 if (sp->fts_child) 253 253 fts_lfree(sp->fts_child); 254 if (sp->fts_array) 255 free(sp->fts_array); 254 free(sp->fts_array); 256 255 free(sp->fts_path); 257 256 258 257 /* Return to original directory, save errno if necessary. */ … … 705 704 * structures already allocated. 706 705 */ 707 706 mem1: saved_errno = errno; 708 if (p) 709 free(p); 707 free(p); 710 708 fts_lfree(head); 711 709 (void)__closedir(dirp); 712 710 cur->fts_info = FTS_ERR; … … 1043 1041 * We limit fts_pathlen to USHRT_MAX to be safe in both cases. 1044 1042 */ 1045 1043 if (sp->fts_pathlen < 0 || sp->fts_pathlen >= USHRT_MAX) { 1046 if (sp->fts_path) { 1047 free(sp->fts_path); 1048 sp->fts_path = NULL; 1049 } 1044 free(sp->fts_path); 1050 1045 sp->fts_path = NULL; 1051 1046 __set_errno (ENAMETOOLONG); 1052 1047 return (1); -
libio/bug-wmemstream1.c
diff -Naur glibc-2.5/libio/bug-wmemstream1.c libc/libio/bug-wmemstream1.c
old new 1 1 #include <stdio.h> 2 2 #include <string.h> 3 #include <wchar.h> 3 4 4 5 5 6 static int -
libio/tst-wmemstream1.c
diff -Naur glibc-2.5/libio/tst-wmemstream1.c libc/libio/tst-wmemstream1.c
old new 1 #include <wchar.h> 2 1 3 #define CHAR_T wchar_t 2 4 #define W(o) L##o 3 5 #define OPEN_MEMSTREAM open_wmemstream -
libio/tst-wmemstream2.c
diff -Naur glibc-2.5/libio/tst-wmemstream2.c libc/libio/tst-wmemstream2.c
old new 1 #include <wchar.h> 2 1 3 #define CHAR_T wchar_t 2 4 #define W(o) L##o 3 5 #define OPEN_MEMSTREAM open_wmemstream -
libio/wmemstream.c
diff -Naur glibc-2.5/libio/wmemstream.c libc/libio/wmemstream.c
old new 20 20 #include "strfile.h" 21 21 #include <stdio.h> 22 22 #include <stdlib.h> 23 #include <wchar.h> 23 24 24 25 25 26 struct _IO_FILE_wmemstream -
localedata/ChangeLog
diff -Naur glibc-2.5/localedata/ChangeLog libc/localedata/ChangeLog
old new 1 2006-10-05 Dmitry V. Levin <ldv@altlinux.org> 2 3 * locales/tt_RU: Fix territory, title and descriptive comment. 4 5 2006-10-05 Ulrich Drepper <drepper@redhat.com> 6 7 * locales/pa_IN (abday): Fix spelling of Sunday. 8 Patch by Mayank Jain <majain@redhat.com>. 9 10 2006-10-01 Ulrich Drepper <drepper@redhat.com> 11 12 * locales/en_GB: Use more complete en_US data in LC_NAME. 13 1 14 2006-09-29 Ulrich Drepper <drepper@redhat.com> 2 15 3 16 [BZ #39] -
localedata/locales/en_GB
diff -Naur glibc-2.5/localedata/locales/en_GB libc/localedata/locales/en_GB
old new 146 146 END LC_MEASUREMENT 147 147 148 148 LC_NAME 149 name_fmt "<U0025><U0064><U0025><U0074><U0025><U0067><U0025><U0074>/ 150 <U0025><U006D><U0025><U0074><U0025><U0066>" 149 copy "en_US" 151 150 END LC_NAME 152 151 153 152 LC_ADDRESS -
localedata/locales/pa_IN
diff -Naur glibc-2.5/localedata/locales/pa_IN libc/localedata/locales/pa_IN
old new 80 80 "<U0A2C><U0A41><U0A71><U0A27><U0020>";/ 81 81 "<U0A35><U0A40><U0A30><U0020>";/ 82 82 "<U0A36><U0A41><U0A71><U0A15><U0A30><U0020>";/ 83 "<U0A36><U0A28><U0A 40><U0A1A><U0A30><U0020>"83 "<U0A36><U0A28><U0A3F><U0A71><U0A1A><U0A30><U0020>" 84 84 % 85 85 % Full weekday names (%A) 86 86 day "<U0A10><U0A24><U0A35><U0A3E><U0A30><U0020>";/ -
localedata/locales/tt_RU
diff -Naur glibc-2.5/localedata/locales/tt_RU libc/localedata/locales/tt_RU
old new 1 1 comment_char % 2 2 escape_char / 3 3 % 4 % Tatar Language Locale for Tatarstan4 % Tatar Language Locale for Russia 5 5 % Source: 6 6 % Contact: Pablo Saratxaga, Rinat Norkin 7 7 % Email: <pablo@mandrakesoft.com>, <rinat@taif.ru> … … 24 24 % replace cyrillic alphabet 25 25 26 26 LC_IDENTIFICATION 27 title "Tatar language locale for Tatarstan"27 title "Tatar language locale for Russia" 28 28 source "Rinat Norkin" 29 29 address "" 30 30 contact "Pablo Saratxaga, Rinat Norkin" … … 32 32 tel "" 33 33 fax "" 34 34 language "Tatar" 35 territory " Tatarstan"35 territory "Russia" 36 36 revision "0.4" 37 37 date "2001-01-28" 38 38 -
manual/message.texi
diff -Naur glibc-2.5/manual/message.texi libc/manual/message.texi
old new 1189 1189 with every language this is the only viable solution except for 1190 1190 hardcoding the information in the code (which still would require the 1191 1191 possibility of extensions to not prevent the use of new languages). The 1192 details are explained in the GNU @code{gettext} manual. Here only a a1192 details are explained in the GNU @code{gettext} manual. Here only a 1193 1193 bit of information is provided. 1194 1194 1195 1195 The information about the plural form selection has to be stored in the … … 1590 1590 them. 1591 1591 1592 1592 The POSIX locale model uses the environment variables @code{LC_COLLATE}, 1593 @code{LC_CTYPE}, @code{LC_MESSAGES}, @code{LC_MONETARY}, @code{ NUMERIC},1593 @code{LC_CTYPE}, @code{LC_MESSAGES}, @code{LC_MONETARY}, @code{LC_NUMERIC}, 1594 1594 and @code{LC_TIME} to select the locale which is to be used. This way 1595 1595 the user can influence lots of functions. As we mentioned above the 1596 1596 @code{gettext} functions also take advantage of this. -
manual/stdio.texi
diff -Naur glibc-2.5/manual/stdio.texi libc/manual/stdio.texi
old new 2393 2393 allocates a string (as with @code{malloc}; @pxref{Unconstrained 2394 2394 Allocation}) to hold the output, instead of putting the output in a 2395 2395 buffer you allocate in advance. The @var{ptr} argument should be the 2396 address of a @code{char *} object, and @code{asprintf} stores a pointer 2397 to the newly allocated string at that location. 2396 address of a @code{char *} object, and a successful call to 2397 @code{asprintf} stores a pointer to the newly allocated string at that 2398 location. 2398 2399 2399 2400 The return value is the number of characters allocated for the buffer, or 2400 2401 less than zero if an error occurred. Usually this means that the buffer -
nscd/mem.c
diff -Naur glibc-2.5/nscd/mem.c libc/nscd/mem.c
old new 1 1 /* Cache memory handling. 2 Copyright (C) 2004, 2005 Free Software Foundation, Inc.2 Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. 3 3 This file is part of the GNU C Library. 4 4 Contributed by Ulrich Drepper <drepper@redhat.com>, 2004. 5 5 … … 480 480 { 481 481 /* Try to resize the database. Grow size of 1/8th. */ 482 482 size_t oldtotal = (sizeof (struct database_pers_head) 483 + db->head->module * sizeof (ref_t)483 + roundup (db->head->module * sizeof (ref_t), ALIGN) 484 484 + db->head->data_size); 485 485 size_t new_data_size = (db->head->data_size 486 486 + MAX (2 * len, db->head->data_size / 8)); 487 487 size_t newtotal = (sizeof (struct database_pers_head) 488 + db->head->module * sizeof (ref_t)488 + roundup (db->head->module * sizeof (ref_t), ALIGN) 489 489 + new_data_size); 490 490 if (newtotal > db->max_db_size) 491 491 { -
nscd/nscd.c
diff -Naur glibc-2.5/nscd/nscd.c libc/nscd/nscd.c
old new 237 237 238 238 if (chdir ("/") != 0) 239 239 error (EXIT_FAILURE, errno, 240 _("cannot change current working cirectory to \"/\""));240 _("cannot change current working directory to \"/\"")); 241 241 242 242 openlog ("nscd", LOG_CONS | LOG_ODELAY, LOG_DAEMON); 243 243 -
nscd/nscd-client.h
diff -Naur glibc-2.5/nscd/nscd-client.h libc/nscd/nscd-client.h
old new 258 258 const char *data; 259 259 size_t mapsize; 260 260 int counter; /* > 0 indicates it is usable. */ 261 size_t datasize; 261 262 }; 262 263 #define NO_MAPPING ((struct mapped_database *) -1l) 263 264 -
nscd/nscd_helper.c
diff -Naur glibc-2.5/nscd/nscd_helper.c libc/nscd/nscd_helper.c
old new 290 290 newp->data = ((char *) mapping + head.header_size 291 291 + roundup (head.module * sizeof (ref_t), ALIGN)); 292 292 newp->mapsize = size; 293 newp->datasize = head.data_size; 293 294 /* Set counter to 1 to show it is usable. */ 294 295 newp->counter = 1; 295 296 … … 340 341 /* If not mapped or timestamp not updated, request new map. */ 341 342 if (cur == NULL 342 343 || (cur->head->nscd_certainly_running == 0 343 && cur->head->timestamp + MAPPING_TIMEOUT < time (NULL))) 344 && cur->head->timestamp + MAPPING_TIMEOUT < time (NULL)) 345 || cur->head->data_size > cur->datasize) 344 346 cur = get_mapping (type, name, 345 347 (struct mapped_database **) &mapptr->mapped); 346 348 … … 365 367 const struct mapped_database *mapped) 366 368 { 367 369 unsigned long int hash = __nis_hash (key, keylen) % mapped->head->module; 370 size_t datasize = mapped->datasize; 368 371 369 372 ref_t work = mapped->head->array[hash]; 370 while (work != ENDREF )373 while (work != ENDREF && work + sizeof (struct hashentry) <= datasize) 371 374 { 372 375 struct hashentry *here = (struct hashentry *) (mapped->data + work); 373 376 374 if (type == here->type && keylen == here->len 375 && memcmp (key, mapped->data + here->key, keylen) == 0) 377 if (type == here->type 378 && keylen == here->len 379 && here->key + here->len <= datasize 380 && memcmp (key, mapped->data + here->key, keylen) == 0 381 && here->packet + sizeof (struct datahead) <= datasize) 376 382 { 377 383 /* We found the entry. Increment the appropriate counter. */ 378 384 const struct datahead *dh … … 380 386 381 387 /* See whether we must ignore the entry or whether something 382 388 is wrong because garbage collection is in progress. */ 383 if (dh->usable && ((char *) dh + dh->allocsize 384 <= (char *) mapped->head + mapped->mapsize)) 389 if (dh->usable && here->packet + dh->allocsize <= datasize) 385 390 return dh; 386 391 } 387 392 -
posix/glob.c
diff -Naur glibc-2.5/posix/glob.c libc/posix/glob.c
old new 1287 1287 for (size_t i = 0; i < cur; ++i) 1288 1288 free (names->name[i]); 1289 1289 names = names->next; 1290 /* NB: we will not leak memory here if we exit without 1291 freeing the current block assigned to OLD. At least 1292 the very first block is always allocated on the stack 1293 and this is the block assigned to OLD here. */ 1290 1294 if (names == NULL) 1291 break; 1295 { 1296 assert (old == &init_names); 1297 break; 1298 } 1292 1299 cur = names->count; 1293 1300 if (old == names_alloca) 1294 1301 names_alloca = names; … … 1306 1313 new_gl_pathv[pglob->gl_offs + pglob->gl_pathc++] 1307 1314 = names->name[i]; 1308 1315 names = names->next; 1316 /* NB: we will not leak memory here if we exit without 1317 freeing the current block assigned to OLD. At least 1318 the very first block is always allocated on the stack 1319 and this is the block assigned to OLD here. */ 1309 1320 if (names == NULL) 1310 break; 1321 { 1322 assert (old == &init_names); 1323 break; 1324 } 1311 1325 cur = names->count; 1312 1326 if (old == names_alloca) 1313 1327 names_alloca = names; -
README
diff -Naur glibc-2.5/README libc/README
old new 10 10 implement the operating system behavior seen by user applications. 11 11 In GNU/Hurd systems, it works with a microkernel and Hurd servers. 12 12 13 Version 2.4 is the first release after a long period of development, and14 introduces changes to the API and a new ABI for all configurations. It15 has been tested and deployed in new production systems, but should still16 be considered somewhat experimental. The stable 2.3 release series17 continues to be maintained, and implements a widely-deployed ABI.18 Version 2.3.6 is available, and we will release 2.3.7 with more bug fixes.19 20 13 The GNU C Library implements much of the POSIX.1 functionality in the 21 14 GNU/Hurd system, using configurations i[34567]86-*-gnu. 22 15 -
README.template
diff -Naur glibc-2.5/README.template libc/README.template
old new 10 10 implement the operating system behavior seen by user applications. 11 11 In GNU/Hurd systems, it works with a microkernel and Hurd servers. 12 12 13 Version 2.4 is the first release after a long period of development, and14 introduces changes to the API and a new ABI for all configurations. It15 has been tested and deployed in new production systems, but should still16 be considered somewhat experimental. The stable 2.3 release series17 continues to be maintained, and implements a widely-deployed ABI.18 Version 2.3.6 is available, and we will release 2.3.7 with more bug fixes.19 20 13 The GNU C Library implements much of the POSIX.1 functionality in the 21 14 GNU/Hurd system, using configurations i[34567]86-*-gnu. 22 15 -
sysdeps/posix/getaddrinfo.c
diff -Naur glibc-2.5/sysdeps/posix/getaddrinfo.c libc/sysdeps/posix/getaddrinfo.c
old new 1291 1291 for (idx = 0; ; ++idx) 1292 1292 { 1293 1293 unsigned int bits = list[idx].bits; 1294 uint8_t *mask = list[idx].prefix.s6_addr;1295 uint8_t *val = in6->sin6_addr.s6_addr;1294 const uint8_t *mask = list[idx].prefix.s6_addr; 1295 const uint8_t *val = in6->sin6_addr.s6_addr; 1296 1296 1297 1297 while (bits >= 8) 1298 1298 { -
sysdeps/unix/sysv/linux/sparc/sparc64/pause.c
diff -Naur glibc-2.5/sysdeps/unix/sysv/linux/sparc/sparc64/pause.c libc/sysdeps/unix/sysv/linux/sparc/sparc64/pause.c
old new 1 #include <errno.h> 2 #include <signal.h> 3 #include <unistd.h> 4 #include <sysdep-cancel.h> 5 6 #define __sigprocmask(how, set, oset) \ 7 INLINE_SYSCALL (rt_sigprocmask, 4, how, set, oset, _NSIG / 8) 8 1 9 #include <sysdeps/posix/pause.c>
Note:
See TracBrowser
for help on using the repository browser.