| 
									
										
										
										
											2008-12-01 15:04:31 -05:00
										 |  |  | ! Copyright (C) 2008 Doug Coleman. | 
					
						
							|  |  |  | ! See http://factorcode.org/license.txt for BSD license. | 
					
						
							| 
									
										
										
										
											2009-09-27 20:25:34 -04:00
										 |  |  | USING: alien.c-types alien.syntax classes.struct unix.types ;
 | 
					
						
							| 
									
										
										
										
											2008-12-01 15:04:31 -05:00
										 |  |  | IN: unix.statvfs.linux | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-30 05:06:41 -04:00
										 |  |  | STRUCT: statvfs64 | 
					
						
							|  |  |  |     { f_bsize ulong } | 
					
						
							|  |  |  |     { f_frsize ulong } | 
					
						
							|  |  |  |     { f_blocks __fsblkcnt64_t } | 
					
						
							|  |  |  |     { f_bfree __fsblkcnt64_t } | 
					
						
							|  |  |  |     { f_bavail __fsblkcnt64_t } | 
					
						
							|  |  |  |     { f_files __fsfilcnt64_t } | 
					
						
							|  |  |  |     { f_ffree __fsfilcnt64_t } | 
					
						
							|  |  |  |     { f_favail __fsfilcnt64_t } | 
					
						
							|  |  |  |     { f_fsid ulong } | 
					
						
							|  |  |  |     { f_flag ulong } | 
					
						
							|  |  |  |     { f_namemax ulong } | 
					
						
							|  |  |  |     { __f_spare int[6] } ;
 | 
					
						
							| 
									
										
										
										
											2008-12-01 15:04:31 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-19 19:54:27 -04:00
										 |  |  | FUNCTION: int statvfs64 ( c-string path, statvfs64* buf ) | 
					
						
							| 
									
										
										
										
											2008-12-01 15:04:31 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-12-16 02:12:36 -05:00
										 |  |  | CONSTANT: ST_RDONLY 1        ! Mount read-only. | 
					
						
							|  |  |  | CONSTANT: ST_NOSUID 2        ! Ignore suid and sgid bits. | 
					
						
							|  |  |  | CONSTANT: ST_NODEV 4         ! Disallow access to device special files. | 
					
						
							|  |  |  | CONSTANT: ST_NOEXEC 8        ! Disallow program execution. | 
					
						
							|  |  |  | CONSTANT: ST_SYNCHRONOUS 16  ! Writes are synced at once. | 
					
						
							|  |  |  | CONSTANT: ST_MANDLOCK 64     ! Allow mandatory locks on an FS. | 
					
						
							|  |  |  | CONSTANT: ST_WRITE 128       ! Write on file/directory/symlink. | 
					
						
							|  |  |  | CONSTANT: ST_APPEND 256      ! Append-only file. | 
					
						
							|  |  |  | CONSTANT: ST_IMMUTABLE 512   ! Immutable file. | 
					
						
							|  |  |  | CONSTANT: ST_NOATIME 1024    ! Do not update access times. |