Commit Graph

12028 Commits

Author SHA1 Message Date
Axel Dörfler
b51d2e941a Now uses the ring_buffer implementation instead of cbuf.
Decreased the pipe buffer to 32768 bytes (it's 4096 on BeOS).
pipefs_select/deselect() did no locking.
Switched to using the BenaphoreLocker where possible.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 22:43:35 +00:00
Axel Dörfler
3e15f83d9e Added a BenaphoreLocker.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 22:40:48 +00:00
Adi Oanca
49ea5b1684 Yeah, I can't imagine how I could forget to insert this line...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 21:47:44 +00:00
Adi Oanca
ea44b0bc79 Made BWindow::WorkspaceActivated() and BWindow::WorkspacesChanged() work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 21:32:23 +00:00
Michael Lotz
8283956843 Don't add the bcm* links to dev/net since we don't compile the drivers.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 20:59:14 +00:00
Stephan Aßmus
1f9c8f7df0 I must compile before I commit. I must compile before I commit. I must compile before I commit...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 19:38:25 +00:00
Stephan Aßmus
4c90b41029 If you don't declare the destructor virtual in the base class, you will leak memory and the destructor of an inherited class might not be called at all. Removed unnecessary comments. Enhanced readability, because I felt like it...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 19:31:24 +00:00
Axel Dörfler
99cd375fb3 Another round of build fixes, courtesy of Philipp Schmid.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 17:38:05 +00:00
Axel Dörfler
fc26cdb2a8 No longer needed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 17:14:57 +00:00
Axel Dörfler
29b949de52 GCC 3 conforms to ISO-C-99 so _Bool is a built-in type; we should not try to redefine it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 16:51:55 +00:00
Axel Dörfler
92ec9b2fbc Added our old "new" header again, as I can't build anything without it under Linux (PPC and x86).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 16:50:25 +00:00
Jérôme Duval
4d9afc0a79 added data files targets
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 16:22:15 +00:00
Jérôme Duval
3532ee4d2b fixed the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 16:12:00 +00:00
Jérôme Duval
04879b648a added a comment about using R5 style comm in input_server when consoled is using input_server
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 16:10:43 +00:00
Jérôme Duval
20a87f5f9a added uptime
removed sleep as coreutils provides one


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 16:05:03 +00:00
Axel Dörfler
6099dc09eb Removed the driver from the boot floppy.
Fixed location of the ldscript.
Is this driver needed anymore at all?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 15:12:47 +00:00
Axel Dörfler
900849fa0d Since objects/.../system/kernel is now a directory, the kernel target is now
called kernel_${arch} like on disk. A "jam kernel" will still work, though.
Also updated all those Jamfiles I forgot to update before.
Since makehdimage now runs through (and even builds a working image), I guess
most of the consequences of the "kernel/core" -> "system/kernel" rename task
are solved.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 14:49:55 +00:00
Michael Lotz
4ce3301a57 This should now actually fix the recursive lookup of the net_stack_driver. We must only load the networking core once.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 14:19:20 +00:00
Axel Dörfler
718b5114e0 This should fix the build after all the kernel/system renaming.
If anything is still broken (and was not before :)), please shout.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 13:59:17 +00:00
Axel Dörfler
2d690920ac Renamed system/core to system/kernel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 13:22:10 +00:00
Axel Dörfler
5af32e7526 Renamed src/kernel to src/system.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 13:06:35 +00:00
Axel Dörfler
530d77200b The PS/2 keyboard and mouse drivers are now using the new ring_buffer implementation
of the kernel. Also fixed unsafe userland communication, and other minor issues.
The packet_buffer encapsulates the ring_buffer and adds some handy functionality
(like locking).
Removed the global open masks - no reason for them to be defined globally.
Lots of cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 13:00:32 +00:00
Axel Dörfler
ef2b38e7a9 Added a simple ring buffer implementation to be used by the mouse
and keyboard drivers, as well as pipefs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 12:57:42 +00:00
Axel Dörfler
709bbb9ea3 The input_server no longer uses R5 communication by default - this should
fix the keyboard/mouse problems of most (because they probably didn't know
about this flag). Still does not work for me, though.
Note, if you want consoled the use the input_server, or if you want to use
the input_server as an R5 replacement, you have to define this flag again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 12:55:54 +00:00
Axel Dörfler
fce78d9e21 The console driver now supports TIOCGWINSZ (getting the window size), and
"consoled" now uses this information to tell the TTY its size.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 12:51:26 +00:00
Axel Dörfler
7c71cdd82d Removed the "fixed" configuration - we could have built "less" fine for a couple
of months now. This solves (probably) all those strange problems you might have
experienced using it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 12:48:34 +00:00
Jérôme Duval
5555c5efdb added tail
added mouse device input addon
added filters input directory


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 19:25:35 +00:00
Jérôme Duval
a2c10460cc * added TRACE info
* we now put data in cbuf at the good offset
The mouse is now working ok in Haiku, tested with input_server.
The current implementation based on our cbuf isn't good, as we're erasing old data, if mouse input addon can't keep up with interrupts.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 18:57:44 +00:00
Jérôme Duval
491417146b whoami is provided by coreutils (AFAIK)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 18:52:11 +00:00
Jérôme Duval
ccce070045 As Haiku BScreen::Frame() doesn't work in our current state, we use a fake Frame
input_server now sends well filled BMessages in Haiku


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 18:51:03 +00:00
Nathan Whitehorn
ff50d32d9d Confirmed I was a moron in one of axeld's TODOs, changed B_LOMEM to B_FULL_LOCK | B_CONTIGUOUS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 18:00:29 +00:00
Stephan Aßmus
c9ceeec23c Reverted some changes by Adi, because the way it works now is more helpful in finding bugs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 13:16:58 +00:00
Stephan Aßmus
6697162d5c just a slightly more robust default font handling... should now work on Haiku even if you didn't install fonts from BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 13:15:38 +00:00
Stephan Aßmus
8a92263232 I _think_ the global system default fonts were never set. I added that to the _init_interface_kit_ function, and it fixes the system fonts under R5. It might have looked like it worked on Haiku before, but I think the be_fixed_font was just the first font found by the scanner in either Haiku and BeOS, while on Haiku, this was Courier just by chance. If this is not the right place to call _init_global_fonts, please tell me or just fix it. I tested under Haiku and BeOS and it looks like it works...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 13:02:20 +00:00
Axel Dörfler
3f762b0d64 Turned two dprintf()s into the TRACE() macro, as their messages are not really that important.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 09:02:32 +00:00
Axel Dörfler
53465d39c5 Added gdb to the image.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:56:32 +00:00
Axel Dörfler
e826b3f47e put_module_image() is now again called independently from B_KEEP_LOADED - that has
the advantage that module_image::ref_count does not get messed up, so we could still
determine when to unload such a module (with an extra function).
get_module() now calls put_module_image() if B_MODULE_INIT failed - failing modules
were never unloaded before...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:55:03 +00:00
Axel Dörfler
e6963ff534 If B_KEEP_LOADED is specified, it's now guaranteed that B_MODULE_UNINIT is never
called, and B_MODULE_INIT only once.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:42:06 +00:00
Stephan Aßmus
643d10bb64 Added a big TODO comment, StrokeLine takes now non-const DrawData.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:28:25 +00:00
Stephan Aßmus
b176b6b493 The DisplayDriverPainter is now also the default on Haiku. The DisplayDriverImpl stuff is left out for now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:22:16 +00:00
Stephan Aßmus
5eec899752 added a TODO comment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:15:53 +00:00
Stephan Aßmus
a53e726400 StrokeLine takes a non-const DrawData, penlocation is altered.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:15:25 +00:00
Stephan Aßmus
a11f3c21fd StrokeLine takes now a DrawData, but it is only work in progress. The changes will be more drastic in the end.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:14:29 +00:00
Axel Dörfler
39c2d6c421 If the debugger command "team" is used without arguments, it will now print a list of all existing teams.
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:13:12 +00:00
Stephan Aßmus
80ed6173ec Hinting works now and is enabled, the support for transformed text is probably completely broken now. To reenable it, the font loading needs to ask for vector glyphs when there will be a transformation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:12:59 +00:00
Stephan Aßmus
0858a6fca1 The freetype hinter only works correctly if the embedded transformation is the identity matrix. The AGG freetype font engine has a flip_y method to make it easier to work with coordinates where y points down. Since it changes the embedded transformation, hinting was messed up. Therefor, this is a workarround to be able to keep using the identity matrix and still have y pointing down. It just flips the generated raster glyphs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:11:09 +00:00
Stephan Aßmus
764683a939 StrokeLine alters the pen location, DrawData needs to be non-const. I didn't make this change in the DisplayDriverImpl stuff, and it is left out of the build for now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:07:20 +00:00
Stephan Aßmus
bd6b1617ec a few cosmetic changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 08:05:03 +00:00
Axel Dörfler
a9ac393b28 The nvidia driver now works under Haiku when build with target haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 07:52:01 +00:00
Axel Dörfler
71ef877c9c A tiny bit more debug information in case a module couldn't be loaded.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 06:59:19 +00:00