RHEL 9.0.0 Alpha bootstrap

The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/file#fef64163af9439cdacdbbe04a847f7dcf42b8987
This commit is contained in:
Petr Šabata 2020-10-15 00:20:22 +02:00
parent 1a7eab625c
commit 686d1fd0fd
853 changed files with 19423 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/file-5.*.tar.gz

11
STAGE2-file Normal file
View File

@ -0,0 +1,11 @@
#requires autoconf
cd $SRC/file-*
# awful hack to prevent running aclocal ... FIXME
#(cd m4 && [ -f libtool.m4.orig ] && rm -f libtool.m4 && mv libtool.m4.orig libtool.m4) || echo ""
./configure $TCONFIGARGS
make $J
make install

12
file-4.17-rpm-name.patch Normal file
View File

@ -0,0 +1,12 @@
diff --git a/magic/Magdir/rpm b/magic/Magdir/rpm
index 9a795f8..31db083 100644
--- a/magic/Magdir/rpm
+++ b/magic/Magdir/rpm
@@ -29,6 +29,7 @@
>>8 beshort 17 SuperH
>>8 beshort 18 Xtensa
>>8 beshort 255 noarch
+>>10 string x %s
#delta RPM Daniel Novotny (dnovotny@redhat.com)
0 string drpm Delta RPM

View File

@ -0,0 +1,10 @@
diff --git a/magic/Magdir/securitycerts b/magic/Magdir/securitycerts
index 8785dd8..1c340be 100644
--- a/magic/Magdir/securitycerts
+++ b/magic/Magdir/securitycerts
@@ -4,3 +4,5 @@
0 search/1 -----BEGIN\ CERTIFICATE------ RFC1421 Security Certificate text
0 search/1 -----BEGIN\ NEW\ CERTIFICATE RFC1421 Security Certificate Signing Request text
0 belong 0xedfeedfe Sun 'jks' Java Keystore File data
+
+0 string \0volume_key volume_key escrow packet

6
file-5.39.tar.gz.asc Normal file
View File

@ -0,0 +1,6 @@
-----BEGIN PGP SIGNATURE-----
iEYEABECAAYFAl7mu3AACgkQcREqsWyzOzppXACgoqokKabq7bwN9aKvd/H/yhF+
9PUAoOPrAtxFkfNUvtqK/trY+v/Gk5JM
=tA6a
-----END PGP SIGNATURE-----

62
file-localmagic.patch Normal file
View File

@ -0,0 +1,62 @@
From 95c993ff6bdfe92a7f519c4db60157a421e65b38 Mon Sep 17 00:00:00 2001
From: Siteshwar Vashisht <svashisht@redhat.com>
Date: Thu, 21 Feb 2019 15:26:38 +0100
Subject: [PATCH] Upstream says it's up to distributions to add a way to
support local-magic.
---
magic/magic.local | 3 +++
src/Makefile.am | 2 +-
src/Makefile.in | 2 +-
src/apprentice.c | 2 +-
4 files changed, 6 insertions(+), 3 deletions(-)
create mode 100644 magic/magic.local
diff --git a/magic/magic.local b/magic/magic.local
new file mode 100644
index 0000000..283a863
--- /dev/null
+++ b/magic/magic.local
@@ -0,0 +1,3 @@
+# Magic local data for file(1) command.
+# Insert here your local magic data. Format is described in magic(5).
+
diff --git a/src/Makefile.am b/src/Makefile.am
index 3f67f2c..b43cb8e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,4 @@
-MAGIC = $(pkgdatadir)/magic
+MAGIC = /etc/magic:$(pkgdatadir)/magic
lib_LTLIBRARIES = libmagic.la
nodist_include_HEADERS = magic.h
diff --git a/src/Makefile.in b/src/Makefile.in
index 59f3b5e..a8f56cf 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -356,7 +356,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-MAGIC = $(pkgdatadir)/magic
+MAGIC = /etc/magic:$(pkgdatadir)/magic
lib_LTLIBRARIES = libmagic.la
nodist_include_HEADERS = magic.h
AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"'
diff --git a/src/apprentice.c b/src/apprentice.c
index 1437bcc..b609dd1 100644
--- a/src/apprentice.c
+++ b/src/apprentice.c
@@ -460,7 +460,7 @@ apprentice_1(struct magic_set *ms, const char *fn, int action)
#ifndef COMPILE_ONLY
map = apprentice_map(ms, fn);
if (map == NULL) {
- if (ms->flags & MAGIC_CHECK)
+ if (ms->flags & MAGIC_CHECK && strcmp("/etc/magic", fn) != 0)
file_magwarn(ms, "using regular magic file `%s'", fn);
map = apprentice_load(ms, fn, action);
if (map == NULL)
--
2.25.4

1230
file.spec Normal file

File diff suppressed because it is too large Load Diff

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (file-5.39.tar.gz) = 9cf1a7b769c56eb6f5b25c66ce85fa1300128396e445b2e53dbbd8951e5da973a7a07c4ef9f7ebd1fe945d47bdaf2cd9ef09bd2be6c217a0bcb907d9449835e6

View File

@ -0,0 +1,64 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of Support-local-additions-to-magic-files
# Description: Support local additions to magic files
# Author: Karel Srot <ksrot@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2012 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing
# to use, modify, copy, or redistribute it subject to the terms
# and conditions of the GNU General Public License version 2.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export TEST=Support-local-additions-to-magic-files
export TESTVERSION=1.0
BUILT_FILES=
FILES=$(METADATA) runtest.sh Makefile PURPOSE
.PHONY: all install download clean
run: $(FILES) build
./runtest.sh
build: $(BUILT_FILES)
test -x runtest.sh || chmod a+x runtest.sh
clean:
rm -f *~ $(BUILT_FILES)
include /usr/share/rhts/lib/rhts-make.include
$(METADATA): Makefile
@echo "Owner: Karel Srot <ksrot@redhat.com>" > $(METADATA)
@echo "Name: $(TEST)" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
@echo "Description: Support local additions to magic files" >> $(METADATA)
@echo "Type: Sanity" >> $(METADATA)
@echo "TestTime: 5m" >> $(METADATA)
@echo "RunFor: file" >> $(METADATA)
@echo "Requires: file" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)
@echo "Releases: -RHEL4 -RHELServer5 -RHELClient5" >> $(METADATA)
rhts-lint $(METADATA)

View File

@ -0,0 +1,9 @@
PURPOSE of Support-local-additions-to-magic-files
Description: Test to support local additions to magic files
Author: Karel Srot <ksrot@redhat.com>
Testing custom additions in
/etc/magic
$HOME/.magic
$HOME/.magic.mgc

View File

@ -0,0 +1,80 @@
#!/bin/bash
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /CoreOS/file/Sanity/Support-local-additions-to-magic-files
# Description: Test to support local additions to magic files
# Author: Karel Srot <ksrot@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2012 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing
# to use, modify, copy, or redistribute it subject to the terms
# and conditions of the GNU General Public License version 2.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include Beaker environment
. /usr/bin/rhts-environment.sh
. /usr/share/beakerlib/beakerlib.sh
PACKAGE="file"
FILEBACKUP=''
rlJournalStart
rlPhaseStartSetup
rlAssertRpm $PACKAGE
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
rlRun "pushd $TmpDir"
[ -f /etc/magic ] && FILEBACKUP=1 && rlFileBackup /etc/magic
[ -f $HOME/.magic ] && FILEBACKUP=1 && rlFileBackup $HOME/.magic
[ -f $HOME/.magic.mgc ] && FILEBACKUP=1 && rlFileBackup $HOME/.magic.mgc
rm -f /etc/magic $HOME/.magic $HOME/.magic.mgc
rlRun "echo '0 string MYFILEFORMAT1 My file format version1' > /etc/magic"
rlRun "echo '0 string MYFILEFORMAT2 My file format version2' > $HOME/.magic"
rlRun "echo 'MYFILEFORMAT1' > testfile1"
rlRun "echo 'MYFILEFORMAT2' > testfile2"
rlRun "echo 'MYFILEFORMAT3' > testfile3"
rlPhaseEnd
rlPhaseStartTest
rlRun "file testfile1 &> out1" 0 "Testing pattern from /etc/magic"
cat out1
rlRun "grep 'My file format version1' out1" 0 "File should be identified as 'My file format version1'"
rlRun "file testfile2 &> out2" 0 "Testing pattern from $HOME/.magic"
cat out2
rlRun "grep 'My file format version2' out2" 0 "File should be identified as 'My file format version2'"
pushd $HOME;
rlRun "file -C -m .magic" 0 "Preparing $HOME/.magic.mgc"
ls -l $HOME/.magic.mgc
rm -f $HOME/.magic
popd
rlRun "file testfile2 &> out3" 0 "Testing pattern from $HOME/.magic.mgc"
cat out3
rlRun "grep 'My file format version2' out3" 0 "File should be identified as 'My file format version2' too"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -rf $TmpDir /etc/magic $HOME/.magic $HOME/.magic.mgc" 0 "Removing tmp directory and test files"
[ -n "$FILEBACKUP" ] && rlFileRestore
rlPhaseEnd
rlJournalPrintText
rlJournalEnd

View File

@ -0,0 +1,63 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /CoreOS/file/Sanity/command-line-options
# Description: Tests (most of) command line options available for the file command.
# Author: Karel Srot <ksrot@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2010 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing
# to use, modify, copy, or redistribute it subject to the terms
# and conditions of the GNU General Public License version 2.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export TEST=/CoreOS/file/Sanity/command-line-options
export TESTVERSION=1.0
BUILT_FILES=
FILES=$(METADATA) runtest.sh Makefile PURPOSE file_cmd_line_options.tar.gz
.PHONY: all install download clean
run: $(FILES) build
./runtest.sh
build: $(BUILT_FILES)
test -x runtest.sh || chmod a+x runtest.sh
clean:
rm -f *~ $(BUILT_FILES)
include /usr/share/rhts/lib/rhts-make.include
$(METADATA): Makefile
@echo "Owner: Karel Srot <ksrot@redhat.com>" > $(METADATA)
@echo "Name: $(TEST)" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
@echo "Description: Tests (most of) command line options available for the file command." >> $(METADATA)
@echo "Type: Sanity" >> $(METADATA)
@echo "TestTime: 10m" >> $(METADATA)
@echo "RunFor: file zlib" >> $(METADATA)
@echo "Requires: file" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)
rhts-lint $(METADATA)

View File

@ -0,0 +1,5 @@
PURPOSE of /CoreOS/file/Sanity/command-line-options
Description: Tests (most of) command line options available for the file command.
Author: Karel Srot <ksrot@redhat.com>
test multiple cmd line options

View File

@ -0,0 +1,160 @@
#!/bin/bash
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /CoreOS/file/Sanity/command-line-options
# Description: Test (most of) command line options available for the file command.
# Author: Karel Srot <ksrot@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2010 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing
# to use, modify, copy, or redistribute it subject to the terms
# and conditions of the GNU General Public License version 2.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include rhts environment
. /usr/bin/rhts-environment.sh
. /usr/share/beakerlib/beakerlib.sh
PACKAGE="file"
rlJournalStart
rlPhaseStartSetup
rlAssertRpm $PACKAGE
rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory"
rlRun "cp file_cmd_line_options.tar.gz $TmpDir" 0 "Copying sample files"
rlRun "pushd $TmpDir"
rlRun "tar -xzf file_cmd_line_options.tar.gz" 0 "Extracting sample files"
rlPhaseEnd
rlPhaseStartTest "--brief"
rlRun "file -b dummy_file | grep -q dummy_file" 1 "Checking -b"
rlRun "file --brief dummy_file | grep -q dummy_file" 1 "Checking --brief"
rlPhaseEnd
rlPhaseStartTest "--exclude"
rlRun "file /bin/bash | grep -q 'dynamically linked'"
rlRun "file -e elf /bin/bash | grep -q 'dynamically linked'" 1 "Checking -e elf"
rlRun "file --exclude elf /bin/bash | grep -q 'dynamically linked'" 1 "Checking --exclude elf"
rlPhaseEnd
rlPhaseStartTest "--files-from"
rlRun 'file -f list.txt | grep -q /dev/zero' 0 "Checking -f file"
rlRun 'echo "/dev/zero" | file -f - | grep -q /dev/zero' 0 "Checking -f -"
rlRun 'file --files-from list.txt | grep -q /dev/zero' 0 "Checking --files-from file"
rlRun 'echo "/dev/zero" | file --files-from - | grep -q /dev/zero' 0 "Checking --files-from -"
rlPhaseEnd
rlPhaseStartTest "--separator"
rlRun "file -F '#' dummy_file | grep -q 'dummy_file#'" 0 "Checking -F"
rlRun "file --separator '#' dummy_file | grep -q 'dummy_file#'" 0 "Checking --separator"
rlPhaseEnd
if ! rlIsRHEL 4; then # not for RHEL4
rlPhaseStartTest "--no-dereference"
rlRun "POSIXLY_CORRECT=1 file symlink | grep -q 'symlink: ASCII text'" 0 "Checking -h"
rlRun "POSIXLY_CORRECT=1 file -h symlink | grep -q 'symlink: symbolic link'" 0 "Checking -h"
rlRun "POSIXLY_CORRECT=1 file symlink | grep -q 'symlink: ASCII text'" 0 "Checking --no-dereference"
rlRun "POSIXLY_CORRECT=1 file --no-dereference symlink | grep -q 'symlink: symbolic link'" 0 "Checking --no-dereference"
rlPhaseEnd
fi
rlPhaseStartTest "--mime"
rlRun "file -i dummy_file | grep -q 'text/plain; charset=us-ascii'" 0 "Checking -i"
rlRun "file --mime dummy_file | grep -q 'text/plain; charset=us-ascii'" 0 "Checking --mime"
rlPhaseEnd
rlPhaseStartTest "--dereference"
rlRun "file -L symlink | grep -q 'symbolic link'" 1 "Checking -L"
rlRun "file -L symlink | grep -q 'ASCII text'" 0 "Checking -L"
rlRun "file --dereference symlink | grep -q 'symbolic link'" 1 "Checking --dereference"
rlRun "file --dereference symlink | grep -q 'ASCII text'" 0 "Checking --dereference"
rlPhaseEnd
rlPhaseStartTest "--keep-going"
rlRun "file -k two_types.txt | grep 'Future Composer' | grep 'Apple QuickTime'" 0 "Checking -k"
rlRun "file --keep-going two_types.txt | grep 'Future Composer' | grep 'Apple QuickTime'" 0 "Checking --keep-going"
rlPhaseEnd
rlPhaseStartTest "--no-pad"
rlRun 'WC1=`file dummy_file symlink | grep symlink | wc -c`; echo $WC1'
rlRun 'WC2=`file symlink | wc -c`;echo $WC2'
rlRun 'WC3=`file -N dummy_file symlink | grep symlink | wc -c`;echo $WC3'
rlRun '[ $WC1 -gt $WC3 -a $WC2 -eq $WC3 ]' 0 "Checking -N"
rlRun 'WC3=`file --no-pad dummy_file symlink | grep symlink | wc -c`;echo $WC3'
rlRun '[ $WC1 -gt $WC3 -a $WC2 -eq $WC3 ]' 0 "Checking --no-pad"
rlPhaseEnd
rlPhaseStartTest "--preserve-date"
rlRun 'touch dummy_file; TS1=`stat -c "%X" dummy_file`;echo $TS1; sleep 3'
rlRun 'file -p dummy_file; TS2=`stat -c "%X" dummy_file`;echo $TS2'
rlRun 'file dummy_file; TS3=`stat -c "%X" dummy_file`;echo $TS3'
rlRun '[ $TS3 -gt $TS1 -a $TS1 -eq $TS2 ]' 0 "Checking -p"
rlRun 'touch dummy_file; TS1=`stat -c "%X" dummy_file`;echo $TS1; sleep 3'
rlRun 'file --preserve-date dummy_file; TS2=`stat -c "%X" dummy_file`;echo $TS2'
rlRun 'file dummy_file; TS3=`stat -c "%X" dummy_file`;echo $TS3'
rlRun '[ $TS3 -gt $TS1 -a $TS1 -eq $TS2 ]' 0 "Checking --preserve-date"
rlPhaseEnd
rlPhaseStartTest "--special-files"
rlRun "file /dev/zero | grep -q 'character special'"
rlRun "file -s /dev/zero | grep -q 'data'" 0 "Checking -s"
rlRun "file --special-files /dev/zero | grep -q 'data'" 0 "Checking --special-files"
rlPhaseEnd
rlPhaseStartTest "--version"
rlRun "file -v 2>&1 | egrep 'file-[[:digit:]]\.[[:digit:]]'" 0 "Checking -v"
rlRun "file --version 2>&1 | egrep 'file-[[:digit:]]\.[[:digit:]]'" 0 "Checking --version"
rlPhaseEnd
if ! rlIsRHEL 4; then # not for RHEL4 - this will never be fixed
rlPhaseStartTest "--uncompress"
rlRun "file dummy_file.bz2 | grep -q 'ASCII text'" 1
rlRun "file -z dummy_file.bz2 | grep -q 'ASCII text'" 0 "Checking -z"
rlRun "file --uncompress dummy_file.bz2 | grep -q 'ASCII text'" 0 "Checking --uncompress"
rlPhaseEnd
rlPhaseStartTest "--help"
rlRun "file --help 2>&1 | grep -iq 'usage:'" 0 "Checking --help"
rlPhaseEnd
fi
if [ `rlGetDistroRelease` -ge 6 ]; then
rlPhaseStartTest "--mime-type"
rlRun "file --mime-type dummy_file | grep -q 'text/plain'" 0 "Checking --mime-type"
rlRun "file --mime-type dummy_file | grep -q 'us-ascii'" 1 "Checking --mime-type"
rlPhaseEnd
rlPhaseStartTest "--mime-encoding"
rlRun "file --mime-encoding dummy_file | grep -q 'text/plain'" 1 "Checking --mime-encoding"
rlRun "file --mime-encoding dummy_file | grep -q 'us-ascii'" 0 "Checking --mime-encoding"
rlPhaseEnd
rlPhaseStartTest "--print0"
rlRun "file -0 dummy_file | cat -A | grep -q 'dummy_file^@:'" 0 "Checking -0"
rlRun "file --print0 dummy_file | cat -A | grep -q 'dummy_file^@:'" 0 "Checking --print0"
rlPhaseEnd
fi
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -rf $TmpDir" 0 "Deleting tmp directory"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd

3
tests/file-tests/README Normal file
View File

@ -0,0 +1,3 @@
./prepare.sh
./reference.sh [--mime-type]
./runtest.sh [--mime-type]

View File

@ -0,0 +1,19 @@
cab/cabinet.cab
db/test.db
doc/encrypted.doc
doc/PMD.doc
dump/big-endian-dump
elf/library.so
elf/pie-now.out
elf/pie.out
img/qcow2.img
jpg/xsane-zoom-in.jpg
lnk/windows_link.lnk
pbm/icontopbm-back-from-icon.pbm
so/libaio.so
tar.gz/a.tar.gz
tgz/broken-file.tgz
webm/bunny.webm
xls/encrypted.xls
xls/excel-file.xls
xps/presentation.xps

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,4 @@
AUTHOR: Intra2net <info@intra2net.com>
URL: Created it myself
LICENSE: public domain
NOTE: AppleDouble files appear in folder __MACOSX of zip files created on MacOSX systems with same name and path as the "real" zip file contents

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Intra2net <info@intra2net.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Christian Herdtweck
SOURCE: self-created
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Christian Herdtweck
SOURCE: self-created
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,5 @@
animated cursor from http://www.rw-designer.com/cursor-detail/24909
original file name: 03 Working In Background.ani
license: "Release to PUblic Domain" license ("You are free: To use this work for any legal purpose.")
Published on May 14th 2011 by NesManiac

View File

@ -0,0 +1,20 @@
<script language="vbscript" runat="server">
sub Application_OnStart
Application("status")=1
end sub
sub Session_OnStart
Application("status")=2
end sub
sub Application_OnEnd
Application("status")=3
end sub
sub Session_OnEnd
Application("status")=4
end sub
</script>

View File

@ -0,0 +1,3 @@
AUTHOR: Christian Herdtweck
URL: None (self-created)
LICENSE: public domain

View File

@ -0,0 +1,97 @@
<!DOCTYPE HTML>
<html lang="en">
<!-- extra lang tag was here --><head>
<title>Web Site Policies and Important Links [NEI Tools]</title>
<meta name="description" content="Eye health information and resources for the public and professionals." />
<meta name="keywords" content="eye, health, research, information" />
<meta name="creator" content="National Eye Institute" />
<meta name="language" content="English" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<meta name="viewport" content="initial-scale=1, width=device-width" />
<script language="javascript" type="text/javascript" src="/js/leavesite.js"></script>
<script type="text/javascript" src="/js/textsize.js"></script>
<script type="text/javascript" src="/js/cookies.js"></script>
<script type="text/javascript" src="/js/jquery.js"></script>
<script src="http://sf1-na.readspeaker.com/script/5823/ReadSpeaker.js?pids=embhl" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/css/Reset.css" />
<link rel="stylesheet" type="text/css" href="/css/BaseStyles.css" />
<link rel="stylesheet" type="text/css" href="/css/nei.css" />
<link rel="stylesheet" type="text/css" href="/css/media.css" />
<link rel="stylesheet" type="text/css" href="/css/dropdown_nav5.css" />
<link rel="stylesheet" type="text/css" media="print" href="/css/print.css" />
<script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"></script>
<!--google analytics start-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1875828-4']);
_gaq.push(['_setDomainName', '.nei.nih.gov']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript">
/*Google Analytics Automatic External Link, Downloads, Mailto Tracking- jQuery GA Async Version*/
if (typeof jQuery != 'undefined') {
jQuery(document).ready(function($) {
var filetypes = /\.(zip|exe|pdf|doc|xls|ppt|mp3)$/i;
var baseHref = '';
if (jQuery('base').attr('href') != undefined)
baseHref = jQuery('base').attr('href');
jQuery('a').each(function() {
var href = jQuery(this).attr('href');
if (href && (href.match(/^https?\:/i)) && (!href.match(document.domain))) {
jQuery(this).click(function() {
var extLink = href.replace(/^https?\:\/\//i, '');
_gaq.push(['_trackEvent', 'External', 'Link Click', extLink]);
if (jQuery(this).attr('target') != undefined && jQuery(this).attr('target').toLowerCase() != '_blank') {
setTimeout(function() { location.href = href; }, 200);
return false;
}
});
}
else if (href && href.toLowerCase().match('.*nih.gov.*') && href.toLowerCase().indexOf('nei.nih.gov') == -1) {
jQuery(this).click(function() {
//Exit link tracking for other .nih.gov domains (excludes nei.nih.gov)
var extLink = href.replace(/^https?\:\/\//i, '');
_gaq.push(['_trackEvent', 'External', 'Link Click', extLink]);
});
}
else if (href && href.match(/^mailto\:/i)) {
jQuery(this).click(function() {
var mailLink = href.replace(/^mailto\:/i, '');
_gaq.push(['_trackEvent', 'Email', 'mailto', mailLink]);
});
}
else if (href && href.match(filetypes)) {
jQuery(this).click(function() {
var extension = (/[.]/.exec(href)) ? /[^.]+$/.exec(href) : undefined;
var filePath = href;
_gaq.push(['_trackEvent', 'Download',extension+ ' Click', filePath]);
i

View File

@ -0,0 +1,3 @@
AUTHOR: National Eye Institute
URL: http://www.nei.nih.gov/tools/policies.asp
LICENSE: Public Domain (Courtesy: National Eye Institute, National Institutes of Health (NEI/NIH))

View File

@ -0,0 +1,186 @@
DEFINT A-Z
DECLARE SUB BigTextEnd (SndT, PlyT)
DECLARE SUB BigText (Factor%, S$, Y%, X%, C%)
DECLARE SUB Plot (Num, Y, X)
STACK 512
DIM Grid(20, 20) AS STRING * 1
DIM Colors(3) AS INTEGER
DIM Gcol(20, 20) AS INTEGER
DIM SHARED Text AS INTEGER
DIM SHARED Brick(65, 3)
DIM Pic&(8192)
DIM Temp(5000), TempVar(5000)
DIM SHARED SndT, PlyT
DIM A$(186)
L$ = CHR$(0) + CHR$(75)
R$ = CHR$(0) + CHR$(77)
U$ = CHR$(0) + CHR$(72)
D$ = CHR$(0) + CHR$(80)
F1$ = CHR$(0) + CHR$(59)
F2$ = CHR$(0) + CHR$(60)
F3$ = CHR$(0) + CHR$(61)
F4$ = CHR$(0) + CHR$(62)
PLAY "o0MBL8 "
DATA A16,MN, A2,o1,ML,E4.,D-32,C32,D2
DATA C16,ML,O0,B16,o0,D-16,MN,o1,C,C,o0,B2,A4.,ML,C16,G16
DATA F2,o1,C4.,o0,ML,B16,G16,A-4
DATA A4,B.,o1,MS,C16,MN,D.
DATA o0,ML,G16,B16,MN,o1,E,E,ML,E4,D8,ML,C16,E16,MN,E2
DATA T240
DATA o0,F2,ML,B2,B4,MN,E4,ML,A2
DATA A,MN,D,ML,G2,G4,MN,C4,F2
DATA T120
DATA o0,MS,E4,o1,ML,C2,C8
DATA MN,F8,ML,G16,F16,E16,D16
DATA C2,C8,MN,F8,ML,G16,F16,E16,D16
DATA o1,Co0,G,ML,A16,G16,F16,D16,MN,G,B-,o1,ML,C16,o0,B16,A16,G16,MN,o1,C2.
DATA ML,o0,G,B,o1,D,MN,D,D4,P8,G,G
DATA F+,F,F,E,P8,E-,ML,E,D,D,E,E,D,D,C,MN,C4,ML,o0,B.,A16,B16,MN,A4,P8,A
DATA o0,ML,D,B4.,A,G4,P8,D,B4,A,G4,P8,D,o1,E2.,MS,D,C,o0,B,A,G4,P4,P8,ML,E16
PRINT "Please Wait..."
FOR J = 1 TO 184
READ A$(J)
NEXT J
LOCATE 1, 1: PRINT " "
SndT = 1
PlyT = 1
Com$ = UCASE$(COMMAND$)
IF INSTR(Com$, "NOGR") THEN NoGr = 1
IF INSTR(Com$, "TEXT") THEN
Text = 1
GOTO Txt
END IF
IF Text <> 1 THEN
ON ERROR GOTO Text
IF INSTR(Com$, "MCGA") THEN
SCREEN 13
MCGA = 1
ELSE
SCREEN 9
END IF
ON ERROR GOTO 0
FOR J = 1 TO 3
LINE (1, 1)-(7, 7), J, BF
LINE (1, 1)-(1, 7), 3 + J
LINE (1, 1)-(7, 1), 3 + J
LINE (7, 1)-(7, 7), 8 + J
LINE (7, 7)-(2, 7), 8 + J
GET (1, 1)-(7, 7), Brick(0, J)
NEXT J
IF MCGA <> 1 THEN
PALETTE 4, 8
PALETTE 5, 16
PALETTE 6, 24
ELSE
PALETTE 4, 1376256
PALETTE 5, 5376&
PALETTE 6, 1381632
END IF
CLS
IF MCGA <> 1 THEN
WINDOW (0, 0)-(319, 199)
WIDTH 40
END IF
IF MCGA <> 1 AND NoGr <> 1 THEN
LINE (118, 100)-(208, 112), 15, B
LOCATE 14, 16: PRINT "Please Wait"
GET (119, 101)-(207, 111), Temp
PUT (119, 101), Temp
PAINT (122, 102), 7, 15
PUT (119, 101), Temp, OR
LINE (118, 100)-(208, 112), 8, B
LINE (208, 101)-(208, 112), 15
LINE (119, 112)-(208, 112), 15
ON ERROR GOTO Ferror
OPEN "Piles.NAS" FOR INPUT AS #1
FOR J% = 0 TO 8192
INPUT #1, Pic&(J%)
NEXT J%
CLOSE
END IF
END IF
GOTO Start
Ferror:
RESUME Start:
Text:
RESUME Txt
Txt:
Text = 1
SCREEN 0
WIDTH 40
CLS
Start:
Score& = 0
ON ERROR GOTO 0
IF Text <> 1 THEN
CLS
IF MCGA <> 1 AND NoGr <> 1 THEN
PUT (0, 0), Pic&(0)
COLOR 9
LINE (160, 0)-(160, 160), 9
LINE (0, 160)-(160, 160), 9
END IF
LINE (0, 0)-(159, 159), 0, BF
ELSE
FOR J = 1 TO 24
LOCATE 25, 1
PRINT SPACE$(34);
NEXT J
END IF
RANDOMIZE TIMER
FOR X = 1 TO 20
FOR Y = 1 TO 20
Grid(X, Y) = " "
Gcol(X, Y) = 0
NEXT Y
NEXT X
FOR J = 1 TO 20
LOCATE J, 1
PRINT SPACE$(20)
NEXT J
COLOR 9
LOCATE 1, 25
PRINT "ÚÄÄÄÄÄÄÄÄÄÄÄÄÄ¿"
LOCATE 2, 25
PRINT "³ S C O R E ³"
LOCATE 3, 25
PRINT "ÃÄÄÄÄÄÄÄÄÄÄÄÄÄ´"
LOCATE 4, 25
PRINT USING "³ ###,###,### ³"; Score
LOCATE 5, 25
PRINT "ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ"
IF Text <> 1 THEN
LINE (197, 6)-(197, 19), 1
LINE (197, 5)-(306, 5), 1
LINE (197, 22)-(197, 35), 1
LINE (197, 21)-(306, 21), 1
LINE (197, 37)-(308, 37), 1
LINE (309, 37)-(309, 5), 1
COLOR 1
LOCATE 2, 26
GET (198, 8)-(305, 15), TempVar
PRINT " S C O R E "
GET (198, 8)-(305, 15), Temp
PUT (199, 9), Temp, OR
PUT (198, 8), TempVar, OR
END IF
LOCATE 6,

View File

@ -0,0 +1,2 @@
taken from https://github.com/cout/vbdos/blob/master/games/piles/PILES.BAS
released into public domain by author "cout"

View File

@ -0,0 +1,85 @@
@echo off
if exist lastmake.mk call clean.bat
if "%1"=="clean" clean.bat
if "%1"=="clean" goto ende
if not x%1==x set LNG=%1
if "%lng%"=="" set LNG=english
echo.
echo Making basic utilities for build process
echo.
cd utils
make -futils.mak all
if errorlevel 1 goto ende
cd ..
echo.
echo Making STRINGS resource
echo.
cd strings
if exist mkSTRLIB.Bat del mkSTRLIB.Bat >NUL
make -fstrings.mak -DLNG=%LNG% all
if errorlevel 1 goto ende
if exist mkSTRLIB.Bat call mkSTRLIB.Bat
if errorlevel 1 goto ende
if exist mkSTRLIB.Bat del mkSTRLIB.Bat >NUL
cd ..
echo.
echo Making CRITER resource
echo.
cd criter
make -fcriter.mak all
if errorlevel 1 goto ende
cd ..
echo.
echo Making misc library
echo.
cd lib
make -flib.mak all
if errorlevel 1 goto ende
cd ..
echo.
echo Making commands library
echo.
cd cmd
make -fcmd.mak all
if errorlevel 1 goto ende
cd ..
echo.
echo Making COMMAND.COM
echo.
cd shell
make -fcommand.mak all
if errorlevel 1 goto ende
cd ..
utils\mkinfres.exe infores shell\command.map shell\command.exe
copy /b shell\command.exe + infores + criter\criter1 + criter\criter + strings\strings.dat command.com
if not exist command.com goto ende
echo.
echo Making supplemental tools
echo.
cd tools
type tools.m1 >tools.mak
..\utils\mktools.exe >>tools.mak
type tools.m2 >>tools.mak
make -ftools.mak all
if errorlevel 1 goto ende
cd ..
echo.
echo Patching heap size to 6KB
echo.
tools\ptchsize.exe command.com +6KB
echo.
echo All done. COMMAND.COM is ready for useage!
echo.
:ende

View File

@ -0,0 +1,2 @@
URL: ftp://ftp.ibiblio.org/pub/micro/pc-stuff/freedos/files/dos/command/0.83/com083b26s.zip
License: GPL

BIN
tests/file-tests/db/bin/vax Normal file

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: https://github.com/miracle2k/fretsonfire/blob/master/data/win32/installer/InstallerHeader.bmp
LICENSE: GPL

View File

View File

@ -0,0 +1,3 @@
AUTHOR: Thomas Jarosch
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,5 @@
Example chm file taken from Ogre3D Wiki
http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Compiled+API+Reference
(version 1.7.0, 22 Oct 2010)
License: Creative Commons Attribution-ShareAlike License

View File

@ -0,0 +1,67 @@
@echo off
color 0E
title Conditional Shutdown.
:start
echo Welcome, %USERNAME%
echo What would you like to do?
echo.
echo 1. Shut down within specified number of minutes
echo 2. Shut down at a specified time
echo 3. Shut down now
echo 4. Restart now
echo 5. Log off now
echo 6. Hibernate now
echo 7. Cancel shutdown
echo.
echo 0. Quit
echo.
set /p choice="Enter your choice: "
if "%choice%"=="1" goto shutdown
if "%choice%"=="2" goto shutdown-clock
if "%choice%"=="3" shutdown.exe -s -f
if "%choice%"=="4" shutdown.exe -r -f
if "%choice%"=="5" shutdown.exe -l -f
if "%choice%"=="6" shutdown.exe -h -f
if "%choice%"=="7" goto cancel_now
if "%choice%"=="0" exit
echo Invalid choice: %choice%
echo.
pause
cls
goto start
:shutdown
cls
set /p min="Minutes until shutdown: "
set /a sec=60*%min%
shutdown.exe -s -f -t %sec%
echo Shutdown initiated at %time%
echo.
goto cancel
:shutdown-clock
echo.
echo The time format is HH:MM:SS (24 hour time)
echo Example: 14:30:00 for 2:30 PM
echo.
set /p tmg=Enter the time at which you wish the computer to shut down:
schtasks.exe /create /sc ONCE /tn shutdown /st %tmg% /tr "shutdown.exe -s -t 00"
echo Shutdown initiated at %tmg%
echo.
:cancel
set /p cancel="Type cancel to stop shutdown: "
if not "%cancel%"=="cancel" exit
:cancel_now
shutdown.exe -a
cls
schtasks.exe /end /tn shutdown
cls
schtasks.exe /delete /tn shutdown
cls
echo Any impending shutdown has been cancelled.
echo.
pause
exit

View File

@ -0,0 +1,3 @@
AUTHOR: wikipedia
URL: http://en.wikipedia.org/wiki/Batch_file
LICENSE: Creative Commons Attribution-ShareAlike

View File

@ -0,0 +1,8 @@
:Base help-contents.hlp>proc4
:Title Hilfe zu Hilfeninhaltsangaben
:Index Hilfe zu Hilfeninhaltsangaben=help-contents.hlp
1 Inhaltsangabe von Hilfedateien
2 Unterpunkt1=HELP_CONTENTS_1
2 Unterpunkt2=HELP_CONTENTS_2
2 Unterpunkt3=HELP_CONTENTS_3
2 Unterpunkt4=HELP_CONTENTS_4

View File

@ -0,0 +1,3 @@
AUTHOR: Christian Herdtweck
URL: None (self-created)
LICENSE: Public domain

Binary file not shown.

View File

@ -0,0 +1,2 @@
URL: ftp://ftp.ibiblio.org/pub/micro/pc-stuff/freedos/files/dos/command/0.83/com083b26x.zip
License: GPL

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Alexander Vigovsky
URL: http://ac3filter.sourceforge.net/ac3filter_eng.html
LICENSE: GNU General Public Licence v2

View File

@ -0,0 +1,184 @@
/**************************************************************************\
*
* This file is part of the Coin 3D visualization library.
* Copyright (C) 1998-2009 by Kongsberg SIM. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* ("GPL") version 2 as published by the Free Software Foundation.
* See the file LICENSE.GPL at the root directory of this source
* distribution for additional information about the GNU GPL.
*
* For using Coin with software that can not be combined with the GNU
* GPL, and for taking advantage of the additional benefits of our
* support services, please contact Kongsberg SIM about acquiring
* a Coin Professional Edition License.
*
* See http://www.coin3d.org/ for more information.
*
* Kongsberg SIM, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
* http://www.sim.no/ sales@sim.no coin-support@coin3d.org
*
\**************************************************************************/
#include <Inventor/SbClip.h>
#include <Inventor/SbVec2f.h>
#include <Inventor/SbPlane.h>
#include <cstdio>
#include <cassert>
/*!
\class SbClip SbClip.h include/Inventor/base/SbClip.h
\brief The SbClip class is a generic polygon clipper class.
\ingroup base
It is used by first adding all vertices in the polygon, and then
clipping against any number of planes. If you need to supply
additional information per vertex (e.g. texture coordinates), you
should supply a callback in the constructor, and a pointer to your
vertex structure in addVertex(). For every new vertex created, the
callback is called with the line being clipped, including the
pointers to your vertex structures and the position of the new
(clipped against some plane) vertex. You should then create a new
vertex structure, calculate your data (e.g. a new texture
coordinate) and return a pointer to this structure.
\COIN_CLASS_EXTENSION
\since Coin 2.0
*/
// FIXME: a small usage example would do wonders for the class
// doc. 20020120 mortene.
/*!
A constructor. Supply a callback if you need to handle additional
data per vertex.
*/
SbClip::SbClip(SbClipCallback * callback, void * userdata)
: callback(callback),
cbdata(userdata),
curr(0)
{
}
/*!
Adds a polygon vertex. \a vdata could be a pointer to your
vertex structure.
*/
void
SbClip::addVertex(const SbVec3f &v, void * vdata)
{
this->array[this->curr].append(SbClipData(v, vdata));
}
/*!
Resets the clipper. This should be called before adding any vertices
when reusing an SbClip instance.
*/
void
SbClip::reset(void)
{
this->array[0].truncate(0);
this->array[1].truncate(0);
}
//
// private method, inline only inside this class
//
inline void
SbClip::outputVertex(const SbVec3f & v, void * data)
{
this->array[this->curr ^ 1].append(SbClipData(v, data));
}
/*!
Clip polygon against \a plane. This might change the number of
vertices in the polygon. For each time a new vertex is created, the
callback supplied in the constructor (if != NULL) is called with the
line being clipped and the new vertex calculated. The callback
should return a new void pointer to be stored by the clipper.
*/
void
SbClip::clip(const SbPlane & plane)
{
int n = this->array[this->curr].getLength();
if (n == 0) return;
// create loop
SbClipData dummy = this->array[this->curr][0];
this->array[this->curr].append(dummy);
const SbVec3f & planeN = plane.getNormal();
for (int i = 0; i < n; i++) {
SbVec3f v0, v1;
void * data0, *data1;
this->array[this->curr][i].get(v0, data0);
this->array[this->curr][i+1].get(v1, data1);
float d0 = plane.getDistance(v0);
float d1 = plane.getDistance(v1);
if (d0 >= 0.0f && d1 < 0.0f) { // exit plane
SbVec3f dir = v1-v0;
// we know that v0 != v1 since we got here
(void) dir.normalize();
float dot = dir.dot(planeN);
SbVec3f newvertex = v0 - dir * (d0/dot);
void * newdata = NULL;
if (this->callback) {
newdata = this->callback(v0, data0, v1, data1, newvertex, this->cbdata);
}
outputVertex(newvertex, newdata);
}
else if (d0 < 0.0f && d1 >= 0.0f) { // enter plane
SbVec3f dir = v1-v0;
// we know that v0 != v1 since we got here
(void) dir.normalize();
float dot = dir.dot(planeN);
SbVec3f newvertex = v0 - dir * (d0/dot);
void * newdata = NULL;
if (this->callback) {
newdata = this->callback(v0, data0, v1, data1, newvertex, this->cbdata);
}
outputVertex(newvertex, newdata);
outputVertex(v1, data1);
}
else if (d0 >= 0.0f && d1 >= 0.0f) { // in plane
outputVertex(v1, data1);
}
}
this->array[this->curr].truncate(0);
this->curr ^= 1;
}
/*!
Returns the number of vertices in the polygon.
\sa SbClip::getVertex()
*/
int
SbClip::getNumVertices(void) const
{
return this->array[this->curr].getLength();
}
/*!
Returns the vertex at index \a idx.
\sa SbClip::getNumVertices()
*/
void
SbClip::getVertex(const int idx, SbVec3f & v, void ** vdata) const
{
v = this->array[this->curr][idx].vertex;
if (vdata) *vdata = this->array[this->curr][idx].data;
}
/*!
Return the vertex data at index \a idx.
*/
void *
SbClip::getVertexData(const int idx) const
{
return this->array[this->curr][idx].data;
}

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: http://fossies.org/dox/Coin-3.1.3/SbClip_8cpp_source.html
LICENSE: GPLv2

View File

@ -0,0 +1,13 @@
-----BEGIN CERTIFICATE-----
MIIB+zCCAWQCCQDiQZMQOrZAPTANBgkqhkiG9w0BAQUFADBCMQswCQYDVQQGEwJY
WDEVMBMGA1UEBwwMRGVmYXVsdCBDaXR5MRwwGgYDVQQKDBNEZWZhdWx0IENvbXBh
bnkgTHRkMB4XDTE0MDMyMDEzNTAzOVoXDTE1MDMyMDEzNTAzOVowQjELMAkGA1UE
BhMCWFgxFTATBgNVBAcMDERlZmF1bHQgQ2l0eTEcMBoGA1UECgwTRGVmYXVsdCBD
b21wYW55IEx0ZDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA+8FzYRJxNs6X
E9iASuNLXMkhu/kHiB2lN/zV5IAv4q/LOyJcm7kkP3KuXtieCIRZkjXD3ltFiOzI
JHOcUFSPqiRNh08aYQEfP/R2F2KhCmpjbhCL45TiqW8FGJQzFs1vhFcHvRowMEB6
lAZ33qha5UFh3lmHZEs1o6eqv2JLedkCAwEAATANBgkqhkiG9w0BAQUFAAOBgQC2
DTuUTOTc1VpucwI4qlhW4Eba2X6XH73VeyeqYe6BaKM2tu9YGIMUsSBvRFx98VRs
FFBnGbrNvC3V2n+HaMZhMvTZv5WxqWeiqPBYPicIPWYXQr1OdaXCZ3R+BXoNW7KH
I6+HpjzIR9HRSKSXmx2gkgEEPgrjfUCmCv1vDAHO9g==
-----END CERTIFICATE-----

View File

@ -0,0 +1,3 @@
AUTHOR: Christian Herdtweck, intra2net
URL: None (self-created)
LICENSE: public domain

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -0,0 +1,5 @@
cursor from http://www.rw-designer.com/cursor-detail/24909
original file name: Diamond Sword - Normal Select.cur
license: "Release to PUblic Domain" license ("You are free: To use this work for any legal purpose.")
Published on May 6th 2011 by NesManiac

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,2 @@
URL: http://libsdl.org/release/SDL2-2.0.3-win32-x86.zip
License: zlib license

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Jan Kaluza <jkaluza@redhat.com>
URL: http://java.labsoft.dcc.ufmg.br/comets/dataset/pmd/srcs/pmd96/etc/fr_docs/PMD.doc
LICENSE: BSD

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Christian Herdtweck <christian.herdtweck@intra2net.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Christian Herdtweck <christian.herdtweck@intra2net.com>
URL: Created it myself
LICENSE: public domain

View File

@ -0,0 +1,3 @@
AUTHOR: Christian Herdtweck <christian.herdtweck@intra2net.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Christian Herdtweck <christian.herdtweck@intra2net.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Christian Herdtweck <christian.herdtweck@intra2net.com>
URL: Created it myself
LICENSE: public domain

View File

@ -0,0 +1,3 @@
AUTHOR: Christian Herdtweck <christian.herdtweck@intra2net.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Christian Herdtweck <christian.herdtweck@intra2net.com>
URL: Created it myself
LICENSE: public domain

Binary file not shown.

View File

@ -0,0 +1,3 @@
AUTHOR: Christian Herdtweck <christian.herdtweck@intra2net.com>
URL: Created it myself
LICENSE: public domain

Some files were not shown because too many files have changed in this diff Show More