Commit Graph

11982 Commits

Author SHA1 Message Date
Stephan Aßmus
5df6611a26 link with the objects needed for ServerFont
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-23 22:32:11 +00:00
Stephan Aßmus
2fc1fe2098 corrected code for general test
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-23 22:31:32 +00:00
Stephan Aßmus
f6e20515b3 refactored DrawBitmap to support a version BBitmaps and one for ServerBitmaps, implemented InvertRect, but that was a while ago, and I didn't test it
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11961 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-23 20:32:04 +00:00
Stephan Aßmus
a0c67cdb39 refactored DrawBitmap to support a version BBitmaps and one for ServerBitmaps, implemented InvertRect, but that was a while ago, and I didn't test it
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-23 20:31:33 +00:00
Axel Dörfler
ffc80308e6 Some arch functions are no longer used, but called directly (like find_thread(NULL)
instead of hoardGetThreadID()).
Removed unused arch functions.
__init_heap() now calls hoardHeap::initNumProcs(); it's no longer initialized
through a global constructor - that ensures that the heap can really be used
by libroot's constructors (although it did work before as well, somehow).
Moved the heap to 0x30000000 for now (limiting its size, but also ensuring free space
after it) - until the VM can avoid the free space after the heap.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-23 15:08:25 +00:00
Axel Dörfler
531cc7dc91 We now have a growing heap. hoardUnsbrk() is not yet implemented, though.
The new heap backend will probably be taken from the boot loader's heap
implementation (the free chunk stuff).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-23 14:15:32 +00:00
Axel Dörfler
d95383a3b9 Fixed various binary compatibility problems with R4.5.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-23 13:22:42 +00:00
Axel Dörfler
c4472a00b1 The heap is now initialized by libroot_init.c::initialize_before(), so
that we no longer need an initialize_after().
Put the architecture dependent hoard functions into the BPrivate namespace
as well. Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-23 01:47:21 +00:00
Axel Dörfler
162d278cbd Now copies the boot_floppy's fortune command again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-23 01:17:06 +00:00
Axel Dörfler
076c1b0ea4 Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-23 01:15:33 +00:00
Axel Dörfler
f557016851 Applied our coding style, but all clases into the BPrivate namespace.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-22 22:59:41 +00:00
Axel Dörfler
f05dec1ea0 Now creates the BEOS:APP_SIG index, so that starting applications
by signature always works.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-22 03:12:41 +00:00
Axel Dörfler
28fb0f9857 Added a very simple mkindex command - can only create string indexes for now
(and added support for that function in the emulated kernel).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-22 03:08:32 +00:00
Axel Dörfler
dfb8cfea3f Fixed some obvious bugs: B_GET_PROPERTY shouldn't enter the debugger fow unknown
properties; it should pass on to the next handler (and only if there is none
reply with a B_MESSAGE_NOT_UNDERSTOOD).
Those B_MESSAGE_NOT_UNDERSTOOD are no longer the answer to a B_MESSAGE_NOT_UNDERSTOOD
message anymore, as this lead to an endless loop (for example when starting the
media_server).
Added some ToDo comments - someone please check what has to be done and fill it
out some more.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-22 02:42:19 +00:00
Axel Dörfler
0efd929e4d Now always print its name first when issuing error messages.
fclose() is now actually called.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-22 02:35:55 +00:00
Axel Dörfler
5680579795 Added two output options: -o redirects output to the specified file,
-S will dump over the serial line (kernel debug output).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-22 02:20:41 +00:00
Marcus Overhagen
3f484ea41a test checkin
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-22 01:01:57 +00:00
Adi Oanca
165177a105 Added support for Layers capturing the mouse (Mouse events). Changed WinBorder to use mouse events.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 20:29:24 +00:00
Adi Oanca
642d7ca95e Implemented BView::SetEventMask()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 20:26:44 +00:00
Adi Oanca
be94b51d74 Added AS_LAYER_SET_EVENT_MASK
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 20:23:30 +00:00
Axel Dörfler
cd6c2db413 Removed rld0.c (more or less merged its contents with rld.c).
Renamed RLD_STARTUP() runtime_loader() - the new entry point of the loader.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 19:11:12 +00:00
Axel Dörfler
f7a818f980 Has been moved to src/tests/kernel/boot_floppy.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 18:02:15 +00:00
Axel Dörfler
ea0bca7cd2 The boot floppy now builds at its new location.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 17:57:45 +00:00
Axel Dörfler
57f911a437 Moved kernel/apps to tests/kernel/boot_floppy, removed boot_floppy stuff
from kernel/Jamfile. Actually kernel/apps is still there as Subversion
doesn't let me commit it -- I'll remove that later.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 17:54:13 +00:00
Axel Dörfler
6557584901 Made some kernel tests build again (that didn't work anymore since I moved
some pieces around). There might be more left, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 17:38:22 +00:00
Axel Dörfler
133841a10e Moved cache_control.cpp out of kernel/apps/ and into tests/kernel/core/cache/.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 17:32:14 +00:00
Axel Dörfler
200599e9df Moved consoled out of kernel/apps and into tests/kernel/.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 17:25:45 +00:00
Axel Dörfler
fe2db057d0 Moved rld/ from apps/ into it's own directory, runtime_loader.
Moved the rld.so creation from kernel/Jamfile to kernel/runtime_loader/Jamfile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 16:15:33 +00:00
Axel Dörfler
dd8d0a9247 Renamed console_desc::arg_ptr to arg_count, gconsole to sConsole, variable "con" to "console".
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 14:41:46 +00:00
Axel Dörfler
f5a0e223f4 Clear screen and clear line commands now work as expected.
The default option of "m" is now honored.
Prints out <BEEP> to the debug output instead of printing it on-screen.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 13:42:54 +00:00
Ingo Weinhold
ccba980438 Added haiku.image and svn-commit.tmp (don't know, why svn doesn't delete it) to svn:ignore.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11933 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 23:00:24 +00:00
Ingo Weinhold
f8e5453f2b Added a small program for testing unblocking on close and select support. Not quite exhaustive and tests for ECHO mode are missing, since I couldn't figure out how to turn it on.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 22:35:05 +00:00
Ingo Weinhold
27a5523990 * Dealt with (hopefully) all open/close race conditions.
* Implemented unblocking of pending operations when closing a cookie.
  Needed to change the simple one reader semaphore, one writer
  semaphore strategy for blocking to a request queue based approach
  (otherwise unblocking would have been really hairy).
* Implemented select() support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11931 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 22:31:35 +00:00
Ingo Weinhold
fa062b9f09 Added SemaphorePool class.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 22:24:05 +00:00
Ingo Weinhold
2efc846c8a * Added delete_select_sync_pool().
* A new select sync pool entry wasn't really added to the pool.
* More debug output.
* The semaphore created in common_{select,poll}() needs to be created
  with count 0, otherwise we won't block.
* A serious race condition remains in common_{select,poll)(). When a
  selected FD is closed we can't deselect select events anymore, so
  that subsequent notify_select_events() issued by the FS/driver might
  write into already free()d memory. A solution would be to get_fd()
  the involved FDs and operate directly on them instead of using the
  indices. I'm just too lazy to do that now.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11929 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 22:15:33 +00:00
Ingo Weinhold
1cebd061c3 Added delete_select_sync_pool() to clean up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 22:07:29 +00:00
Ingo Weinhold
c379e6fed2 Added libdebug.so.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 22:06:29 +00:00
Ingo Weinhold
362e09b124 In case of a debugger() call now also prints the debug message. Makes use of the new libdebug.so.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 22:06:13 +00:00
Ingo Weinhold
0a064776ae Added the beginnings of a small private API for debug support.
Entirely implemented on top of the public <debugger.h> API, but more
convenient to use. Lives in a separate library libdebug.so.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 22:04:04 +00:00
Ingo Weinhold
8af41139d5 Added default constructor. Useful in combination with SetTo().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 21:59:51 +00:00
Andrew Bachmann
8080d00048 link to libroot.so instead of root, so uname is available
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 21:56:49 +00:00
Jérôme Duval
41c243b187 renamed key_map.cpp to main.cpp
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 12:54:11 +00:00
Jérôme Duval
bbd5db1a61 relative path for header search
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 12:48:57 +00:00
Jérôme Duval
f28587e165 removed .cvsignore files
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 12:31:46 +00:00
Adi Oanca
464ebc06c7 Some extra locking when adding a WinBorder
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11919 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-19 19:08:19 +00:00
Adi Oanca
07bde8ab89 * solved that damn bug that run me into debugger. yuppyyy.
* removed some comments
* mouse down messages go only to the view that has focus. Yeah, they didn't. :p
* solved a bug where some windows did not redraw when hiding a modal.
* another bug where a floating window would not come in front for gaining focus.
* added client's team_id into window title.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-19 18:58:47 +00:00
Axel Dörfler
b55be0692f Fixed a copy&paste error that prevented _user_close() from working
correctly (it would have closed kernel file descriptors instead...).
Updated/improved docs a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11917 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-19 03:22:34 +00:00
Axel Dörfler
15e795e9ff Implemented vm_translation_map::protect() for x86. vm_set_area_protection()
now uses this one instead of using map() for every single page - this should
be faster in most cases, and also, more importantly, does not mess up the
map_count counter anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-19 03:07:33 +00:00
Axel Dörfler
1ff0923db6 Removed the old (and nowadays unused) addons directory and related headers.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11915 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-19 02:35:40 +00:00
Axel Dörfler
b5f8ce37cc Apparently, the $(DOTDOT) stuff does work as expected; it only seems
to work when jam was executed in the local directory (as I did for testing).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11914 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-19 02:34:08 +00:00