1*0Sstevel@tonic-gate;# $RCSfile: stat.pl,v $$Revision: 4.1 $$Date: 92/08/07 18:24:13 $ 2*0Sstevel@tonic-gate 3*0Sstevel@tonic-gate;# Usage: 4*0Sstevel@tonic-gate;# require 'stat.pl'; 5*0Sstevel@tonic-gate;# @ary = stat(foo); 6*0Sstevel@tonic-gate;# $st_dev = @ary[$ST_DEV]; 7*0Sstevel@tonic-gate;# 8*0Sstevel@tonic-gate$ST_DEV = 0 + $[; 9*0Sstevel@tonic-gate$ST_INO = 1 + $[; 10*0Sstevel@tonic-gate$ST_MODE = 2 + $[; 11*0Sstevel@tonic-gate$ST_NLINK = 3 + $[; 12*0Sstevel@tonic-gate$ST_UID = 4 + $[; 13*0Sstevel@tonic-gate$ST_GID = 5 + $[; 14*0Sstevel@tonic-gate$ST_RDEV = 6 + $[; 15*0Sstevel@tonic-gate$ST_SIZE = 7 + $[; 16*0Sstevel@tonic-gate$ST_ATIME = 8 + $[; 17*0Sstevel@tonic-gate$ST_MTIME = 9 + $[; 18*0Sstevel@tonic-gate$ST_CTIME = 10 + $[; 19*0Sstevel@tonic-gate$ST_BLKSIZE = 11 + $[; 20*0Sstevel@tonic-gate$ST_BLOCKS = 12 + $[; 21*0Sstevel@tonic-gate 22*0Sstevel@tonic-gate;# Usage: 23*0Sstevel@tonic-gate;# require 'stat.pl'; 24*0Sstevel@tonic-gate;# do Stat('foo'); # sets st_* as a side effect 25*0Sstevel@tonic-gate;# 26*0Sstevel@tonic-gatesub Stat { 27*0Sstevel@tonic-gate ($st_dev,$st_ino,$st_mode,$st_nlink,$st_uid,$st_gid,$st_rdev,$st_size, 28*0Sstevel@tonic-gate $st_atime,$st_mtime,$st_ctime,$st_blksize,$st_blocks) = stat(shift(@_)); 29*0Sstevel@tonic-gate} 30*0Sstevel@tonic-gate 31*0Sstevel@tonic-gate1; 32