mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
libthread: rm unused sparc-ucontext.h
More dead code.
This commit is contained in:
parent
52397aaf2b
commit
c181e39eea
2 changed files with 0 additions and 37 deletions
|
@ -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*);
|
|
@ -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*);
|
||||
|
|
Loading…
Reference in a new issue