Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

val(1) [ultrix man page]

val(1)							      General Commands Manual							    val(1)

Name
       val - validate SCCS file

Syntax
       val -
       val [-s] [-rSID] [-mname] [-ytype] files

Description
       The  command  determines  if the specified file is an SCCS file meeting the characteristics specified by the optional argument list.  Argu-
       ments to may appear in any order.  The arguments consist of keyletter arguments that begin with a ``-'' and named files.

       The command has a special argument, ``-,'' which causes reading of the standard input until an end-of-file  condition  is  detected.   Each
       line read is independently processed, as if it were a command line argument list.

       The  command  generates diagnostic messages on the standard output for each command line and file processed and also returns a single 8-bit
       code upon exit as described below.

Options
       The effects of any keyletter argument apply independently to each named file on the command line.  The keyletter arguments are  defined	as
       follows:

	      -  Causes stdin to be read until end of file.

	      -s Suppresses all error messages.

	      -rSID
		 Indicates  specified  delta  version  number.	A check is made to determine if the SID is ambiguous, for example, r1 is ambiguous
		 because it physically does not exist but implies 1.1, 1.2, and so forth, which may exist) or invalid, for example, r1.0 or r1.1.0
		 are  invalid  because neither case can exist as a valid delta number).  If the SID is valid and not ambiguous, a check is made to
		 determine if it actually exists.

	      -mname
		 Compares specified value with the SCCS val.1 keyword.

	      -ytype
		 Compares specified type with SCCS  keyword.

       The 8-bit code returned by is a disjunction of the possible errors.  It can be interpreted as a bit string where set bits  are  interpreted
       (from left to right) as:

	      bit 0 = missing file argument
	      bit 1 = unknown or duplicate keyletter argument
	      bit 2 = corrupted SCCS file
	      bit 3 = can't open file or file not SCCS
	      bit 4 = SID is invalid or ambiguous
	      bit 5 = SID does not exist
	      bit 6 = %Y%, -y mismatch
	      bit 7 = %M%, -m mismatch

       Note that can process two or more files on a given command line and can process multiple command lines when reading the standard input.	In
       these cases, an aggregate code is returned - a logical OR of the codes generated for each command line and file processed.

Restrictions
       The command can process up to 50 files on a single command line.  Any number above 50 produces a core dump.

Diagnostics
       Use for explanations.

See Also
       admin(1), delta(1), get(1), prs(1), sccs(1)
       Guide to the Source Code Control System

																	    val(1)

Check Out this Related Man Page

sccs-val(1)							   User Commands						       sccs-val(1)

NAME
sccs-val, val - validate an SCCS file SYNOPSIS
val [-s] [-m name] [-rsid] [-y type] s.filename... DESCRIPTION
The val utility determines if the specified s.files meet the characteristics specified by the indicated arguments. val can process up to 50 files on a single command line. val has a special argument, `-', which reads the standard input until the end-of-file condition is detected. Each line read is indepen- dently processed as if it were a command line argument list. val generates diagnostic messages on the standard output for each command line and file processed and also returns a single 8-bit code upon exit as described below. The 8-bit code returned by val is a disjunction of the possible errors, that is, it can be interpreted as a bit string where (moving from left to right) the bits set are interpreted as follows: bit 0 = missing file argument bit 1 = unknown or duplicate option bit 2 = corrupted s.file bit 3 = can not open file or file not in s.file format bit 4 = the SCCS delta ID (SID) is invalid or ambiguous bit 5 = the SID does not exist bit 6 = mismatch between Y% and -y argument bit 7 = mismatch between sccs-val.1 and -m argument val can process two or more files on a given command line, and in turn can process multiple command lines (when reading the standard input). In these cases, an aggregate code is returned which is the logical OR of the codes generated for each command line and file pro- cessed. OPTIONS
The following options are supported: -s Silent. Suppresses the normal error or warning messages. -m name Compares name with the %M% ID keyword in the s.file. -rsid Checks to see if the indicated SID is ambiguous, invalid, or absent from the s.file. -y type Compares type with the %Y% ID keyword. ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of val: LANG, LC_ALL, LC_CTYPE, LC_MES- SAGES, and NLSPATH. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsprot | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |Standard |See standards(5). | +-----------------------------+-----------------------------+ SEE ALSO
sccs(1), sccs-admin(1), sccs-delta(1), sccs-get(1), sccs-help(1), what(1), sccsfile(4), attributes(5), environ(5), standards(5) DIAGNOSTICS
Use the SCCS help command for explanations (see sccs-help(1)). SunOS 5.11 17 Jan 2008 sccs-val(1)
Man Page