Commit Graph

32134 Commits

Author SHA1 Message Date
Ingo Weinhold
42d7d768ca Removed unintentionally introduced code. Spotted by Stippi.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-13 03:17:35 +00:00
Michael Lotz
417f446051 The parameter to toFixPtString() only controls the decimal places, not the
actual digits. Therefore the buffer was always too small leading to memory
corruption. Use the version that allocates the string for us instead, then trim
it and assign it to the result.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-13 02:48:17 +00:00
Michael Lotz
39e251f2d2 Remove the -U option when building the CD. It's not needed as we use rockridge
anyway and makes the CD more compliant.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-13 02:03:01 +00:00
Michael Lotz
baddb6942c Check for user buffers and properly use user_memcpy() in that case. Fixes #4770.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-13 00:13:08 +00:00
Jonas Sundström
8637183adf Laid out views to fit better on-screen. Made it use BAboutWindow and BWindow::CenterOnScreen(). Partial clean-up of code I passed by. A few obvious comments removed. Hopefully an improvement. Still needs a lot of work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 23:59:35 +00:00
Niels Sascha Reedijk
49aa230740 Style, spelling and grammar changes. Courtesy of Tim Howe
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 21:09:12 +00:00
Michael Pfeiffer
11209c604f * Fixed crash at cancelation.
* Simplified class LprSetupDlg using DialogWindow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 20:01:09 +00:00
Axel Dörfler
361f5cdfaf * Build fix for the boot loader (it's now using the new utility functions as
well). Sorry!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 19:42:50 +00:00
Michael Pfeiffer
daff73b116 Correction for style issue fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 19:27:18 +00:00
Michael Pfeiffer
3d9c7baae6 Fixed style issues.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 18:48:47 +00:00
Michael Pfeiffer
fe017baf74 Fixed style issues.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 17:17:25 +00:00
Axel Dörfler
f9ca76e8c6 * Applied patch by "v" to enable the TUI mode in gdb, see ticket #4738.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 16:43:23 +00:00
Stephan Aßmus
c1b274fd67 * Removed auto mounter code from Tracker.
* Tracker forwards auto mounter related messages to the mount_server.
* Rewrote AutoMounterSettings to not know AutoMounter and use
  the layout-management.
* Moved the "Eject When Unmounting" setting into the Mount Settings.
* Launch the mount_server during boot, but delay the script until all
  previously mounted volumes have been mounted. This solves some annoying
  timing bugs during boot. For example when you have desktop backgrounds
  on other volumes and some servers don't deal well with the situation
  of links to add-ons on other volumes becoming valid with a delay...
* src/kits/tracker/Commands.h includes the private headers/private/
  mount/MountServer.h header, which made adjustments to the DiskUsage
  Jamfile necessary.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:52:17 +00:00
Axel Dörfler
6392fa4dc9 * Now stores signatures and status files to "~/config/settings/Mail/" instead
of "bemail".
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:47:16 +00:00
Stephan Aßmus
206761086b Extend waitfor to except the syntax -s app_signature and wait until
the team with the signature becomes a valid target for BMessages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:44:40 +00:00
Axel Dörfler
5762cbce56 * Fixed typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:37:49 +00:00
Axel Dörfler
16a821d968 * Inode::FindBlockRun() now checks the block run size of double indirect runs,
and stops processing if it finds something wrong.
* The default indirect/double array size differs from BeOS' BFS. I've changed
  the size for double indirect arrays only, since the other size should work
  either way (not tested yet, this change has a negative effect on the maximum
  file size, but improves BeOS compatibility).
* The read/write path of BFS is now double indirect block size agnostic, and
  should work with what it finds.
* Merged all double indirect size computation into some utility inline
  functions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:37:21 +00:00
Axel Dörfler
265694bb1f * Fixed warnings when compiled with DEBUG=1.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:33:22 +00:00
Axel Dörfler
8e13fac960 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:30:48 +00:00
Axel Dörfler
b74a098352 * Got rid of the duplicated functionalities provided by RWLocker.cpp, and
Locker.cpp.
* The services are now using recursive_locks, and rw_locks instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:29:05 +00:00
Axel Dörfler
4baa865937 * Added casts to the *_INITIALIZER macros, so that they can also be used in
a member constructor list.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33547 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:27:02 +00:00
Axel Dörfler
fd111c8162 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 13:59:59 +00:00
Axel Dörfler
31cce05240 * Removed useless tool.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 13:42:00 +00:00
Michael Lotz
3bb69a8235 * Use mutex and rw_lock and the proper AutoLockers as in the kernel version, as
these interfaces are now available.
* Don't be quite so paranoid by default, the checks that are on by default
  should be enough to detect most memory corruptions.

This makes the debug heap way more usable, so much that you can even use it as
your normal everyday heap without noticing much performance impact (it has quite 
a bit of additional memory overhead though).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 11:29:25 +00:00
Michael Lotz
93b63126e1 Adding mutex and rw_lock with the same interface as the kernel versions to
libroot. The mutex is a simple benaphore, the rw_lock is pretty much the same
as the one from libkernelland_emu but uses a mutex per lock instead of emulating
a global thread lock. Also added MutexLocking and RWLock{Read|Write}Locking and
AutoLockers based on them. It's cased with __cplusplus so the locks are also
usable from C. Everything's currently exposed in shared/private/locks.h but I
think we should make these locking primitves public.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 11:19:33 +00:00
Ingo Weinhold
d75e3d6c23 Ignore unnamed function parameters in the stack frame.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 03:17:17 +00:00
Ingo Weinhold
fced6d136a Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 03:16:11 +00:00
Ingo Weinhold
6c4cad54ed Added TODO.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 03:15:17 +00:00
Ingo Weinhold
a7fb35d93d When rows are added to/removed from the model, we need to adjust the row
indices we store in the fields of subsequent BRows. Fixes the broken threads
list in Debugger (should be some ticket -- can't access Trac ATM).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 03:14:34 +00:00
Scott McCreary
c5e5cd3b04 Fixed neon build to remove dependency on gettext
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 21:38:56 +00:00
Axel Dörfler
31d18c5c55 * For some reason, the ICOTranslator was not included in the image.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 21:06:59 +00:00
François Revol
30580df348 The checksum should be inverted.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 20:48:43 +00:00
François Revol
dc33329747 First attempt at an Amiga boot sector, not yet working.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 20:28:44 +00:00
François Revol
e6f2508262 A tool to calculate Amiga bootsector checksums.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 20:26:39 +00:00
François Revol
1631cac3e3 Cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 20:25:45 +00:00
Michael Lotz
55146dd7f2 Disable code by #if 0 to make it more obvious.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 19:20:00 +00:00
Michael Pfeiffer
e551fa9a9d Implemented ioctl USB_PRINTER_GET_DEVICE_ID. Using my printer it always
times out, though.  


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 18:20:21 +00:00
Michael Pfeiffer
7a12ec8bf9 Correctly calculate height of partitions list. Closes ticket #4745.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 17:45:57 +00:00
Bruno G. Albuquerque
891a50b2ae - Fix typo that broke the GCC4 build but not the GCC2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 17:31:00 +00:00
Axel Dörfler
d0276ac85a * Changed the way BRoster launches apps by signature: before, only the version
info would decide which one to start. Now, this is only the last comparison
  taken into account: first, the search path will be checked, then, any apps
  in the /system folder are selected. Only after that, the version check will
  be performed.
* This should improve the choices made, especially when you have a second set
  of binaries around due to having built Haiku.
* This therefore also fixes that Haiku would wait for the wrong input_server on
  shutdown, as the registrar didn't (and rightly so) recognize the input_server
  as a system app since the wrong one had been started.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 17:05:28 +00:00
Michael Lotz
7ebd7cfc40 Add a vm_page_allocate_page_run_no_base. It bases its search on the pages found
in the free and/or clear queue. This performs better in the case where only few
pages are free/clear but performs worse in the case where there are a lot of
usable pages. It's not used anywhere but it might come in handy one time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:55:21 +00:00
Michael Lotz
7a4d60459e Implement combining scattered physical pages using seperate iovecs in
PageWriteTransfer. This makes the transfer accept virtually contiguous pages,
where the offset is contiguous on either end of the current transfer, but where
the pages aren't physically contiguous. It will then add seperate iovecs for
these pages (32 at max right now). This reduces the number of IO requests
generated and allows for optimizations down the IO path (like in the physical to
virtual mapping case for example).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:52:19 +00:00
Michael Lotz
303727515e Virtualize the buffers using IOBuffer::GetNextVirtualVec(). This removes the
need for the IO -> InternalIO indirection as it is always fed virtual buffers,
which simplifies things a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:50:50 +00:00
Michael Lotz
32e2b6a118 Provide a way to directly request virtual vecs from an IOBuffer. If the buffer
is virtual already it just returns the vecs directly, if it is physical it takes
over the task of virtualizing the vecs either using vm_map_physical_memory_vecs,
if there are multiple vecs or more than one page, or falls back to page wise
mapping if mapping fails or is not needed. In the best case, scattered physical
pages are mapped into one linear virtual buffer so that subsystems operating on
virtual memory only get a single vector and can then burst read/write.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:49:44 +00:00
Michael Lotz
44778a8a28 Introduce vm_map_physical_memory_vecs. It is like vm_map_physical_memory but
takes a list of iovecs describing the physical pages to be mapped. With it one
can map a set of physically disjoint pages into one linear virtual range. This
is a private API right now, but we might want to make it public as
map_physical_memory_vecs alongside map_physical_memory.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:48:03 +00:00
Michael Lotz
c443d19cd2 Tiny style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:43:20 +00:00
Michael Lotz
3e12a70b0d A disabled debug helper to visualize reads/writes and if they would have been
contiguous. Was used to optimized CD boot before the alpha release.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:42:21 +00:00
Axel Dörfler
6e6b0851ca * Applied (cleaned up) patch by Stefano to fix bug #4742.
* Note while this fixed running BeOS apps using BJoystick, it breaks all apps
  (and SDL) that have been compiled for Haiku R1/alpha1. It's really bad that
  r27171 went through unnoticed. We should really try harder next time (and
  try to get the ABI change detection script working in an automated way).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:40:12 +00:00
Joachim Seemer
e0fab22f7d Separating topics with a horizontal line on the contents page. Mentioning translations.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:19:28 +00:00
Axel Dörfler
18a16affab * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 15:28:19 +00:00