1 02/27/85  truncate, tc
 2 
 3 Syntax as a command:  tc {-control_arg} path {length}
 4                  or:  tc segno {length}
 5 
 6 
 7 Function: truncates a segment to an optionally specified length and
 8 resets the bit count accordingly, setting the bit count author to be
 9 the user who invoked the command.
10 
11 
12 Arguments:
13 path
14    is the pathname of a segment.  You can't use the star convention.
15 length
16    is an octal integer indicating the length of the segment in words
17    after truncation.  If you don't provide length, zero is assumed.
18 segno
19    is an octal segment number.
20 
21 
22 Control arguments:
23 -name, -nm
24    specifies that the octal number following it is a pathname.
25 
26 
27 Access required: You need write access on the segment to be truncated.
28 
29 
30 Notes: If the segment is already shorter than the specified length,
31 its length is unchanged, but the bit count is set to the length given.
32 
33 Don't use truncate on segments that are, or are components of,
34 structured files.
35 
36 If you use truncate on a consistent MSF, it is operated on as in a
37 single segment.  If the truncation length is less than the current
38 length, components are deleted until the sum of the bit counts of all
39 the components is equal to the truncation length; if the truncation
40 length is greater than that sum, components are created as needed.