diff options
author | Erik Troan <ewt@redhat.com> | 2000-05-09 16:51:15 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-05-09 16:51:15 +0000 |
commit | 909d3d8b819379410623debde7245f7d0dcee0b1 (patch) | |
tree | 8d926d7302a2b7ca7d1abf91be1d120cc1dec383 /balkan | |
parent | 5d0df8bd7431b6efbab9057e2d223def47240559 (diff) | |
download | anaconda-909d3d8b819379410623debde7245f7d0dcee0b1.tar.gz anaconda-909d3d8b819379410623debde7245f7d0dcee0b1.tar.xz anaconda-909d3d8b819379410623debde7245f7d0dcee0b1.zip |
use lseek64
Diffstat (limited to 'balkan')
-rw-r--r-- | balkan/bsdlabel.c | 4 | ||||
-rw-r--r-- | balkan/sun.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/balkan/bsdlabel.c b/balkan/bsdlabel.c index 7856471fd..d2614e7ed 100644 --- a/balkan/bsdlabel.c +++ b/balkan/bsdlabel.c @@ -53,8 +53,6 @@ struct bsd_disklabel { } d_partitions[BSD_MAXPARTITIONS]; /* actually may be more */ }; -long long llseek(int fd, long long offset, int whence); - #if 0 static unsigned short xbsd_dkcksum (struct bsd_disklabel *lp) { unsigned short *start, *end; @@ -82,7 +80,7 @@ int bsdlReadTable(int fd, struct partitionTable * table) { table->sectorSize = 512; - if (lseek(fd, BSD_LABEL_OFFSET, SEEK_SET) < 0) + if (lseek64(fd, BSD_LABEL_OFFSET, SEEK_SET) < 0) return BALKAN_ERROR_ERRNO; if (read(fd, &label, sizeof(label)) != sizeof(label)) diff --git a/balkan/sun.c b/balkan/sun.c index b0cdfa3a5..d3c11703b 100644 --- a/balkan/sun.c +++ b/balkan/sun.c @@ -39,8 +39,6 @@ struct singlePartitionTable { #define WHOLE_DISK 5 #define UFS_SUPER_MAGIC 0x00011954 -long long llseek(int fd, long long offset, int whence); - int sunpReadTable(int fd, struct partitionTable * table) { struct singlePartitionTable singleTable; int i, rc, magic; @@ -99,7 +97,7 @@ int sunpReadTable(int fd, struct partitionTable * table) { default: if (table->parts[i].type != WHOLE_DISK && - llseek(fd, (8192 + 0x55c + SECTOR_SIZE * + lseek64(fd, (8192 + 0x55c + SECTOR_SIZE * (unsigned long long)table->parts[i].startSector), SEEK_SET) >= 0 && read(fd, &magic, 4) == 4 && |