]> arthur.barton.de Git - netatalk.git/blob - man/man1/afile.1
Writing metadata xattr on directories with sticky bit set, FR#94
[netatalk.git] / man / man1 / afile.1
1 '\" t
2 .\"     Title: afile
3 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5 .\"      Date: 26 Feb 1998
6 .\"    Manual: Netatalk 2.1
7 .\"    Source: Netatalk 2.1
8 .\"  Language: English
9 .\"
10 .TH "AFILE" "1" "26 Feb 1998" "Netatalk 2.1" "Netatalk 2.1"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
15 .nh
16 .\" disable justification (adjust text to left margin only)
17 .ad l
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
21 .SH "NAME"
22 afile \- display type and creator of Apple Macintosh files (netatalk format)
23 .SH "SYNOPSIS"
24 .HP \w'\fBafile\fR\fB\fR\ 'u
25 \fBafile\fR\fB\fR [\-a] \fIfile\fR...
26 .br
27
28 .SH "DESCRIPTION"
29 .PP
30 \fBafile\fR
31 displays the name and Macintosh type and creator of the
32 \fIfile\fR
33 arguments\&. Tests whether the file is an AppleDouble header, in which case it checks the corresponding data fork exists, or assumes it is a data fork in which case it looks for the corresponding AppleDouble to find the type/creator information\&.
34 .PP
35 \fBafile\fR
36 does not look at any of the extension mapping files such as AppleVolumes\&.system\&.
37 .SH "OPTIONS"
38 .PP
39 \fB\-a\fR
40 .RS 4
41 Include directories and data files of unknown type (i\&.e\&. without corresponding AppleDouble) in output\&.
42 .RE
43 .SH "DIAGNOSTICS"
44 .PP
45 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\&.
46 .PP
47 1 file doesn\'t exist
48 .PP
49 2 file is unreadable
50 .PP
51 3 file is directory
52 .PP
53 4 file is AppleDouble without data fork
54 .PP
55 5 file is AppleDouble with unreadable data fork
56 .PP
57 6 file is data fork without AppleDouble
58 .PP
59 7 file is data fork with unreadable AppleDouble
60 .PP
61 8 file is data fork with short AppleDouble
62 .PP
63 9 bad magic in AppleDouble
64 .SH "SEE ALSO"
65 .PP
66 \fBachfile\fR(1),
67 \fBafpd\fR(8)