home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / misc / src / install / libfdisk / rawio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-17  |  860 b   |  28 lines

  1. /* rawio.c */
  2. #ifndef FDISK_RAWIO_H
  3. #define FDISK_RAWIO_H
  4.  
  5. #include <sys/types.h>
  6.  
  7. int fdiskRoundStartToCylinder( HardDrive *hd, unsigned int *start );
  8.  
  9. int fdiskRoundEndToCylinder( HardDrive *hd, unsigned int *end );
  10.  
  11. int fdiskSectorToCHS( HardDrive *hd, unsigned int start,
  12.               unsigned int *c, unsigned int *h, unsigned int *s );
  13.  
  14. int fdiskOpenDevice(char *dev, unsigned int num, HardDrive **hddev);
  15. int fdiskCloseDevice(HardDrive *hddev);
  16.  
  17. int fdiskReadPartitionTable(HardDrive *hddev, unsigned int loc,
  18.                  RawPartitionTable **pt );
  19. int fdiskWritePartitionTable(HardDrive *hddev, unsigned int loc,
  20.                  RawPartitionTable *pt );
  21.  
  22. int fdiskReReadPartitions(HardDrive *hddev);
  23.  
  24. int fdiskReadMBR( HardDrive *hddev, RawPartitionTable **pt );
  25. int fdiskWriteMBR( HardDrive *hddev, RawPartitionTable *pt );
  26. int fdiskZeroMBR( HardDrive *hddev );
  27. #endif
  28.