[libpthread] (GLIBC_2.2): Add pthread_spin_init, pthread_spin_destroy,
[kopensolaris-gnu/glibc.git] / linuxthreads / Versions
1 libc {
2   GLIBC_2.0 {
3     pthread_attr_destroy; pthread_attr_getdetachstate;
4     pthread_attr_getinheritsched; pthread_attr_getschedparam;
5     pthread_attr_getschedpolicy; pthread_attr_getscope; pthread_attr_init;
6     pthread_attr_setdetachstate; pthread_attr_setinheritsched;
7     pthread_attr_setschedparam; pthread_attr_setschedpolicy;
8     pthread_attr_setscope; pthread_cond_broadcast; pthread_cond_destroy;
9     pthread_cond_init; pthread_cond_signal; pthread_cond_wait;
10     pthread_condattr_destroy; pthread_condattr_init; pthread_equal;
11     pthread_exit; pthread_getschedparam; pthread_mutex_destroy;
12     pthread_mutex_init; pthread_mutex_lock; pthread_mutex_unlock;
13     pthread_mutexattr_getkind_np; pthread_mutexattr_setkind_np;
14     pthread_self; pthread_setcancelstate; pthread_setcanceltype;
15     pthread_setschedparam;
16
17     # Internal libc interface to libpthread
18     __libc_internal_tsd_get; __libc_internal_tsd_set;
19   }
20   GLIBC_2.1 {
21     pthread_attr_init;
22   }
23 }
24
25 ld.so {
26   GLIBC_2.0 {
27     # Internal libc interface to libpthread
28     __libc_internal_tsd_get; __libc_internal_tsd_set;
29   }
30 }
31
32 libpthread {
33   GLIBC_2.0 {
34     # Hidden entry point (through macros).
35     _pthread_cleanup_pop; _pthread_cleanup_pop_restore; _pthread_cleanup_push;
36     _pthread_cleanup_push_defer;
37
38     # Internal libc interface to libpthread
39     __libc_internal_tsd_get; __libc_internal_tsd_set;
40
41     # Overwritten libc functions.
42     accept; close; connect; fcntl; fork; fsync; longjmp; lseek; msync;
43     nanosleep; open; pause; raise; read; recv; recvfrom; recvmsg; send;
44     sendmsg; sendto; sigaction; siglongjmp; system; tcdrain; wait;
45     waitpid; write;
46     __close; __connect; __fcntl; __lseek; __open; __read; __send; __wait;
47     __write;
48     _IO_flockfile; _IO_ftrylockfile; _IO_funlockfile;
49     vfork; __fork;
50
51     # POSIX.1c extensions to libc.
52     flockfile; funlockfile; ftrylockfile;
53
54     # Non-standard POSIX1.x functions.
55     pthread_kill_other_threads_np; pthread_mutexattr_getkind_np;
56     pthread_mutexattr_setkind_np;
57
58     # Real POSIX.1c functions.
59     pthread_atfork; pthread_attr_destroy; pthread_attr_getdetachstate;
60     pthread_attr_getinheritsched; pthread_attr_getschedparam;
61     pthread_attr_getschedpolicy; pthread_attr_getscope; pthread_attr_init;
62     pthread_attr_setdetachstate; pthread_attr_setinheritsched;
63     pthread_attr_setschedparam; pthread_attr_setschedpolicy;
64     pthread_attr_setscope; pthread_cancel; pthread_cond_broadcast;
65     pthread_cond_destroy; pthread_cond_init; pthread_cond_signal;
66     pthread_cond_timedwait; pthread_cond_wait; pthread_condattr_destroy;
67     pthread_condattr_init; pthread_create; pthread_detach; pthread_equal;
68     pthread_exit; pthread_getschedparam; pthread_getspecific; pthread_join;
69     pthread_key_create; pthread_key_delete; pthread_kill;
70     pthread_mutex_destroy; pthread_mutex_init; pthread_mutex_lock;
71     pthread_mutex_trylock; pthread_mutex_unlock; pthread_mutexattr_destroy;
72     pthread_mutexattr_init; pthread_once; pthread_self; pthread_setcancelstate;
73     pthread_setcanceltype; pthread_setschedparam; pthread_setspecific;
74     pthread_sigmask; pthread_testcancel;
75
76     sem_destroy; sem_getvalue; sem_init; sem_post; sem_trywait; sem_wait;
77     sigwait;
78
79     # Protected names for functions used in other shared objects.
80     __pthread_atfork; __pthread_initialize; __pthread_getspecific;
81     __pthread_key_create; __pthread_mutex_destroy; __pthread_mutex_init;
82     __pthread_mutex_lock; __pthread_mutex_trylock; __pthread_mutex_unlock;
83     __pthread_mutexattr_destroy; __pthread_mutexattr_init;
84     __pthread_mutexattr_settype; __pthread_once; __pthread_setspecific;
85
86     # The error functions.
87     __errno_location; __h_errno_location;
88   }
89   GLIBC_2.1 {
90     # Functions with changed interface.
91     pthread_attr_init; pthread_create;
92
93     # Unix98 extensions.
94     pthread_rwlock_init; pthread_rwlock_destroy; pthread_rwlock_rdlock;
95     pthread_rwlock_tryrdlock; pthread_rwlock_wrlock; pthread_rwlock_trywrlock;
96     pthread_rwlock_unlock; pthread_rwlockattr_init; pthread_rwlockattr_destroy;
97     pthread_rwlockattr_getpshared; pthread_rwlockattr_setpshared;
98     pthread_rwlockattr_getkind_np; pthread_rwlockattr_setkind_np;
99
100     pthread_attr_getguardsize; pthread_attr_setguardsize;
101     pthread_attr_getstackaddr; pthread_attr_setstackaddr;
102     pthread_attr_getstacksize; pthread_attr_setstacksize;
103
104     pthread_getconcurrency; pthread_setconcurrency;
105
106     pthread_mutexattr_gettype; pthread_mutexattr_settype;
107
108     sem_destroy; sem_getvalue; sem_init; sem_post; sem_trywait; sem_wait;
109
110     # helper functions
111     __libc_current_sigrtmin; __libc_current_sigrtmax;
112     __libc_allocate_rtsig;
113   }
114   GLIBC_2.1.1 {
115     sem_close; sem_open; sem_unlink;
116   }
117   GLIBC_2.1.2 {
118     __pthread_kill_other_threads_np;
119     __vfork;
120   }
121   GLIBC_2.2 {
122     # For the cancelation wrappers.
123     pread; __pread64; pread64; pwrite; __pwrite64; pwrite64; lseek64;
124     open64; __open64;
125
126     __res_state;
127
128     # Names used internally.
129     __pthread_rwlock_init; __pthread_rwlock_destroy; __pthread_rwlock_rdlock;
130     __pthread_rwlock_tryrdlock; __pthread_rwlock_wrlock;
131     __pthread_rwlock_trywrlock; __pthread_rwlock_unlock;
132
133     # New functions from IEEE Std. 10003.1-200x.
134     sem_timedwait;
135     pthread_spin_destroy; pthread_spin_init; pthread_spin_lock;
136     pthread_spin_trylock; pthread_spin_unlock;
137   }
138 }