"Fossies" - the Fresh Open Source Software Archive

Member "ms-sys-2.7.0/inc/partition_info.h" (20 Jun 2020, 987 Bytes) of package /linux/privat/ms-sys-2.7.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "partition_info.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.4.1_vs_2.6.0.

    1 #ifndef PARTITION_INFO_H
    2 #define PARTITION_INFO_H
    3 
    4 /* Writes the number of heads to a partition, if iHeads == -1 an attempt is made
    5    to find out the correct value,
    6    returns TRUE on success, otherwise FALSE */
    7 int write_partition_number_of_heads(FILE *fp, int iHeads);
    8 
    9 /* Writes the start sector number to a partition (also known as
   10    "number of hidden sectors"), returns TRUE on success, otherwise FALSE */
   11 #ifdef __OpenBSD__
   12 int write_partition_start_sector_number(FILE *fp, const char *szPath);
   13 #else
   14 int write_partition_start_sector_number(FILE *fp);
   15 #endif
   16 
   17 /* Writes a physical disk drive id of 0x80 (for C:) to a FAT16 partition */
   18 int write_partition_physical_disk_drive_id_fat16(FILE *fp);
   19 
   20 /* Writes a physical disk drive id of 0x80 (for C:) to a FAT32 partition */
   21 int write_partition_physical_disk_drive_id_fat32(FILE *fp);
   22 
   23 /* Writes a physical disk drive id of 0x80 (for C:) to an EXFAT partition */
   24 int write_partition_physical_disk_drive_id_exfat(FILE *fp);
   25 
   26 #endif