Commit Graph

34594 Commits

Author SHA1 Message Date
Ingo Weinhold
63fe660c1b * Replaced a few hardcoded partitioning/file system type names by the
respective constants.
* compare_image_boot(): Compare volume names case insensitively.
* DiskBootMethod::IsBootDevice(): For BOOT_METHOD_CD only accept devices with
  removable media.
* DiskBootMethod::IsBootPartition(): Added special recognition for anyboot
  CDs. Since their partition types aren't kPartitionTypeDataSession,
  compare_cd_boot() didn't prefer them and it was more or less random whether
  it was chosen when other Haiku installations where available. Moreover
  selecting the CD in the boot loader menu would cause the kernel not to find
  it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36403 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 18:00:23 +00:00
Stephan Aßmus
665c794f1d Patch by Wim: The resulting expression string is now fit to the current width
of the window. Insignificant digits are truncated from the end. DeskCalc may
also switch to scientific notation if there is not enough room left.

Thanks a lot! Fixes ticket #5203.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 17:20:29 +00:00
Stephan Aßmus
d7fcb36f2b * Allow to set the scale (versus multiplication with a scale).
* Added commented versions for translation, rotation and shear, which would
   work similar.
 * Added B_AFFINE_IDENTITY_TRANSFORM constant similar to B_ORIGIN.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 16:46:32 +00:00
Axel Dörfler
b19e758b80 * The Keymap::IsDeadKey() of the Keymap preferences which was the main source
of BKeymap was not compatible with IsDeadKey() of the other Keymap
  incarnations.
* Now, I've renamed IsDeadKey() to DeadKey(), and introduced a new
  ActiveDeadKey() method that works like the other former IsDeadKey().
* This fixes the dead key problems my earlier BKeymap work introduced.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 16:36:54 +00:00
Matt Madia
0e3ac47627 Added '-s', which shows the final list of packages that would be installed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 15:51:17 +00:00
Matt Madia
c333e7dff6 Removed stray echo statement, which was for development purposes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 15:26:41 +00:00
Matt Madia
04f32da88a Added support for installoptionalpackage [<pkg> [<pkg> ...]]. Updated Usage.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36397 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 15:18:47 +00:00
Axel Dörfler
a444274016 * Fixed regression I introduced in r36391. Thanks for proof-reading, Stippi!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 14:39:29 +00:00
Matt Madia
bab27a1b73 Added support for '-f' in installoptionalpackage, which removes cached data
before displaying the available optional packages that can be installed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36395 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 14:07:19 +00:00
Ingo Weinhold
04b174ca25 * Moved IOCallback class into separate source file.
* Moved IOScheduler::_IOCallbackWrapper() to IOCallback::WrapperFunction().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 11:20:07 +00:00
Clemens Zeidler
66f1ecdae7 Start to cleanup radeon_hd driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 10:03:01 +00:00
Axel Dörfler
eb74edd08b * When toggling playing, we need to check whether there is a valid current
playlist item - only if there is one, the controller handles this, otherwise
  we start the playlist again from start.
* This fixes bug #5568.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 09:56:00 +00:00
Axel Dörfler
d75c9c3da5 * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 08:58:18 +00:00
Axel Dörfler
5292aff148 * Reverted the BTextView part of r35731 again - turns out this usually doesn't
do what one would want. This closes ticket #5671.
* I'm not sure if we want to resurrect the pose view part of r35731 again; it
  adds bitmap and text clips to dragged files. At least the bitmap change was
  unrelated, but I'm a bit torn if that is the way this should be handled.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 08:01:09 +00:00
Axel Dörfler
33da1e6516 * Cleaned up MouseDown(), and fixed crash #5121 based on a patch by DarkWyrm,
thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 07:46:12 +00:00
Matt Madia
d6e973e978 Adds XZ-Utils to alpha-* and nightly-*. Added some comments.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 21:18:16 +00:00
Matt Madia
331e12509f Axel changed the HAIKU_ADD_ALTERNATIVE_GCC_LIBS semantics.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 19:53:31 +00:00
Ingo Weinhold
51355c1037 Axel changed the HAIKU_ADD_ALTERNATIVE_GCC_LIBS semantics. Init to 0.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 19:27:58 +00:00
Ingo Weinhold
138f5fb42a Just check which's return value -- no need for test and output capturing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 19:01:53 +00:00
Ingo Weinhold
b6c7c42861 Burn the witches.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 18:55:04 +00:00
Axel Dörfler
2cb706444f * Check HAIKU_ADD_ALTERNATIVE_GCC_LIBS against 1 to allow a setting of 0 to
work as usual.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 18:44:54 +00:00
Ingo Weinhold
089cfbf774 Updated required legacy gcc version.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 18:19:37 +00:00
Ingo Weinhold
b26135a454 Merged r36378 from r1alpha2 branch back into trunk.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 18:16:07 +00:00
Jérôme Duval
8fbb8bd5b6 fixes r36356, *only* when times is NULL, both the access and modification timestamps should be set. Thanks to Ingo for reviewing!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 17:23:57 +00:00
Axel Dörfler
a41cc8a74b * Fixed build on the Haiku platform.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 16:18:39 +00:00
Ingo Weinhold
6e83a6fac9 * VMCache::Resize(): Corrected TODO comment.
* Changed the semantics of VMCache::HasPage(). It was interpreted
  inconsistently by the derived classes. Now it returns whether the backing
  store can provide the page (via Read()). The default implementation returns
  false. VNodeCache::HasPage() only returns true, if the given offset is
  within the cache (i.e. file) bounds. This prevents vm_soft_fault() from
  adding clean pages to vnode caches on faults beyond the file bounds.
  Probably fixes #5473 -- at least mmap_resize_test behaves correctly, now.
* Removed redundant HasPage() and Fault() overrides in VMCache derived
  classes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 15:10:09 +00:00
Ingo Weinhold
efeca209a1 Made VMCache::Resize() virtual and let VMAnonymousCache override it to free
swap space when the cache shrinks. Currently the implementation stil leaks
swap space of busy pages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 14:04:18 +00:00
Ingo Weinhold
ba16e4ec61 cut_area(): We should only resize RAM caches.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 13:56:45 +00:00
Axel Dörfler
a3b42949e5 * Fixed sub-directory mix-up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 13:11:24 +00:00
Axel Dörfler
4dfce2e401 * We cannot include the SystemKeymap.h with the tool that is supposed to
generate it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 12:38:41 +00:00
Stefano Ceccherini
76d5e0641b Partially revert r35962, since the cure is worse than the sickness.
Should fix #5717 (but probably reopens #3103)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 12:37:08 +00:00
Axel Dörfler
910f10f2fc * Added libshared_build.a, currently only contains Keymap.cpp.
* keymap and <build>keymap are now using the BKeymap class as a base as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 08:17:07 +00:00
Axel Dörfler
624693f0c8 * Added the BFileIO class to libbe_build.so.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 08:13:57 +00:00
Axel Dörfler
697e17ffcd * The scroll_lock also counts as a modifier; this was obviously not present
in all Keymap variations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 07:49:24 +00:00
Matt Madia
99265bcd8b Add support for realpath in build_haiku_image.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 03:36:06 +00:00
Matt Madia
b29b48b116 A further refinement to support realpath when available.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 03:16:36 +00:00
Matt Madia
b4b6d83c5a Reworks 36361 to not assume that greadlink is installed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 02:36:56 +00:00
Matt Madia
7fe2e06cfd Replaced '&> /dev/null' with '> /dev/null 2>&1'.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 02:18:54 +00:00
François Revol
ff3c7b9645 Use greadlink when found, as the BSD readlink has no clue about the -e option.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 23:41:59 +00:00
Ingo Weinhold
1c1d16b344 Adjusted indentation. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 20:41:05 +00:00
Ingo Weinhold
fba84f08b8 Small test program that shows Haiku doesn't deal correctly with resizing
mmap()ed files. Also reproduces #5473.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 20:15:32 +00:00
Jérôme Duval
17aad616d2 Patch from Janito Ferreira Filho (bug #5706): limit the Inode ID to the maximum number of Inodes. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 19:04:40 +00:00
Oliver Tappe
71609f7e46 applied a hint given from Ingo during BeGeistert:
* use dlopen() instead of load_add_on() when loading liblocale.so from 
  libbe.so, as otherwise the library could end up in the image more than once.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 17:27:03 +00:00
Jérôme Duval
1276d52122 * fixed utimensat() when times is NULL, both the access and modification timestamps should be set (bug #5759).
* the meaning of AT_SYMLINK_NOFOLLOW was also reversed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 17:12:44 +00:00
Ingo Weinhold
3f9f9f9aee * Resolve symlinks to the standard libraries as suggested by Andreas Faerber.
Fixes #5744.
* Removed commented obsolete code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 16:29:23 +00:00
Ingo Weinhold
43f42779be Reverted the work-around introduced in r35619. It actually is harmful, since
it introduces cyclic dependencies. The .c files generated from the .def files
include builtext.h, which is built together with builtins.c. So builtins.c
can't depend on the generated .c files. Fixes #5750 for good.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 15:23:51 +00:00
Ingo Weinhold
d78426257a Use SPINLOCK_PAUSE() in the pthread_spin_lock() loop.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 14:17:17 +00:00
Ingo Weinhold
45b01eb841 Added private system arch specific arch_cpu_defs.h header, currently defining
only a SPINLOCK_PAUSE() macro.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 14:16:48 +00:00
Ingo Weinhold
2f1e62186e mkbuiltins.c does not include builtext.h, it generates it. Resolves a cyclic
dependency that caused unnecessary bash rebuilds (#5750).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 13:39:14 +00:00
Ingo Weinhold
7f646d6952 parse.y includes builtext.h as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 13:37:38 +00:00