summaryrefslogtreecommitdiffstats
path: root/balkan/sun.c
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-05-12 22:26:07 +0000
committerMatt Wilson <msw@redhat.com>2000-05-12 22:26:07 +0000
commitee9c3d63b19640a938661ed4ec235d0da2004bb2 (patch)
tree473990aa1ad4febdfaab7cd2f34b9862470b9886 /balkan/sun.c
parent9772a2eb1fdb4e3adf5c0d7954ecaf4f624f0f58 (diff)
downloadanaconda-ee9c3d63b19640a938661ed4ec235d0da2004bb2.tar.gz
anaconda-ee9c3d63b19640a938661ed4ec235d0da2004bb2.tar.xz
anaconda-ee9c3d63b19640a938661ed4ec235d0da2004bb2.zip
lseek64
Diffstat (limited to 'balkan/sun.c')
-rw-r--r--balkan/sun.c4
1 files changed, 1 insertions, 3 deletions
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 &&