CDDREC(1) Domain/OS SysV CDDREC(1)
NAME
cddrec - read Directory Record from CDROM
SYNTAX
cddrec [-s number] [-b] file
DESCRIPTION
This command is used to access the Directory Record associated with a
CD-ROM file or directory and to list its contents on standard output. If
the command is used without the option -b, only the fixed part of the
Directory Record is copied from the CD-ROM; this does not include the
System Use field.
OPTIONS
The following options are available:
-s number This option specifies the File Section for which the
Directory Record shall be read. The numbering starts
with one. If this option is omitted the last File Section
of that file is assumed.
-b With this option the entirety of the Directory Record
is copied from CD-ROM to standard output
in binary format.
OPERANDS
The operand file is the name of any file or directory within the CD-ROM
file hierarchy.
STDIN
Not used.
INPUT FILES
None.
ENVIRONMENT VARIABLES
LC_TIME determines the format and contents of date and time strings. If
LC_TIME is not set in the environment or is set to the empty string, the
value of LANG will be used as a default. If LANG is not set or is set to
the empty string, the corresponding value from the implementation-
specific default locale will be used. If LC_TIME or LANG contain an
invalid setting, the utility will behave as if none of the variables had
been defined.
STDOUT
The output is formatted in the form of a table that contains the name of
each field of the Directory Record and the corresponding contents of the
entry as recorded on the CD-ROM. The System Use field is not listed. If
the option -b is applied, the contents of the full Directory Record is
written to standard output in binary format as it is on the CD-ROM.
STDERR
Used only for diagnostic messages.
OUTPUT FILES
None.
EXIT STATUS
The following exit values are returned:
0 successful completion
1 file not found, file is not within a CD-ROM file
hierarchy, or access permission denied.
2 File Section indicated by -s does not exist
CONSEQUENCES OF ERRORS
None.
APPLICATION USAGE
The user must have read permission for file to execute the command
successfully.
SEE ALSO
cdvd(1), cdxar(1), cdptrec(1)