Skip to content

Commit

Permalink
(LIBC_CANCEL_ASYNC): Also define for librt. (LIBC_CANCEL_RESET): Like…
Browse files Browse the repository at this point in the history
…wise. Declare __librt_enable_asynccancel and __librt_disable_asynccancel.
  • Loading branch information
Ulrich Drepper committed Jun 15, 2003
1 parent 2b45004 commit 1fde494
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nptl/pthreadP.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ __do_cancel (void)
# define LIBC_CANCEL_HANDLED() \
__asm (".globl " __SYMBOL_PREFIX "__pthread_enable_asynccancel"); \
__asm (".globl " __SYMBOL_PREFIX "__pthread_disable_asynccancel")
#elif defined NOT_IN_libc && defined IS_IN_librt
# define LIBC_CANCEL_ASYNC() \
__librt_enable_asynccancel ()
# define LIBC_CANCEL_RESET(val) \
__librt_disable_asynccancel (val)
# define LIBC_CANCEL_HANDLED() \
__asm (".globl " __SYMBOL_PREFIX "__librt_enable_asynccancel"); \
__asm (".globl " __SYMBOL_PREFIX "__librt_disable_asynccancel")
#else
# define LIBC_CANCEL_ASYNC() 0 /* Just a dummy value. */
# define LIBC_CANCEL_RESET(val) ((void)(val)) /* Nothing, but evaluate it. */
Expand Down Expand Up @@ -342,6 +350,12 @@ extern int __libc_enable_asynccancel (void) attribute_hidden;
extern void __libc_disable_asynccancel (int oldtype)
internal_function attribute_hidden;


/* The two functions are in librt.so and not exported. */
extern int __librt_enable_asynccancel (void) attribute_hidden;
extern void __librt_disable_asynccancel (int oldtype)
internal_function attribute_hidden;

#ifdef IS_IN_libpthread
/* Special versions which use non-exported functions. */
extern void __pthread_cleanup_push (struct _pthread_cleanup_buffer *buffer,
Expand Down

0 comments on commit 1fde494

Please sign in to comment.