version 1.8, 2000/03/06 02:38:19 |
version 1.9, 2000/03/23 21:10:16 |
|
|
implement them) |
implement them) |
are intuited if they are defined in |
are intuited if they are defined in |
the system header file |
the system header file |
.Aq Pa sys/stat.h . |
.Aq Pa sys/stat.h . |
.Pp |
.Pp |
The magic number tests are used to check for files with data in |
The magic number tests are used to check for files with data in |
particular fixed formats. |
particular fixed formats. |
|
|
>10 string language\e impress (imPRESS data) |
>10 string language\e impress (imPRESS data) |
.Pp |
.Pp |
In addition, in this version, if a pattern string contains a backslash, |
In addition, in this version, if a pattern string contains a backslash, |
it must be escaped. For example |
it must be escaped. |
|
For example |
.Pp |
.Pp |
0 string \ebegindata Andrew Toolkit document |
0 string \ebegindata Andrew Toolkit document |
.Pp |
.Pp |
|
|
software, no matter how awful, even if they arise from flaws in it; |
software, no matter how awful, even if they arise from flaws in it; |
.It |
.It |
The origin of this software must not be misrepresented, either by |
The origin of this software must not be misrepresented, either by |
explicit claim or by omission. Since few users ever read sources, |
explicit claim or by omission. |
|
Since few users ever read sources, |
credits must appear in the documentation; |
credits must appear in the documentation; |
.It |
.It |
Altered versions must be plainly marked as such, and must not be |
Altered versions must be plainly marked as such, and must not be |
misrepresented as being the original software. Since few users |
misrepresented as being the original software. |
ever read sources, credits must appear in the documentation; |
Since few users ever read sources, credits must appear in the documentation; |
.It |
.It |
This notice may not be removed or altered. |
This notice may not be removed or altered. |
.El |
.El |
|
|
Another optimization would be to sort |
Another optimization would be to sort |
the magic file so that we can just run down all the |
the magic file so that we can just run down all the |
tests for the first byte, first word, first long, etc, once we |
tests for the first byte, first word, first long, etc, once we |
have fetched it. Complain about conflicts in the magic file entries. |
have fetched it. |
|
Complain about conflicts in the magic file entries. |
Make a rule that the magic entries sort based on file offset rather |
Make a rule that the magic entries sort based on file offset rather |
than position within the magic file? |
than position within the magic file? |
.Pp |
.Pp |