|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. ! 3: * ! 4: * @APPLE_LICENSE_HEADER_START@ ! 5: * ! 6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights ! 7: * Reserved. This file contains Original Code and/or Modifications of ! 8: * Original Code as defined in and that are subject to the Apple Public ! 9: * Source License Version 1.1 (the "License"). You may not use this file ! 10: * except in compliance with the License. Please obtain a copy of the ! 11: * License at http://www.apple.com/publicsource and read it before using ! 12: * this file. ! 13: * ! 14: * The Original Code and all software distributed under the License are ! 15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER ! 16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ! 17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, ! 18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the ! 19: * License for the specific language governing rights and limitations ! 20: * under the License. ! 21: * ! 22: * @APPLE_LICENSE_HEADER_END@ ! 23: */ ! 24: ! 25: /* ! 26: * Copyright (c) 1997-1998 Apple Computer, Inc. All Rights Reserved ! 27: * ! 28: * MODIFICATION HISTORY (most recent first): ! 29: * ! 30: * 20-Aug-1998 Scott Roberts Added uid, gid, and mask to hfs_mount_args. ! 31: * 24-Jun-1998 Don Brady Added time zone info to hfs_mount_args (radar #2226387). ! 32: * 30-Jul-1997 Pat Dirks created ! 33: */ ! 34: ! 35: ! 36: /* ! 37: * Arguments to mount HFS-based filesystems ! 38: */ ! 39: ! 40: struct hfs_mount_args { ! 41: char *ma_fspec; /* block special device to mount */ ! 42: struct export_args ma_export; /* network export info */ ! 43: uid_t ma_uid; /* uid that owns hfs files (standard HFS only) */ ! 44: gid_t ma_gid; /* gid that owns hfs files (standard HFS only) */ ! 45: mode_t ma_mask; /* mask to be applied for hfs perms (standard HFS only) */ ! 46: u_long ma_encoding; /* default encoding for this volume (standard HFS only) */ ! 47: struct timezone ma_timezone; /* user time zone info (standard HFS only) */ ! 48: int ma_flags; /* mounting flags, see below */ ! 49: }; ! 50: ! 51: #define HFSFSMNT_NOXONFILES 0x1 /* Allow execute on files */ ! 52: ! 53: #define MXENCDNAMELEN 15 /* Maximun length of encoding name string */ ! 54: ! 55: struct hfs_mnt_encoding { ! 56: char encoding_name[MXENCDNAMELEN]; /* encoding type name */ ! 57: u_long encoding_id; /* encoding type number */ ! 58: }; ! 59: ! 60: /* ! 61: * typedefs and macros to mark a fs as hfs standard ! 62: */ ! 63: #define HFSFSMNT_HFSSTDMASK 0x40000000 /* Set to determine if a volume is hfs standard */ ! 64: #define ISHFSSTD(fsid) ((Int32)fsid & HFSFSMNT_ISHFSSTDMASK) /* To determine if a volume is hfs */ ! 65: ! 66: ! 67: ! 68: /* ! 69: * Lookup table for encoding strings ! 70: */ ! 71: struct hfs_mnt_encoding hfs_mnt_encodinglist[] = { ! 72: ! 73: { "shift-JIS", 1 }, ! 74: { "Shift-JIS", 1 } ! 75: }; ! 76:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.