OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [linux/] [uClibc/] [docs/] [threads.txt] - Blame information for rev 1765

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
uClibc thread-safety analysis
2
 
3
Things that are still known to be needed for thread safety:
4
 
5
        none
6
 
7
 
8
 
9
 
10
Things that might be nice, but are not required:
11
 
12
        getnetent_r             
13
        gethostent_r            
14
        getprotoent_r           
15
        getnetbyname_r          
16
        getnetbyaddr_r          
17
 
18
 
19
 
20
Functions that use static data and may still need locking:
21
 
22
 
23
        --------------------------------------------------------------------
24
 
25
        libc/inet/rpc/rpc_thread.c:
26
 
27
        __rpc_thread_variables is currently disabled, since thread
28
        local storage seems to not be correctly specified as
29
        weak functions.
30
 
31
        --------------------------------------------------------------------
32
 
33
        unistd/getpass.c:
34
 
35
        static char buf[PWD_BUFFER_SIZE];
36
 
37
        getpass                                           <---
38
 
39
        NOTE: This function returns a pointer to a static data structure.
40
        This seems like it requires an _r version of this function.  Glibc
41
        does the same thing.  Oops!  So much for thread-safe glibc!
42
 
43
        --------------------------------------------------------------------
44
 
45
        unistd/sysconf.c:
46
 
47
        static long int ret_vals[_UCLIBC_SYSCONF_NUM_VALID_ARGS];
48
 
49
        find_or_add_in_table                             <---
50
        main                                             <---
51
 
52
        NOTE: I'm not sure if this needs to be made reentrant...
53
 
54
        --------------------------------------------------------------------

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.