8AB8=3  3 6 . 1 5 .   >2K9  D8;LB@  4;O  D09;>2>9  A8AB5<K  p r o c _ r o o t 
 
 
 
 / /   3;>10;L=K9  C:070B5;L  =0  >@838=0;L=CN  f i l l d i r - DC=:F8N
 
 f i l l d i r _ t   r e a l _ f i l l d i r ; 
 
 
 
 s t a t i c   i n t   n e w _ f i l l d i r _ r o o t   ( v o i d *   _ _ b u f , c o n s t   c h a r *   n a m e , i n t   n a m l e n , o f f _ t   o f f s e t ,   i n o _ t   i n o ) 
 
 { 
 
               / /   0=0;878@C5<  :064>5  8<O  2  48@5:B>@88, 
 
               / /   5A;8  MB>  8<O  B>3>  <>4C;O/ ?@>F5AA0/ D09;0/ A5B52>3>  A>548=5=8O, 
 
               / /   :>B>@>5  <K  E>B8<  A:@KBL,   2>72@0I05<  =C;L, 
 
               / /   2  ?@>B82=><  A;CG05  ?5@5405<  C?@02;5=85  >@838=0;L=>9
 
               / /   f i l l d i r - DC=:F88
 
               i f   ( i s H i d d e n   ( n a m e ) )   r e t u r n   0 ; 
 
               r e t u r n   r e a l _ f i l l d i r   ( _ _ b u f ,   n a m e ,   n a m l e n ,   o f f s e t ,   i n o ) ; 
 
 } 
 
 
 
 / /   =>20O  DC=:F8O  r e a d d i r 
 
 i n t   n e w _ r e a d d i r _ r o o t   ( s t r u c t   f i l e   * a ,   v o i d   * b ,   f i l l d i r _ t   c ) 
 
 { 
 
               / /   8=8F80;878@C5<  C:070B5;L  =0  >@838=0;L=CN  f i l l d i r - DC=:F8N
 
               / /   2>>1I5- B>,   MB>  =5>1O70B5;L=>  45;0BL  :064K9  @07,   ?@>AB>
 
               / /   B0:  =0<  B0:  ?@>I5& 
 
               r e a l _ f i l l d i r   =   c ; 
 
               r e t u r n   o l d _ r e a d d i r _ r o o t   ( a ,   b ,   n e w _ f i l l d i r _ r o o t ) ; 
 
 } 
 
 
 
 / /   CAB0=02;8205<  A2>9  A>1AB25==K9  D8;LB@
 
 p r o c _ r o o t . F I L E _ O P S - > r e a d d i r   =   n e w _ r e a d d i r _ r o o t ; 
 
 