]>
Commit | Line | Data |
---|---|---|
14c7c974 A |
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 | * Copyright (c) 1992 NeXT Computer, Inc. | |
26 | * | |
27 | * UFS byte swapping routines to make a big endian file system useful on a | |
28 | * little endian machine. | |
29 | * | |
30 | * HISTORY | |
31 | * | |
32 | * 8 Jul 1992 Brian Pinkerton at NeXT | |
33 | * Created. | |
34 | */ | |
35 | ||
36 | #ifndef __LIBSAIO_UFS_BYTEORDER_H | |
37 | #define __LIBSAIO_UFS_BYTEORDER_H | |
38 | ||
75b89a82 A |
39 | #include <sys/disktab.h> |
40 | #include <sys/vnode.h> | |
41 | #include <sys/buf.h> | |
42 | #include <dev/disk.h> | |
43 | #include <ufs/ufs/quota.h> | |
44 | #include <ufs/ufs/inode.h> | |
45 | #include <ufs/ffs/fs.h> | |
14c7c974 A |
46 | |
47 | void byte_swap_ints(int *array, int count); | |
48 | void byte_swap_shorts(short *array, int count); | |
49 | void byte_swap_longlongs(unsigned long long *array, int count); | |
50 | ||
51 | void byte_swap_superblock(struct fs *sb); | |
52 | void byte_swap_disklabel_in(disk_label_t *dl); | |
53 | void byte_swap_disktab_in(struct disktab *dt); | |
54 | void byte_swap_partition(struct partition *part); | |
55 | void byte_swap_dinode_in(struct dinode *di); | |
56 | void byte_swap_dir_block_in(char *addr, int count); | |
75b89a82 | 57 | void byte_swap_inode_in(struct dinode *dc, struct dinode *ic); |
14c7c974 A |
58 | |
59 | #endif /* !__LIBSAIO_UFS_BYTEORDER_H */ |