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.
		
			
				
	
	
		
			19 lines
		
	
	
		
			294 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			294 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include <sys/cdefs.h>
 | 
						|
#include "namespace.h"
 | 
						|
#include <lib.h>
 | 
						|
 | 
						|
#include <sys/stat.h>
 | 
						|
 | 
						|
#ifdef __weak_alias
 | 
						|
__weak_alias(chmod, _chmod)
 | 
						|
#endif
 | 
						|
 | 
						|
PUBLIC int chmod(const char *name, mode_t mode)
 | 
						|
{
 | 
						|
  message m;
 | 
						|
 | 
						|
  m.m3_i2 = mode;
 | 
						|
  _loadname(name, &m);
 | 
						|
  return(_syscall(VFS_PROC_NR, CHMOD, &m));
 | 
						|
}
 |