|
@ -1,27 +1,8 @@ |
|
|
# --- ROCK-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
|
|
# |
|
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
|
|
# Please add additional copyright information _after_ the line containing |
|
|
|
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by |
|
|
|
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! |
|
|
|
|
|
# |
|
|
|
|
|
# ROCK Linux: rock-src/package/base/util-linux/no-syscall5.patch.mips |
|
|
|
|
|
# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf |
|
|
|
|
|
# |
|
|
|
|
|
# This patch file is dual-licensed. It is available under the license the |
|
|
|
|
|
# patched project is licensed under, as long as it is an OpenSource license |
|
|
|
|
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms |
|
|
|
|
|
# of the GNU General Public License as published by the Free Software |
|
|
|
|
|
# Foundation; either version 2 of the License, or (at your option) any later |
|
|
|
|
|
# version. |
|
|
|
|
|
# |
|
|
|
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
|
|
|
|
diff -Naur util-linux-2.12.orig/fdisk/cfdisk.c util-linux-2.12/fdisk/cfdisk.c |
|
|
|
|
|
--- util-linux-2.12.orig/fdisk/cfdisk.c 2004-03-27 18:50:54.000000000 +0100 |
|
|
|
|
|
+++ util-linux-2.12/fdisk/cfdisk.c 2004-03-27 18:34:56.000000000 +0100 |
|
|
|
|
|
@@ -85,9 +85,6 @@ |
|
|
|
|
|
#include "get_blocks.h" |
|
|
|
|
|
|
|
|
diff -dur util-linux-2.12h/fdisk/cfdisk.c util-linux-2.12h-patch/fdisk/cfdisk.c |
|
|
|
|
|
--- util-linux-2.12h/fdisk/cfdisk.c 2004-09-27 15:54:13.000000000 +0000 |
|
|
|
|
|
+++ util-linux-2.12h-patch/fdisk/cfdisk.c 2004-10-23 03:20:23.614040976 +0000 |
|
|
|
|
|
@@ -82,9 +82,6 @@ |
|
|
|
|
|
#include "xstrncpy.h" |
|
|
#include "common.h" |
|
|
#include "common.h" |
|
|
|
|
|
|
|
|
-extern long long ext2_llseek(unsigned int fd, long long offset, |
|
|
-extern long long ext2_llseek(unsigned int fd, long long offset, |
|
@ -29,8 +10,8 @@ diff -Naur util-linux-2.12.orig/fdisk/cfdisk.c util-linux-2.12/fdisk/cfdisk.c |
|
|
- |
|
|
- |
|
|
#define VERSION UTIL_LINUX_VERSION |
|
|
#define VERSION UTIL_LINUX_VERSION |
|
|
|
|
|
|
|
|
#ifdef __GNU__ |
|
|
|
|
|
@@ -578,16 +575,16 @@ |
|
|
|
|
|
|
|
|
#define DEFAULT_DEVICE "/dev/hda" |
|
|
|
|
|
@@ -545,16 +542,16 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static void |
|
|
static void |
|
@ -51,7 +32,7 @@ diff -Naur util-linux-2.12.orig/fdisk/cfdisk.c util-linux-2.12/fdisk/cfdisk.c |
|
|
fatal(_("Cannot seek on disk drive"), 2); |
|
|
fatal(_("Cannot seek on disk drive"), 2); |
|
|
if (write(fd, buffer, SECTOR_SIZE) != SECTOR_SIZE) |
|
|
if (write(fd, buffer, SECTOR_SIZE) != SECTOR_SIZE) |
|
|
fatal(_("Cannot write disk drive"), 2); |
|
|
fatal(_("Cannot write disk drive"), 2); |
|
|
@@ -611,10 +608,10 @@ |
|
|
|
|
|
|
|
|
@@ -578,10 +575,10 @@ |
|
|
#define DOS_OSTYPE_SZ 8 |
|
|
#define DOS_OSTYPE_SZ 8 |
|
|
#define DOS_LABEL_SZ 11 |
|
|
#define DOS_LABEL_SZ 11 |
|
|
#define DOS_FSTYPE_SZ 8 |
|
|
#define DOS_FSTYPE_SZ 8 |
|
@ -64,7 +45,7 @@ diff -Naur util-linux-2.12.orig/fdisk/cfdisk.c util-linux-2.12/fdisk/cfdisk.c |
|
|
&& read(fd, §or, sizeof(sector)) == sizeof(sector)) { |
|
|
&& read(fd, §or, sizeof(sector)) == sizeof(sector)) { |
|
|
dos_copy_to_info(p_info[i].ostype, OSTYPESZ, |
|
|
dos_copy_to_info(p_info[i].ostype, OSTYPESZ, |
|
|
sector+DOS_OSTYPE_OFFSET, DOS_OSTYPE_SZ); |
|
|
sector+DOS_OSTYPE_OFFSET, DOS_OSTYPE_SZ); |
|
|
@@ -671,12 +668,12 @@ |
|
|
|
|
|
|
|
|
@@ -638,12 +635,12 @@ |
|
|
} xfsb; |
|
|
} xfsb; |
|
|
|
|
|
|
|
|
char *label; |
|
|
char *label; |
|
@ -79,7 +60,7 @@ diff -Naur util-linux-2.12.orig/fdisk/cfdisk.c util-linux-2.12/fdisk/cfdisk.c |
|
|
&& read(fd, &e2fsb, sizeof(e2fsb)) == sizeof(e2fsb) |
|
|
&& read(fd, &e2fsb, sizeof(e2fsb)) == sizeof(e2fsb) |
|
|
&& e2fsb.s_magic[0] + (e2fsb.s_magic[1]<<8) == EXT2_SUPER_MAGIC) { |
|
|
&& e2fsb.s_magic[0] + (e2fsb.s_magic[1]<<8) == EXT2_SUPER_MAGIC) { |
|
|
label = e2fsb.s_volume_name; |
|
|
label = e2fsb.s_volume_name; |
|
|
@@ -692,7 +689,7 @@ |
|
|
|
|
|
|
|
|
@@ -659,7 +656,7 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
offset = (p_info[i].first_sector + p_info[i].offset) * SECTOR_SIZE + 0; |
|
|
offset = (p_info[i].first_sector + p_info[i].offset) * SECTOR_SIZE + 0; |
|
@ -88,7 +69,7 @@ diff -Naur util-linux-2.12.orig/fdisk/cfdisk.c util-linux-2.12/fdisk/cfdisk.c |
|
|
&& read(fd, &xfsb, sizeof(xfsb)) == sizeof(xfsb) |
|
|
&& read(fd, &xfsb, sizeof(xfsb)) == sizeof(xfsb) |
|
|
&& !strcmp(xfsb.s_magic, XFS_SUPER_MAGIC)) { |
|
|
&& !strcmp(xfsb.s_magic, XFS_SUPER_MAGIC)) { |
|
|
label = xfsb.s_fname; |
|
|
label = xfsb.s_fname; |
|
|
@@ -706,7 +703,7 @@ |
|
|
|
|
|
|
|
|
@@ -673,7 +670,7 @@ |
|
|
/* reiserfs? */ |
|
|
/* reiserfs? */ |
|
|
offset = (p_info[i].first_sector + p_info[i].offset) * SECTOR_SIZE |
|
|
offset = (p_info[i].first_sector + p_info[i].offset) * SECTOR_SIZE |
|
|
+ REISERFS_DISK_OFFSET_IN_BYTES; |
|
|
+ REISERFS_DISK_OFFSET_IN_BYTES; |
|
@ -97,10 +78,11 @@ diff -Naur util-linux-2.12.orig/fdisk/cfdisk.c util-linux-2.12/fdisk/cfdisk.c |
|
|
&& read(fd, &reiserfsb, 1024) == 1024 |
|
|
&& read(fd, &reiserfsb, 1024) == 1024 |
|
|
&& is_reiserfs_magic_string(&reiserfsb)) { |
|
|
&& is_reiserfs_magic_string(&reiserfsb)) { |
|
|
strncpy(p_info[i].fstype, "reiserfs", FSTYPESZ); |
|
|
strncpy(p_info[i].fstype, "reiserfs", FSTYPESZ); |
|
|
diff -Naur util-linux-2.12.orig/fdisk/fdiskbsdlabel.c util-linux-2.12/fdisk/fdiskbsdlabel.c |
|
|
|
|
|
--- util-linux-2.12.orig/fdisk/fdiskbsdlabel.c 2004-03-27 18:50:54.000000000 +0100 |
|
|
|
|
|
+++ util-linux-2.12/fdisk/fdiskbsdlabel.c 2004-03-27 18:36:51.000000000 +0100 |
|
|
|
|
|
@@ -574,7 +574,7 @@ |
|
|
|
|
|
|
|
|
Nur in util-linux-2.12h-patch/fdisk: cfdisk.c~. |
|
|
|
|
|
diff -dur util-linux-2.12h/fdisk/fdiskbsdlabel.c util-linux-2.12h-patch/fdisk/fdiskbsdlabel.c |
|
|
|
|
|
--- util-linux-2.12h/fdisk/fdiskbsdlabel.c 2003-07-13 21:12:47.000000000 +0000 |
|
|
|
|
|
+++ util-linux-2.12h-patch/fdisk/fdiskbsdlabel.c 2004-10-23 03:20:23.616040672 +0000 |
|
|
|
|
|
@@ -566,7 +566,7 @@ |
|
|
sector = get_start_sect(xbsd_part); |
|
|
sector = get_start_sect(xbsd_part); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
@ -109,7 +91,7 @@ diff -Naur util-linux-2.12.orig/fdisk/fdiskbsdlabel.c util-linux-2.12/fdisk/fdis |
|
|
fatal (unable_to_seek); |
|
|
fatal (unable_to_seek); |
|
|
if (BSD_BBSIZE != write (fd, disklabelbuffer, BSD_BBSIZE)) |
|
|
if (BSD_BBSIZE != write (fd, disklabelbuffer, BSD_BBSIZE)) |
|
|
fatal (unable_to_write); |
|
|
fatal (unable_to_write); |
|
|
@@ -745,7 +745,7 @@ |
|
|
|
|
|
|
|
|
@@ -735,7 +735,7 @@ |
|
|
sector = 0; |
|
|
sector = 0; |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
@ -118,7 +100,7 @@ diff -Naur util-linux-2.12.orig/fdisk/fdiskbsdlabel.c util-linux-2.12/fdisk/fdis |
|
|
fatal (unable_to_seek); |
|
|
fatal (unable_to_seek); |
|
|
if (BSD_BBSIZE != read (fd, disklabelbuffer, BSD_BBSIZE)) |
|
|
if (BSD_BBSIZE != read (fd, disklabelbuffer, BSD_BBSIZE)) |
|
|
fatal (unable_to_read); |
|
|
fatal (unable_to_read); |
|
|
@@ -791,12 +791,12 @@ |
|
|
|
|
|
|
|
|
@@ -781,12 +781,12 @@ |
|
|
|
|
|
|
|
|
#if defined (__alpha__) && BSD_LABELSECTOR == 0 |
|
|
#if defined (__alpha__) && BSD_LABELSECTOR == 0 |
|
|
alpha_bootblock_checksum (disklabelbuffer); |
|
|
alpha_bootblock_checksum (disklabelbuffer); |
|
@ -133,10 +115,11 @@ diff -Naur util-linux-2.12.orig/fdisk/fdiskbsdlabel.c util-linux-2.12/fdisk/fdis |
|
|
SEEK_SET) == -1) |
|
|
SEEK_SET) == -1) |
|
|
fatal (unable_to_seek); |
|
|
fatal (unable_to_seek); |
|
|
if (sizeof (struct xbsd_disklabel) != write (fd, d, sizeof (struct xbsd_disklabel))) |
|
|
if (sizeof (struct xbsd_disklabel) != write (fd, d, sizeof (struct xbsd_disklabel))) |
|
|
diff -Naur util-linux-2.12.orig/fdisk/fdisk.c util-linux-2.12/fdisk/fdisk.c |
|
|
|
|
|
--- util-linux-2.12.orig/fdisk/fdisk.c 2004-03-27 18:50:54.000000000 +0100 |
|
|
|
|
|
+++ util-linux-2.12/fdisk/fdisk.c 2004-03-27 18:35:42.000000000 +0100 |
|
|
|
|
|
@@ -241,7 +241,7 @@ |
|
|
|
|
|
|
|
|
Nur in util-linux-2.12h-patch/fdisk: fdiskbsdlabel.c~. |
|
|
|
|
|
diff -dur util-linux-2.12h/fdisk/fdisk.c util-linux-2.12h-patch/fdisk/fdisk.c |
|
|
|
|
|
--- util-linux-2.12h/fdisk/fdisk.c 2004-09-06 20:36:16.000000000 +0000 |
|
|
|
|
|
+++ util-linux-2.12h-patch/fdisk/fdisk.c 2004-10-23 03:20:23.619040216 +0000 |
|
|
|
|
|
@@ -240,7 +240,7 @@ |
|
|
static void |
|
|
static void |
|
|
seek_sector(int fd, unsigned int secno) { |
|
|
seek_sector(int fd, unsigned int secno) { |
|
|
long long offset = (long long) secno * sector_size; |
|
|
long long offset = (long long) secno * sector_size; |
|
@ -145,10 +128,11 @@ diff -Naur util-linux-2.12.orig/fdisk/fdisk.c util-linux-2.12/fdisk/fdisk.c |
|
|
fatal(unable_to_seek); |
|
|
fatal(unable_to_seek); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
diff -Naur util-linux-2.12.orig/fdisk/fdisksgilabel.c util-linux-2.12/fdisk/fdisksgilabel.c |
|
|
|
|
|
--- util-linux-2.12.orig/fdisk/fdisksgilabel.c 2004-03-27 18:50:54.000000000 +0100 |
|
|
|
|
|
+++ util-linux-2.12/fdisk/fdisksgilabel.c 2004-03-27 18:37:17.000000000 +0100 |
|
|
|
|
|
@@ -379,7 +379,7 @@ |
|
|
|
|
|
|
|
|
Nur in util-linux-2.12h-patch/fdisk: fdisk.c~. |
|
|
|
|
|
diff -dur util-linux-2.12h/fdisk/fdisksgilabel.c util-linux-2.12h-patch/fdisk/fdisksgilabel.c |
|
|
|
|
|
--- util-linux-2.12h/fdisk/fdisksgilabel.c 2004-09-06 20:44:56.000000000 +0000 |
|
|
|
|
|
+++ util-linux-2.12h-patch/fdisk/fdisksgilabel.c 2004-10-23 03:20:23.620040064 +0000 |
|
|
|
|
|
@@ -377,7 +377,7 @@ |
|
|
*/ |
|
|
*/ |
|
|
sgiinfo *info = fill_sgiinfo(); |
|
|
sgiinfo *info = fill_sgiinfo(); |
|
|
int infostartblock = SSWAP32(sgilabel->directory[0].vol_file_start); |
|
|
int infostartblock = SSWAP32(sgilabel->directory[0].vol_file_start); |
|
@ -157,139 +141,17 @@ diff -Naur util-linux-2.12.orig/fdisk/fdisksgilabel.c util-linux-2.12/fdisk/fdis |
|
|
SECTOR_SIZE, SEEK_SET) < 0) |
|
|
SECTOR_SIZE, SEEK_SET) < 0) |
|
|
fatal(unable_to_seek); |
|
|
fatal(unable_to_seek); |
|
|
if (write(fd, info, SECTOR_SIZE) != SECTOR_SIZE) |
|
|
if (write(fd, info, SECTOR_SIZE) != SECTOR_SIZE) |
|
|
diff -Naur util-linux-2.12.orig/fdisk/llseek.c util-linux-2.12/fdisk/llseek.c |
|
|
|
|
|
--- util-linux-2.12.orig/fdisk/llseek.c 2003-07-13 20:30:27.000000000 +0200 |
|
|
|
|
|
+++ util-linux-2.12/fdisk/llseek.c 1970-01-01 01:00:00.000000000 +0100 |
|
|
|
|
|
@@ -1,110 +0,0 @@ |
|
|
|
|
|
-/* |
|
|
|
|
|
- * llseek.c -- stub calling the llseek system call |
|
|
|
|
|
- * |
|
|
|
|
|
- * Copyright (C) 1994 Remy Card. This file may be redistributed |
|
|
|
|
|
- * under the terms of the GNU Public License. |
|
|
|
|
|
- */ |
|
|
|
|
|
- |
|
|
|
|
|
-#include <sys/types.h> |
|
|
|
|
|
- |
|
|
|
|
|
-#include <errno.h> |
|
|
|
|
|
-#include <unistd.h> |
|
|
|
|
|
- |
|
|
|
|
|
-extern long long ext2_llseek (unsigned int, long long, unsigned int); |
|
|
|
|
|
- |
|
|
|
|
|
-#ifdef __linux__ |
|
|
|
|
|
- |
|
|
|
|
|
-#ifdef HAVE_LLSEEK |
|
|
|
|
|
-#include <syscall.h> |
|
|
|
|
|
- |
|
|
|
|
|
-#else /* HAVE_LLSEEK */ |
|
|
|
|
|
- |
|
|
|
|
|
-#if defined(__alpha__) || defined(__ia64__) || defined(__s390x__) |
|
|
|
|
|
- |
|
|
|
|
|
-#define my_llseek lseek |
|
|
|
|
|
- |
|
|
|
|
|
-#else |
|
|
|
|
|
-#include <linux/unistd.h> /* for __NR__llseek */ |
|
|
|
|
|
- |
|
|
|
|
|
-static int _llseek (unsigned int, unsigned long, |
|
|
|
|
|
- unsigned long, long long *, unsigned int); |
|
|
|
|
|
- |
|
|
|
|
|
-#ifdef __NR__llseek |
|
|
|
|
|
- |
|
|
|
|
|
-static _syscall5(int,_llseek,unsigned int,fd,unsigned long,offset_high, |
|
|
|
|
|
- unsigned long, offset_low,long long *,result, |
|
|
|
|
|
- unsigned int, origin) |
|
|
|
|
|
- |
|
|
|
|
|
-#else |
|
|
|
|
|
- |
|
|
|
|
|
-/* no __NR__llseek on compilation machine - might give it explicitly */ |
|
|
|
|
|
-static int _llseek (unsigned int fd, unsigned long oh, |
|
|
|
|
|
- unsigned long ol, long long *result, |
|
|
|
|
|
- unsigned int origin) { |
|
|
|
|
|
- errno = ENOSYS; |
|
|
|
|
|
- return -1; |
|
|
|
|
|
-} |
|
|
|
|
|
- |
|
|
|
|
|
-#endif |
|
|
|
|
|
- |
|
|
|
|
|
-static long long my_llseek (unsigned int fd, long long offset, |
|
|
|
|
|
- unsigned int origin) |
|
|
|
|
|
-{ |
|
|
|
|
|
- long long result; |
|
|
|
|
|
- int retval; |
|
|
|
|
|
- |
|
|
|
|
|
- retval = _llseek (fd, ((unsigned long long) offset) >> 32, |
|
|
|
|
|
- ((unsigned long long) offset) & 0xffffffff, |
|
|
|
|
|
- &result, origin); |
|
|
|
|
|
- return (retval == -1 ? (long long) retval : result); |
|
|
|
|
|
-} |
|
|
|
|
|
- |
|
|
|
|
|
-#endif /* __alpha__ */ |
|
|
|
|
|
- |
|
|
|
|
|
-#endif /* HAVE_LLSEEK */ |
|
|
|
|
|
- |
|
|
|
|
|
-long long ext2_llseek (unsigned int fd, long long offset, |
|
|
|
|
|
- unsigned int origin) |
|
|
|
|
|
-{ |
|
|
|
|
|
- long long result; |
|
|
|
|
|
- static int do_compat = 0; |
|
|
|
|
|
- |
|
|
|
|
|
- if (!do_compat) { |
|
|
|
|
|
- result = my_llseek (fd, offset, origin); |
|
|
|
|
|
- if (!(result == -1 && errno == ENOSYS)) |
|
|
|
|
|
- return result; |
|
|
|
|
|
- |
|
|
|
|
|
- /* |
|
|
|
|
|
- * Just in case this code runs on top of an old kernel |
|
|
|
|
|
- * which does not support the llseek system call |
|
|
|
|
|
- */ |
|
|
|
|
|
- do_compat = 1; |
|
|
|
|
|
- /* |
|
|
|
|
|
- * Now try ordinary lseek. |
|
|
|
|
|
- */ |
|
|
|
|
|
- } |
|
|
|
|
|
- |
|
|
|
|
|
- if ((sizeof(off_t) >= sizeof(long long)) || |
|
|
|
|
|
- (offset < ((long long) 1 << ((sizeof(off_t)*8) -1)))) |
|
|
|
|
|
- return lseek(fd, (off_t) offset, origin); |
|
|
|
|
|
- |
|
|
|
|
|
- errno = EINVAL; |
|
|
|
|
|
- return -1; |
|
|
|
|
|
-} |
|
|
|
|
|
- |
|
|
|
|
|
-#else /* !linux */ |
|
|
|
|
|
- |
|
|
|
|
|
-long long ext2_llseek (unsigned int fd, long long offset, |
|
|
|
|
|
- unsigned int origin) |
|
|
|
|
|
-{ |
|
|
|
|
|
- if ((sizeof(off_t) < sizeof(long long)) && |
|
|
|
|
|
- (offset >= ((long long) 1 << ((sizeof(off_t)*8) -1)))) { |
|
|
|
|
|
- errno = EINVAL; |
|
|
|
|
|
- return -1; |
|
|
|
|
|
- } |
|
|
|
|
|
- return lseek (fd, (off_t) offset, origin); |
|
|
|
|
|
-} |
|
|
|
|
|
- |
|
|
|
|
|
-#endif /* linux */ |
|
|
|
|
|
- |
|
|
|
|
|
- |
|
|
|
|
|
diff -Naur util-linux-2.12.orig/po/POTFILES.in util-linux-2.12/po/POTFILES.in |
|
|
|
|
|
--- util-linux-2.12.orig/po/POTFILES.in 2003-07-05 22:19:45.000000000 +0200 |
|
|
|
|
|
+++ util-linux-2.12/po/POTFILES.in 2004-03-27 18:46:42.000000000 +0100 |
|
|
|
|
|
@@ -18,7 +18,6 @@ |
|
|
|
|
|
fdisk/fdisksgilabel.c |
|
|
|
|
|
fdisk/fdisksunlabel.c |
|
|
|
|
|
fdisk/i386_sys_types.c |
|
|
|
|
|
-fdisk/llseek.c |
|
|
|
|
|
fdisk/partname.c |
|
|
|
|
|
fdisk/sfdisk.c |
|
|
|
|
|
getopt/getopt.c |
|
|
|
|
|
--- ./fdisk/Makefile.orig 2004-08-22 09:30:42.000000000 -0500 |
|
|
|
|
|
+++ ./fdisk/Makefile 2004-08-22 09:30:55.000000000 -0500 |
|
|
|
|
|
|
|
|
Nur in util-linux-2.12h-patch/fdisk: fdisksgilabel.c~. |
|
|
|
|
|
Nur in util-linux-2.12h/fdisk: llseek.c. |
|
|
|
|
|
diff -dur util-linux-2.12h/fdisk/Makefile util-linux-2.12h-patch/fdisk/Makefile |
|
|
|
|
|
--- util-linux-2.12h/fdisk/Makefile 2004-09-06 20:28:58.000000000 +0000 |
|
|
|
|
|
+++ util-linux-2.12h-patch/fdisk/Makefile 2004-10-23 03:21:43.351918976 +0000 |
|
|
@@ -39,7 +39,7 @@ |
|
|
@@ -39,7 +39,7 @@ |
|
|
endif |
|
|
endif |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
-cfdisk: cfdisk.o llseek.o i386_sys_types.o $(LIB)/xstrncpy.o |
|
|
|
|
|
+cfdisk: cfdisk.o i386_sys_types.o $(LIB)/xstrncpy.o |
|
|
|
|
|
|
|
|
-cfdisk: cfdisk.o llseek.o disksize.o i386_sys_types.o $(LIB)/xstrncpy.o |
|
|
|
|
|
+cfdisk: cfdisk.o disksize.o i386_sys_types.o $(LIB)/xstrncpy.o |
|
|
ifeq "$(HAVE_SLANG)" "yes" |
|
|
ifeq "$(HAVE_SLANG)" "yes" |
|
|
$(CC) $(LDFLAGS) $^ -o $@ $(LIBSLANG) |
|
|
$(CC) $(LDFLAGS) $^ -o $@ $(LIBSLANG) |
|
|
else |
|
|
else |
|
@ -297,14 +159,17 @@ diff -Naur util-linux-2.12.orig/po/POTFILES.in util-linux-2.12/po/POTFILES.in |
|
|
rm -f activate |
|
|
rm -f activate |
|
|
ln -s sfdisk activate |
|
|
ln -s sfdisk activate |
|
|
|
|
|
|
|
|
-fdisk: fdisk.o llseek.o fdiskbsdlabel.o fdisksgilabel.o fdisksunlabel.o \ |
|
|
|
|
|
+fdisk: fdisk.o fdiskbsdlabel.o fdisksgilabel.o fdisksunlabel.o \ |
|
|
|
|
|
fdiskaixlabel.o i386_sys_types.o partname.o |
|
|
|
|
|
|
|
|
-fdisk: fdisk.o llseek.o disksize.o fdiskbsdlabel.o fdisksgilabel.o \ |
|
|
|
|
|
+fdisk: fdisk.o disksize.o fdiskbsdlabel.o fdisksgilabel.o \ |
|
|
|
|
|
fdisksunlabel.o fdiskaixlabel.o i386_sys_types.o partname.o |
|
|
fdisk.o: fdisk.c fdisk.h |
|
|
fdisk.o: fdisk.c fdisk.h |
|
|
fdiskbsdlabel.o: fdiskbsdlabel.c fdisk.h fdiskbsdlabel.h |
|
|
fdiskbsdlabel.o: fdiskbsdlabel.c fdisk.h fdiskbsdlabel.h |
|
|
--- ./fdisk/sfdisk.c.orig 2004-08-22 09:34:01.000000000 -0500 |
|
|
|
|
|
+++ ./fdisk/sfdisk.c 2004-08-22 09:36:31.000000000 -0500 |
|
|
|
|
|
@@ -123,30 +123,18 @@ |
|
|
|
|
|
|
|
|
Nur in util-linux-2.12h-patch/fdisk: Makefile~. |
|
|
|
|
|
Nur in util-linux-2.12h-patch/fdisk: Makefile.rej. |
|
|
|
|
|
diff -dur util-linux-2.12h/fdisk/sfdisk.c util-linux-2.12h-patch/fdisk/sfdisk.c |
|
|
|
|
|
--- util-linux-2.12h/fdisk/sfdisk.c 2004-09-28 17:10:21.000000000 +0000 |
|
|
|
|
|
+++ util-linux-2.12h-patch/fdisk/sfdisk.c 2004-10-23 03:27:03.788205256 +0000 |
|
|
|
|
|
@@ -148,10 +148,7 @@ |
|
|
/* |
|
|
/* |
|
|
* sseek: seek to specified sector - return 0 on failure |
|
|
* sseek: seek to specified sector - return 0 on failure |
|
|
* |
|
|
* |
|
@ -316,11 +181,14 @@ diff -Naur util-linux-2.12.orig/po/POTFILES.in util-linux-2.12/po/POTFILES.in |
|
|
* |
|
|
* |
|
|
* Note: we use 512-byte sectors here, irrespective of the hardware ss. |
|
|
* Note: we use 512-byte sectors here, irrespective of the hardware ss. |
|
|
*/ |
|
|
*/ |
|
|
-#if !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) && !defined (__s390x__) |
|
|
|
|
|
-static |
|
|
|
|
|
|
|
|
@@ -161,22 +158,15 @@ |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifndef use_lseek |
|
|
|
|
|
-static __attribute__used |
|
|
-_syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo, |
|
|
-_syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo, |
|
|
- loff_t *, res, unsigned int, wh); |
|
|
- loff_t *, res, unsigned int, wh); |
|
|
-#endif |
|
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
static int |
|
|
static int |
|
|
sseek(char *dev, unsigned int fd, unsigned long s) { |
|
|
sseek(char *dev, unsigned int fd, unsigned long s) { |
|
@ -330,7 +198,7 @@ diff -Naur util-linux-2.12.orig/po/POTFILES.in util-linux-2.12/po/POTFILES.in |
|
|
+ in = ((off_t) s << 9); |
|
|
+ in = ((off_t) s << 9); |
|
|
out = 1; |
|
|
out = 1; |
|
|
|
|
|
|
|
|
-#if !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) && !defined (__s390x__) |
|
|
|
|
|
|
|
|
-#ifndef use_lseek |
|
|
- if (_llseek (fd, in>>32, in & 0xffffffff, &out, SEEK_SET) != 0) { |
|
|
- if (_llseek (fd, in>>32, in & 0xffffffff, &out, SEEK_SET) != 0) { |
|
|
-#else |
|
|
-#else |
|
|
if ((out = lseek(fd, in, SEEK_SET)) != in) { |
|
|
if ((out = lseek(fd, in, SEEK_SET)) != in) { |
|
@ -338,9 +206,14 @@ diff -Naur util-linux-2.12.orig/po/POTFILES.in util-linux-2.12/po/POTFILES.in |
|
|
perror("llseek"); |
|
|
perror("llseek"); |
|
|
error(_("seek error on %s - cannot seek to %lu\n"), dev, s); |
|
|
error(_("seek error on %s - cannot seek to %lu\n"), dev, s); |
|
|
return 0; |
|
|
return 0; |
|
|
--- ./partx/partx.c.orig 2004-08-23 06:23:31.000000000 -0500 |
|
|
|
|
|
+++ ./partx/partx.c 2004-08-23 06:26:36.000000000 -0500 |
|
|
|
|
|
@@ -333,30 +333,16 @@ |
|
|
|
|
|
|
|
|
Nur in util-linux-2.12h-patch/fdisk: sfdisk.c~. |
|
|
|
|
|
Nur in util-linux-2.12h-patch/fdisk: sfdisk.c.rej. |
|
|
|
|
|
Nur in util-linux-2.12h-patch/: MCONFIG~. |
|
|
|
|
|
Nur in util-linux-2.12h-patch/mount: mount.c~. |
|
|
|
|
|
diff -dur util-linux-2.12h/partx/partx.c util-linux-2.12h-patch/partx/partx.c |
|
|
|
|
|
--- util-linux-2.12h/partx/partx.c 2004-08-23 20:13:27.000000000 +0000 |
|
|
|
|
|
+++ util-linux-2.12h-patch/partx/partx.c 2004-10-23 03:20:23.628038848 +0000 |
|
|
|
|
|
@@ -332,30 +332,16 @@ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* sseek: seek to specified sector |
|
|
* sseek: seek to specified sector |
|
@ -375,3 +248,16 @@ diff -Naur util-linux-2.12.orig/po/POTFILES.in util-linux-2.12/po/POTFILES.in |
|
|
{ |
|
|
{ |
|
|
fprintf(stderr, "llseek error\n"); |
|
|
fprintf(stderr, "llseek error\n"); |
|
|
return -1; |
|
|
return -1; |
|
|
|
|
|
Nur in util-linux-2.12h-patch/partx: partx.c~. |
|
|
|
|
|
diff -dur util-linux-2.12h/po/POTFILES.in util-linux-2.12h-patch/po/POTFILES.in |
|
|
|
|
|
--- util-linux-2.12h/po/POTFILES.in 2004-09-07 01:02:39.000000000 +0000 |
|
|
|
|
|
+++ util-linux-2.12h-patch/po/POTFILES.in 2004-10-23 03:20:23.622039760 +0000 |
|
|
|
|
|
@@ -19,7 +19,6 @@ |
|
|
|
|
|
fdisk/fdisksgilabel.c |
|
|
|
|
|
fdisk/fdisksunlabel.c |
|
|
|
|
|
fdisk/i386_sys_types.c |
|
|
|
|
|
-fdisk/llseek.c |
|
|
|
|
|
fdisk/partname.c |
|
|
|
|
|
fdisk/sfdisk.c |
|
|
|
|
|
getopt/getopt.c |
|
|
|
|
|
Nur in util-linux-2.12h-patch/po: POTFILES.in~. |