Commit Graph

26114 Commits

Author SHA1 Message Date
Stefano Ceccherini
8b330bfe28 Should have been part of the previous commit
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-09 09:54:07 +00:00
Stefano Ceccherini
5f8c1a0244 Remove unused RamLinkMsgReader. Its functionality was integrated inside LinkMsgReader/Sender by Julun.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-09 09:53:27 +00:00
Stefano Ceccherini
b22590e615 applied patch by Olivier Coursire which removes block_io from the NetBootArchive script (bug #2714)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-09 08:13:47 +00:00
Ingo Weinhold
bfdf82d450 * When using the generic attribute emulation the Link actions does now
first remove the target and its attributes (if any). Before gcc would
  just unlink it and leak the attributes, which could lead to later
  mixups, if the file's inode ID was re-used. As reported by Rene this
  improves the attribute mixup situation, but doesn't solve it
  completely. So that status quo is still the same: When using the
  generic attribute emulation one has to build from the scratch to be
  sure all attributes are fine.
* Got rid of superfluous whitespace.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 23:03:52 +00:00
Karsten Heimrich
2982ae5d1a * comment the code that prevents programmatically resize events during
a user resize, this makes ArtPAint's tool pallete window resize properly

  Thanks Stephan for explaining me two time what to look for  :)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 20:23:00 +00:00
Stefano Ceccherini
6ee56a00e5 added a comment explaining why the implementation should be moved to the server
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 14:42:38 +00:00
Stephan Aßmus
7e4c91ec88 * Use the older fragments API for setting the driver buffer size,
since it gives much more fine grained control.
* Use a smaller buffer on Haiku, this will give some slight clicks
  when something is going on (for example launching Firefox), but
  should be bearable. The reduced latency is otherwise quite nice
  and VLC works again which outweights the seldom clicks. Obviously
  the best is to find and fix scheduler problems, but in the
  meantime, this may be more helpful to people.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 14:07:06 +00:00
Rene Gollent
fc60ab16f5 gcc4 build fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 13:49:54 +00:00
Ingo Weinhold
6f3ee1f167 When mapping a file into memory we do now immediately map all active
pages into the team's address space. Doing that is relatively cheap and
saves later page faults.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 13:45:27 +00:00
Stefano Ceccherini
032d13f49a (gcc4) local variable shadows a parameter
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 13:27:31 +00:00
Stefano Ceccherini
5dcbba3155 gcc4 complains on missing declaration of exit()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 13:26:36 +00:00
Stephan Aßmus
a4def7bd0f Node monitoring changes:
* In the ChangesIterator, just remove removed files from the HashMap, regardless
  if they could be considered "temporary" or not.
* If a file is removed, we can directly remove it from the results list. This
  makes removing files from the result list more robust and quicker if this
  was the only thing that happened with regards to node monitoring (the grep
  process does not need to be run again).
* Refactored removing result items from the list on result notifications.
* Beginnings of supporting moving files within the watched folder hierarchy.
  If they were just moved, the new location should update in the list.
  (not well tested)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:31:06 +00:00
Stephan Aßmus
f0d8b55fe6 Add method to remove all subitems of a result item, and optionally also the
item itself.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:25:57 +00:00
Stephan Aßmus
e74f2e8388 * Small cleanup
* Mention the fact that the same code is used in DiskUsage.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:24:59 +00:00
Stephan Aßmus
24094896b0 Change prefs file name to just "TextSearch". No reason to append "Settings"
if this file is to be found in the "settings" folder...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:24:24 +00:00
Stephan Aßmus
7c9d86d7c1 Change default settings to "Invoke in Pe" if Pe is installed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:23:40 +00:00
Stephan Aßmus
61490d4560 Add DiskUsage to the build and also integrate it as a Tracker add-on.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:04:39 +00:00
Stephan Aßmus
de23995a7f * Full integration as a Tracker add-on. Code taken from TextSearch.
* Fixed settings file saving when the settings file didn't exist yet.
* Fixed problem with launching DiskUsage with refs. In that case, ReadyToRun()
  is called later than RefsReceived(). I remember the same thing happens on
  BeOS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:02:39 +00:00
Michael Lotz
92ada5d30c Make the installer window not minimizable, as without a Deskbar loaded, minimizing makes things a bit difficult...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 08:36:38 +00:00
Michael Lotz
57665c6ef2 Respect B_NOT_MINIMIZABLE in the default decorator. Maybe we should recheck all the flags in the window code though instead of relying fully on the decorator.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 08:33:49 +00:00
Stefano Ceccherini
7d2739a00f argument was missing from the TRACE call
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 08:31:57 +00:00
Ingo Weinhold
b41928bf48 Use the new entry cache.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 05:09:13 +00:00
Ingo Weinhold
ee1a1571a2 Implemented a simple directory entry cache to speed up path resolution.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 05:08:37 +00:00
Rene Gollent
204737b832 Patch by Dustin Howett: Add i945GME to the supported devices list (caveat: no overlay).
Thanks!



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 02:45:14 +00:00
Ingo Weinhold
91e9d17c3f Small test program timing our path resolution. Which sucks badly...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 00:50:27 +00:00
Jérôme Duval
b0b788ce0c fixed Atom id. Thanks katisu!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 20:59:30 +00:00
Jérôme Duval
f0a85f978d * I misunderstood what means 24 bits B_AUDIO_INT (more than 2 years ago!): as audio data is left justified in a 32 bits container, we don't care much and convert as usual
32 bits data
* Echo audio driver doesn't support 24 bits in a 32 bits container as proposed by the media kit. We just manage 24 bits as 32 bits samples.
* The main benefit of this change is that the hda driver is now working with 24 bits samples (and 192khz).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 16:36:10 +00:00
Jérôme Duval
c991159a1b added missing 20bit case
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 16:26:44 +00:00
Ingo Weinhold
b27c9bd52f * env.c -> env.cpp
* Squashed TODO: Use a benaphore for locking to improve performance.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 15:28:39 +00:00
Ingo Weinhold
3c529bf7fe * Retry in benaphore_lock() when interrupted.
* Added TODO in benaphore_lock_etc().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 15:27:14 +00:00
Ingo Weinhold
61713fc607 * More verbose usage text.
* Parse the command line options posixly correct. Running command lines
  that contained options was broken before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 14:22:53 +00:00
Stephan Aßmus
f75a7bf508 Imported the nice disk usage tool "Guido" into the repo as "DiskUsage". Guido
was originally written by Mike Steed. The code was freely available from his
website at one point, which I am no longer able to find. I believe the license
was a kind of public domain, at least compatible with our MIT/X11 license.

The original code was well written with it's own coding style which was not
very far from the Haiku coding style. I have hopefully adopted it completely
to our coding style. While I did this, I came across several places with
comments for a minor bug which I was able to resolve all. I also found ways
to simplify certain places and I elliminated all non-necessary "inter-class
knowledge" which was used to directly access members of other classes which
should have been private.

All in all, this should be a nice little addition, a useful tool which I found
handy a lot of times. If I should not have added this without first consulting
everyone, please voice your disagreement, and it can be removed it again. It
is not part of the image yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 14:18:01 +00:00
Ingo Weinhold
c909ca65bf Patch by Zhao Shuai: Updated documentation regarding the use of the
radix tree.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 13:58:49 +00:00
Ingo Weinhold
dcadb2ba8d Patch by Zhao Shuai:
* Imported radix bitmap tree implementation from FreeBSD and adjusted it
  for Haiku.
* Make use of the radix tree in the swap support implementation instead
  of using simple bitmaps. This will allow for faster swap slot
  allocations. ATM Haiku doesn't benefit that much, since we always
  allocate single pages, but that will change eventually.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 13:57:25 +00:00
Stephan Aßmus
fc75bbd740 * The analysis for how DriveSetup works on BeOS is no longer relevant and
Haiku's own DriveSetup works differently.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 13:38:12 +00:00
Jérôme Duval
47a5fa5a32 fix typo
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 10:43:43 +00:00
Ingo Weinhold
c1deff9677 <malloc.h> is no standard header, use <stdlib.h> instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 01:08:30 +00:00
Ingo Weinhold
6d915a4d4c Translate ENOATTR properly. That seemed to be all that kept FreeBSD extattr support from working.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 01:07:45 +00:00
Ingo Weinhold
b360cc7f00 Refactored the BeOS attribute emulation using xattr a bit:
* Renamed fs_attr_xattr.cpp to libroot/fs_attr_untyped.cpp.
* Pulled the xattr specifics into a separate fs_attr_xattr.h.
* Added fs_attr_extattr.h, interfacing with FreeBSD's extattr support.
  Totally untested yet. Might not even compile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 23:46:59 +00:00
Jérôme Duval
ab2b993da9 added nexttoward()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 15:00:33 +00:00
Jérôme Duval
bb97148298 added more posix functions
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 14:31:28 +00:00
Michael Pfeiffer
b3c05fb63e * Remember changing the color of an ui_color.
* Simplified code a lot when doing that and removed lots of unused code.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 13:57:17 +00:00
Jérôme Duval
a3c99d9dee print out unknown cpu types
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 13:00:19 +00:00
Michael Pfeiffer
ec4a55fdbf Removed wrong TODO.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 11:08:55 +00:00
Michael Pfeiffer
7b1c4ba38f * Always draw entire ColorWell to avoid flickering
* Moved ColorWell infront of ColorPicker. It was hidden behinde the attribute list.
* Made ColorWell and ColorPicker follow its parent frame bottom when resized.
* Made attribute list follows its parent frame top and bottom when resized. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 09:13:16 +00:00
Stephan Aßmus
19a1d666b3 Improve the Read-Only mounting suggestion for additional volumes.
* Following a suggestion by BGA, even non-boot Haiku volumes will get the
  read-only popup, although with less emphasis in the wording.
* BPartition does inherit the read-only flag from it's parent device when
  not yet mounted. This is now checked and at least prevents the read-only
  popup for volumes on read-only media. If I understood everything correctly,
  there is no easy way to tell if a file system supports writing.
* Updated indentation style in the header.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 08:02:59 +00:00
Michael Pfeiffer
e53fa536eb Obviously the else block was missing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 07:37:12 +00:00
François Revol
af18effb0e No need to report an error on modules that aren't modules...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 00:57:24 +00:00
Rene Gollent
ddfa870bb5 Set native eol-style (CR/LF issues).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-05 23:34:16 +00:00
Jérôme Duval
2eb280d3a8 added a few more math functions, rearranged some functions in math.h
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-05 23:21:33 +00:00