#include <ctype.h>#include <errno.h>#include <limits.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include <time.h>#include <sys/times.h>#include <unistd.h>Include dependency graph for isoread.c:

Go to the source code of this file.
Data Structures | |
| struct | iso9660_descriptor |
| struct | high_sierra_descriptor |
| struct | dir_entry |
Defines | |
| #define | ISO9660_ID "CD001" |
| #define | HIGH_SIERRA_ID "CDROM" |
| #define | BLOCK_SIZE 2048 |
| #define | BLOCK_SHIFT 11 |
| #define | STDOUT stdout |
| #define | STDERR stderr |
| #define | NULL_DIR (struct dir_entry *) 0 |
| #define | MAX_NAME_LENGTH 255 |
| #define | MAX_PATH_LENGTH 1024 |
| #define | NR_OF_CHARS 13 |
| #define | NR_OF_BLANKS 2 |
| #define | NR_OF_COLS (80 / (NR_OF_CHARS + NR_OF_BLANKS)) |
| #define | LOWER_CASE(CHR) (CHR >= 'A' && CHR <= 'Z' ? CHR | 0x20 : CHR) |
| #define | IS_DOT(PTR) (PTR->name_length[0] == 1 && PTR->name[0] == 0 ? 1 : 0) |
| #define | IS_DOT_DOT(PTR) (PTR->name_length[0] == 1 && PTR->name[0] == 1 ? 1 : 0) |
| #define | IS_DIR(PTR) (PTR->flags[-High_Sierra] & 2 ? 1 : 0) |
Functions | |
| _PROTOTYPE (int main,(int argc, char **argv)) | |
| _PROTOTYPE (int iso_cmp,(char *name, struct dir_entry *dir_ptr, int dir_flag)) | |
| _PROTOTYPE (void list_dir,(struct dir_entry *dir_ptr)) | |
| _PROTOTYPE (struct dir_entry *look_up,(char *name)) | |
| _PROTOTYPE (void recurse_dir,(char *path, struct dir_entry *dir_ptr)) | |
| _PROTOTYPE (void read_device,(long offset, int nr_of_bytes, char *buffer)) | |
| _PROTOTYPE (int valid_fs,(void)) | |
| _PROTOTYPE (void usage,(void)) | |
| _PROTOTYPE (void print_date,(char *date)) | |
| _PROTOTYPE (void iso_info,(struct iso9660_descriptor *vol_desc)) | |
| _PROTOTYPE (void hs_info,(struct high_sierra_descriptor *vol_desc)) | |
| _PROTOTYPE (int iso_711,(char *c)) | |
| _PROTOTYPE (long iso_731,(char *c)) | |
| int | iso_cmp (char *name, struct dir_entry *dir_ptr, int dir_flag) |
| void | usage () |
| int | main (int argc, char **argv) |
| dir_entry * | look_up (char *path) |
| void | recurse_dir (char *path, struct dir_entry *dir_ptr) |
| void | list_dir (struct dir_entry *dir_ptr) |
| void | print_dir_date (char *date) |
| void | list_file (struct dir_entry *dir_ptr) |
| void | print_date (char *date) |
| void | iso_info (struct iso9660_descriptor *vol_desc) |
| void | hs_info (struct high_sierra_descriptor *vol_desc) |
| int | valid_fs () |
| void | read_device (long offset, int nr_of_bytes, char *buffer) |
| int | iso_711 (char *c) |
| int | iso_712 (char *c) |
| int | iso_721 (char *c) |
| int | iso_722 (char *c) |
| int | iso_723 (char *c) |
| long | iso_731 (char *c) |
| long | iso_732 (char *c) |
| long | iso_733 (char *c) |
Variables | |
| char | Buffer [BLOCK_SIZE] |
| int | Device |
| iso9660_descriptor * | Iso_Vol_Desc |
| high_sierra_descriptor * | Hs_Vol_Desc |
| int | High_Sierra = 0 |
| int | Iso9660 = 0 |
| char | months [] = "JanFebMarAprMayJunJulAugSepOctNovDec" |
| int | Read_File = 0 |
| int | Read_Dir = 0 |
| int | Read_Info = 0 |
| int | Recurse = 0 |
| int | Verbose = 0 |
| int | ByteOffset = 0 |
| int | Aflag = 0 |
|
|
Definition at line 44 of file isoread.c. Referenced by list_dir(), look_up(), and recurse_dir(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 140 of file isoread.c. Referenced by list_dir(), and recurse_dir(). |
|
|
Definition at line 141 of file isoread.c. Referenced by list_dir(), and recurse_dir(). |
|
|
Definition at line 41 of file isoread.c. Referenced by valid_fs(). |
|
|
Definition at line 137 of file isoread.c. Referenced by iso_cmp(), list_dir(), main(), and recurse_dir(). |
|
|
Definition at line 129 of file isoread.c. Referenced by look_up(). |
|
|
Definition at line 130 of file isoread.c. Referenced by main(), and recurse_dir(). |
|
|
Definition at line 133 of file isoread.c. Referenced by list_dir(). |
|
|
Definition at line 132 of file isoread.c. Referenced by list_dir(). |
|
|
Definition at line 134 of file isoread.c. Referenced by list_dir(). |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
Definition at line 792 of file isoread.c. Referenced by iso_cmp(), list_dir(), look_up(), print_dir_date(), and recurse_dir(). |
|
|
Definition at line 799 of file isoread.c. References n. |
|
|
|
|
|
|
|
|
Definition at line 821 of file isoread.c. References exit(), fprintf(), and STDERR. Referenced by hs_info(), and iso_info(). |
|
|
|
|
|
|
|
|
Definition at line 851 of file isoread.c. References exit(), fprintf(), i, and STDERR. Referenced by hs_info(), iso_info(), list_dir(), list_file(), look_up(), and recurse_dir(). |
|
||||||||||||||||
|
Definition at line 187 of file isoread.c. References i, if(), iso_711(), LOWER_CASE, dir_entry::name, dir_entry::name_length, and strlen(). Referenced by look_up(). |
|
|
Definition at line 682 of file isoread.c. References fprintf(), i, iso_723(), iso_733(), print_date(), and STDOUT. |
|
|
Definition at line 505 of file isoread.c. References BLOCK_SHIFT, BLOCK_SIZE, column, fprintf(), i, IS_DIR, IS_DOT, IS_DOT_DOT, isatty, iso_711(), iso_733(), j, LOWER_CASE, NR_OF_BLANKS, NR_OF_CHARS, NR_OF_COLS, offset, print_dir_date(), read_device(), skip, STDOUT, and STDOUT_FILENO. |
|
|
Definition at line 625 of file isoread.c. References BLOCK_SIZE, c, fprintf(), i, iso_733(), read_device(), size, and STDOUT. |
|
|
Definition at line 355 of file isoread.c. References BLOCK_SHIFT, BLOCK_SIZE, dir_entry::ext_attr_length, dir_entry::first_block, Hs_Vol_Desc, i, iso_711(), iso_733(), iso_cmp(), Iso_Vol_Desc, j, dir_entry::length, MAX_NAME_LENGTH, offset, read_device(), high_sierra_descriptor::root_dir_entry, iso9660_descriptor::root_dir_entry, dir_entry::size, and strlen(). |
|
||||||||||||
|
Definition at line 230 of file isoread.c. References basename, errno, exit(), file_name, fprintf(), i, input_file, j, LOWER_CASE, MAX_PATH_LENGTH, O_RDONLY, open, path, STDERR, strcmp, strerror(), and usage. |
|
|
|
|
|
Definition at line 603 of file isoread.c. References fprintf(), iso_711(), m, and STDOUT. Referenced by list_dir(). |
|
||||||||||||||||
|
Definition at line 766 of file isoread.c. References errno, exit(), fflush(), fprintf(), lseek, read, SEEK_SET, STDERR, stdout, and strerror(). Referenced by list_dir(), list_file(), look_up(), recurse_dir(), and valid_fs(). |
|
||||||||||||
|
Definition at line 430 of file isoread.c. References BLOCK_SHIFT, BLOCK_SIZE, Buffer, dir_entry::ext_attr_length, dir_entry::first_block, fprintf(), i, if(), IS_DIR, IS_DOT, IS_DOT_DOT, iso_711(), iso_733(), j, dir_entry::length, list_dir, LOWER_CASE, MAX_PATH_LENGTH, offset, path_length, read_device(), dir_entry::size, STDOUT, and strlen(). |
|
|
|
|
|
Definition at line 732 of file isoread.c. References BLOCK_SIZE, Hs_Vol_Desc, i, iso9660_descriptor::id, ISO9660_ID, Iso_Vol_Desc, read_device(), and strncmp(). |
|
|
|
|
|
Definition at line 168 of file isoread.c. Referenced by _buf_flush(), buf_init(), invalidate_buffer(), recurse_dir(), and rl_check_ints(). |
|
|
|
|
|
Definition at line 169 of file isoread.c. Referenced by Defdev(), and user_interface(). |
|
|
|
|
|
Definition at line 171 of file isoread.c. Referenced by look_up(), and valid_fs(). |
|
|
|
|
|
Definition at line 170 of file isoread.c. Referenced by look_up(), and valid_fs(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 183 of file isoread.c. Referenced by bttyout(), chkinvok(), countem(), main(), readline(), vfile(), wcputsec(), zdlread(), zgethex(), zperr(), zputhex(), and zsendfdata(). |
1.4.6