source: vendor/current/source3/include/MacExtensions.h@ 740

Last change on this file since 740 was 414, checked in by Herwig Bauernfeind, 16 years ago

Samba 3.5.0: Initial import

File size: 9.1 KB
RevLine 
[414]1/*
2 Unix SMB/CIFS implementation.
3 SMB parameters and setup
4 Copyright (C) Andrew Tridgell 1992-1998
5 Copyright (C) John H Terpstra 1996-1998
6 Copyright (C) Luke Kenneth Casson Leighton 1996-1998
7 Copyright (C) Paul Ashton 1998
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
21*/
22#ifndef _MAC_EXTENSIONS_H
23#define _MAC_EXTENSIONS_H
24
25/* Folder that holds the stream info */
26#define STREAM_FOLDER ".streams"
27#define STREAM_FOLDER_SLASH ".streams/"
28
29/* Common Streams Names*/
30#define DefaultStreamTestLen 6
31#define DefaultStreamTest ":$DATA"
32#define AFPDATA_STREAM "::$DATA"
33#define AFPINFO_STREAM ":AFP_AfpInfo:$DATA"
34#define AFPRESOURCE_STREAM ":AFP_Resource:$DATA"
35#define AFPCOMMENTS_STREAM ":Comments:$DATA"
36#define AFPDESKTOP_STREAM ":AFP_DeskTop:$DATA"
37#define AFPIDINDEX_STREAM ":AFP_IdIndex:$DATA"
38
39/*
40** NT's AFP_AfpInfo stream structure
41*/
42#define APF_INFO_SIZE 0x3c
43#define AFP_Signature 0x41465000
44#define AFP_Version 0x00000100
45#define AFP_BackupTime 0x00000080
46#define AFP_FinderSize 32
47/*
48** Orginal AFP_AfpInfo stream used by NT
49** We needed a way to store the create date so SAMBA
50** AFP_AfpInfo adds for bytes to this structrure
51** and call's it _SambaAfpInfo
52*/
53typedef struct _AfpInfo
54{
55 uint32 afpi_Signature; /* Must be *(PDWORD)"AFP" */
56 uint32 afpi_Version; /* Must be 0x00010000 */
57 uint32 afpi_Reserved1;
58 uint32 afpi_BackupTime; /* Backup time for the file/dir */
59 unsigned char afpi_FinderInfo[AFP_FinderSize]; /* Finder Info (32 bytes) */
60 unsigned char afpi_ProDosInfo[6]; /* ProDos Info (6 bytes) # */
61 unsigned char afpi_Reserved2[6];
62} AfpInfo;
63
64typedef struct _SambaAfpInfo
65{
66 AfpInfo afp;
67 unsigned long createtime;
68} SambaAfpInfo;
69
70/*
71** On SAMBA this structrue is followed by 4 bytes that store the create
72** date of the file or folder asociated with it.
73*/
74
75/*
76** These extentions are only supported with the NT LM 0.12 Dialect. These extentions
77** will be process on a share by share bases.
78*/
79