Commit Graph

26653 Commits

Author SHA1 Message Date
Axel Dörfler
6126236e8a * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27627 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 16:04:28 +00:00
Stephan Aßmus
e9a105668d Update some comments after understanding things better. Some things which got
me confused were perfectly correct.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27626 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 15:35:54 +00:00
Axel Dörfler
35a16d8f5e * Moved the inode_types into Utilities.h.
* Added a S_EXTENDED_TYPES constant to simplify some checks.
* Simplified the fAllowDuplicates computation in BPlusTree::SetTo().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 15:22:29 +00:00
Stephan Aßmus
aecd884e05 * Added some hopefully helpful comments.
* Replaced my bogus comment that Ingo pointed out with a description that
  mentions LogicalPartitions also being used to describe so called "inner
  extended" partitions, which are only needed to point to the next PTS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 14:56:49 +00:00
Axel Dörfler
e73923b0c2 * Renamed static recursive lock variables to match our coding style guidelines.
* Renamed runtime loader semphore to something clearer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 14:01:29 +00:00
Axel Dörfler
95deefbf66 * Fixed wrong indentation and spacing.
* Enlarged default port size to 50.
* Added license header.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27622 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 13:12:22 +00:00
Axel Dörfler
01774b2af5 * Added optional package for BePDF 1.0.0b2.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27621 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 12:55:59 +00:00
Axel Dörfler
8f3c0d9fcc * wait_for_timer() now returns a status code.
* wait_for_timer() now detects if it has been called from within the timer
  execution thread, and will return in error instead of waiting for itself
  forever. This fixes bug #2682.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27620 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 12:45:43 +00:00
Stephan Aßmus
deb37e6f6b Added Network icon based on a patch sent by Meanwhile. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27619 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 12:05:04 +00:00
Stephan Aßmus
9acc70ce90 Cleanup and simplification of the Pairs icon, based on a patch sent by
Meanwhile. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27618 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 11:27:03 +00:00
Stefano Ceccherini
136d40a890 in case the passed name was NULL, the TeamMenuItem would set a NULL label, instead of passing the 'team n' string. Also use snprintf() to build said string, and change the code a bit. malloc.h > stdlib.h, and don't check for null before calling free()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 10:24:19 +00:00
Stephan Aßmus
11b3c08b53 More comments about things that got me confused.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27616 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 09:22:06 +00:00
Stephan Aßmus
f1c34ec3eb Ah yes, here is the TODO I wrote with regards to the comment in my earlier
commit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 09:20:34 +00:00
Stephan Aßmus
daa191ec7c Simplified a bit the extended partition parsing loop, no functional changes
intended. I am wondering though about the offset that is passed to the
logical partitions. If I am not confused, later partitions still use the
primary partition's offset as base offset, so I am wondering if more than
two non-extended logical partitions would work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27614 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 09:19:20 +00:00
Stephan Aßmus
5eb27029ee * Only renamed a few variables to fit our style guide.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27613 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 09:14:50 +00:00
Axel Dörfler
21b592c551 * Added Screenshot app to the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 08:49:52 +00:00
Axel Dörfler
9a6072a35f * Resolved TODO added by Ingo: the runtime loader now lazily updates its
image IDs when needed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27611 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 08:04:29 +00:00
Stefano Ceccherini
3534ce57f0 malloc.h ain't no standard header. Small style change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 07:02:15 +00:00
Stefano Ceccherini
c2831e444a Use GetTrackerIcon() in case getting the specific app icon fails, instead of using the (outdated) icon in the resource. Fixes bug #984. Thanks to Stephan for the hint.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27609 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 06:55:59 +00:00
Ingo Weinhold
2f5c4a90d8 We don't get a separate B_DEBUGGER_MESSAGE_THREAD_CREATED message after
a B_DEBUGGER_MESSAGE_TEAM_CREATED, so we have to immediately start
profiling the main thread.
Profiling child processes basically works now, but since we still don't
track image creation/deletion, the results aren't correct yet (that is
library symbols might keep the same addresses).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27608 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 00:20:13 +00:00
Ingo Weinhold
eb333098fe Added work-around for a runtime loader problem after fork(). Its image
structures still have the parent IDs, so finding an image by ID would
fail in this case. We do now fall back to getting the image's text base
address and finding the image by address.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27607 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 00:15:44 +00:00
Ingo Weinhold
56302466dc * image.c -> image.cpp
* Added global hash table for images.
* Improved a bit of code by using the new image hash table. E.g.
  _get_image_info() can return infos for images of any team, now.
* Fixed remove_images() comment: The function must not be invoked with
  the team lock being held.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27606 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-18 00:03:25 +00:00
Karsten Heimrich
a75264d3f6 * small screenshot app that was once discussed
* misses a proper icon and does not save atm...



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 22:59:09 +00:00
Ingo Weinhold
cbc456de3b Added TODO regarding updating the image ID's after fork().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27604 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 22:56:18 +00:00
Ingo Weinhold
64f885c7d2 Refactored quite a bit. In theory the tool does support profiling child
processes recursively. In practice that doesn't really work, though, for
mainly two reasons:
* The runtime loader doesn't update it's image IDs, so the symbol lookup
  doesn't work. Even, if the runtime loader would do that, we are
  notified before it had a chance to do it.
* We're not tracking image creation/deletion yet, particularly fork()
  + exec*() leaves us totally clueless. Tracking images is quite unhandy
  with the current profiling API, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 22:55:21 +00:00
Ingo Weinhold
4eba6974b5 When quitting the debug nub thread very early (i.e. right after its
creation), we didn't release the team debug info spinlock and reenabled
interrupts.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 22:38:17 +00:00
Philippe Houdoin
7b40eb4206 Fixed a typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 22:24:55 +00:00
Jérôme Duval
eef7a6772e whitespace cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 20:14:24 +00:00
Axel Dörfler
4ce1e1d2e4 * Fixed a possible deadlock on quit: ActivityView::DetachedFromWindow() is
called with the window lock held, so it's not a good idea to wait for a
  thread that may also lock the window. Now, it no longer does that, but just
  sends a B_INVALIDATE message instead of calling Invalidate() directly.
* This closes bug #2737.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 18:01:37 +00:00
Axel Dörfler
dc79961e1e * Added swap usage and page faults per second data sources.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27598 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 16:28:32 +00:00
Axel Dörfler
ca7cb625b9 * Implemented a (private for now) get_system_info_etc() call, that can retrieve
various system information.
* Implemented retrieving some VM stats via this call.
* The VM now maintains a page fault counter, and sets system_info::page_faults
  accordingly.
* Added a (pretty simple) "vmstat" command line app.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 16:27:17 +00:00
Stefano Ceccherini
b0a63e7a2a implemented BarTeamInfo copy constructor and used it in TBarApp::Subscribe(). Also cleaned up a bit the code in TBarApp destructor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 14:38:12 +00:00
Stefano Ceccherini
8ade1bf7a6 initialize 'err'. CID 1308 & 1309
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 10:05:04 +00:00
Stefano Ceccherini
6dcce65687 port the changes made to the libbe counterpart (r27297 and r27485)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 09:15:48 +00:00
Stefano Ceccherini
632f1504a8 assign a token to the ServerPicture before anything else. If something fails to initialize, we can still search the picture via token
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 07:35:00 +00:00
Ingo Weinhold
6d4673085d All threads of the started program are profiled now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 00:27:09 +00:00
Ingo Weinhold
5f87692c66 Increased the maximal port message size to 256 KB. The profiling
messages easily hit the previous limit. Maybe another solution should be
sought.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-17 00:23:25 +00:00
Jérôme Duval
bacba30b6f white space cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 21:31:47 +00:00
Jérôme Duval
07d143d4be <malloc.h> is no standard header
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 21:28:32 +00:00
Jérôme Duval
31c5eb6ad7 clean up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 21:22:52 +00:00
Michael Lotz
173563d537 Update fallback mappings after removal of BitStream fonts. Not sure these are needed at all though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 21:10:30 +00:00
Stephan Aßmus
b2c4c4f1f7 * Added BRadioButton test (the class seems to work fine).
* Extended the BMenuField test to see what happens when the super item label
  changes (works fine now).
* Updated TODO.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 15:10:11 +00:00
Stephan Aßmus
43f8c6143a * Updated the coding style.
* The layout friendly constructors don't need to mess with the control size.
* The layout friendly constructors can use the respective BControl constructor.
* Refactored some duplicated code.
* Removed duplicated GetFontHeight() calls.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 15:08:02 +00:00
Stephan Aßmus
349c911ee9 * Implemented a lot of layout related methods and resolved a few TODOs by
doing a lot of these things the same way as BMenuField are already doing.
  Perhaps a private helper class could be refactored from these two controls
  to avoid duplicating a lot of this code, although there are a few subtle
  differences here and there.

These changes make a BTextControl behave properly in the layout management
frame work, in case CreateLabelLayoutItem() and CreateTextViewLayoutItem()
are _not_ used to layout the BTextControl.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 10:50:31 +00:00
Stephan Aßmus
08edea662b * Don't set an explicit max size, instead calculate a proper max size in
MaxSize(). This makes sure that MaxSize() returns a proper size when the
  user "unsets" the explicite max size.
* minimum label height is 0 if there is no label.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 10:45:27 +00:00
Stefano Ceccherini
10d8f3749e added a test for BView::SetDiskMode()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 10:27:41 +00:00
David McPaul
6ab381ac31 AAC support
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 09:48:33 +00:00
Stefano Ceccherini
9ed6b85806 fix warning. BSlider::SetValue() accepts an int32 parameter
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 07:33:55 +00:00
Stefano Ceccherini
b482d05552 Fix gcc4 warning, small style changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-16 07:32:36 +00:00
Jérôme Duval
edf6624bc8 * fix debug build
* publish a performance time before starting, so that others wait for us with valid values: this enables running with larger audio buffers
* don't publish a performance time before having a non null old realtime (at least two buffer exchanges)
* don't dereference config pointer before checking it is not null
* if we don't find an input for a buffer, we also recycle the buffer 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27578 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-15 20:45:52 +00:00