]> arthur.barton.de Git - netatalk.git/blob - man/man1/afile.1
Added man files from afile package
[netatalk.git] / man / man1 / afile.1
1 .TH AFILE 1 "26 Feb 1998" 
2 .SH NAME
3 afile \- display type and creator of Apple Macintosh files (netatalk format)
4 .SH SYNOPSIS
5 .B afile 
6 [
7 .B -a
8 ]
9 .I file ...
10
11 .SH DESCRIPTION
12 .B afile
13 displays the name and Macintosh type and creator of the 
14 .I file
15 arguments. Tests whether the file is an AppleDouble header,
16 in which case it checks the corresponding data fork exists, or assumes
17 it is a data fork in which case it looks for the corresponding AppleDouble
18 to find the type/creator information.
19
20 .LP
21 .B afile
22 does not look at any of the extension mapping files such
23 as AppleVolumes.system.
24
25 .SH OPTIONS
26 .TP
27 .B -a
28 Include directories and data files of unknown type (i.e. without 
29 corresponding AppleDouble) in output.
30
31 .SH DIAGNOSTICS
32 returns exit status 0 if all files have a corresponding valid  .AppleDouble header or data fork, or 99 for bad command line options. Otherwise it returns the following error code relating to the last invalid file.
33 .br
34
35 1  file doesn't exist
36 .br
37 2  file is unreadable
38 .br
39 3  file is directory
40 .br
41 4  file is AppleDouble without data fork
42 .br
43 5  file is AppleDouble with unreadable data fork
44 .br
45 6  file is data fork without AppleDouble
46 .br
47 7  file is data fork with unreadable AppleDouble
48 .br
49 8  file is data fork with short AppleDouble
50 .br
51 9  bad magic in AppleDouble
52  
53 .SH SEE ALSO
54 .BR achfile (1),
55 .BR afpd (1)