 4f294c247f
			
		
	
	
		4f294c247f
		
	
	
	
	
		
			
			This patch mainly copies and modifies files existing in the current libc implementing minix specific functions. To keep consisten with the NetBSD libc, we remove namespace stubs and we use "namespace.h" and weak links.
		
			
				
	
	
		
			25 lines
		
	
	
		
			447 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			447 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <sys/cdefs.h>
 | |
| #include <lib.h>
 | |
| #include "namespace.h"
 | |
| 
 | |
| #include <signal.h>
 | |
| 
 | |
| int __sigreturn(void);
 | |
| 
 | |
| int sigaction(sig, act, oact)
 | |
| int sig;
 | |
| const struct sigaction *act;
 | |
| struct sigaction *oact;
 | |
| {
 | |
|   message m;
 | |
| 
 | |
|   m.m1_i2 = sig;
 | |
| 
 | |
|   /* XXX - yet more type puns because message struct is short of types. */
 | |
|   m.m1_p1 = (char *) act;
 | |
|   m.m1_p2 = (char *) oact;
 | |
|   m.m1_p3 = (char *) __sigreturn;
 | |
| 
 | |
|   return(_syscall(PM_PROC_NR, SIGACTION, &m));
 | |
| }
 |