 8143b9bf1d
			
		
	
	
		8143b9bf1d
		
	
	
	
	
		
			
			The [f]statvfs(3) calls now use [f]statvfs1(2). Change-Id: I949c177fc14abf976e45165c342f897f4ec988ee
		
			
				
	
	
		
			28 lines
		
	
	
		
			599 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			599 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <sys/cdefs.h>
 | |
| #include <lib.h>
 | |
| #include "namespace.h"
 | |
| 
 | |
| #include <sys/statvfs.h>
 | |
| #include <string.h>
 | |
| 
 | |
| #ifdef __weak_alias
 | |
| __weak_alias(statvfs1, _statvfs1)
 | |
| __weak_alias(statvfs, _statvfs)
 | |
| #endif
 | |
| 
 | |
| int statvfs1(const char *name, struct statvfs *buffer, int flags)
 | |
| {
 | |
|   message m;
 | |
| 
 | |
|   m.VFS_STATVFS1_LEN = strlen(name) + 1;
 | |
|   m.VFS_STATVFS1_NAME = (char *) __UNCONST(name);
 | |
|   m.VFS_STATVFS1_BUF = (char *) buffer;
 | |
|   m.VFS_STATVFS1_FLAGS = flags;
 | |
|   return(_syscall(VFS_PROC_NR, STATVFS1, &m));
 | |
| }
 | |
| 
 | |
| int statvfs(const char *name, struct statvfs *buffer)
 | |
| {
 | |
|   return statvfs1(name, buffer, ST_WAIT);
 | |
| }
 |