]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
6 | * The contents of this file constitute Original Code as defined in and | |
7 | * are subject to the Apple Public Source License Version 1.1 (the | |
8 | * "License"). You may not use this file except in compliance with the | |
9 | * License. Please obtain a copy of the License at | |
10 | * http://www.apple.com/publicsource and read it before using this file. | |
11 | * | |
12 | * This Original Code and all software distributed under the License are | |
13 | * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
16 | * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the | |
17 | * License for the specific language governing rights and limitations | |
18 | * under the License. | |
19 | * | |
20 | * @APPLE_LICENSE_HEADER_END@ | |
21 | */ | |
22 | /* | |
23 | * Copyright (c) 1997-2000 Apple Computer, Inc. All Rights Reserved | |
24 | * | |
25 | */ | |
26 | ||
27 | #ifndef _HFS_MOUNT_H_ | |
28 | #define _HFS_MOUNT_H_ | |
29 | ||
30 | #include <sys/mount.h> | |
31 | #include <sys/time.h> | |
32 | ||
33 | /* | |
34 | * Arguments to mount HFS-based filesystems | |
35 | */ | |
36 | ||
37 | #define OVERRIDE_UNKNOWN_PERMISSIONS 0 | |
38 | ||
39 | #define UNKNOWNUID ((uid_t)99) | |
40 | #define UNKNOWNGID ((gid_t)99) | |
41 | #define UNKNOWNPERMISSIONS (S_IRWXU | S_IROTH | S_IXOTH) /* 705 */ | |
42 | ||
43 | struct hfs_mount_args { | |
44 | char *fspec; /* block special device to mount */ | |
45 | struct export_args export; /* network export information */ | |
46 | uid_t hfs_uid; /* uid that owns hfs files (standard HFS only) */ | |
47 | gid_t hfs_gid; /* gid that owns hfs files (standard HFS only) */ | |
48 | mode_t hfs_mask; /* mask to be applied for hfs perms (standard HFS only) */ | |
49 | u_long hfs_encoding; /* encoding for this volume (standard HFS only) */ | |
50 | struct timezone hfs_timezone; /* user time zone info (standard HFS only) */ | |
51 | int flags; /* mounting flags, see below */ | |
52 | }; | |
53 | ||
54 | #define HFSFSMNT_NOXONFILES 0x1 /* disable execute permissions for files */ | |
55 | ||
56 | #endif /* ! _HFS_MOUNT_H_ */ |