Commit Graph

28249 Commits

Author SHA1 Message Date
Jérôme Duval
2c9d779293 * pthread.h should include sched.h (bug #3516)
* semaphore.h should include fcntl.h


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 13:56:15 +00:00
Jérôme Duval
6b14439ceb * Apply patch from monni for bug #3453: add https support to wget
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 13:42:03 +00:00
Stephan Aßmus
5994d47ab4 Since there are problems with VMWare, ioctl()ing at fixed intervals seems like
the better idea after all. The snoozing won't add an additional delay, if the
polling was already slow. Have not tested in VMWare myself, as I don't have a
working installation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 01:01:06 +00:00
Ingo Weinhold
6880c19362 We do now store a VNode object per node in a hash table. This allowed us to get
rid of the vnode count hash map and the mount vnode maps. Furthermore it will
allows us to easily associate a file cache with each node.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 00:50:51 +00:00
Stephan Aßmus
50d9f08911 Fixed include <-> copyright spacing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 00:10:53 +00:00
Ingo Weinhold
0f41393732 Removed left-over.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 22:28:49 +00:00
Ingo Weinhold
f94ca8783a Don't auto-delete FileSystemInitializer objects when unreferenced. They live
in a map and we remove and delete them explicitly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 22:28:10 +00:00
Ingo Weinhold
0f90efc3bf Detach the AutoLocker before deleting the locked object.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 22:26:53 +00:00
Stephan Aßmus
4edbdca09e * Fixed header include order in MouseView.
* Updated copyright section.
* Fixed border mis-alignment of buttons and group view.
* Fixed #3528 by checking the current clipping region which tells us if
  windows overlap. Don't display the popup menu then.
* Removed some superfluous calls.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 22:18:50 +00:00
Ingo Weinhold
484708d5d6 Removed the OpenHashTable implementation the UserlandFS used. Adjusted the
HashMap and HashSet classes to use the kernel utils OpenHashTable instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 21:21:10 +00:00
Ingo Weinhold
2d4fb82c0f Added TableSize(), CountElements(), and Clear() methods.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 21:19:15 +00:00
Rene Gollent
b83405163c Update Pe package to fix some missing libs. Thanks to Matt Madia for the patch.
This closes ticket #3527.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 18:42:31 +00:00
Oliver Ruiz Dorantes
33ab9e95db Add icon for Bluetooth server by Raynald Lesieur
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29426 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 17:52:29 +00:00
Oliver Ruiz Dorantes
2cc4b883c7 Make application signature match
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 17:43:18 +00:00
Oliver Ruiz Dorantes
341f47a529 Add icon for bluetooth preferences by Raynald Lesieur
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 17:39:41 +00:00
Stephan Aßmus
77b23b704d Removed left-over debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 11:52:47 +00:00
Stephan Aßmus
46f2d7feec * Basically, the audio buffer size was simply too small and caused
audio playback with frequent glitches. I am testing with HDA and have
  perfect audio now. The only remaining problem is the drop-sample
  resampling in the system mixer, which gives a somewhat metallic sound.
* Removed hardcoded values from preferred format and used them if
  the consumer supplies wildcard values. Since the system mixer supplies
  wildcards for all those values, this change does not have any effect
  for now. The code is more correct, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 11:39:48 +00:00
Stephan Aßmus
0bd93b7def * Use a default buffer frame count that is adapted to the sample rate
of the audio group. This is supposed to keep the latency about the same
  regardless of sample rate and lessen the requirements on the system
  performance when using higher sample rates. Currently the multi-audio
  addon uses the highest available rate.
* Added TODO about the highest sample rate seemingly being forgotten in one
  place.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 10:23:52 +00:00
François Revol
db90fa7022 Patch by mmadia: Update optional packages:
- Pe - 2.4.1 built in Haiku gcc2
- BeZillaBrowser -- built in Haiku gcc4


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 02:21:45 +00:00
Rene Gollent
ccefc7ac9e Clear the node list when switching directories. Otherwise navigating out of a directory and back in single window mode will show no nodes whatsoever.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 01:50:26 +00:00
Rene Gollent
59160ac740 Fix gcc4 build. GCC 3 and up moved some of the SGI extension classes into a different namespace.
Fixes ticket #3524.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 00:48:00 +00:00
Rene Gollent
f528e1ad7a Fix two more problems in the messaging service:
1) When searching the area for a place to allocate the next command, the case of the first command being the same as the last command (as is the case after adding the first message) was not correctly considered. This prevented a given area from ever containing more than one command.
2) The size of a command was incorrectly word-aligned. Rather than aligning to 32-bit boundaries, the size was truncated to between 1-3 bytes, leading to command corruption once multiple messages were in the area, eventually causing registrar to crash while retrieving the messages.

Combined these two changes result in us no longer constantly allocating/destroying areas during heavy node monitor activity.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-06 22:57:36 +00:00
Jérôme Duval
70e72d56e7 * activate usb in vmware description file
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-06 22:12:08 +00:00
Jérôme Duval
8b6785bddf update to tzdata2009b
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-06 20:36:44 +00:00
Rene Gollent
38f4625170 Rework this again due to flaws in the previous optimization - due to its use for things like sorting the visible pose list, it would rely on whatever pose column was being used for sorting, and as such would generate false positives when the view was being ordered by certain attributes. We now use an std::hash_set to track all the nodes that have been added to the current view and use that for a duplicate check instead. Also slightly boost the max number of models per chunk that we read.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-06 13:42:33 +00:00
Stephan Aßmus
7d1d70339a Limit the number for ioctl()s per second to about 125 for mouse transfers. This
fixes the high CPU usage when using USB mice. I experimented with transfers
scheduled at fixed intervals, and with using a fixed pause between transfers.
The fixed pauses, though much less sophisticated, give the smoothest drawing
in WonderBrush. ;-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-06 11:11:58 +00:00
Rene Gollent
58336b68a9 Add a TODO note.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-06 05:49:56 +00:00
Rene Gollent
75d1cb286f The loop that looks for the next area to add a message to has a somewhat fatal flaw: it checks for a non-zero area size (which is always set to the physical size of the area rather than the number of message commands stored within it). As a consequence, areas would never get cleaned up once allocated, which lead the kernel to steadily bleed memory if any reasonable level of node monitoring activity was going on. We now check whether or not the area's command count is non-zero instead, and use that as the criteria for selection. Fixes ticket #3518.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-06 05:45:32 +00:00
Ingo Weinhold
aa085ffef9 * Removed UserlandFS shared Locker class. Instead use BLocker in userland and
RecursiveLock in the kernel.
* Several adjustments according to UserlandFS header changes.
* Re-added reiserfs to image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 23:27:35 +00:00
Ingo Weinhold
2b0eb640d4 Inline class with BLocker interface wrapping a recursive_lock. Could probably
moved to headers/private/kernel/util.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 23:23:01 +00:00
Ingo Weinhold
8dcef9a6ad * Made ASSERT definition conditional to avoid clashes.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 23:17:18 +00:00
Ingo Weinhold
a7edf1f7c0 Moved RECURSIVE_LOCK_HOLDER() macro to the header and fixed it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 23:15:15 +00:00
Ingo Weinhold
c964442c9b Removed temporarily from the image until I've unbroken the build again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 22:44:12 +00:00
Ingo Weinhold
9a8f8b7b13 Enabled -Werror for userlandfs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 22:06:02 +00:00
Ingo Weinhold
c0509ccc29 Removed several shared userlandfs classes that exist as Haiku shared or kernel
util classes as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 22:02:59 +00:00
Oliver Ruiz Dorantes
5bf53b09c2 - Use static MessageRunners,
- Banlance the process of retrieving the remote names, which is blocks the Window Looper, as get remote name is an expensive operation.
Now it waits half second between each operation which gives a better feeling(without using extra thread, that will come when there is an standard barberpole)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29403 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 21:36:17 +00:00
Ingo Weinhold
97b7c9a091 Handle file cache related requests in the kernel. The actual calls to the
file cache are missing yet -- requires some refactoring in Volume.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 21:10:43 +00:00
Ingo Weinhold
0dcccb4986 Implemented the client side of the file cache operations.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-05 00:43:06 +00:00
Joachim Seemer
b8dbc0a275 Forgot one instance of 'Firefox'. Also, being Mozilla, I guess we can dispense with our own documentation for it. Unless there are interesting Haiku-only features. We'll see.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 21:01:52 +00:00
Jérôme Duval
ca5c5de225 * Apply patch provided by Monni for bug #3514
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 21:00:39 +00:00
Joachim Seemer
bff14db1e8 * Added DiskProbe
* Changed cursor keys to their respective arrow symbol
* As mmadia reminded me: since we cannot use Mozilla's Trademarks I renamed
  everythig firefoxy to BeZillaBrowser.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 17:29:50 +00:00
Stephan Aßmus
9801209684 For the filter indices and wheight calculation, never calculate more
pixels than can possibly be visible. Clients may pass very large
view rects to layout a zoomed in bitmap. This doesn't only speed things
up, but also avoids a stack overflow in the app_server, as reported in #3166.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29397 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 13:46:56 +00:00
Stephan Aßmus
6acf774d2d Patch by JiSheng Zhang:
* Combine the many small areas created by the Firewire bus manager
  into one larger one. Needs further testing. Supposed to fix #1519.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 12:41:05 +00:00
Rene Gollent
847af0079c Second attempt at PoseView population optimizations: We still search for the pose in our list, but now rely on a binary search to do it instead, rather than the previous linear search. This considerably boosts population speed for large folders here, while still preserving correct behavior.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29395 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 03:54:29 +00:00
Ingo Weinhold
497681ca81 Added requests for file cache operations. Not used yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 01:27:32 +00:00
Ingo Weinhold
02f7a2f4cb Implemented vfs_get_file_map() and vfs_lookup_vnode().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 00:53:57 +00:00
Ingo Weinhold
c74777f3d3 Finished node management.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 00:44:13 +00:00
Ingo Weinhold
0234794770 Implemented acquire_vnode() forwarding.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 00:01:27 +00:00
Ingo Weinhold
fac733d2f6 Removed the remnants of the dispatcher mechanism.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 23:42:20 +00:00
Axel Dörfler
608990b488 * Haiku's VM does not need the swap file to be as large as physical memory
at minimum to be able to work with it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 21:48:59 +00:00