1998-07-03 06:51:40 +08:00
|
|
|
libc {
|
|
|
|
GLIBC_2.0 {
|
1998-11-30 Mark Kettenis <kettenis@phys.uva.nl>
* mach/Versions [libc, GLIBC_2.0]: Add __spin_lock,
__spin_lock_init, __mutex_lock, __mutex_trylock,
__mutex_unlock.
Remove get_priviliged_ports. Moved to hurd/Versions.
* hurd/Versions [libc, GLIBC_2.0]: Add _end. This makes the Hurd
brk implementation see the end of the data segment of the program
instead of the shared library.
Add __hurd_errno_location. This inline function is used in user
programs.
Add _hurd_critical_section_lock, _hurd_critical_section_unlock,
_hurd_fd_get, _hurd_port_free, _hurd_port_get,
_hurd_port_locked_get. These inline functions are used by macros
used in mail.local in the Hurd distribution.
Add get_privileged_ports. Moved here from mach/Versions.
Remove __hurd_file_name_lookup, __hurd_file_name_lookup_retry,
__hurd_file_name_split, __hurd_file_name_path_lookup. These are
not used outside libc.
1998-11-30 Mark Kettenis <kettenis@phys.uva.nl>
* hurd/hurdstartup.c: Really include set-hooks.h with <> instead
of "".
1998-12-01 02:45:57 +08:00
|
|
|
# necessary for the Hurd brk implementation
|
|
|
|
_end;
|
|
|
|
|
|
|
|
# variables used in macros & inline functions
|
1998-07-03 06:51:40 +08:00
|
|
|
__hurd_threadvar_stack_mask; __hurd_threadvar_stack_offset;
|
1998-10-24 09:36:01 +08:00
|
|
|
|
1998-11-30 Mark Kettenis <kettenis@phys.uva.nl>
* mach/Versions [libc, GLIBC_2.0]: Add __spin_lock,
__spin_lock_init, __mutex_lock, __mutex_trylock,
__mutex_unlock.
Remove get_priviliged_ports. Moved to hurd/Versions.
* hurd/Versions [libc, GLIBC_2.0]: Add _end. This makes the Hurd
brk implementation see the end of the data segment of the program
instead of the shared library.
Add __hurd_errno_location. This inline function is used in user
programs.
Add _hurd_critical_section_lock, _hurd_critical_section_unlock,
_hurd_fd_get, _hurd_port_free, _hurd_port_get,
_hurd_port_locked_get. These inline functions are used by macros
used in mail.local in the Hurd distribution.
Add get_privileged_ports. Moved here from mach/Versions.
Remove __hurd_file_name_lookup, __hurd_file_name_lookup_retry,
__hurd_file_name_split, __hurd_file_name_path_lookup. These are
not used outside libc.
1998-11-30 Mark Kettenis <kettenis@phys.uva.nl>
* hurd/hurdstartup.c: Really include set-hooks.h with <> instead
of "".
1998-12-01 02:45:57 +08:00
|
|
|
# functions used in libmachuser and libhurduser
|
1998-07-03 06:51:40 +08:00
|
|
|
_S_catch_exception_raise;
|
2002-02-18 09:50:52 +08:00
|
|
|
_S_catch_exception_raise_state;
|
|
|
|
_S_catch_exception_raise_state_identity;
|
1998-07-03 06:51:40 +08:00
|
|
|
_S_msg_add_auth; _S_msg_del_auth;
|
|
|
|
_S_msg_describe_ports;
|
|
|
|
_S_msg_get_dtable; _S_msg_set_dtable;
|
|
|
|
_S_msg_get_env_variable; _S_msg_set_env_variable;
|
|
|
|
_S_msg_get_environment; _S_msg_set_environment;
|
|
|
|
_S_msg_get_fd; _S_msg_set_fd;
|
|
|
|
_S_msg_get_init_int; _S_msg_set_init_int;
|
|
|
|
_S_msg_get_init_ints; _S_msg_set_init_ints;
|
|
|
|
_S_msg_get_init_port; _S_msg_set_init_port;
|
|
|
|
_S_msg_get_init_ports; _S_msg_set_init_ports;
|
|
|
|
_S_msg_proc_newids; _S_msg_report_wait;
|
|
|
|
_S_msg_sig_post; _S_msg_sig_post_untraced;
|
2002-02-18 09:50:52 +08:00
|
|
|
_hurd_intr_rpc_mach_msg;
|
|
|
|
_hurdsig_fault_catch_exception_raise;
|
|
|
|
_hurdsig_fault_catch_exception_raise_state;
|
|
|
|
_hurdsig_fault_catch_exception_raise_state_identity;
|
1998-11-30 Mark Kettenis <kettenis@phys.uva.nl>
* mach/Versions [libc, GLIBC_2.0]: Add __spin_lock,
__spin_lock_init, __mutex_lock, __mutex_trylock,
__mutex_unlock.
Remove get_priviliged_ports. Moved to hurd/Versions.
* hurd/Versions [libc, GLIBC_2.0]: Add _end. This makes the Hurd
brk implementation see the end of the data segment of the program
instead of the shared library.
Add __hurd_errno_location. This inline function is used in user
programs.
Add _hurd_critical_section_lock, _hurd_critical_section_unlock,
_hurd_fd_get, _hurd_port_free, _hurd_port_get,
_hurd_port_locked_get. These inline functions are used by macros
used in mail.local in the Hurd distribution.
Add get_privileged_ports. Moved here from mach/Versions.
Remove __hurd_file_name_lookup, __hurd_file_name_lookup_retry,
__hurd_file_name_split, __hurd_file_name_path_lookup. These are
not used outside libc.
1998-11-30 Mark Kettenis <kettenis@phys.uva.nl>
* hurd/hurdstartup.c: Really include set-hooks.h with <> instead
of "".
1998-12-01 02:45:57 +08:00
|
|
|
|
|
|
|
# "quasi-internal" variables
|
|
|
|
_hurd_device_master;
|
|
|
|
_hurd_dtable; _hurd_dtablesize; _hurd_dtable_lock;
|
|
|
|
_hurd_host_priv;
|
|
|
|
_hurd_msgport;
|
|
|
|
_hurd_ports;
|
|
|
|
|
|
|
|
# "quasi-internal" functions
|
|
|
|
_hurd_canonicalize_directory_name_internal;
|
|
|
|
_hurd_critical_section_lock;
|
|
|
|
_hurd_critical_section_unlock;
|
|
|
|
_hurd_exception2signal;
|
|
|
|
_hurd_exec;
|
|
|
|
_hurd_fd_get;
|
|
|
|
_hurd_init;
|
|
|
|
_hurd_intern_fd;
|
|
|
|
_hurd_port_cleanup;
|
|
|
|
_hurd_port_free;
|
|
|
|
_hurd_port_get;
|
|
|
|
_hurd_port_locked_get;
|
|
|
|
_hurd_ports_use;
|
|
|
|
_hurd_thread_sigstate;
|
|
|
|
|
|
|
|
# functions in normal name space
|
|
|
|
|
|
|
|
# f*
|
|
|
|
file_name_lookup; file_name_lookup_under; file_name_path_lookup;
|
|
|
|
file_name_split;
|
|
|
|
fopenport;
|
|
|
|
|
|
|
|
# g*
|
|
|
|
get_privileged_ports;
|
1998-12-04 07:55:13 +08:00
|
|
|
getauth; getcrdir; getcwdir; getcttyid; getdport; getproc; getumask;
|
1998-11-30 Mark Kettenis <kettenis@phys.uva.nl>
* mach/Versions [libc, GLIBC_2.0]: Add __spin_lock,
__spin_lock_init, __mutex_lock, __mutex_trylock,
__mutex_unlock.
Remove get_priviliged_ports. Moved to hurd/Versions.
* hurd/Versions [libc, GLIBC_2.0]: Add _end. This makes the Hurd
brk implementation see the end of the data segment of the program
instead of the shared library.
Add __hurd_errno_location. This inline function is used in user
programs.
Add _hurd_critical_section_lock, _hurd_critical_section_unlock,
_hurd_fd_get, _hurd_port_free, _hurd_port_get,
_hurd_port_locked_get. These inline functions are used by macros
used in mail.local in the Hurd distribution.
Add get_privileged_ports. Moved here from mach/Versions.
Remove __hurd_file_name_lookup, __hurd_file_name_lookup_retry,
__hurd_file_name_split, __hurd_file_name_path_lookup. These are
not used outside libc.
1998-11-30 Mark Kettenis <kettenis@phys.uva.nl>
* hurd/hurdstartup.c: Really include set-hooks.h with <> instead
of "".
1998-12-01 02:45:57 +08:00
|
|
|
|
|
|
|
# h*
|
|
|
|
hurd_catch_signal;
|
|
|
|
hurd_check_cancel;
|
|
|
|
hurd_file_name_lookup; hurd_file_name_lookup_retry;
|
|
|
|
hurd_file_name_path_lookup; hurd_file_name_split;
|
|
|
|
hurd_preempt_signals;
|
|
|
|
hurd_safe_copyin; hurd_safe_copyout;
|
|
|
|
hurd_safe_memmove; hurd_safe_memset;
|
|
|
|
hurd_sig_post;
|
|
|
|
hurd_thread_cancel; hurd_thread_self;
|
2000-03-30 Roland McGrath <roland@baalperazim.frob.com>
* mach/Versions (libc: GLIBC_2.0)
[SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
__vm_allocate on this.
[SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
mutex- and spinlock-related symbols on this.
[!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
New version set. Lock-related symbols go here instead in this case.
* sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
_cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
cthread_getspecific, cthread_setspecific, __libc_getspecific.
* hurd/Versions
[SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
Put them here instead.
[!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
New version set. Those cthreads symbols go here instead in this case.
* Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
2000-03-31 03:26:35 +08:00
|
|
|
hurd_unpreempt_signals;
|
1998-11-30 Mark Kettenis <kettenis@phys.uva.nl>
* mach/Versions [libc, GLIBC_2.0]: Add __spin_lock,
__spin_lock_init, __mutex_lock, __mutex_trylock,
__mutex_unlock.
Remove get_priviliged_ports. Moved to hurd/Versions.
* hurd/Versions [libc, GLIBC_2.0]: Add _end. This makes the Hurd
brk implementation see the end of the data segment of the program
instead of the shared library.
Add __hurd_errno_location. This inline function is used in user
programs.
Add _hurd_critical_section_lock, _hurd_critical_section_unlock,
_hurd_fd_get, _hurd_port_free, _hurd_port_get,
_hurd_port_locked_get. These inline functions are used by macros
used in mail.local in the Hurd distribution.
Add get_privileged_ports. Moved here from mach/Versions.
Remove __hurd_file_name_lookup, __hurd_file_name_lookup_retry,
__hurd_file_name_split, __hurd_file_name_path_lookup. These are
not used outside libc.
1998-11-30 Mark Kettenis <kettenis@phys.uva.nl>
* hurd/hurdstartup.c: Really include set-hooks.h with <> instead
of "".
1998-12-01 02:45:57 +08:00
|
|
|
|
|
|
|
# o*
|
|
|
|
openport;
|
|
|
|
|
|
|
|
# p*
|
|
|
|
pid2task;
|
|
|
|
|
|
|
|
# s*
|
1998-12-04 07:55:13 +08:00
|
|
|
setauth; setcrdir; setcwdir; setproc; setcttyid;
|
1998-11-30 Mark Kettenis <kettenis@phys.uva.nl>
* mach/Versions [libc, GLIBC_2.0]: Add __spin_lock,
__spin_lock_init, __mutex_lock, __mutex_trylock,
__mutex_unlock.
Remove get_priviliged_ports. Moved to hurd/Versions.
* hurd/Versions [libc, GLIBC_2.0]: Add _end. This makes the Hurd
brk implementation see the end of the data segment of the program
instead of the shared library.
Add __hurd_errno_location. This inline function is used in user
programs.
Add _hurd_critical_section_lock, _hurd_critical_section_unlock,
_hurd_fd_get, _hurd_port_free, _hurd_port_get,
_hurd_port_locked_get. These inline functions are used by macros
used in mail.local in the Hurd distribution.
Add get_privileged_ports. Moved here from mach/Versions.
Remove __hurd_file_name_lookup, __hurd_file_name_lookup_retry,
__hurd_file_name_split, __hurd_file_name_path_lookup. These are
not used outside libc.
1998-11-30 Mark Kettenis <kettenis@phys.uva.nl>
* hurd/hurdstartup.c: Really include set-hooks.h with <> instead
of "".
1998-12-01 02:45:57 +08:00
|
|
|
|
|
|
|
# t*
|
|
|
|
task2pid;
|
|
|
|
|
|
|
|
# v*
|
|
|
|
vpprintf;
|
1998-07-03 06:51:40 +08:00
|
|
|
}
|
1998-12-04 07:55:13 +08:00
|
|
|
GLIBC_2.1 {
|
1998-12-04 21:47:40 +08:00
|
|
|
# "quasi-internal" functions
|
|
|
|
_hurd_proc_init;
|
|
|
|
|
1998-12-04 07:55:13 +08:00
|
|
|
# g*
|
|
|
|
geteuids;
|
|
|
|
|
|
|
|
# s*
|
|
|
|
seteuids;
|
|
|
|
}
|
1999-11-14 07:52:38 +08:00
|
|
|
GLIBC_2.1.3 {
|
|
|
|
# d*
|
|
|
|
directory_name_split;
|
|
|
|
|
|
|
|
# h*
|
|
|
|
hurd_directory_name_split;
|
|
|
|
}
|
2001-08-22 04:32:21 +08:00
|
|
|
GLIBC_2.2.5 {
|
2001-12-23 04:20:57 +08:00
|
|
|
# These always existed as inlines but the real functions were not exported.
|
2001-08-22 04:32:21 +08:00
|
|
|
__hurd_fail;
|
2001-12-23 04:52:21 +08:00
|
|
|
_hurd_self_sigstate;
|
2001-12-23 04:20:57 +08:00
|
|
|
|
|
|
|
# Same for these "quasi-internal" functions
|
2001-12-23 04:52:21 +08:00
|
|
|
_hurd_port_init;
|
2001-12-23 04:20:57 +08:00
|
|
|
_hurd_port_set;
|
2001-08-25 05:47:53 +08:00
|
|
|
|
|
|
|
# internal symbols used by other libraries (e.g. librt)
|
|
|
|
_hurd_raise_signal;
|
|
|
|
_hurdsig_interrupt_timeout;
|
|
|
|
_hurdsig_fault_preemptor; _hurdsig_fault_env;
|
2001-08-22 04:32:21 +08:00
|
|
|
}
|
2002-03-12 05:28:28 +08:00
|
|
|
GLIBC_2.2.6 {
|
|
|
|
# functions used in macros & inline functions
|
|
|
|
__errno_location;
|
|
|
|
}
|
2018-01-29 06:30:15 +08:00
|
|
|
GLIBC_2.26 {
|
|
|
|
# "quasi-internal" functions
|
|
|
|
_hurd_exec_paths;
|
|
|
|
}
|
2018-01-09 08:36:58 +08:00
|
|
|
GLIBC_2.27 {
|
hurd: take __USE_EXTERN_INLINES into account and restrict inlines
* hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
version only if __USE_EXTERN_INLINES is defined.
* hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
__hurd_sockfail): Likewise.
(_hurd_fd_get): Always declare functions, and provide inline versions
only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
* hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
_hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
_hurd_port_set): Always declare functions, and provide inline versions
only if __USE_EXTERN_INLINES and _LIBC are defined and
IS_IN(libc).
* hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
_hurd_critical_section_unlock): Likewise.
* hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
* __hurd_threadvar_location): Likewise.
* hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
_hurd_userlink_clear): Likewise.
* mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
__mutex_unlock, __mutex_trylock): Always declare functions, and provide
inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
* mach/mach/mig_support.h (__mig_strncpy): Likewise.
* sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
__spin_lock_locked): Likewise.
* sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
__spin_lock_locked): Likewise.
* mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
* hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
_hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
__hurd_threadvar_location_from_sp, __hurd_threadvar_location,
_hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
2018-01-29 01:43:10 +08:00
|
|
|
# These always existed as inlines but the real functions were not exported.
|
|
|
|
_hurd_fd_error_signal; _hurd_fd_error;
|
|
|
|
__hurd_dfail; __hurd_sockfail;
|
|
|
|
_hurd_port_locked_set;
|
|
|
|
__hurd_threadvar_location_from_sp;
|
|
|
|
__hurd_threadvar_location;
|
|
|
|
_hurd_userlink_link; _hurd_userlink_unlink; _hurd_userlink_clear;
|
2018-01-09 08:36:58 +08:00
|
|
|
}
|
2018-11-10 19:33:12 +08:00
|
|
|
GLIBC_2.29 {
|
|
|
|
# "quasi-internal" functions
|
|
|
|
_hurd_port_move;
|
|
|
|
}
|
2000-03-30 Roland McGrath <roland@baalperazim.frob.com>
* mach/Versions (libc: GLIBC_2.0)
[SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
__vm_allocate on this.
[SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
mutex- and spinlock-related symbols on this.
[!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
New version set. Lock-related symbols go here instead in this case.
* sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
_cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
cthread_getspecific, cthread_setspecific, __libc_getspecific.
* hurd/Versions
[SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
Put them here instead.
[!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
New version set. Those cthreads symbols go here instead in this case.
* Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
2000-03-31 03:26:35 +08:00
|
|
|
|
|
|
|
HURD_CTHREADS_0.3 {
|
|
|
|
# weak refs to libthreads functions that libc calls iff libthreads in use
|
hurd: Fix link cthread/pthread symbol exposition.
* hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
cthread_detach, pthread_getattr_np, pthread_attr_getstack,
cthread_keycreate, cthread_getspecific, cthread_setspecific to
__cthread_fork, __cthread_detach, __pthread_getattr_np,
__pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
__cthread_setspecific.
* hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
__cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
__cthread_t instead of cthread_fork, cthread_detach,
pthread_getattr_np, pthread_attr_getstack.
* sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
__cthread_keycreate.
(cthread_getspecific): Rename to __cthread_getspecific.
(cthread_setspecific): Rename to __cthread_setspecific.
(__libc_getspecific): Use __cthread_getspecific instead of
cthread_getspecific.
* sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
__cthread_keycreate instead of cthread_keycreate.
(__libc_setspecific): Use __cthread_setspecific instead of
cthread_setspecific.
* sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
Likewise.
2018-03-18 06:53:39 +08:00
|
|
|
__cthread_fork; __cthread_detach;
|
|
|
|
__pthread_getattr_np; __pthread_attr_getstack;
|
2000-03-30 Roland McGrath <roland@baalperazim.frob.com>
* mach/Versions (libc: GLIBC_2.0)
[SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
__vm_allocate on this.
[SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
mutex- and spinlock-related symbols on this.
[!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
New version set. Lock-related symbols go here instead in this case.
* sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
_cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
cthread_getspecific, cthread_setspecific, __libc_getspecific.
* hurd/Versions
[SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
Put them here instead.
[!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
New version set. Those cthreads symbols go here instead in this case.
* Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
2000-03-31 03:26:35 +08:00
|
|
|
|
|
|
|
# variables used for detecting cthreads
|
|
|
|
_cthread_exit_routine; _cthread_init_routine;
|
|
|
|
|
|
|
|
# cthreads functions with stubs in libc
|
hurd: Fix link cthread/pthread symbol exposition.
* hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
cthread_detach, pthread_getattr_np, pthread_attr_getstack,
cthread_keycreate, cthread_getspecific, cthread_setspecific to
__cthread_fork, __cthread_detach, __pthread_getattr_np,
__pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
__cthread_setspecific.
* hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
__cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
__cthread_t instead of cthread_fork, cthread_detach,
pthread_getattr_np, pthread_attr_getstack.
* sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
__cthread_keycreate.
(cthread_getspecific): Rename to __cthread_getspecific.
(cthread_setspecific): Rename to __cthread_setspecific.
(__libc_getspecific): Use __cthread_getspecific instead of
cthread_getspecific.
* sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
__cthread_keycreate instead of cthread_keycreate.
(__libc_setspecific): Use __cthread_setspecific instead of
cthread_setspecific.
* sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
Likewise.
2018-03-18 06:53:39 +08:00
|
|
|
__cthread_keycreate; __cthread_getspecific; __cthread_setspecific;
|
hurd: Reimplement libc locks using mach's gsync
* hurd/Makefile (routines): Add hurdlock.
* hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
interface.
(HURD_CTHREADS_0.3): Remove __libc_getspecific.
* hurd/hurdpid.c: Include <lowlevellock.h>
(_S_msg_proc_newids): Use lll_wait to synchronize.
* hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
* hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
* mach/Makefile (lock-headers): Remove machine-lock.h.
* mach/lock-intern.h: Include <lowlevellock.h> instead of
<machine-lock.h>.
(__spin_lock_t): New type.
(__SPIN_LOCK_INITIALIZER): New macro.
(__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
__mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
__mutex_unlock, __mutex_trylock): Use lll to implement locks.
* mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
(__mutex_init): Initialize with lll.
* manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
* sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
needing lll.
* sysdeps/mach/hurd/bits/errno.h: Regenerate.
* sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
* sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
* sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
(__setpgid): Use lll for synchronization.
* sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
* sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
instead of <cthreads.h>.
(_IO_lock_inexpensive): New macro
(__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
(__libc_lock_self0): New declaration.
(__libc_lock_owner_self): New macro.
(__libc_key_t): Remove type.
(_LIBC_LOCK_INITIALIZER): New macro.
(__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
__libc_lock_fini_recursive, __rtld_lock_fini_recursive,
__libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
__libc_lock_define_initialized_recursive,
__rtld_lock_define_initialized_recursive,
__libc_lock_init_recursive, __libc_lock_trylock_recursive,
__libc_lock_lock_recursive, __libc_lock_unlock_recursive,
__rtld_lock_initialize, __rtld_lock_trylock_recursive,
__rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
__libc_once_define, __libc_mutex_unlock): Reimplement with lll.
(__libc_lock_define_recursive, __rtld_lock_define_recursive,
_LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
New macros.
Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
* hurd/hurdlock.c: New file.
* hurd/hurdlock.h: New file.
* mach/lowlevellock.h: New file
2018-03-19 01:22:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
GLIBC_PRIVATE {
|
|
|
|
# Used by other libs.
|
|
|
|
__lll_abstimed_wait; __lll_abstimed_xwait;
|
|
|
|
__lll_abstimed_lock; __lll_robust_lock;
|
|
|
|
__lll_robust_abstimed_lock; __lll_robust_trylock;
|
|
|
|
__lll_robust_unlock;
|
2000-03-30 Roland McGrath <roland@baalperazim.frob.com>
* mach/Versions (libc: GLIBC_2.0)
[SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
__vm_allocate on this.
[SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
mutex- and spinlock-related symbols on this.
[!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
New version set. Lock-related symbols go here instead in this case.
* sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
_cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
cthread_getspecific, cthread_setspecific, __libc_getspecific.
* hurd/Versions
[SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
Put them here instead.
[!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
New version set. Those cthreads symbols go here instead in this case.
* Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
2000-03-31 03:26:35 +08:00
|
|
|
}
|
1998-07-03 06:51:40 +08:00
|
|
|
}
|