rb_cdio 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/CdIo.c +132 -0
- data/ext/CdIo.h +108 -0
- data/ext/CdIo.o +0 -0
- data/ext/CdIo_Cd.c +345 -0
- data/ext/CdIo_Cd.o +0 -0
- data/ext/CdIo_Common.c +84 -0
- data/ext/CdIo_Common.o +0 -0
- data/ext/CdIo_Modulo.c +226 -0
- data/ext/CdIo_Modulo.o +0 -0
- data/ext/CdIo_Track.c +91 -0
- data/ext/CdIo_Track.o +0 -0
- data/ext/CdIo_TrackIso9660.c +78 -0
- data/ext/CdIo_TrackIso9660.o +0 -0
- data/ext/Makefile +127 -0
- data/ext/extconf.rb +4 -0
- data/ext/mkmf.log +26 -0
- data/lib/rb_cdio_read.rb +39 -0
- data/test/data/Makefile +677 -0
- data/test/data/Makefile.am +78 -0
- data/test/data/Makefile.in +677 -0
- data/test/data/bad-cat1.cue +9 -0
- data/test/data/bad-cat1.toc +8 -0
- data/test/data/bad-cat2.cue +9 -0
- data/test/data/bad-cat2.toc +8 -0
- data/test/data/bad-cat3.cue +9 -0
- data/test/data/bad-cat3.toc +8 -0
- data/test/data/bad-mode1.cue +7 -0
- data/test/data/bad-mode1.toc +5 -0
- data/test/data/bad-msf-1.cue +7 -0
- data/test/data/bad-msf-1.toc +6 -0
- data/test/data/bad-msf-2.cue +7 -0
- data/test/data/bad-msf-2.toc +6 -0
- data/test/data/bad-msf-3.cue +7 -0
- data/test/data/bad-msf-3.toc +6 -0
- data/test/data/cdda-read.right +148 -0
- data/test/data/cdda.bin +0 -0
- data/test/data/cdda.cue +6 -0
- data/test/data/cdda.right +44 -0
- data/test/data/cdda.toc +13 -0
- data/test/data/cdtext.toc +48 -0
- data/test/data/check_cd_read.sh +53 -0
- data/test/data/check_common_fn +186 -0
- data/test/data/check_common_fn.in +186 -0
- data/test/data/check_cue.sh +102 -0
- data/test/data/check_cue.sh.in +102 -0
- data/test/data/check_iso.sh +32 -0
- data/test/data/check_iso.sh.in +32 -0
- data/test/data/check_nrg.sh +68 -0
- data/test/data/check_nrg.sh.in +68 -0
- data/test/data/check_opts.sh +33 -0
- data/test/data/check_opts0.right +40 -0
- data/test/data/check_opts1.right +40 -0
- data/test/data/check_opts2.right +34 -0
- data/test/data/check_opts3.right +34 -0
- data/test/data/check_opts4.right +44 -0
- data/test/data/check_opts5.right +44 -0
- data/test/data/check_opts6.right +44 -0
- data/test/data/check_opts7.right +44 -0
- data/test/data/check_sizeof +117 -0
- data/test/data/check_sizeof.c +77 -0
- data/test/data/copying.iso +0 -0
- data/test/data/copying.right +10 -0
- data/test/data/data1.toc +8 -0
- data/test/data/data2.toc +13 -0
- data/test/data/data5.toc +13 -0
- data/test/data/data6.toc +8 -0
- data/test/data/data7.toc +13 -0
- data/test/data/isofs-m1-read.right +258 -0
- data/test/data/isofs-m1.bin +0 -0
- data/test/data/isofs-m1.cue +3 -0
- data/test/data/isofs-m1.right +57 -0
- data/test/data/isofs-m1.toc +4 -0
- data/test/data/t1.toc +5 -0
- data/test/data/t2.toc +6 -0
- data/test/data/t3.toc +11 -0
- data/test/data/t4.toc +8 -0
- data/test/data/t5.toc +8 -0
- data/test/data/t6.toc +7 -0
- data/test/data/t7.toc +12 -0
- data/test/data/t8.toc +14 -0
- data/test/data/t9.toc +31 -0
- data/test/data/testassert +117 -0
- data/test/data/testassert.c +36 -0
- data/test/data/testbincue +117 -0
- data/test/data/testbincue.c +88 -0
- data/test/data/testdefault +117 -0
- data/test/data/testdefault.c +196 -0
- data/test/data/testischar +117 -0
- data/test/data/testischar.c +71 -0
- data/test/data/testiso9660 +117 -0
- data/test/data/testiso9660.c +153 -0
- data/test/data/testtoc +117 -0
- data/test/data/testtoc.c +101 -0
- data/test/data/vcd_demo.right +116 -0
- data/test/data/videocd.nrg +0 -0
- data/test/data/videocd.right +92 -0
- data/test/testall.rb +4 -0
- data/test/testbincue.rb +30 -0
- data/test/testtoc.rb +45 -0
- metadata +141 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
This is free software; see the source for copying conditions.
|
2
|
+
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
3
|
+
PARTICULAR PURPOSE.
|
4
|
+
Hardware : Disk Image
|
5
|
+
Can eject : No
|
6
|
+
Can close tray : No
|
7
|
+
Can disable manual eject : No
|
8
|
+
Can select juke-box disc : No
|
9
|
+
|
10
|
+
Can set drive speed : No
|
11
|
+
Can detect if CD changed : No
|
12
|
+
Can read multiple sessions : No
|
13
|
+
Can hard reset device : No
|
14
|
+
|
15
|
+
Reading....
|
16
|
+
Can play audio : Yes
|
17
|
+
Can read CD-R : Yes
|
18
|
+
Can read CD-RW : Yes
|
19
|
+
Can read DVD-ROM : No
|
20
|
+
|
21
|
+
Writing....
|
22
|
+
Can write CD-RW : No
|
23
|
+
Can write DVD-R : No
|
24
|
+
Can write DVD-RAM : No
|
25
|
+
Can write DVD-RW : No
|
26
|
+
Can write DVD+RW : No
|
27
|
+
__________________________________
|
28
|
+
|
29
|
+
Disc mode is listed as: CD-DATA Form 1
|
30
|
+
CD-ROM Track List (1 - 1)
|
31
|
+
#: MSF LSN Type Green?
|
32
|
+
1: 00:02:00 000000 data false
|
33
|
+
170: 00:06:02 000302 leadout
|
34
|
+
Media Catalog Number (MCN): not available
|
@@ -0,0 +1,44 @@
|
|
1
|
+
This is free software; see the source for copying conditions.
|
2
|
+
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
3
|
+
PARTICULAR PURPOSE.
|
4
|
+
Hardware : Disk Image
|
5
|
+
Can eject : No
|
6
|
+
Can close tray : No
|
7
|
+
Can disable manual eject : No
|
8
|
+
Can select juke-box disc : No
|
9
|
+
|
10
|
+
Can set drive speed : No
|
11
|
+
Can detect if CD changed : No
|
12
|
+
Can read multiple sessions : No
|
13
|
+
Can hard reset device : No
|
14
|
+
|
15
|
+
Reading....
|
16
|
+
Can play audio : Yes
|
17
|
+
Can read CD-R : Yes
|
18
|
+
Can read CD-RW : Yes
|
19
|
+
Can read DVD-ROM : No
|
20
|
+
|
21
|
+
Writing....
|
22
|
+
Can write CD-RW : No
|
23
|
+
Can write DVD-R : No
|
24
|
+
Can write DVD-RAM : No
|
25
|
+
Can write DVD-RW : No
|
26
|
+
Can write DVD+RW : No
|
27
|
+
__________________________________
|
28
|
+
|
29
|
+
Disc mode is listed as: CD-DATA Form 1
|
30
|
+
CD-ROM Track List (1 - 1)
|
31
|
+
#: MSF LSN Type Green?
|
32
|
+
1: 00:02:00 000000 data false
|
33
|
+
170: 00:06:02 000302 leadout
|
34
|
+
Media Catalog Number (MCN): not available
|
35
|
+
__________________________________
|
36
|
+
CD Analysis Report
|
37
|
+
CD-ROM with ISO 9660 filesystem
|
38
|
+
ISO 9660: 64 blocks, label `CDROM '
|
39
|
+
Application: MKISOFS ISO 9660/HFS FILESYSTEM BUILDER & CDRECORD CD-R/DVD CREATOR (C) 1993 E.YOUNGDALE (C) 1997 J.PEARSON/J.SCHILLING
|
40
|
+
Preparer :
|
41
|
+
Publisher :
|
42
|
+
System : LINUX
|
43
|
+
Volume : CDROM
|
44
|
+
Volume Set :
|
@@ -0,0 +1,44 @@
|
|
1
|
+
This is free software; see the source for copying conditions.
|
2
|
+
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
3
|
+
PARTICULAR PURPOSE.
|
4
|
+
Hardware : Disk Image
|
5
|
+
Can eject : No
|
6
|
+
Can close tray : No
|
7
|
+
Can disable manual eject : No
|
8
|
+
Can select juke-box disc : No
|
9
|
+
|
10
|
+
Can set drive speed : No
|
11
|
+
Can detect if CD changed : No
|
12
|
+
Can read multiple sessions : No
|
13
|
+
Can hard reset device : No
|
14
|
+
|
15
|
+
Reading....
|
16
|
+
Can play audio : Yes
|
17
|
+
Can read CD-R : Yes
|
18
|
+
Can read CD-RW : Yes
|
19
|
+
Can read DVD-ROM : No
|
20
|
+
|
21
|
+
Writing....
|
22
|
+
Can write CD-RW : No
|
23
|
+
Can write DVD-R : No
|
24
|
+
Can write DVD-RAM : No
|
25
|
+
Can write DVD-RW : No
|
26
|
+
Can write DVD+RW : No
|
27
|
+
__________________________________
|
28
|
+
|
29
|
+
Disc mode is listed as: CD-DATA Form 1
|
30
|
+
CD-ROM Track List (1 - 1)
|
31
|
+
#: MSF LSN Type Green?
|
32
|
+
1: 00:02:00 000000 data false
|
33
|
+
170: 00:06:02 000302 leadout
|
34
|
+
Media Catalog Number (MCN): not available
|
35
|
+
__________________________________
|
36
|
+
CD Analysis Report
|
37
|
+
CD-ROM with ISO 9660 filesystem
|
38
|
+
ISO 9660: 64 blocks, label `CDROM '
|
39
|
+
Application: MKISOFS ISO 9660/HFS FILESYSTEM BUILDER & CDRECORD CD-R/DVD CREATOR (C) 1993 E.YOUNGDALE (C) 1997 J.PEARSON/J.SCHILLING
|
40
|
+
Preparer :
|
41
|
+
Publisher :
|
42
|
+
System : LINUX
|
43
|
+
Volume : CDROM
|
44
|
+
Volume Set :
|
@@ -0,0 +1,44 @@
|
|
1
|
+
This is free software; see the source for copying conditions.
|
2
|
+
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
3
|
+
PARTICULAR PURPOSE.
|
4
|
+
Hardware : Disk Image
|
5
|
+
Can eject : No
|
6
|
+
Can close tray : No
|
7
|
+
Can disable manual eject : No
|
8
|
+
Can select juke-box disc : No
|
9
|
+
|
10
|
+
Can set drive speed : No
|
11
|
+
Can detect if CD changed : No
|
12
|
+
Can read multiple sessions : No
|
13
|
+
Can hard reset device : No
|
14
|
+
|
15
|
+
Reading....
|
16
|
+
Can play audio : Yes
|
17
|
+
Can read CD-R : Yes
|
18
|
+
Can read CD-RW : Yes
|
19
|
+
Can read DVD-ROM : No
|
20
|
+
|
21
|
+
Writing....
|
22
|
+
Can write CD-RW : No
|
23
|
+
Can write DVD-R : No
|
24
|
+
Can write DVD-RAM : No
|
25
|
+
Can write DVD-RW : No
|
26
|
+
Can write DVD+RW : No
|
27
|
+
__________________________________
|
28
|
+
|
29
|
+
Disc mode is listed as: CD-DATA Form 1
|
30
|
+
CD-ROM Track List (1 - 1)
|
31
|
+
#: MSF LSN Type Green?
|
32
|
+
1: 00:02:00 000000 data false
|
33
|
+
170: 00:06:02 000302 leadout
|
34
|
+
Media Catalog Number (MCN): not available
|
35
|
+
__________________________________
|
36
|
+
CD Analysis Report
|
37
|
+
CD-ROM with ISO 9660 filesystem
|
38
|
+
ISO 9660: 64 blocks, label `CDROM '
|
39
|
+
Application: MKISOFS ISO 9660/HFS FILESYSTEM BUILDER & CDRECORD CD-R/DVD CREATOR (C) 1993 E.YOUNGDALE (C) 1997 J.PEARSON/J.SCHILLING
|
40
|
+
Preparer :
|
41
|
+
Publisher :
|
42
|
+
System : LINUX
|
43
|
+
Volume : CDROM
|
44
|
+
Volume Set :
|
@@ -0,0 +1,44 @@
|
|
1
|
+
This is free software; see the source for copying conditions.
|
2
|
+
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
3
|
+
PARTICULAR PURPOSE.
|
4
|
+
Hardware : Disk Image
|
5
|
+
Can eject : No
|
6
|
+
Can close tray : No
|
7
|
+
Can disable manual eject : No
|
8
|
+
Can select juke-box disc : No
|
9
|
+
|
10
|
+
Can set drive speed : No
|
11
|
+
Can detect if CD changed : No
|
12
|
+
Can read multiple sessions : No
|
13
|
+
Can hard reset device : No
|
14
|
+
|
15
|
+
Reading....
|
16
|
+
Can play audio : Yes
|
17
|
+
Can read CD-R : Yes
|
18
|
+
Can read CD-RW : Yes
|
19
|
+
Can read DVD-ROM : No
|
20
|
+
|
21
|
+
Writing....
|
22
|
+
Can write CD-RW : No
|
23
|
+
Can write DVD-R : No
|
24
|
+
Can write DVD-RAM : No
|
25
|
+
Can write DVD-RW : No
|
26
|
+
Can write DVD+RW : No
|
27
|
+
__________________________________
|
28
|
+
|
29
|
+
Disc mode is listed as: CD-DATA Form 1
|
30
|
+
CD-ROM Track List (1 - 1)
|
31
|
+
#: MSF LSN Type Green?
|
32
|
+
1: 00:02:00 000000 data false
|
33
|
+
170: 00:06:02 000302 leadout
|
34
|
+
Media Catalog Number (MCN): not available
|
35
|
+
__________________________________
|
36
|
+
CD Analysis Report
|
37
|
+
CD-ROM with ISO 9660 filesystem
|
38
|
+
ISO 9660: 64 blocks, label `CDROM '
|
39
|
+
Application: MKISOFS ISO 9660/HFS FILESYSTEM BUILDER & CDRECORD CD-R/DVD CREATOR (C) 1993 E.YOUNGDALE (C) 1997 J.PEARSON/J.SCHILLING
|
40
|
+
Preparer :
|
41
|
+
Publisher :
|
42
|
+
System : LINUX
|
43
|
+
Volume : CDROM
|
44
|
+
Volume Set :
|
@@ -0,0 +1,117 @@
|
|
1
|
+
#! /bin/sh
|
2
|
+
|
3
|
+
# check_sizeof - temporary wrapper script for .libs/check_sizeof
|
4
|
+
# Generated by ltmain.sh - GNU libtool 1.5.6 (1.1220.2.95 2004/04/11 05:50:42)
|
5
|
+
#
|
6
|
+
# The check_sizeof program cannot be directly executed until all the libtool
|
7
|
+
# libraries that it depends on are installed.
|
8
|
+
#
|
9
|
+
# This wrapper script should never be moved out of the build directory.
|
10
|
+
# If it is, it will not operate correctly.
|
11
|
+
|
12
|
+
# Sed substitution that helps us do robust quoting. It backslashifies
|
13
|
+
# metacharacters that are still active within double-quoted strings.
|
14
|
+
Xsed='/bin/sed -e 1s/^X//'
|
15
|
+
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
|
16
|
+
|
17
|
+
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
18
|
+
# if CDPATH is set.
|
19
|
+
if test "${CDPATH+set}" = set; then CDPATH=:; export CDPATH; fi
|
20
|
+
|
21
|
+
relink_command="(cd /home/cdx/libcdio-0.70/test; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; PATH=\"/opt/sun-jre-bin-1.5.0.03/bin:/opt/sun-jre-bin-1.5.0.03/javaws:/opt/sun-jre-bin-1.5.0.03/bin:/opt/sun-jre-bin-1.5.0.03/javaws:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/bin:/usr/games/bin:~/bin:~/RealPlayer:~/bin:~/RealPlayer\"; export PATH; gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -o \$progdir/\$file check_sizeof.o ../lib/.libs/libiso9660.so /home/cdx/libcdio-0.70/lib/.libs/libcdio.so ../lib/.libs/libcdio.so -lm -Wl,--rpath -Wl,/home/cdx/libcdio-0.70/lib/.libs -Wl,--rpath -Wl,/home/cdx/libcdio-0.70/opt/lib)"
|
22
|
+
|
23
|
+
# This environment variable determines our operation mode.
|
24
|
+
if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
|
25
|
+
# install mode needs the following variable:
|
26
|
+
notinst_deplibs=' ../lib/libiso9660.la /home/cdx/libcdio-0.70/lib/libcdio.la ../lib/libcdio.la'
|
27
|
+
else
|
28
|
+
# When we are sourced in execute mode, $file and $echo are already set.
|
29
|
+
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
|
30
|
+
echo="echo"
|
31
|
+
file="$0"
|
32
|
+
# Make sure echo works.
|
33
|
+
if test "X$1" = X--no-reexec; then
|
34
|
+
# Discard the --no-reexec flag, and continue.
|
35
|
+
shift
|
36
|
+
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
|
37
|
+
# Yippee, $echo works!
|
38
|
+
:
|
39
|
+
else
|
40
|
+
# Restart under the correct shell, and then maybe $echo will work.
|
41
|
+
exec /bin/sh "$0" --no-reexec ${1+"$@"}
|
42
|
+
fi
|
43
|
+
fi
|
44
|
+
|
45
|
+
# Find the directory that this script lives in.
|
46
|
+
thisdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
|
47
|
+
test "x$thisdir" = "x$file" && thisdir=.
|
48
|
+
|
49
|
+
# Follow symbolic links until we get to the real thisdir.
|
50
|
+
file=`ls -ld "$file" | /bin/sed -n 's/.*-> //p'`
|
51
|
+
while test -n "$file"; do
|
52
|
+
destdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
|
53
|
+
|
54
|
+
# If there was a directory component, then change thisdir.
|
55
|
+
if test "x$destdir" != "x$file"; then
|
56
|
+
case "$destdir" in
|
57
|
+
[\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
|
58
|
+
*) thisdir="$thisdir/$destdir" ;;
|
59
|
+
esac
|
60
|
+
fi
|
61
|
+
|
62
|
+
file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
|
63
|
+
file=`ls -ld "$thisdir/$file" | /bin/sed -n 's/.*-> //p'`
|
64
|
+
done
|
65
|
+
|
66
|
+
# Try to get the absolute directory name.
|
67
|
+
absdir=`cd "$thisdir" && pwd`
|
68
|
+
test -n "$absdir" && thisdir="$absdir"
|
69
|
+
|
70
|
+
program=lt-'check_sizeof'
|
71
|
+
progdir="$thisdir/.libs"
|
72
|
+
|
73
|
+
if test ! -f "$progdir/$program" || \
|
74
|
+
{ file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | /bin/sed 1q`; \
|
75
|
+
test "X$file" != "X$progdir/$program"; }; then
|
76
|
+
|
77
|
+
file="$$-$program"
|
78
|
+
|
79
|
+
if test ! -d "$progdir"; then
|
80
|
+
mkdir "$progdir"
|
81
|
+
else
|
82
|
+
rm -f "$progdir/$file"
|
83
|
+
fi
|
84
|
+
|
85
|
+
# relink executable if necessary
|
86
|
+
if test -n "$relink_command"; then
|
87
|
+
if relink_command_output=`eval $relink_command 2>&1`; then :
|
88
|
+
else
|
89
|
+
echo "$relink_command_output" >&2
|
90
|
+
rm -f "$progdir/$file"
|
91
|
+
exit 1
|
92
|
+
fi
|
93
|
+
fi
|
94
|
+
|
95
|
+
mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
|
96
|
+
{ rm -f "$progdir/$program";
|
97
|
+
mv -f "$progdir/$file" "$progdir/$program"; }
|
98
|
+
rm -f "$progdir/$file"
|
99
|
+
fi
|
100
|
+
|
101
|
+
if test -f "$progdir/$program"; then
|
102
|
+
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
|
103
|
+
# Run the actual program with our arguments.
|
104
|
+
|
105
|
+
exec $progdir/$program ${1+"$@"}
|
106
|
+
|
107
|
+
$echo "$0: cannot exec $program ${1+"$@"}"
|
108
|
+
exit 1
|
109
|
+
fi
|
110
|
+
else
|
111
|
+
# The program doesn't exist.
|
112
|
+
$echo "$0: error: $progdir/$program does not exist" 1>&2
|
113
|
+
$echo "This script is just a wrapper for $program." 1>&2
|
114
|
+
echo "See the libtool documentation for more information." 1>&2
|
115
|
+
exit 1
|
116
|
+
fi
|
117
|
+
fi
|
@@ -0,0 +1,77 @@
|
|
1
|
+
/*
|
2
|
+
$Id: check_sizeof.c,v 1.3 2003/08/31 08:42:11 rocky Exp $
|
3
|
+
|
4
|
+
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
|
5
|
+
|
6
|
+
This program is free software; you can redistribute it and/or modify
|
7
|
+
it under the terms of the GNU General Public License as published by
|
8
|
+
the Free Software Foundation; either version 2 of the License, or
|
9
|
+
(at your option) any later version.
|
10
|
+
|
11
|
+
This program is distributed in the hope that it will be useful,
|
12
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
GNU General Public License for more details.
|
15
|
+
|
16
|
+
You should have received a copy of the GNU General Public License
|
17
|
+
along with this program; if not, write to the Free Software
|
18
|
+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19
|
+
*/
|
20
|
+
|
21
|
+
#ifdef HAVE_CONFIG_H
|
22
|
+
# include "config.h"
|
23
|
+
#endif
|
24
|
+
|
25
|
+
#include <assert.h>
|
26
|
+
#include <stdlib.h>
|
27
|
+
#include <string.h>
|
28
|
+
#include <stdio.h>
|
29
|
+
#include <math.h>
|
30
|
+
|
31
|
+
#include <cdio/iso9660.h>
|
32
|
+
#include <cdio/types.h>
|
33
|
+
|
34
|
+
/* Private headers */
|
35
|
+
#include "iso9660_private.h"
|
36
|
+
|
37
|
+
#define CHECK_SIZEOF(typnam) { \
|
38
|
+
printf ("checking sizeof (%s) ...", #typnam); \
|
39
|
+
if (sizeof (typnam) != (typnam##_SIZEOF)) { \
|
40
|
+
printf ("failed!\n==> sizeof (%s) == %d (but should be %d)\n", \
|
41
|
+
#typnam, (int)sizeof(typnam), (int)(typnam##_SIZEOF)); \
|
42
|
+
fail++; \
|
43
|
+
} else { pass++; printf ("ok!\n"); } \
|
44
|
+
}
|
45
|
+
|
46
|
+
#define CHECK_SIZEOF_STRUCT(typnam) { \
|
47
|
+
printf ("checking sizeof (struct %s) ...", #typnam); \
|
48
|
+
if (sizeof (struct typnam) != (struct_##typnam##_SIZEOF)) { \
|
49
|
+
printf ("failed!\n==> sizeof (struct %s) == %d (but should be %d)\n", \
|
50
|
+
#typnam, (int)sizeof(struct typnam), (int)(struct_##typnam##_SIZEOF)); \
|
51
|
+
fail++; \
|
52
|
+
} else { pass++; printf ("ok!\n"); } \
|
53
|
+
}
|
54
|
+
|
55
|
+
int main (int argc, const char *argv[])
|
56
|
+
{
|
57
|
+
unsigned fail = 0, pass = 0;
|
58
|
+
|
59
|
+
/* <cdio/types.h> */
|
60
|
+
CHECK_SIZEOF(msf_t);
|
61
|
+
|
62
|
+
/* "iso9660_private.h" */
|
63
|
+
CHECK_SIZEOF_STRUCT(iso_volume_descriptor);
|
64
|
+
CHECK_SIZEOF_STRUCT(iso9660_pvd);
|
65
|
+
CHECK_SIZEOF_STRUCT(iso_path_table);
|
66
|
+
CHECK_SIZEOF_STRUCT(iso9660_dir);
|
67
|
+
|
68
|
+
#define iso9660_xa_t_SIZEOF 14
|
69
|
+
|
70
|
+
/* xa.h */
|
71
|
+
CHECK_SIZEOF(iso9660_xa_t);
|
72
|
+
|
73
|
+
if (fail)
|
74
|
+
return 1;
|
75
|
+
|
76
|
+
return 0;
|
77
|
+
}
|
Binary file
|
@@ -0,0 +1,10 @@
|
|
1
|
+
This is free software; see the source for copying conditions.
|
2
|
+
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
3
|
+
PARTICULAR PURPOSE.
|
4
|
+
__________________________________
|
5
|
+
ISO-9660 Information
|
6
|
+
/:
|
7
|
+
Jan 10 2004 00:47 .
|
8
|
+
Jan 10 2004 00:47 ..
|
9
|
+
Jan 10 2004 00:47 copying
|
10
|
+
|
data/test/data/data1.toc
ADDED