1sccs-val(1)                      User Commands                     sccs-val(1)
2
3
4

NAME

6       sccs-val, val - validate an SCCS file
7

SYNOPSIS

9       val [-s] [-m name] [-rsid] [-y type] s.filename...
10
11

DESCRIPTION

13       The val utility determines if the specified s.files meet the character‐
14       istics specified by the indicated arguments. val can process up  to  50
15       files on a single command line.
16
17
18       val  has  a special argument, `', which reads the standard input until
19       the end-of-file condition is detected. Each line read is  independently
20       processed as if it were a command line argument list.
21
22
23       val  generates diagnostic messages on the standard output for each com‐
24       mand line and file processed and also returns a single 8−bit code  upon
25       exit as described below.
26
27
28       The 8-bit code returned by val is a disjunction of the possible errors,
29       that is, it can be interpreted as a bit string where (moving from  left
30       to right) the bits set are interpreted as follows:
31
32         bit 0 = missing file argument
33         bit 1 = unknown or duplicate option
34         bit 2 = corrupted s.file
35         bit 3 = can not open file or file not in s.file format
36         bit 4 = the SCCS delta ID (SID) is invalid or ambiguous
37         bit 5 = the SID does not exist
38         bit 6 = mismatch between Y% and -y argument
39         bit 7 = mismatch between sccs-val.1 and -m argument
40
41
42
43
44       val  can process two or more files on a given command line, and in turn
45       can process multiple command lines (when reading the  standard  input).
46       In  these  cases, an aggregate code is returned which is the logical OR
47       of the codes generated for each command line and file processed.
48

OPTIONS

50       The following options are supported:
51
52       -s         Silent.  Suppresses the normal error or warning messages.
53
54
55       -m name    Compares name with the %M% ID keyword in the s.file.
56
57
58       -rsid      Checks to see if the indicated SID is ambiguous, invalid, or
59                  absent from the s.file.
60
61
62       -y type    Compares type with the %Y% ID keyword.
63
64

ENVIRONMENT VARIABLES

66       See  environ(5) for descriptions of the following environment variables
67       that affect the execution of val: LANG, LC_ALL, LC_CTYPE,  LC_MESSAGES,
68       and NLSPATH.
69

ATTRIBUTES

71       See attributes(5) for descriptions of the following attributes:
72
73
74
75
76       ┌─────────────────────────────┬─────────────────────────────┐
77       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
78       ├─────────────────────────────┼─────────────────────────────┤
79       │Availability                 │SUNWsprot                    │
80       ├─────────────────────────────┼─────────────────────────────┤
81       │Interface Stability          │Committed                    │
82       ├─────────────────────────────┼─────────────────────────────┤
83       │Standard                     │See standards(5).            │
84       └─────────────────────────────┴─────────────────────────────┘
85

SEE ALSO

87       sccs(1),   sccs-admin(1),   sccs-delta(1),  sccs-get(1),  sccs-help(1),
88       what(1), sccsfile(4), attributes(5), environ(5), standards(5)
89

DIAGNOSTICS

91       Use the SCCS help command for explanations (see sccs-help(1)).
92
93
94
95SunOS 5.11                        17 Jan 2008                      sccs-val(1)
Impressum