| 
									
										
										
										
											2009-08-30 05:06:41 -04:00
										 |  |  | USING: alien.c-types arrays accessors combinators classes.struct | 
					
						
							| 
									
										
										
										
											2010-01-20 23:42:07 -05:00
										 |  |  | alien.syntax unix.time unix.types unix.ffi ;
 | 
					
						
							| 
									
										
										
										
											2008-02-27 18:01:15 -05:00
										 |  |  | IN: unix.stat | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-27 00:14:57 -04:00
										 |  |  | ! Mac OS X | 
					
						
							| 
									
										
										
										
											2008-02-27 18:01:15 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-10-06 23:51:06 -04:00
										 |  |  | ! stat64 structure | 
					
						
							| 
									
										
										
										
											2009-08-30 05:06:41 -04:00
										 |  |  | STRUCT: stat | 
					
						
							|  |  |  |     { st_dev dev_t } | 
					
						
							|  |  |  |     { st_mode mode_t } | 
					
						
							|  |  |  |     { st_nlink nlink_t } | 
					
						
							|  |  |  |     { st_ino ino64_t } | 
					
						
							|  |  |  |     { st_uid uid_t } | 
					
						
							|  |  |  |     { st_gid gid_t } | 
					
						
							|  |  |  |     { st_rdev dev_t } | 
					
						
							|  |  |  |     { st_atimespec timespec } | 
					
						
							|  |  |  |     { st_mtimespec timespec } | 
					
						
							|  |  |  |     { st_ctimespec timespec } | 
					
						
							|  |  |  |     { st_birthtimespec timespec } | 
					
						
							|  |  |  |     { st_size off_t } | 
					
						
							|  |  |  |     { st_blocks blkcnt_t } | 
					
						
							|  |  |  |     { st_blksize blksize_t } | 
					
						
							|  |  |  |     { st_flags __uint32_t } | 
					
						
							|  |  |  |     { st_gen __uint32_t } | 
					
						
							|  |  |  |     { st_lspare __int32_t } | 
					
						
							|  |  |  |     { st_qspare0 __int64_t } | 
					
						
							|  |  |  |     { st_qspare1 __int64_t } ;
 | 
					
						
							| 
									
										
										
										
											2008-02-27 18:01:15 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-23 14:42:02 -05:00
										 |  |  | FUNCTION: int stat64  ( c-string pathname, stat* buf ) ;
 | 
					
						
							|  |  |  | FUNCTION: int lstat64 ( c-string pathname, stat* buf ) ;
 | 
					
						
							| 
									
										
										
										
											2011-10-14 20:59:54 -04:00
										 |  |  | FUNCTION: int fstat64 ( int fd, stat* buf ) ;
 | 
					
						
							| 
									
										
										
										
											2008-05-10 13:36:57 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-03-24 01:36:12 -04:00
										 |  |  | : stat-func ( path buf -- n ) stat64 ;
 | 
					
						
							| 
									
										
										
										
											2008-10-06 23:51:06 -04:00
										 |  |  | : lstat ( path buf -- n ) lstat64 ;
 | 
					
						
							| 
									
										
										
										
											2011-10-14 20:59:54 -04:00
										 |  |  | : fstat ( fd buf -- n ) fstat64 ;
 |