Introduction
Introduction Statistics Contact Development Disclaimer Help
tlibthread: rm unused sparc-ucontext.h - plan9port - [fork] Plan 9 from user sp…
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit c181e39eeab0eb8cad274b7b22ce5343bd55630d
parent 52397aaf2b240015533fa46f1767c20f45296465
Author: Russ Cox <[email protected]>
Date: Sun, 19 Jan 2020 21:01:30 -0500
libthread: rm unused sparc-ucontext.h
More dead code.
Diffstat:
D src/libthread/sparc-ucontext.h | 23 -----------------------
M src/libthread/threadimpl.h | 14 --------------
2 files changed, 0 insertions(+), 37 deletions(-)
---
diff --git a/src/libthread/sparc-ucontext.h b/src/libthread/sparc-ucontext.h
t@@ -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*);
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
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*);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.