This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/5069] env thread safety problem


------- Additional Comments From zhangxiliang at cn dot fujitsu dot com  2007-09-28 01:25 -------
The functions below are considered to thread-safety in posix. But they in
glibc-2.5 are refering to getenv(). So they are unsafe by multi-thread. The
getenv() code should be modified, but not only modify the manual. 
1.	acos
2.	acosh
3.	acosl
4.	asin
5.	asinl
6.	assert
7.	atan2
8.	atanh
9.	atexit
10.	btowc
11.	cabs
12.	cacos
13.	cacosh
14.	cacosl
15.	calloc
16.	carg
17.	casin
18.	casinh
19.	casinl
20.	catan
21.	catanh
22.	catanl
23.	catclose
24.	catopen
25.	ccos
26.	ccosh
27.	ccosl
28.	clock
29.	clog
30.	closedir
31.	confstr
32.	cosh
33.	cpow
34.	cproj
35.	csin
36.	csinh
37.	csinl
38.	csqrt
39.	ctan
40.	ctanh
41.	ctanl
42.	dlclose
43.	dlsym
44.	endhostent
45.	endnetent
46.	endprotoent
47.	endservent
48.	exit
49.	exp
50.	exp2
51.	fclose
52.	fdopen
53.	fgetc
54.	fgetpos
55.	fgetwc
56.	fgetws
57.	fmod
58.	fmtmsg
59.	fnmatch
60.	fopen
61.	fputc
62.	fputs
63.	fputwc
64.	fputws
65.	fread
66.	free
67.	freeaddrinfo
68.	freopen
69.	fscanf
70.	fseek
71.	fsetpos
72.	ftell
73.	fwprintf
74.	fwrite
75.	gai_strerror
76.	getaddrinfo
77.	getc
78.	gethostid
79.	getnameinfo
80.	getwc
81.	getwchar
82.	getwd
83.	glob
84.	grantpt
85.	hypot
86.	iconv_close
87.	iconv_open
88.	if_freenameindex
89.	if_nameindex
90.	inet_ntop
91.	j0
92.	log
93.	log10
94.	log2
95.	logf
96.	malloc
97.	mblen
98.	mbrlen
99.	mbrtowc
100.	mbtowc
101.	mktime
102.	nan
103.	perror
104.	popen
105.	posix_memalign
106.	posix_spawn
107.	posix_spawn_file_actions_addclose
108.	posix_spawn_file_actions_adddup2
109.	posix_spawn_file_actions_addopen
110.	posix_spawn_file_actions_destroy
111.	posix_spawnp
112.	pow
113.	printf
114.	pthread_atfork
115.	pthread_attr_destroy
116.	pthread_cancel
117.	pthread_create
118.	pthread_detach
119.	pthread_join
120.	putc
121.	putwc
122.	putwchar
123.	qsort
124.	realloc
125.	realpath
126.	regcomp
127.	remainder
128.	rewind
129.	scalb
130.	scanf
131.	sem_close
132.	sem_open
133.	sethostent
134.	setlocale
135.	setnetent
136.	setprotoent
137.	setservent
138.	sinh
139.	snprintf
140.	sprintf
141.	sqrt
142.	sscanf
143.	statvfs
144.	strcoll
145.	strdup
146.	strfmon
147.	strftime
148.	strptime
149.	strxfrm
150.	sysconf
151.	syslog
152.	tdelete
153.	tempnam
154.	tgamma
155.	timer_create
156.	timer_delete
157.	tmpfile
158.	tsearch
159.	tzset
160.	ulimit
161.	ungetc
162.	vfprintf
163.	vfscanf
164.	vfwprintf
165.	vprintf
166.	vscanf
167.	vsnprintf
168.	vsscanf
169.	vswprintf
170.	vwprintf
171.	wcscoll
172.	wcsftime
173.	wcsxfrm
174.	wctob
175.	wordexp
176.	wprintf
177.	y0




-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5069

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]