commit c181e39eeab0eb8cad274b7b22ce5343bd55630d from: Russ Cox date: Mon Jan 20 02:26:30 2020 UTC libthread: rm unused sparc-ucontext.h More dead code. commit - 52397aaf2b240015533fa46f1767c20f45296465 commit + c181e39eeab0eb8cad274b7b22ce5343bd55630d blob - 36b8817103a0d70a1a9a9cf7d9a186c06e5d0b95 (mode 644) blob + /dev/null --- src/libthread/sparc-ucontext.h +++ /dev/null @@ -1,23 +0,0 @@ -#define setcontext(u) _setmcontext(&(u)->mc) -#define getcontext(u) _getmcontext(&(u)->mc) -typedef struct mcontext mcontext_t; -typedef struct ucontext ucontext_t; -struct mcontext -{ - int r[16]; -}; - -struct ucontext -{ - struct { - void *ss_sp; - uint ss_size; - } uc_stack; - sigset_t uc_sigmask; - mcontext_t mc; -}; - -void makecontext(ucontext_t*, void(*)(void), int, ...); -int swapcontext(ucontext_t*, ucontext_t*); -int _getmcontext(mcontext_t*); -void _setmcontext(mcontext_t*); blob - e26ffe6b3a4f6909788bed915d43c89b41de5083 blob + 5b6d74cc84ba42dbb6accb5d3310c98857b59805 --- src/libthread/threadimpl.h +++ src/libthread/threadimpl.h @@ -55,20 +55,6 @@ extern pid_t rfork_thread(int, void*, int(*)(void*), void*); #endif -/* THIS DOES NOT WORK! Don't do this! -(At least, not on Solaris. Maybe this is right for Linux, -in which case it should say if defined(__linux__) && defined(__sun__), -but surely the latter would be defined(__sparc__). - -#if defined(__sun__) -# define mcontext libthread_mcontext -# define mcontext_t libthread_mcontext_t -# define ucontext libthread_ucontext -# define ucontext_t libthread_ucontext_t -# include "sparc-ucontext.h" -#endif -*/ - #if defined(__arm__) int mygetmcontext(ulong*); void mysetmcontext(const ulong*);