Commit Graph

12838 Commits

Author SHA1 Message Date
Axel Dörfler
2a1492f0fa Moved the definition of the BlockAddressPool class into block_allocator.cpp, as it's
not used outside of it.
Added tracking for the last transaction in the block cache; that way it can test
if the last transaction has been closed before opening a new one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13022 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-09 02:14:28 +00:00
Axel Dörfler
584d673049 Fixed various bugs in the block allocator: new free ranges were never added
to the free list, so a new range was started for every allocation (!).
block_range::Free() did not update the chunk's used_mask correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13021 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-09 02:09:06 +00:00
DarkWyrm
36f5422d14 Serious cleanup:
Most files updated to style guidelines
	Panel now updates cache size
temporarily disabled revert code while cleaning up the code
settings file is now a flattened BMessage for the app_server's sake
Unhacking some of the code


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13020 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 22:35:44 +00:00
Axel Dörfler
1c12a6a33f Inode::ShrinkStream() now evaluates the return values from some functions - dunno
if that's a good idea (it may still be a good idea to succeed for shrinking the
stream, even if not everything worked), but it looks better :-)
Improved debug output in case TrimPreallocation() fails.
Journal::FlushLogAndBlocks() no longer ends the current transaction if called
from within an ongoing transaction.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 17:33:56 +00:00
Axel Dörfler
78d6683c68 Changed the "help" command to be able to only show all commands starting with a certain string.
This helps to reduce the flood of commands for those blue screen "users" :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 17:16:40 +00:00
DarkWyrm
a2b336134d Implemented handling for the different layouts
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13017 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 17:11:57 +00:00
Axel Dörfler
07339e709d Ctrl-C now also works in the MiniTerminal.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 16:58:46 +00:00
Jérôme Duval
4fadb30230 Fixed --> when at least two call forms are listed (thanks to axeld for reporting this)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13015 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 16:03:00 +00:00
Stefano Ceccherini
d4fe6ec1e7 Looks like our send_data() doesn't like to be called when a thread isn't running. Could just be that I'm not using it correctly, though. Menus now open under the 'real' haiku, though they still hang the window after some time
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13014 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 15:27:23 +00:00
Axel Dörfler
8b0b0568fd Made copy_from_start() more clear and probably faster.
Commented out a check that would prevent characters smaller than B_UTF8_ELLIPSIS
to be rendered (ie. the maximum width could be less than the ellipsisWidth but
greater than the complete string width for small strings).
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13013 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 14:38:29 +00:00
Axel Dörfler
e60b1ff1d8 Reserved space for the close and zoom buttons, even if they were absent.
Hack workaround: enlarged the text width a bit, because the title often appeared
truncated for no apparent reason.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13012 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 14:35:25 +00:00
Jérôme Duval
4a0c02c9d0 removed suffix in MANREFPRINTF (XML is only IDs based). this could break on non-XML outputs (we don't care).
added a para close tag when using refsect2



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13011 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 13:30:53 +00:00
Axel Dörfler
3ba7d6f350 Added AS_{GET|SET}_DESKTOP_COLOR.
(Incorrectly) implemented AS_GET_DESKTOP_COLOR - works for now.
Minor cleanup.
Is AS_SET_SCREEN_MODE used at all?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 13:24:40 +00:00
Stephan Aßmus
2f6a25d52d fixed build of fake_app_server
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13009 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 10:32:24 +00:00
Jérôme Duval
52c423baef coreutils man documentation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13008 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 10:00:31 +00:00
Jérôme Duval
d4d6e6c0ae activated documentation/shell_tools
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 09:57:32 +00:00
Stefano Ceccherini
8eae8b05e8 Every BApplication (even applications which didn't use it) allocated a BPrivateScreen object. Now they are created/destroyed on demand (when a BScreen object is constructed), and reference counted, so that there is still only one per app. Note that since we are creating/deleting them, constructing a BScreen object can be more time consuming than before, but personally I find this approach much cleaner.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 07:36:41 +00:00
Axel Dörfler
e9b005131f Fixed some crashing bugs (that only appear under Haiku, because there is some
stuff missing - defensive programming rules :-)).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 04:11:19 +00:00
Axel Dörfler
bd28b3c746 BAppServerLink is now using BApplication::fServerTo/From for its messaging.
Added LinkMsgReader::NeedsReply() method.
Completely redone ServerApp messaging: no more "replyport" from BAppServerLink; instead,
the registered client reply port is used. Fixed some more weak messaging stuff.
ServerApp now recognizes if an unknown message needs a reply, and sends it - for example,
the "Screen" preferences app no longer hangs, but crashes on start :)
Made LinkMsgReader::Read() virtual again, since it's needed by RAMLinkMsgReader.cpp.
Renamed BPortLink::GetNextReply() to GetNextMessage().
Some more cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 04:01:59 +00:00
Axel Dörfler
be835bdf0b Fixed LinkMsgReader::ReadString() for empty strings I just broke before.
Extended the PortLinkTest application a bit (and updated it).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13003 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 03:29:10 +00:00
Axel Dörfler
0aa69a9cd4 Fixed the crashing bug when quitting the app_server.
The display driver is now owned by the Screen object.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13002 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 01:40:22 +00:00
Axel Dörfler
d673482488 Under Haiku, the "stub" driver is called "vesa", so we're trying to use this one.
Note, the special case can go as soon as we've moved the driver over to the new
driver architecture.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 01:39:14 +00:00
Axel Dörfler
ecc2961bee Fixed warnings and the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 01:23:44 +00:00
Axel Dörfler
9db6e5bc94 Fixed fake_app_server build due to the BPortLink changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12999 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 01:13:38 +00:00
Axel Dörfler
75936a02e4 BPortLink now has a FlushWithReply() method itself.
BPortLink::AttachString() now accepts a length argument, and will no longer
send a terminating null byte; LinkMsgReader::ReadString(), however, will
make sure the string read is null terminated.
Changed client communication code to use FlushWithReply() instead of Flush()
and GetNextReply() - there were many bugs and shortcomings in the code, I
hope I've fixed them all.
Converted ClientFontList.cpp to our coding style (but not completely, the
class members are missing).
Some more cleanup - I hope Adi will adopt our coding style one day!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 00:36:26 +00:00
Axel Dörfler
750b92faf3 Almost rewrote LinkMsgSender; it's now much cleaner and works better:
- StartMessage() can now get a size to make sure there is enough free space
- if StartMessage() is called with the current message behind a certain
  watermark, the buffer is flushed in order to prevent moving around messages
  in the buffer. The actual value should be tested in real life, though.
- enlarged maximum buffer size to 64k
- fixed bug: could use memcpy() to move overlapping memory around
- added a flag to Flush() that marks messages as needing a reply - the other
  way would be to mark the message "code" to contain this information

Some cleanup in LinkMsgReader.
BPortLink now has most methods as inlines.
The buffer sizes are now declared in a shared header, so that receiver and
sender are always equipped equally.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12997 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 22:36:03 +00:00
Stefano Ceccherini
7475dcdf3a Added an app server command to retrieve the color map. Made some adjustments to SystemPalette.cpp, implemented support for it in BPrivateScreen. Moved get_scs() a bit down to avoid a deadlock. Note that getting the colormap doesn't work due to port capacity limit (?)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 21:32:24 +00:00
Axel Dörfler
62fbf00df8 Added a simple mini test application for BPortLink.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12995 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 19:40:56 +00:00
Jérôme Duval
7e17503e5e removed AddResource
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12994 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 16:21:21 +00:00
Jérôme Duval
18c3ce0778 added a resource parameter to Preference rule
updated Jamfiles to take this into account


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12993 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 16:19:59 +00:00
Jérôme Duval
87763db72b links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12992 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 14:34:47 +00:00
Jérôme Duval
1992ebb39f links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12991 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 14:31:09 +00:00
Axel Dörfler
c493c21745 Cleanup only.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12990 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 14:30:50 +00:00
Jérôme Duval
21984f2a72 links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 14:25:13 +00:00
Jérôme Duval
88c0001344 clean up (now uses our libs, haiku name)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 14:11:42 +00:00
Stefano Ceccherini
4ef10a59e4 Accidentally commented out RestoreFocus().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:58:51 +00:00
Jérôme Duval
3c109b50be links against our libs
added strlcpy.c for r5 build


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:39:13 +00:00
Stefano Ceccherini
fd083d7eed Use the private menu actions defines. Small cleanups.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:35:16 +00:00
Stefano Ceccherini
88da217a0b Added a header with menu actions defines
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12984 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:34:50 +00:00
Stephan Aßmus
d5233162ca removed no longer true stuff and some debug left overs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:30:56 +00:00
Stephan Aßmus
442992bf26 fixed some pretty bad bugs that prevented menus from working (they now do): The BMessage* in AddShortcut is taken in responsibility by the BWindow, so we cannot directly use the message from BMenuItem, the be_app was locked in InitData but never unlocked, it fixes BMenus only working once, and who knows what else it fixes. A little cleanup with _BCmdKey usage, also note that it is inefficient to RemoveItem()s from a list in the destructor of any class using a BList as data container! Simply delete the items and be done with it. The BList destructor will take care of the rest and free its storage in one go.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:19:28 +00:00
Stephan Aßmus
4ece454391 since the bitmap will be filled with content, we can use 0 as flags for the BBitmap constructor, which prevents it from unnecessarily filling with white
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:14:57 +00:00
Stephan Aßmus
8768dcd876 BMenu installed all previously added items each time a new item was added
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:13:43 +00:00
Jérôme Duval
e068395097 links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:13:18 +00:00
Stephan Aßmus
0b5938e995 added a TODO comment, I forgot to mention that anything but B_TRUNCATE_END is untested or broken
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:12:43 +00:00
Stephan Aßmus
590fdd3f2d added B_QUIT_REQUESTED message
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:10:45 +00:00
Jérôme Duval
f13db7ba25 links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:10:15 +00:00
Jérôme Duval
2bc5183d59 links against our libs
multiple symbolspaces deactivated on haiku


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 12:56:00 +00:00
Jérôme Duval
1100b1dd94 links against our libs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 12:48:08 +00:00
Jérôme Duval
f81e9b2072 links against our libs
multiple-symbols is deactivated for Haiku


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12973 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 12:44:27 +00:00