CHATR(1) — Series 500 Implementation
NAME
chatr − change program’s internal attributes
SYNOPSIS
/lbin/chatr [+c|−c] [+g|−g] [+h|−h] [−mn] [+n|−n] [+p|−p] [−q|−Q] [−s] [+z|−z] file ...
HP-UX COMPATIBILITY
Level: HP-UX/NON-STANDARD
Origin: HP
Remarks: This manual page describes chatr as implemented on Series 500 computers. Refer to other chatr(1) manual pages for information valid for other implementations.
DESCRIPTION
Chatr, by default, prints each file’s magic number and file attributes to the standard output. With one or more optional arguments, chatr performs the following operations:
c set (+) or clear (−) the virtual bit for each code segment.
g set (+) or clear (−) the virtual bit of the global data segment.
h set (+) or clear (−) the virtual bit for the heap of a two data segment program.
−mn change the maximum heap size to n bytes.
n mark code as shareable (+) (magic number = SHARE_MAGIC), or unshareable (−) (magic number = EXEC_MAGIC).
p set (+) or clear (−) the paged and virtual bits for the heap of a two data segment program.
−q set the demand load bit for each segment.
−Q clear the demand load bit for each segment.
−s perform action silently.
z set (+) or clear (−) the demand load bit for each segment.
Upon completion, chatr prints the file’s old and new values to the standard output file, unless −s is in effect.
RETURN VALUE
Chatr returns zero on success. If the call to chatr is syntactically incorrect, or one or more of the specified files cannot be acted upon, chatr returns the number of files whose attributes could not be modified. If no files are specified, chatr returns decimal 255.
SEE ALSO
DIAGNOSTICS
Chatr generates an error message for the following conditions:
no arguments are supplied − in this case the syntax is printed to the standard error file;
cannot open a file;
a request is made to modify a file which is not EXEC_MAGIC or SHARE_MAGIC.
Chatr generates a warning message for the following conditions:
the +p, −p, +h, or −h option is specified for a file which is a one data segment program;
the −m option is specified for a file which is a one data segment program, or a file for which the data is unpaged.
Hewlett-Packard — last mod. May 11, 2021