/usr/include/tsk/vs/tsk_bsd.h is in libtsk-dev 4.1.3-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | /*
* The Sleuth Kit
*
* Brian Carrier [carrier <at> sleuthkit [dot] org]
* Copyright (c) 2003-2011 Brian Carrier. All rights reserved
*
* ** This software is distributed under the Common Public License 1.0
*/
/*
* C header file with BSD and internal data structures.
*/
#ifndef _TSK_BSD_H
#define _TSK_BSD_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
uint8_t magic[4];
uint8_t type[2];
uint8_t sub_type[2];
uint8_t type_name[16];
uint8_t packname[16];
uint8_t sec_size[4];
uint8_t sec_per_tr[4];
uint8_t tr_per_cyl[4];
uint8_t cyl_per_unit[4];
uint8_t sec_per_cyl[4];
uint8_t sec_per_unit[4];
uint8_t spare_per_tr[2];
uint8_t spare_per_cyl[2];
uint8_t alt_per_unit[4];
uint8_t rpm[2];
uint8_t interleave[2];
uint8_t trackskew[2];
uint8_t cylskew[2];
uint8_t headswitch[4];
uint8_t track_seek[4];
uint8_t flags[4];
uint8_t drivedata[20];
uint8_t reserved1[20];
uint8_t magic2[4];
uint8_t checksum[2];
uint8_t num_parts[2];
uint8_t bootarea_size[4];
uint8_t sb_size[4];
struct {
uint8_t size_sec[4];
uint8_t start_sec[4];
uint8_t frag_size[4];
uint8_t fstype;
uint8_t frag_per_block;
uint8_t cyl_per_grp[2];
} part[16];
/* padding to make it a full 512 bytes */
uint8_t reserved2[108];
} bsd_disklabel;
#define BSD_MAGIC 0x82564557
#define BSD_PART_SOFFSET 1
#ifdef __cplusplus
}
#endif
#endif
|