MPE/iX System Utilities Reference Manual (32650-90882)

192 Chapter22
SOMPATCH
Operation
2 indicates that two 32-bit words need to be changed.
222222222 and FFFFFFFF are the new values.
12345678 and 33333333 are the old values.
The file to be patched is nl.abuild00.official.
When using a patch file, specify a list file, so that if the JCW is FATAL after the SOMPATCH
utility executes, the list file can be examined to determine the problem.
In the following examples, the patch file is pat0511 and the list file is lpat0511.
sompatch "nl.abuild00.official <pat0511 >lpat0511"
OR
sompatch "nl.abuild00.official,use:pat0511,list:lpat0511"
Interactive patching
Normally, the LOG command is used with all of the required parameters specified, just as in
the example above; however, the SOMPATCH utility also provides user prompting for the log
command.
: { at colon prompt, type }
sompatch nl.abuild00.official Return
{invoke program, giving primary file}
sp>log Return {a log command is required before the first modify}
username>junie moon from august skies Return{program is prompting}
patchid>163 Return
srnumber>4700241760 Return
comment>fixes system crash on listf ,5 Return
comment> Return {a Return signifies end of comment}
sp>modify iobuf+20, 2
12345678|22222222 33333333|FFFFFFFF Return {application of the patch}
sp>exit Return {exit program, saving patched nl.abuild00.official}
: {the colon prompt returns}
; (semicolon)
This command describes the reason that a patch is being applied. It indicates problem
symptoms and a fix description. A minimum of one line of comment text is required for
each set of modify instructions composing a patch. You should describe the symptoms of
the problem in detail, with an explanation when you anticipate a fix in source.