You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
4.6 KiB

  1. diff -r -c --exclude='*.info*' glibc-2.2.5.org/linuxthreads/internals.h glibc-2.2.5/linuxthreads/internals.h
  2. *** glibc-2.2.5.org/linuxthreads/internals.h Thu Nov 29 08:44:16 2001
  3. --- glibc-2.2.5/linuxthreads/internals.h Tue May 21 10:51:53 2002
  4. ***************
  5. *** 343,349 ****
  6. THREAD_SELF implementation is used, this must be a power of two and
  7. a multiple of PAGE_SIZE. */
  8. #ifndef STACK_SIZE
  9. ! #define STACK_SIZE (2 * 1024 * 1024)
  10. #endif
  11. /* The initial size of the thread stack. Must be a multiple of PAGE_SIZE. */
  12. --- 343,349 ----
  13. THREAD_SELF implementation is used, this must be a power of two and
  14. a multiple of PAGE_SIZE. */
  15. #ifndef STACK_SIZE
  16. ! #define STACK_SIZE (128 * 1024)
  17. #endif
  18. /* The initial size of the thread stack. Must be a multiple of PAGE_SIZE. */
  19. diff -r -c --exclude='*.info*' glibc-2.2.5.org/linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h glibc-2.2.5/linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h
  20. *** glibc-2.2.5.org/linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h Thu Jun 8 21:49:49 2000
  21. --- glibc-2.2.5/linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h Tue May 21 10:52:58 2002
  22. ***************
  23. *** 64,70 ****
  24. /* The number of threads per process. */
  25. #define _POSIX_THREAD_THREADS_MAX 64
  26. /* This is the value this implementation supports. */
  27. ! #define PTHREAD_THREADS_MAX 1024
  28. /* Maximum amount by which a process can descrease its asynchronous I/O
  29. priority level. */
  30. --- 64,70 ----
  31. /* The number of threads per process. */
  32. #define _POSIX_THREAD_THREADS_MAX 64
  33. /* This is the value this implementation supports. */
  34. ! #define PTHREAD_THREADS_MAX 4096
  35. /* Maximum amount by which a process can descrease its asynchronous I/O
  36. priority level. */
  37. diff -r -c --exclude='*.info*' glibc-2.2.5.org/nss/nsswitch.c glibc-2.2.5/nss/nsswitch.c
  38. *** glibc-2.2.5.org/nss/nsswitch.c Tue Jul 17 10:21:36 2001
  39. --- glibc-2.2.5/nss/nsswitch.c Tue May 21 10:59:55 2002
  40. ***************
  41. *** 496,501 ****
  42. --- 496,502 ----
  43. {
  44. service_user *new_service;
  45. const char *name;
  46. + int name_alloc_len;
  47. while (isspace (line[0]))
  48. ++line;
  49. ***************
  50. *** 510,522 ****
  51. if (name == line)
  52. return result;
  53. new_service = (service_user *) malloc (sizeof (service_user)
  54. ! + (line - name + 1));
  55. if (new_service == NULL)
  56. return result;
  57. ! *((char *) __mempcpy (new_service->name, name, line - name)) = '\0';
  58. /* Set default actions. */
  59. new_service->actions[2 + NSS_STATUS_TRYAGAIN] = NSS_ACTION_CONTINUE;
  60. --- 511,534 ----
  61. if (name == line)
  62. return result;
  63. + name_alloc_len = line - name + 1;
  64. +
  65. + #ifdef DO_STATIC_NSS
  66. + if (!((name_alloc_len == 6 && strncmp(name,"files",5) == 0) ||
  67. + (name_alloc_len == 4 && strncmp(name,"dns",3) == 0)))
  68. + {
  69. + name = (char*) "files";
  70. + name_alloc_len = 6;
  71. + }
  72. + #endif
  73. new_service = (service_user *) malloc (sizeof (service_user)
  74. ! + name_alloc_len);
  75. if (new_service == NULL)
  76. return result;
  77. ! *((char *) __mempcpy (new_service->name, name, name_alloc_len-1)) = '\0';
  78. !
  79. /* Set default actions. */
  80. new_service->actions[2 + NSS_STATUS_TRYAGAIN] = NSS_ACTION_CONTINUE;
  81. diff -r -c --exclude='*.info*' glibc-2.2.5.org/time/Makefile glibc-2.2.5/time/Makefile
  82. *** glibc-2.2.5.org/time/Makefile Fri Aug 10 01:59:41 2001
  83. --- glibc-2.2.5/time/Makefile Tue May 21 11:01:11 2002
  84. ***************
  85. *** 37,44 ****
  86. include ../Rules
  87. ! tz-cflags = -DTZDIR='"$(zonedir)"' \
  88. ! -DTZDEFAULT='"$(localtime-file)"' \
  89. -DTZDEFRULES='"$(posixrules-file)"'
  90. CFLAGS-tzfile.c = $(tz-cflags)
  91. --- 37,44 ----
  92. include ../Rules
  93. ! tz-cflags = -DTZDIR='"/usr/share/zoneinfo/"' \
  94. ! -DTZDEFAULT='"/etc/localtime"' \
  95. -DTZDEFRULES='"$(posixrules-file)"'
  96. CFLAGS-tzfile.c = $(tz-cflags)
  97. diff -r -c --exclude='*.info*' glibc-2.2.5.org/timezone/Makefile glibc-2.2.5/timezone/Makefile
  98. *** glibc-2.2.5.org/timezone/Makefile Thu Aug 30 00:45:25 2001
  99. --- glibc-2.2.5/timezone/Makefile Tue May 21 11:01:57 2002
  100. ***************
  101. *** 159,166 ****
  102. $(objpfx)zic: $(objpfx)scheck.o $(objpfx)ialloc.o
  103. ! tz-cflags = -DTZDIR='"$(zonedir)"' \
  104. ! -DTZDEFAULT='"$(localtime-file)"' \
  105. -DTZDEFRULES='"$(posixrules-file)"' \
  106. -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone
  107. --- 159,166 ----
  108. $(objpfx)zic: $(objpfx)scheck.o $(objpfx)ialloc.o
  109. ! tz-cflags = -DTZDIR='"/usr/share/zoneinfo/"' \
  110. ! -DTZDEFAULT='"/etc/localtime"' \
  111. -DTZDEFRULES='"$(posixrules-file)"' \
  112. -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone