mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 01:32:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			656 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			656 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Justin Mietzner <sw1tchbl4d3@sw1tchbl4d3.com>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <sys/cdefs.h>
 | |
| #include <sys/types.h>
 | |
| 
 | |
| __BEGIN_DECLS
 | |
| 
 | |
| #define ST_RDONLY 0x1
 | |
| #define ST_NOSUID 0x2
 | |
| 
 | |
| struct statvfs {
 | |
|     unsigned long f_bsize;
 | |
|     unsigned long f_frsize;
 | |
|     fsblkcnt_t f_blocks;
 | |
|     fsblkcnt_t f_bfree;
 | |
|     fsblkcnt_t f_bavail;
 | |
| 
 | |
|     fsfilcnt_t f_files;
 | |
|     fsfilcnt_t f_ffree;
 | |
|     fsfilcnt_t f_favail;
 | |
| 
 | |
|     unsigned long f_fsid;
 | |
|     unsigned long f_flag;
 | |
|     unsigned long f_namemax;
 | |
| };
 | |
| 
 | |
| int statvfs(const char* path, struct statvfs* buf);
 | |
| int fstatvfs(int fd, struct statvfs* buf);
 | |
| 
 | |
| __END_DECLS
 | 
