Commit Graph

37423 Commits

Author SHA1 Message Date
François Revol 193e56fbef Add mount() and unmount() BeOS compatibility calls. This should help to run some old apps like Helios...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 22:28:07 +00:00
Stefano Ceccherini 190806e61f Also check if there are active process when closing a tab.
This completes the work needed to close ticket #3745


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 20:49:39 +00:00
François Revol ceee0a32a4 Fix warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 20:39:48 +00:00
Michael Pfeiffer 442f4337c1 * Workaround for ticket #6794.
Libprint requires the horizontal and vertical resolution
  to be the same. For now use the maximum resolution when
  rendering the page bands.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 18:09:23 +00:00
Rene Gollent 7bab78133d Build fix, ShowImage now uses STL classes,
but wasn't specifying libstdc++ in the Jamfile.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 16:23:44 +00:00
Jérôme Duval 82b3bdd45c Stop the journal on Sync(), start the journal when a transaction is written. This helps with fs state on shutdown.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 14:29:15 +00:00
Ingo Weinhold e5d4255933 Init AtExitInfoBlock::fFirstUnused in the constructor. Probably fixes #6793.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 13:08:04 +00:00
Stephan Aßmus e6cb8eb4c6 * Reuse the check for changed location which decides whether
to Invoke() in MouseUp() in the code path for keyboard control.
   Should fix ticket #6792, but I have not actually tested it.
 * Don't post notification values in KeyDown() when the value did
   not change because it was constrained between min and max values.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 12:43:24 +00:00
Axel Dörfler 328932ac9e * Work in progress on implementing asynchronous image retrieval with a
read-ahead cache. Not yet done or used.
* Added deleting images via delete key again. The only difference to before is
  that it will open the previous image if the last image in a folder was
  removed, and only close ShowImage if there is no image left.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 12:17:49 +00:00
Stephan Aßmus fdca7b0ff3 Applied rest of kalibers patch from ticket #6349. The logging
function in the common accelerant code wasn't public in the first
place and the patch was a correction for r37670, sorry for
missing that. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 11:33:59 +00:00
Stephan Aßmus 4c9da6dc09 Applied patch by kaliber from ticket #6349. which fixes quite a
few warnings. Thanks! I did not apply the hunks about moving
a logging function in the common accelerant code to be static.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 10:17:41 +00:00
Michael Pfeiffer 6ddd8057e6 * Moved printer driver add-on loading and hook function
invocation code from class Printer into new class
  PrinterDriverAddOn.
  Refactored code a little bit.
* Removed duplicate code from class PrintServerApp
  and use methods from class Printer instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 10:17:13 +00:00
François Revol dfc8a217db Check for the unspecialized language code too when probing for a keymap. This way browsers reporting 'fr-fr' only will get fr keymap before other languages are tried.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 02:50:38 +00:00
Ingo Weinhold 3d64976518 The TRACE() macro is defined in runtime_loader_private.h.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 20:37:57 +00:00
Stephan Aßmus 08e6655afe Patch by kaliber (ticket #6333): Removed many instances of
passing an additional -Wall to the compiler, which may actually
have unwanted effects. -Wall is standard by the build system.
Also, -Wno-multichar was passed unnecessarily for Haiku targets.
I didn't remove it for the bfs_shell, hope this is what Ingo meant
in the ticket.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 20:31:11 +00:00
Jérôme Duval 1aa32c3dd0 if total sectors is greater than 0xffffffff, use this value for ReadCapacity().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 19:54:57 +00:00
Ingo Weinhold ea5a105b2d Fixed spelling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 19:43:10 +00:00
Axel Dörfler 75bb8dc650 * Applied kaliber's patch part of ticket #6789, thanks! This makes the code not
only more readable, but also working correctly.
* Solved the problem stippi outlined differently, by checking whether length is
  greater size for unsupported options.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 18:44:27 +00:00
Jérôme Duval e1d8e05d15 * some style cleanup
* don't try to non configured memory map IO space
* use a kernel thread when irq number is zero or 0xff
Should help with #4491


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 18:13:50 +00:00
Stephan Aßmus 21c8f94c7d I don't understand much about the code in question, but the ticket #6789
hints at a possible problem: Within the process_options() function, the
code does not make sure that size is a multiple of the option length
(unless I missed something) and thus the loop could wrap the unsigned
size variable, and not exit as intended. Make size an ssize_t and cast
where appropriate, after making sure it's initially a positive value.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 17:39:15 +00:00
Ingo Weinhold 09bd92c5c0 * Source text_setup with explicitly given current directory path component.
Apparently the source semantics has changed, as the that wasn't necessary
  in older OpenSuse versions.
* Replaced gcc invocations in the test scripts with with
  compile_{lib,program}[_dl]() shell functions defined in test_setup.
* Build libraries with -fPIC, so we don't get complaints for x86_64.

Apparently the runtime loader semantics has changed in OpenSuse 11.2 compared
to older versions. Some tests don't pass any longer (respectively even crash).
Would be interesting to know what happens on a current FreeBSD.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 16:38:44 +00:00
Ingo Weinhold 7aff60b7de Patch by Paul Davey with minor style changes by myself: For gcc 4 (and clang)
define the HUGE_VAL and friends macros to the respective __builtin_*()
functions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 13:20:52 +00:00
Ingo Weinhold aa3507feea terminate_program(): Call the termination function of all images, not only
of the program image and its transitive dependencies.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 21:15:39 +00:00
Ingo Weinhold e60625b708 get_sorted_image_list(): Allow passing a NULL image argument, meaning that
all loaded images will be sorted and returned.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 21:14:09 +00:00
François Revol 2ef563d813 80 cols & cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 19:37:30 +00:00
François Revol f649b1fa77 Make multiboot.h usable from assembler, and remove duplicate defines.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 19:06:36 +00:00
Jérôme Duval eb7aa0dafb Volume: don't use a block allocator when mounting readonly.
BitmapBlock: also use file system blocks, current type is off_t. Also added more trace.
BlockAllocator: added an assert and more trace


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 18:25:58 +00:00
Jérôme Duval 6fa1b3a596 actually use the 64bits value when doing comparing, previously SCSI_6 were wronly used for some io requests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 18:01:46 +00:00
Ingo Weinhold fb8e088927 Added dummy __cxa_atexit() and __cxa_finalize() to the kernel. We might
actually implement those, if we decide to support global
constructors/destructors in kernel add-ons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 16:26:43 +00:00
Ingo Weinhold d64f6189c0 unload_library(): Added comment about the exit hook handling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 16:22:11 +00:00
Ingo Weinhold 85f9496a24 Implemented __cxa_atexit() and __cxa_finalize() which are required by the
Itanium ABI. Whether __cxa_atexit() really works for associating hooks with
DSOs has not been tested yet, as our compiler doesn't use the function.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 16:21:20 +00:00
Scott McCreary 6d1078eb7a Updated the filename for OpenSSH, and fixed the conditional for Vision.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 15:00:36 +00:00
Ingo Weinhold 5609b854b5 Added a Remove() version to which the previous element needs to be passed as
well. This is rather ugly, but it was the quickest way to provide O(1) element
removal. This class could really use some love.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 14:58:10 +00:00
Ingo Weinhold b502275bc8 exit.c -> exit.cpp
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 11:07:01 +00:00
Scott McCreary 14324b423f Added vision gcc4 package
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 06:37:20 +00:00
Scott McCreary 99c871094e Updated the OpenSSH package to include the updated sshd_keymaker from mmu_man.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39293 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 00:04:50 +00:00
Axel Dörfler ba3217eee8 * Moved the Tracker navigation logic into its own class, TrackerNavigation.
* Added a new class FolderNavigation that implements the same for folders
  without a Tracker window.
* ImageFileNavigator is now using either one depending on whether it got a
  valid tracker messenger.
* Removed some unused/unneeded methods.
* Made entry_ref a reference at some more methods, as it's not really optional.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 23:29:54 +00:00
Scott McCreary 9aed025e4a Updated posix headers to remove commas from copyright line, to match the preferred coding guidelines.
Cleaned up some header style violations, making sure there are two blank lines after the header guards.
This fixes the bsd header part of #2191.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39291 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 22:04:50 +00:00
Rene Gollent 6bb1b32f42 Should have been part of previous commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 21:54:52 +00:00
Rene Gollent 5a13e7b045 Add a means for the user to locate source files if they are not found
at the location specified in the debug info.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39289 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 21:52:39 +00:00
Scott McCreary 0fae873352 Updated posix headers to remove commas from copyright line, to match the preferred coding guidelines.
Cleaned up some header style violations, making sure there are two blank lines after the header guards.
This fixes the posix header part of #2191.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 21:46:47 +00:00
Axel Dörfler 2281340d02 * Renamed _LoadSettings() to _ApplySettings().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 21:30:53 +00:00
Axel Dörfler 745226bd2f * Got rid of the useless fTrackerMessenger field.
* Ordered the methods in declaration order. Ordered BWindow hooks in "run"
  order.
* Renamed private methods to have the '_' prefix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 21:26:08 +00:00
Axel Dörfler 36272f0d4c * Removed the home-brewn recent menu, and just uses the one libtracker.so
provides instead.
* This also fixes bug #6774.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 21:04:51 +00:00
Axel Dörfler 01939af669 * Quit() in the constructor does not work as one might expect.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 20:42:33 +00:00
Ingo Weinhold f085f5b012 * checksumfs_write_stat(): Actually add the node to the transaction as the
comment claims. Spotted by Axel.
* Added preallocate() slot to gCheckSumFSVnodeOps.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 20:42:17 +00:00
Axel Dörfler ddcb5a2cda * Reverted Rene's fix for the broken build - it's no longer necessary. Thank
you for cleaning up behind me!
* Fixed bug #6771 by adding the shift key to the page shortcuts.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39282 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 20:00:49 +00:00
Axel Dörfler 60334dc831 * Got rid of the type == 0 feature in Update(); it does not really serve any
purpose anymore, and was just confusing.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 19:53:10 +00:00
Axel Dörfler 312f43920a * Added a B_TRANSLATE_WITH_CONTEXT() macro.
* Added a number of TODOs.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39280 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-02 21:36:35 +00:00
Jérôme Duval 0ac16c5b3e big_endian conversion: this should be more correct
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-02 21:13:30 +00:00