1 3/30/84  check_file_system_damage_
 2 
 3 
 4 Function: checks a single entry for connection failures and damaged switches.
 5 
 6 
 7 Syntax:
 8 declare check_file_system_damage_ entry (char(*), char(*), fixed bin(35))
 9         returns (bit(36) aligned);
10 damage = check_file_system_damage_ (dir_name, entryname, code);
11 
12 
13 Arguments:
14 dir_name
15    is the pathname of the containing directory.  (Input)
16 entryname
17    is the entryname of the segment.  (Input)
18 code
19    is a storage system status code.  (Output)
20 damage
21    is a bit string.  Bit 0 is set on if any of the other
22    bits are set, and indicates that there is apparently some
23    damage to the entry.  Bit 1 is set if the entry damaged
24    switch is on.  Bit 2 is set on if there is a connection
25    failure for the entry.  Bits 3 to 35 are always returned
26    off.  If code is non-zero, all bits are returned off.
27 
28 
29 Note:
30 damage may also be declared as
31 
32    dcl 1 damage unaligned,
33          2 any bit (1),
34          2 damaged_switch bit (1),
35          2 connection_failure bit (1),
36          2 unused bit (33);