Next Debian release
[rrq/maintain_lilo.git] / src / partition.h
index 23b8b7ccc4940449488e4c33bbf2f69ae3efbe88..c84a54028fd39318cb9e927483d3b0baf9b8376a 100644 (file)
@@ -1,15 +1,13 @@
-/* partition.h  -  Partition table handling */
-
-/*
-Copyright 1992-1998 Werner Almesberger.
-Copyright 1999-2004 John Coffman.
-All rights reserved.
-
-Licensed under the terms contained in the file 'COPYING' in the 
-source directory.
-
-*/
-
+/* partition.h  -  Partition table handling
+ * 
+ * Copyright 1992-1998 Werner Almesberger
+ * Copyright 1999-2004 John Coffman
+ * Copyright 2009-2015 Joachim Wiedorn
+ * All rights reserved.
+ * 
+ * Licensed under the terms contained in the file 'COPYING'
+ * in the source directory.
+ */
 
 #ifndef PARTITION_H
 #define PARTITION_H
@@ -28,10 +26,10 @@ enum {PTW_OKAY=0, PTW_DOS=1, PTW_OS2=2, PTW_SWAP, PTW_XFS,
                PTW_mask=7, PTW_NTFS=8};
 
 
-#define LLSECTORSIZE ((long long)SECTOR_SIZE)
+#define LLSECTORSIZE ((int64_t)SECTOR_SIZE)
 
 #if __GLIBC__ < 2 || __GLIBC_MINOR__ < 1
-typedef long long lloff_t;
+typedef int64_t lloff_t;
 
 #ifdef _syscall5
        lloff_t lseek64(unsigned int fd, lloff_t offs, unsigned int whence);
@@ -82,7 +80,7 @@ void do_install_mbr(char *where, char *what);
 /* Install a new MBR (Master Boot Record) */
 
 int read_partitions(char *part, int max, int *volid,
-               struct partition *p, long long *where);
+               struct partition *p, int64_t *where);
 /* read all partitions & partition tables */
 
 #endif