Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ val(1) — OSF/1 SILVER Baselevel 4 rev36

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

admin(1)

cdc(1)

comb(1)

delta(1)

get(1)

prs(1)

rmdel(1)

sact(1)

sccsdiff(1)

sccshelp(1)

unget(1)

what(1)

sccsfile(4)

val(1)  —  Commands

OSF

NAME

val − Validates Source Code Control System (SCCS) files

SYNOPSIS

val [-midentifier] [-rSID] [-s] [-ytype ...] file ...  | -

The val command reads files and determines whether each specified file is an SCCS file meeting the characteristics specified by the flags. 

FLAGS

Each flag or group of flags applies independently to each named file.  The flags can be entered in any order. 

-midentifier
Compares the value identifier with the SCCS %M% identification keyword in file.  See the get command for more information on the %M% keyword. 

-rSIDSpecifies the SID (SCCS ID) of the file to be validated.  The SID must be valid and unambiguous. 

-sSuppresses the error message normally written to standard output. 

-ytypeSpecifies a type to compare with the SCCS %Y% identification keyword in file.  See the get command for more information on the %Y% keyword. 

DESCRIPTION

If you specify a - (dash) for file, val reads standard input and interprets each line of standard input as val flags and the name of a file.  An End-of-File key sequence terminates input. 

The val command displays error messages to standard output for each file processed.  The val command also returns a single 8-bit code upon exit. 

The 8-bit code indicates possible mismatches or errors.  It is interpreted as a bit string, in which set bits (from left to right) are interpreted as follows:

bit 0Missing file argument

bit 1Unknown or duplicate flag

bit 2Damaged SCCS file

bit 3Cannot open file or file not SCCS

bit 4SID is invalid

bit 5SID does not exist

bit 6%Y%, -y mismatch

bit 7%M%, -m mismatch

When val processes two or more files on a given command line or multiple command lines (when reading the standard input), a code is returned that is a logical OR of the codes generated for each command line and file processed. 

EXAMPLES

To determine if file s.test.c is an SCCS text file, enter:

val -ytext s.test.c

or:

val -
-ytext s.test.c
<Ctrl-d>

where <Ctrl-d> is the End-of-File key sequence. 

RELATED INFORMATION

Commands:  admin(1), cdc(1), comb(1), delta(1), get(1), prs(1), rmdel(1), sact(1), sccsdiff(1), sccshelp(1), unget(1), what(1). 

Files:  sccsfile(4). 

Guide to Programming Support Tools

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026