 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.
		
			
				
	
	
		
			22 lines
		
	
	
		
			315 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			315 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <sys/cdefs.h>
 | |
| #include <lib.h>
 | |
| #include "namespace.h"
 | |
| 
 | |
| #ifdef __weak_alias
 | |
| __weak_alias(setgroups, _setgroups)
 | |
| #endif
 | |
| 
 | |
| #include <unistd.h>
 | |
| 
 | |
| int setgroups(int ngroups, const gid_t *gidset)
 | |
| {
 | |
|   message m;
 | |
| 
 | |
|   m.m1_p1 = (char *) gidset;
 | |
|   m.m1_i1 = ngroups;
 | |
| 
 | |
|   return(_syscall(PM_PROC_NR, SETGROUPS, &m));
 | |
| }
 | |
| 
 | |
| 
 |