 bef0e3eb63
			
		
	
	
		bef0e3eb63
		
	
	
	
	
		
			
			swapcontext, and makecontext). - Fix VM to not erroneously think the stack segment and data segment have collided when a user-space thread invokes brk(). - Add test51 to test ucontext functionality. - Add man pages for ucontext system calls.
		
			
				
	
	
		
			22 lines
		
	
	
		
			647 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			647 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _UCONTEXT_H
 | |
| #define _UCONTEXT_H 1
 | |
| 
 | |
| #include <sys/ucontext.h>
 | |
| 
 | |
| _PROTOTYPE( void makecontext, (ucontext_t *ucp, void (*func)(void),
 | |
| 				int argc, ...)				);
 | |
| _PROTOTYPE( int swapcontext, (ucontext_t *oucp,
 | |
| 			      const ucontext_t *ucp)			);
 | |
| _PROTOTYPE( int getcontext, (ucontext_t *ucp)			);
 | |
| _PROTOTYPE( int setcontext, (const ucontext_t *ucp)		);
 | |
| 
 | |
| _PROTOTYPE( void resumecontext, (ucontext_t *ucp)		);
 | |
| 
 | |
| /* These functions get and set ucontext structure through PM/kernel. They don't
 | |
|  * manipulate the stack. */
 | |
| _PROTOTYPE( int getuctx, (ucontext_t *ucp)			);
 | |
| _PROTOTYPE( int setuctx, (const ucontext_t *ucp)		);
 | |
| 
 | |
| #endif /* _UCONTEXT_H */
 | |
| 
 |