diff options
Diffstat (limited to 'contrib/syslinux/syslinux-4.03/com32/gpllib/disk/swsusp.c')
-rw-r--r-- | contrib/syslinux/syslinux-4.03/com32/gpllib/disk/swsusp.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/contrib/syslinux/syslinux-4.03/com32/gpllib/disk/swsusp.c b/contrib/syslinux/syslinux-4.03/com32/gpllib/disk/swsusp.c deleted file mode 100644 index ef782fd..0000000 --- a/contrib/syslinux/syslinux-4.03/com32/gpllib/disk/swsusp.c +++ /dev/null @@ -1,27 +0,0 @@ -#include <stdlib.h> -#include <string.h> - -#include <disk/swsusp.h> -#include <disk/read.h> -#include <disk/geom.h> - -/** - * swsusp_check - check if a (swap) partition contains the swsusp signature - * @drive_info: driveinfo struct describing the disk containing the partition - * @ptab; Partition table of the partition - **/ -int swsusp_check(struct driveinfo *drive_info, struct part_entry *ptab) -{ - struct swsusp_header header_p; - int offset; - int found; - - /* Read first page of the swap device */ - offset = ptab->start_lba; - if (read_sectors(drive_info, &header_p, offset, PAGE_SIZE / SECTOR) == -1) { - return -1; - } else { - found = !memcmp(SWSUSP_SIG, header_p.sig, 10); - return found; - } -} |