ms-sys  2.7.0
About: ms-sys writes Microsoft compatible boot records. Development version.
  Fossies Dox: ms-sys-2.7.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

file.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_DATA_LEN   10240
 

Functions

int contains_data (FILE *fp, unsigned long ulPosition, const void *pData, unsigned int uiLen)
 
int read_data (FILE *fp, unsigned long ulPosition, void *pData, unsigned int uiLen)
 
int write_data (FILE *fp, unsigned long ulPosition, const void *pData, unsigned int uiLen)
 

Macro Definition Documentation

◆ MAX_DATA_LEN

#define MAX_DATA_LEN   10240

Definition at line 5 of file file.h.

Function Documentation

◆ contains_data()

int contains_data ( FILE *  fp,
unsigned long  ulPosition,
const void *  pData,
unsigned int  uiLen 
)

Copyright (C) 2009 Henrik Carlqvist

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Definition at line 29 of file file.c.

References MAX_DATA_LEN, and read_data().

Referenced by entire_exfat_nt6_br_matches(), entire_fat_12_br_matches(), entire_fat_16_br_matches(), entire_fat_16_fd_br_matches(), entire_fat_16_ros_br_matches(), entire_fat_32_br_matches(), entire_fat_32_fd_br_matches(), entire_fat_32_kos_br_matches(), entire_fat_32_nt5_br_matches(), entire_fat_32_nt6_br_matches(), entire_fat_32_pe_br_matches(), entire_fat_32_ros_br_matches(), entire_ntfs_br_matches(), is_2000_mbr(), is_95b_mbr(), is_br(), is_dos_f2_mbr(), is_dos_mbr(), is_exfat_br(), is_exfat_fs(), is_fat_12_fs(), is_fat_16_br(), is_fat_16_fs(), is_fat_32_br(), is_fat_32_fs(), is_grub2_mbr(), is_grub4dos_mbr(), is_kolibrios_mbr(), is_lilo_br(), is_ntfs_br(), is_ntfs_fs(), is_reactos_mbr(), is_rufus_mbr(), is_syslinux_gpt_mbr(), is_syslinux_mbr(), is_vista_mbr(), is_win7_mbr(), is_zero_mbr(), and is_zero_mbr_not_including_disk_signature_or_copy_protect().

◆ read_data()

int read_data ( FILE *  fp,
unsigned long  ulPosition,
void *  pData,
unsigned int  uiLen 
)

Definition at line 41 of file file.c.

References _, and MAX_DATA_LEN.

Referenced by contains_data(), read_mbr_copy_protect_bytes(), read_oem_id(), and read_windows_disk_signature().

◆ write_data()