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