98ae2160b6
fdisk: separate sun/aix/etc code into #included files
2006-10-12 19:30:44 +00:00
1385899416
attempt to regularize atoi mess.
2006-10-08 12:49:22 +00:00
9275814a9e
lots of silly indent fixes
2006-10-03 19:56:34 +00:00
9213a9e0f2
whitespace cleanup
2006-09-17 16:28:10 +00:00
88621d7398
Svn 16007 broke the build under gcc 4.0.3. This fixes up some of the damage
...
(the e2fsprogs directory is too twisty and evil to easily fix, but I plan
to rewrite it anyway so I'll just bump that up in priority a bit).
2006-08-29 19:41:06 +00:00
081e38483e
Remove xcalloc() and convert its callers to xzalloc(). About half of them
...
were using "1" as one of the arguments anyway, and as for the rest a multiply
and a push isn't noticeably bigger than pushing two arguments on the stack.
2006-08-03 20:07:35 +00:00
63fc1a9e08
Standardize on the vi editing directives being on the first line.
2006-07-02 19:47:05 +00:00
53f21e34a7
Remove "#if 0" content.
2006-07-01 14:34:33 +00:00
c340ea191a
fix from Kolbjørn Barmen for building for m68k targets
2006-06-30 02:53:56 +00:00
11c7a7bed6
Various cleanups I made while going through Erik Hovland's patch submissions,
...
some of which are even from him. :)
2006-06-25 22:39:24 +00:00
22d26fc6ae
Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot of
...
fallout due to the #include <sys/mount.h>. Removed that #include from various
applets and fixed up those that were unhappy when that #include was made
because they'd block copied stuff out of it. (Sigh.)
2006-06-15 15:49:36 +00:00
18958e9309
Random cleanup of platform.h.
2006-06-13 18:28:33 +00:00
15d20a03d6
Remove _() and N_() from platform.h. #define them as NOP macros in the two
...
files still using them. I didn't remove them from e2fsck.c to avoid stomping
pending cleanup patches from Garrett, and I didn't bother to remove them from
fdisk.c because that entire file needs to be rewritten from scratch.
2006-05-29 05:00:44 +00:00
fa6c4844b2
fix spelling mistakes
2006-05-26 01:48:17 +00:00
2c39eee805
Migrate endianness macros.
2006-05-05 16:54:40 +00:00
1a54030445
use memmove() instead of bcopy()
2006-04-16 05:58:21 +00:00
983e0ca89e
strip out unneeded comments
2006-02-25 07:42:02 +00:00
5c06b277ce
fdisk unmaintained now :(
2006-02-25 07:20:15 +00:00
5527b9117e
Another clean-up patch from Garrett.
2006-02-25 03:46:10 +00:00
736e52532e
Minor cleanup from Garrett Kajmowicz.
2006-02-25 03:36:00 +00:00
b73451daee
Cleanup from Denis Vlasenko.
2006-02-24 16:29:00 +00:00
ed7bb6278d
- put NLS stuff in one central place to avoid redefines.
...
Fixes warnings about:
fdisk.c:45:1: warning: "_" redefined
nfsmount.c:121:1: warning: "_" redefined
nfsmount.c:122:1: warning: "N_" redefined
interface.c:84:1: warning: "_" redefined
2006-02-23 14:25:15 +00:00
3038557649
- bzero -> memset
...
text data bss dec hex filename
1652855
14444 1215616 2882915 2bfd63 busybox.oorig.gcc-3.3
1652823 14444 1215616 2882883 2bfd43 busybox.gcc-3.3
1603655 14412 1215552 2833619 2b3cd3 busybox.oorig.gcc-3.4
1603655 14412 1215552 2833619 2b3cd3 busybox.gcc-3.4
1609755 14508 1215744 2840007 2b55c7 busybox.oorig.gcc-4.0
1609755 14508 1215744 2840007 2b55c7 busybox.gcc-4.0
1590495 13516 1215392 2819403 2b054b busybox.oorig.gcc-4.1-HEAD
1590495 13516 1215392 2819403 2b054b busybox.gcc-4.1-HEAD
1589079 13036 1213248 2815363 2af583 busybox.oorig.gcc-4.2-HEAD
1589079 13036 1213248 2815363 2af583 busybox.gcc-4.2-HEAD
2006-01-31 17:57:48 +00:00
9f4a1e1c75
- add and use ATTRIBUTE_ALIGNED(num_bytes)
...
- remove unused parameter pindex from fdisk.c, xbsd_initlabel()
2006-01-31 09:53:53 +00:00
3496fdc9a5
hopefully the last of the annoying signed/unsigned and mixed type errors
2006-01-30 23:09:20 +00:00
86f5c9906b
- add platform.h.
...
- use shorter boilerplate while at it.
2006-01-22 22:55:11 +00:00
a972c870a8
reduce signedness warning
2005-12-02 10:06:04 +00:00
65bb10f253
reduce bss
2005-11-24 12:10:13 +00:00
d926149d26
Avoid a number of places where large drives could wrap a uint, and
...
instead use off_t which will be automagically promoted to 64bit if
compiled with support for large drives.
-Erik
2004-06-28 23:50:31 +00:00
42f8883c71
Per suggestion from Bastian Blank, be less evil when we force fdisk to
...
transparently remap 32-bit interfaces to actually use 64 bit interfaces.
-Erik
2004-05-26 11:59:19 +00:00
84bdea8cb2
Erik,
...
>http://busybox.net/cgi-bin/cvsweb/busybox/util-linux/fdisk.c?r1=1.22&r2=1.23&diff_format=u
Its hack for "force" ;-)
If to return the previous version of a Config.in
http://busybox.net/cgi-bin/cvsweb/busybox/util-linux/Config.in?r1=1.12&r2=1.13
and to apply last patch, then I shall calm down. ;-)
(OOPS, last patch have autocorrected from my editor begins spaces to tabs and
removed spaces from empty lines too).
--w
vodz
2004-05-19 10:49:17 +00:00
256c4fd587
Make vodz happy and make fdisk always use large file support if
...
possible, even if LFS is not enabled for the rest of busybox.
-Erik
2004-05-19 09:00:00 +00:00
aff114c33d
Larry Doolittle writes:
...
This is a bulk spelling fix patch against busybox-1.00-pre10.
If anyone gets a corrupted copy (and cares), let me know and
I will make alternate arrangements.
Erik - please apply.
Authors - please check that I didn't corrupt any meaning.
Package importers - see if any of these changes should be
passed to the upstream authors.
I glossed over lots of sloppy capitalizations, missing apostrophes,
mixed American/British spellings, and German-style compound words.
What is "pretect redefined for test" in cmdedit.c?
Good luck on the 1.00 release!
- Larry
2004-04-14 17:51:38 +00:00
bbbbcfef24
Sigh. what a mess.
2004-03-30 09:33:18 +00:00
0a92f35702
As waldi noticed, checks for the size of an off_t and casting
...
etc was also redundant and possibly buggy...
2004-03-30 09:21:54 +00:00
1236631700
The fdisk llseek junk was redundant, since both uClibc and glibc
...
automatically promote lseek and friends to their 64 bit counterparts
when CONFIG_LFS is enabled, since it enables __USE_FILE_OFFSET64
2004-03-30 09:08:58 +00:00
c7bda1ce65
Remove trailing whitespace. Update copyright to include 2004.
2004-03-15 08:29:22 +00:00
7495b0d4b1
Eliminate use of a kernel scsi header file.
...
Prevent potentially misaligned accesses while indexing a pointer
to the partition table, which would be a bad thing on i.e. arm.
2004-02-06 05:26:58 +00:00
dfcb5b0412
s/u_int/uint/g
2004-01-30 22:54:20 +00:00
07d2f4052f
vodz noticed we need to cast things back to an unsigned long
...
or the syscall will not get the proper arguments.
2003-12-19 10:34:36 +00:00
d4f7a5edad
Be certain we use a correct entity when performing the
...
BLKGETSIZE64 ioctl -- don't just assume 8,
2003-12-12 19:05:15 +00:00
50547c0745
Do not use the _syscall5 macro -- use syscall(2) instead
2003-12-04 07:07:14 +00:00
e0c83af4ce
Marc Kleine-Budde noticed a missing semicolon
2003-11-14 02:40:08 +00:00
f6067beaa9
Avoid conflicts with the 2.6 kernel headers, which define
...
_IOR rather differently, thereby breaking the BLKGETSIZE64
ioctl.
-Erik
2003-11-03 08:59:51 +00:00
99a75d1376
Patch from Kent Robotti to being fdisk in sync with v2.12 final.
2003-08-08 20:04:56 +00:00
d3652bf334
Patch from vodz:
...
I wrote:
>>I think, fdisk have special ext2lseek special for:
>>disk can have size > 4Gb, but all any partitions have < 4Gb and lseek64
>>not require.
>>May be best create new configure option for set DOLFS for fdisk applet
>>if global DOLFS unset?
>
Erik Andersen wrote:
>Agreed. Using an extra configure option when ! DOLFS
>would be a good idea.
Ok. Patch attached.
2003-08-06 09:07:37 +00:00
040f440262
last_patch100 from vidz updating fdisk to 2.12pre
2003-07-30 08:40:37 +00:00
341170b012
Remove all the llseek junk and just use regular old lseek. When DOLFS is
...
enabled, regular lseek is transparently promoted to lseek64 anyways, rendering
the llseek stuff pointless.
-Erik
2003-07-14 19:03:14 +00:00
c48d49ad98
Patch from Kent Robotti updating fdisk to version v2.11z
2003-07-03 10:02:32 +00:00
cad5364599
Major coreutils update.
2003-03-19 09:13:01 +00:00