Commit Graph

34696 Commits

Author SHA1 Message Date
Ingo Weinhold
f14480bc2c Essentially rewrote the IOCache to use a VMCache and unmapped pages for
caching (similar to the file cache) instead of contiguous areas. This is
probably a little bit slower, but integrates better with the VM -- the
caching doesn't increase memory pressure and the least recently used pages
will automatically be recycled when needed.
There are still memory allocation issues on machines with little memory. The
USB stack apparently tries to allocate a rather big chunk of contiguous
memory, which fails when all not otherwise bound memory is used for caches,
since the VM functions for allocating contiguous memory consider only free
pages ATM.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 21:54:49 +00:00
Matt Madia
80c7dda631 Fixed the string comparison tests. Some cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 21:32:17 +00:00
Matt Madia
4eb0a8c2fd Enhance InstallOptionalHaikuImagePackage to accept a new parameter, which
indicates the archive to be usable with either GCC. When utilized, the
packages shared libraries will automatically be symlinked in the alternative
gcc subdir, eg common/lib/gcc4. At the moment, packages that set isCDPackage
are not supported, as Installer needs to be enhanced.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 19:52:36 +00:00
Rene Gollent
b64b6705ad Factored out initialization of default values into an _Init() function that's now called by all constructors.
The BMessage version of the ViewState constructor was not retrieving the icon/last icon size values.

May fix #4322.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36455 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 19:35:53 +00:00
Artur Wyszynski
49a0c7942f Fixed build with GCC4
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 17:51:39 +00:00
Rene Gollent
f7b6636a8b Don't set releasedOnce unless we actually detect an appropriate change in mouse button states. Otherwise we could mistakenly invoke menu items when not desired. Fixes the other part of #3267.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 17:48:13 +00:00
Jérôme Duval
bbfd31096c * avoid launching one thread for each rescan request.
* erase the defaults settings file when writing it, previous content still existed at the end of the file.
* don't save an empty defaults settings file when node information is not available, this should mean the add on server is already gone.
* added some debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 16:56:22 +00:00
Ingo Weinhold
1f4cc99a2a Removed not approved translations as reported by Siarzhuk.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36451 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 16:17:12 +00:00
Oliver Ruiz Dorantes
ddbc9a0f2a - I expected once Haiku sets a connection with a remote device, such connection
was to expire in a couple of minutes, but not, seems to stay forever.
- Implement a Disconnect button in prefrences&kit



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36450 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 16:01:08 +00:00
Oliver Ruiz Dorantes
36cb67b24e - Style: alphabetize include directives
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 13:16:13 +00:00
Oliver Ruiz Dorantes
c2ee80e5da - Add authentication checkbox to force authenticate connections
- Implement Pair button for allowing Haiku initiate the connection



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36448 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 13:14:52 +00:00
Oliver Ruiz Dorantes
040fb3eaac - Refactor the handling of Expected and unexpected events.
- Handle all events invovled in the authentication
	- LinkKey requests -> reply always negative due the lack a a local linkey database
	- LinkKey Notification
- Handle Completed number of packets for future control flow
- Allow clients to issue a command without having to expect an event
- Fix: LocalDevice Handler was stopping the search once the opcode expected did not match
- Cleanup debug window



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 11:54:38 +00:00
Oliver Ruiz Dorantes
37c7d5d83a LocalDevice:
- Implement REading of the default timeouts
- Retrieval of all possible LinkKeys stored inside the dongle
- Provided function to force an authentication process with remote devices
RemoteDevice:
- Allow Haiku initiate a fully authenticated connection



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 11:34:23 +00:00
Oliver Ruiz Dorantes
40c666a5ab - Introduce template methods for single or non parameter commands
- Remove some old legacy command creation functions



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36444 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-24 11:16:49 +00:00
Rene Gollent
8e23974bbe After looking for items/submenus, always update the closed state at least once before mouse polling. Otherwise the click to open sticky setting would sometimes not get evaluated until after the mouse cursor had already moved outside of the click to open rect. Fixes ticket #3267.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 23:12:43 +00:00
Oliver Tappe
7e6614d10b * updated gcc4 package for r1a2
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 21:03:11 +00:00
Stephan Aßmus
112f2e566e If we want WebPositive to work in Live-CD mode, we can't copy some packages
to the CD image without extracting them anymore. Test pending.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 20:16:29 +00:00
Stephan Aßmus
a53f776b10 Specify the correct dependencies for the WebPositive package.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 20:06:55 +00:00
Axel Dörfler
fd722a6734 * Minor coding style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 18:28:45 +00:00
Ingo Weinhold
574e5742ad Optionally use the IOCache instead of the IOScheduler (specified by
USE_IO_CACHE macro in the header). Currently disabled, though. It works fine,
if the machine has a good deal of RAM. I tested with the anyboot CD -- the
boot and installation times drop dramatically. On machines with little RAM
there are issues, though. Apparently the cache isn't drained fast enough, so
that other allocations can fail.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 18:14:53 +00:00
Stephan Aßmus
d177903646 * Replaced BeZillaBrowser with WebPositive in the alpha-* profile.
* Removed VLC from the alpha-*, apparently this was only done in the alpha-1
   branch back then.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 18:07:44 +00:00
Ingo Weinhold
e91e4ee0a6 Added IOCache, a simple write-through cache implementation that can be used
as a drop-in replacement for IOScheduler, processing IORequests synchronously
in FIFO order. It stores cache lines of user-defined size. Currently for each
cache line an area of contiguous memory is used, which is not optimal.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 18:07:31 +00:00
Stephan Aßmus
481f7bf6c4 Added WebPositive (r459) optional package.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 18:06:34 +00:00
Oliver Tappe
351076daa0 Fixing #5782 (buggy gcc2 package):
* Apparently triggered by some strange stellar constellation, the
  libgcc.a contained in gcc-2010-04-20 did not contain the files
  required for c++ support. Fixed by rebuilding gcc and fetching
  the (then correct) libgcc.a from there and putting it into
  gcc-2010-04-20-1.zip


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 17:06:58 +00:00
Matt Madia
088859f09e Updated P7zip gcc2 package that has u+rw,o+r,g+r.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 15:36:08 +00:00
Matt Madia
d3bafe85f9 Updated to a repackaged P7zip archive with fixed permissions chmod -R a+w ..
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 14:30:54 +00:00
Scott McCreary
1829a123d3 Pass 1 of the r1a2 OptionalPackages. This updates several of the OptionalPackages.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 13:45:01 +00:00
Axel Dörfler
11a40e6d46 * Fixed wrong indentation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 10:56:39 +00:00
Axel Dörfler
6c7bc7cd22 * Added missing const in ATAPIDevice::IsATAPI() that prevented CD-ROMs from
working since r36416.
* Added more const, and removed all superfluous semicolons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 10:43:10 +00:00
Stephan Aßmus
d39c5aa3c9 Removed Gradients demo from the image. It's just too dull and served more as a
test for BGradient. Mandelbrot would also be a candidate for removal, but maybe
some people are sentimentally attached to it, since it was an old BeOS demo. :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 10:41:10 +00:00
Stephan Aßmus
7a171c93dd Updated Installer logo for alpha 2.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 10:19:06 +00:00
Matt Madia
21e8281bd7 Switch the default editor for less to nano. It was defaulting to vi.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36426 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 07:44:02 +00:00
Ingo Weinhold
ccb3f07a14 get_memory_map_etc(): Setting the return value to B_BUFFER_OVERFLOW in the
loop causes the function to return before setting the _numEntries. The
overflow case is checked at the end of the function anyway, so we can just
break out.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 22:48:33 +00:00
Jérôme Duval
f2d5f97a0c reorder includes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 20:50:15 +00:00
Fredrik Holmqvist
761af9df7f This was not supposed to be commited.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 16:24:55 +00:00
Fredrik Holmqvist
5d9cc10f80 Moving ACPI Embedded Controller to ACPI bus manager.
* Removed irq_routing struct from ACPI.h to where it is used. Might be able to use acrestype.h instead of duplication.
 * Disable old embedded controller and remove it from image.
 * Move embedded controller code to busmanager module.
 * Remove (some) code duplication

Should work as before, but is now initialized right after the bus manager. Can probably remove further code duplication.
I hope I've done it correctly, feedback is most welcome.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 16:19:41 +00:00
Matt Madia
c966de0646 Changed the behavior to always display the GCC. Extended it to report "Hybrid"
as needed. "Hybrid" is a new string for localization.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 15:49:01 +00:00
Stephan Aßmus
d49d3f60d8 * Playlist::SetCurrentItemIndex() will keep the index in range when requesting
an index greater than CountItems(). (Setting an index smaller than 0 will
   still work.) This change will prevent the window from setting an invalid
   current playlist item index when the end of the last file is reached. The
   negative effect of this would be that the transport buttons would indicate
   seemingly confused navigation capabilities (being able to skip to the *next*
   item from the last item, internally it true (you can skip from -1 to 0), but
   the player still showed the last item as currently loaded item)...
 * ControllerView::TogglePlayback() will now check if the end of the last item
   is reached and go to the first playlist item then.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 15:34:12 +00:00
Stephan Aßmus
8e9973a09d Added easy method to retrieve the playback position (of the seek slider [0..1]).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 15:28:39 +00:00
Axel Dörfler
63400da873 * Got rid of the ATA_BLOCK_SIZE define.
* The logical and physical block sizes are now retrieved from the info block,
  though only the logical one is actually used (where ATA_BLOCK_SIZE was used
  before).
* Also added retrieving the offset of the first logical block inside the first
  physical one.
* All this stupidity just for Windows XP, it's really sad.
* Added "const" to some methods, removed some superfluous ';'.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 14:13:32 +00:00
Axel Dörfler
0a96e18689 * Added opcode definitions for read/write-16 and the extended "read capacity 16"
over service-action-in.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 13:44:24 +00:00
Axel Dörfler
46d3d6949b * Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 13:42:13 +00:00
Adrien Destugues
e4fe2e5a12 Sync all available catalogs from hta in order for them to get more exposure in alpha 2.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 12:58:03 +00:00
Axel Dörfler
dba5fcaed8 * Use the ATAInfoblock.h header file instead of redoing it somehow.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 12:14:05 +00:00
Axel Dörfler
0b46a85e47 * Added missing definitions to support the concept of physical vs. logical
block sizes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 12:12:32 +00:00
Axel Dörfler
a2f2499840 * Style and automatic whitespace cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 12:03:47 +00:00
Stephan Aßmus
8af2493444 Fixed the coding style issues that axel pointed out.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 10:05:28 +00:00
Rene Gollent
01e63caf83 When creating a new pose, the index offset at which it was inserted in list mode was never passed back. Consequently, when creating a new folder via the cmd+N shortcut (which immediately goes into edit mode), the TextWidget for editing would appear at the wrong location.
Fixes ticket #5774.

+alphabranch



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 02:02:55 +00:00
Jérôme Duval
3fe663e009 B_MEDIA_RAW_AUDIO is not a flag for media_type, instead we must check for audio values.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 22:21:48 +00:00
Jérôme Duval
32a32c2e70 Patch from augiedoggie #5765: include mktemp from coreutils.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 20:06:51 +00:00