Jérôme Duval
7d5d344bf1
Some mice have two wheels
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-28 11:20:45 +00:00
Axel Dörfler
fa42f1c2b9
Work in progress. Basic data exchange seems to work.
...
Only slightly tested (moved data to and from pty <-> tty).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9087 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-28 04:16:34 +00:00
Axel Dörfler
410c1c159f
Calmed down the soon to be removed driver loader (to be replaced by a better
...
version in devfs directly).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9086 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-28 03:42:07 +00:00
Axel Dörfler
da63fa920a
device_open() gets the relative path from devfs mount point, not just the
...
name of the node.
devfs_read_stat() now (presumably temporary) sets the size of the device
for partitions and reports a block device rather than a character device
if the size unequals zero.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9085 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-28 03:22:56 +00:00
Axel Dörfler
af069b1a47
isatty() and ctermid() now actually work correctly.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-28 01:51:01 +00:00
Stefano Ceccherini
91f868aeb7
Ok, this time for real.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9083 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 23:10:13 +00:00
Stefano Ceccherini
c3c637606a
Fixed an annoying jump-to-last-line-on-END-bug (reported by Waldemar)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 22:50:23 +00:00
Waldemar Kornewald
f02249c7c2
Work in progress. The select() notification function is now set per socket instead of globally. Still not fixed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 22:37:04 +00:00
Jérôme Duval
88c8085889
change to our libmail.so
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9080 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 22:32:27 +00:00
Nathan Whitehorn
ebab3a7e9c
Fixed some library dependency issues that broke compilation on systems that don't have Haiku MDR installed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9078 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 19:47:06 +00:00
Rudolf Cornelissen
e526812fe4
minor comment updates
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9076 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 15:28:24 +00:00
Rudolf Cornelissen
2887e62496
doc update.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9075 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 14:40:45 +00:00
Rudolf Cornelissen
51842d6e91
restructured startup code, tested NV34 coldstart as secondary card: we have a go!. Analog monitors only, rest is working nicely. 8-). The script exec code is not yet finished, so I cannot promiss (yet) every card actually starts up. WoeHoe!
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9074 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 14:36:30 +00:00
Rudolf Cornelissen
3937b2cf4f
added NV10up RAM setup. not yet tested.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9072 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 12:03:02 +00:00
Rudolf Cornelissen
11437a8764
added yet another type2 scriptcmd. My NV34 now reports OK status on coldstart, though it's not yet actually working (missing RAM setup only: hopefully...)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 10:04:08 +00:00
Stefano Ceccherini
1ce76bfd47
Added "new" keyboard driver, which implements the "correct" keyboard api. Not tested or anything. Not yet added to the build as I even did some last minute changes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 08:44:02 +00:00
Stefano Ceccherini
d4c31885aa
Renamed sync() to card_sync() to avoid name clashing with the "sync()" function in the new unistd.h. Commented out transparent_blit() to suppress a compiler warning, and added a comment to it.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 08:32:47 +00:00
Stefano Ceccherini
b397f1b53b
Should fix the build, things have changed in kb_mouse_driver.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 08:26:16 +00:00
Stefano Ceccherini
6b06287720
Some "forgotten" cleanups. Added a check for NULL in the constructor which avoids a crash in some cases.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 07:23:16 +00:00
Stefano Ceccherini
b0881688c3
Now checks if the driver is already opened, and return B_BUSY if true.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 07:20:57 +00:00
Jérôme Duval
3278758030
change field name of mouse position
...
change device message handling a bit
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-26 22:41:00 +00:00
Jérôme Duval
fc2045ee7e
added wheel support, changed to kb_mouse_driver.h mouse_movement to avoid crashing when the driver writes back the io
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-26 21:59:33 +00:00
Jérôme Duval
dbb3afbf3a
added mouse support
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9062 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-26 21:53:27 +00:00
Rudolf Cornelissen
f4f986a34d
fixed error in type2 scriptcmd #34 .
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9061 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-26 19:32:51 +00:00
Rudolf Cornelissen
325c177bfa
small logging update.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9060 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-25 16:00:45 +00:00
Rudolf Cornelissen
4b05f515da
completed that scriptcmd. Should work now..
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9059 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-25 13:05:11 +00:00
Rudolf Cornelissen
0153d21af7
added another type2 scriptcmd: not yet finished, not yet tested.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-25 10:58:31 +00:00
Rudolf Cornelissen
ab0c1776c6
BIOS info struct readout update, there's no V6 as I at first thought. Note: NV40 and up seem to be using a new system and so won't be able to get coldstarted for now.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9057 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-25 10:16:40 +00:00
Jérôme Duval
62cdfcd034
Now uses a global header
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9055 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-24 12:41:10 +00:00
Axel Dörfler
14d1496a7f
sysconf(), pathconf(), and fpathconf() now at least do marginally useful things.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9053 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-24 00:16:51 +00:00
Axel Dörfler
2f524aed3a
Reworked some TTY support functions. Added tcgetattr() function.
...
tcsendbreak() now ignores the "duration" parameter.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 23:52:36 +00:00
Axel Dörfler
98ac7a9709
Removed the termios subdirectory; it's replaced by posix/termios.c.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 23:49:53 +00:00
Axel Dörfler
cf46507317
The termios support is now part of the posix_main.o object file.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 23:48:50 +00:00
Axel Dörfler
2627eeff81
Joined the former termios/termios.c and termios/tcsetattr.c together to termios.c.
...
Added it to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 23:45:03 +00:00
Rudolf Cornelissen
e703f31b4f
agp logging update; new cards update for Xtal det, dualhead det.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9047 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 19:45:30 +00:00
Jérôme Duval
4c2a769c68
Now uses a global header
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9046 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 15:41:01 +00:00
Jérôme Duval
3bc52dc6ba
Now uses global header
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9045 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 15:37:17 +00:00
Jérôme Duval
5c8e314fba
Now use a global header
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9044 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 15:36:30 +00:00
Rudolf Cornelissen
969eab3b53
added another type2 coldstart script command.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9042 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 14:43:53 +00:00
Axel Dörfler
6b30603314
Added the beginnings of our TTY layer.
...
After having had a look at our own Terminal code (former MuTerm), I even
copied the original mess in /dev/tt/ and /dev/pt/.
The /dev/tt/ entries could be created and removed on demand, though, but
that can't be done yet.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 13:54:20 +00:00
Axel Dörfler
a78a421de8
Renamed sleep() to spin() as that's what it does, and sleep() also doesn't
...
like unistd.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9040 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 13:43:57 +00:00
Rudolf Cornelissen
17cf149804
added preliminary NV40 architecture support. Test and provide feedback please!
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9039 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 12:28:50 +00:00
Rudolf Cornelissen
98a926e626
comment update
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 11:46:17 +00:00
Rudolf Cornelissen
a498f03076
added card recognition for 25 new cards: NV40 and higher will not yet work (probably..)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 11:45:11 +00:00
Rudolf Cornelissen
64caf8044e
added 25 new cardID's to kerneldriver, including the first PCX / PCI-express cards.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9034 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 10:15:38 +00:00
Philippe Houdoin
755989bc95
Commit last (small) changes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 08:01:26 +00:00
Stefano Ceccherini
86b8a8828a
Set the wheel_delta to 0, otherwise we could send "spurious" wheel movements
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 06:45:20 +00:00
Stefano Ceccherini
6be70a0fa1
Finally fixed the problem with the styling code: now selecting two sections of text
...
with a different color and change the font size works correctly.
Fixed a problem with mouse selection (a regression introduced when I fixed selection with keyboard).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 06:40:22 +00:00
Jérôme Duval
3b464cb0ce
fixed debug macro
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-22 10:04:52 +00:00
Stefano Ceccherini
40404d6a4b
Now uses the mouse_pos struct and commands definitions from kb_mouse_drivers.h.
...
Added cbuf_adapter.h so that the ps2 mouse driver can be compiled also against BeOS R5's kernel (for testing).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-22 07:01:41 +00:00
DarkWyrm
e841a5da12
Making some headway on the cursor redraw problems when moving windows. Not quite fixed yet, though
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9027 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-21 23:10:23 +00:00
Nathan Whitehorn
0d21a7f43f
Added packaging for the mail daemon, added build support for SSL mode (although it currently relies on manually uncommenting things in the Jamfile). PPP state detection still broken.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9025 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-21 20:23:32 +00:00
Nathan Whitehorn
7835571124
Made POP3 build properly with SSL turned off.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9024 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-21 20:21:08 +00:00
Nathan Whitehorn
497210fa2f
Fixed typo in the Jamfile that prevented the mail daemon resource file from being added correctly.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9023 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-21 19:26:22 +00:00
Rudolf Cornelissen
0d72e6e52c
small pll pgm update for coldstart stuff (temporary)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9022 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-21 17:39:10 +00:00
Rudolf Cornelissen
663122f277
added one more type2 scriptcmd (still untested)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9021 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-21 13:45:39 +00:00
Axel Dörfler
fe29b8929a
Some cosmetics for booting with qemu.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9020 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-21 12:09:36 +00:00
DarkWyrm
8dd37bd51b
s/OpenBeOS/Haiku/
...
Bugfixes to graphics cases in ServerWindow
Added assignment operator to GraphicsBuffer
Style fixes for ServerCursor and ServerBitmap
Implemented and integrated CursorHandler to clean up DisplayDriver code some
Hotspot bugfix for ServerCursor(cursordata *)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 22:50:02 +00:00
Nathan Whitehorn
fa84ff9eb1
Forgot some files in the MDR import.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9017 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 22:34:03 +00:00
Nathan Whitehorn
f7215ac853
Imported MDR. Some code still not entirely functional -- I haven't been able to figure out how to detect SSL, so IMAP and POP have it turned off. PPP auto-detect is also not functional at the moment. Other than that, it seems to work beautifully. Packaging will come later.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 22:31:50 +00:00
Rudolf Cornelissen
48061f2026
completed latest script cmd.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9015 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 16:15:34 +00:00
Rudolf Cornelissen
05fbbd5e77
added one more type2 scriptcmd, should already work.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9014 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 15:28:05 +00:00
Rudolf Cornelissen
1b4462d2a6
added another type2 script cmd, tested.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9013 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 12:53:55 +00:00
Jérôme Duval
06b050d543
fixed build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9012 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 12:14:41 +00:00
Jérôme Duval
3fff653f05
Moved usage pages/ids to USB_hid.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9011 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 12:05:10 +00:00
Rudolf Cornelissen
00fc82f9ee
two more type2 scripts (now tested)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 11:38:22 +00:00
Axel Dörfler
ffda28d2b5
Fixed warning of the debug build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9009 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 11:05:33 +00:00
Axel Dörfler
f390e6a3f7
Fixed the build of the debug version of the driver. Thanks to Jerome for pointing this out.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9008 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 11:03:40 +00:00
Rudolf Cornelissen
8315a92763
added 2 type2 coldstart script cmds.. (not yet tested)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 10:25:20 +00:00
Jérôme Duval
b2c507bdf7
Renamed functions to hid_*
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 09:44:25 +00:00
Jérôme Duval
8c5cc5d1aa
Extracted USB HID specific data to USB_hid.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 09:08:58 +00:00
Stefano Ceccherini
97a326b35f
Almost completely rewritten the ps2 mouse driver. Now it works (max 3 buttons for now), even under R5 (though you need a header that I won't commit here).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 06:32:23 +00:00
Jérôme Duval
2197729c08
Added support for keyboard LEDs
...
Should be changed one day to take into account the report descriptor
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9003 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-19 20:45:25 +00:00
Jérôme Duval
743554c63a
Forgot the timestamp for non at devices
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-18 23:36:46 +00:00
Jérôme Duval
4c5967bb9a
Added the HID USB driver to the build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-18 23:33:13 +00:00
Jérôme Duval
3e7e86bd26
Added a HID USB driver
...
Keyboards working (missing features : leds, key repeating)
Only mouse detection, not working
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8999 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-18 23:30:05 +00:00
Jérôme Duval
39394f4183
This one is better
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-18 13:21:19 +00:00
Jérôme Duval
711d19bd29
fix for leds and modifiers
...
NOTE : modifiers are per device
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8997 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-18 13:13:30 +00:00
Rudolf Cornelissen
c319524a0a
corrected typo.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-18 11:40:39 +00:00
Rudolf Cornelissen
bf393e0a34
split-up scripts for type1 and 2: type 2 still has to be drastically expanded. (coldstart stuff)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8995 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-18 11:32:12 +00:00
Oliver Tappe
057ceb6137
- fixed issues when compiling with gcc-2.95.3.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8994 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-17 16:34:13 +00:00
Ingo Weinhold
3b554981d3
* Corrected sMountMutex comment.
...
* Turned sMountOpMutex into a recursive lock.
* Re-inserted sMountOpLock locking in vnode_path_to_vnode(). It doesn't
deadlock on mounting anymore. :-P
* Added a check in fs_mount(), whether the mount point is a directory. If
it wasn't, in general it wouldn't be possible to get its parent
directory.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8993 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-17 12:29:27 +00:00
Jérôme Duval
421f4885ed
Support for LEDS
...
Support for keymap reloading
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8992 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-17 12:07:21 +00:00
DarkWyrm
98ecc9715d
Added to Utils a function to compute polygon boundaries
...
Moved Utils to libappserver - DisplaySupport needs it
Tweaked PicturePlayer to match polygon function tweaks
Added Shape, Region, and Polygon handling to ServerWindow
Removed ServerWindow::DispatchGraphicsMessage
Numerous small tweaks to DisplayDriver
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8991 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-17 10:27:58 +00:00
DarkWyrm
c33ef86b1d
Made some tweaks for region, shape, and polygon support
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8990 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-17 10:21:41 +00:00
Stefano Ceccherini
7575ec2d87
Uncommented the code which makes auto indenting possible.
...
Correctly maintain fClickOffset in SetText().
Some small style fixes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-17 10:16:06 +00:00
Jérôme Duval
08acc659ec
Fix menu key handling so that message is sent only when pressed alone
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-17 08:39:14 +00:00
Jérôme Duval
19644c521d
removed ColumnListView.cpp and ColorTools.cpp from libbe.so
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-16 21:41:42 +00:00
Jérôme Duval
b989bdedeb
Added ColumnListView.cpp and ColorTools.cpp (these aren't from OpenTracker)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-16 20:50:37 +00:00
Jérôme Duval
5c99440e0f
Added ColorTools and ColumnListView from Vision cvs repository
...
(ColorTools.h : 1.2, ColorTools.cpp : 1.4,
ColumnListView.h : 1.13, ColumnListView.cpp : 1.3)
Original code from OpenTracker
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8984 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-16 20:42:34 +00:00
Jérôme Duval
95b397199c
Added support for USB keyboards
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-16 19:46:06 +00:00
Jérôme Duval
f78e17fccc
Added a brazilian keyboard mapping ABNT2 Keypad . to 0x70
...
Added handling for CtrlAltDel key combination, atm it only ensures we don't reboot ...
Added handling for Menu key => send BeMn to Deskbar asking to show menu, could be moved somewhere else in the future (filter?)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-16 16:41:22 +00:00
Axel Dörfler
452ba3abd1
Just like any other mount point, "/" should not be remounted - dunno
...
why that was there before. Thanks to Ingo for pointing this out.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-16 15:34:26 +00:00
Axel Dörfler
bfe052ed74
I accidently mixed up the parameter order of the ISA I/O calls, thanks
...
to Stefano for reporting this.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-16 10:39:14 +00:00
Jérôme Duval
9c6d4260cb
added japanese keys support , untested
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 17:19:02 +00:00
Michael Pfeiffer
82f24520e1
Added (untested) support for landscape orientation.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 16:16:39 +00:00
Michael Pfeiffer
cd6bfb01f3
Alternative implementation that uses STL.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 16:14:20 +00:00
Jérôme Duval
ba35b2bdf7
added several missing keys
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 15:53:22 +00:00
Axel Dörfler
fbb0ac2170
fork() now at least calls _kern_fork(), but would not even be complete
...
if that one worked.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 15:48:28 +00:00
Axel Dörfler
f845dd4e4f
Implemented userland part of execve().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 15:46:56 +00:00
Axel Dörfler
41f37da0fd
Added empty and non-working syscalls for _user_fork(), _user_wait_for_child(),
...
and _user_exec().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8973 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 15:45:37 +00:00
Axel Dörfler
25258635f7
Implemented waitpid() a bit more; it now calls the _kern_wait_for_child() syscall.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 15:44:06 +00:00
Axel Dörfler
cd4e4d3383
Added wcsmbs to libroot.so, replaced posix_gnu_getopt.o with posix_gnu_ext.o
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 12:28:34 +00:00
Axel Dörfler
ac50932dae
Moved the getopt() functionality from the getopt/ subdir to the new
...
extensions/ directory - which will contain glibc specific additions
to the POSIX standard (getopt() is here because of getopt_long() etc.).
Also added obstack functions.
Added wcsmbs to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8969 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 12:23:08 +00:00
Axel Dörfler
0dffa6c281
It's now allowed to use wchar_t - it doesn't hurt anymore :)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 12:21:19 +00:00
Axel Dörfler
5e4171c975
Made a minimum subset build - mbrtowc() is currently a hack to make it work...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 12:20:03 +00:00
Jérôme Duval
fd3e280e83
we now have uintptr_t in our headers
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 09:35:09 +00:00
Axel Dörfler
40f2ce7d20
Activated the index functions and ported it to the the new VFS API.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 02:08:54 +00:00
Axel Dörfler
1b41fce458
Added some rudimentary AMD CPU identification, courtesy of Brennan Cleveland.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 01:54:50 +00:00
DarkWyrm
bb32d497e9
Checking in some fixes to StrokePolygon protocol before I forget they're there
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 01:06:17 +00:00
Axel Dörfler
75e4b8694c
Removed the STREAM_TYPE_ constants.
...
Now maintains uid/gid/mode, modification and creation time for all nodes.
Implemented rootfs_write_stat() completely. rootfs_read_stat() now fills
in all required values.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 00:44:57 +00:00
Axel Dörfler
31a726883b
Now maintains uid/gid/mode/mtime/crtime, added pipefs_write_stat().
...
Access permissions are not verified.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8961 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 00:15:52 +00:00
Axel Dörfler
e4a0232cc7
Small bugfix: rootfs_read_stat() returned creation time instead of modification
...
time in st_mtime.
rootfs_write_stat() now properly locks the node access.
Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-15 00:02:55 +00:00
Axel Dörfler
a837c705f5
Now has a basic understanding of uid/gid/mode values and maintains it -
...
permissions are not tested, though.
Removed the STREAM_TYPE_ constants.
Now maintains a modification and creation time for all nodes.
Implemented rootfs_write_stat() completely. rootfs_read_stat() now fills
in all required values.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 23:42:14 +00:00
Axel Dörfler
f8cbad7b3e
Implemented readdir_r().
...
Added note to dirfd() that it should be excluded from the kernel build
once the build system allows this.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 23:10:29 +00:00
Axel Dörfler
ad21930ee8
Now exports the fflush_unlocked() symbol as well.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 23:02:44 +00:00
Axel Dörfler
316c0c3139
Added the dirent functions to the kernel as well.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 22:46:42 +00:00
DarkWyrm
82cd90d8c9
Added support for stroking and filling rectangles, roundrects, arcs, beziers, and ellipses
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 22:21:26 +00:00
Jérôme Duval
05f7693002
Support for locks
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 22:20:28 +00:00
DarkWyrm
0ea7755d28
Rearranged attachment protocols for Stroke/Fill Arc and Ellipse
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 22:20:16 +00:00
Axel Dörfler
3901fa14bf
Moved dirent.h functions from unistd/directory.c to new dirent.c file.
...
Added dirfd() call for BeOS compatibility.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 22:10:43 +00:00
Jérôme Duval
80c565ca25
bug fix for new dead key behaviour
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 21:49:48 +00:00
Jérôme Duval
5447827d24
Added key events generation
...
Working!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 21:41:28 +00:00
Axel Dörfler
8141b62d5e
Removed our old getopt.c - we're now using the one from glibc.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 20:44:59 +00:00
Axel Dörfler
7e24c69719
Added glibc's getopt() to the libroot.so build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 20:42:50 +00:00
Axel Dörfler
05cd7f3a98
Make it build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 20:41:46 +00:00
Axel Dörfler
ee3f1543b0
Added glibc's getopt() implementation for better compatibility with BeOS.
...
This normally resides in the posix/ directory in the glibc source repository.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 20:39:26 +00:00
Axel Dörfler
8bc22ef101
Error messages are now directed to stderr rather than stdout.
...
Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 20:19:50 +00:00
Rudolf Cornelissen
ec17109678
modified coldstart script execution for pins V5.16 and up: looks like we might be able to coldstart all nVidia cards after all (someday)..
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 20:02:14 +00:00
Axel Dörfler
c6e3ff2240
"rdtest" now dumps up to 1024 bytes, not only 512. Also, it now prints
...
out a message to indicate that only a part of the requested buffer is
dumped on screen.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 19:51:47 +00:00
Axel Dörfler
30a0c00ded
Some more debug output when tracing is enabled.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 17:43:53 +00:00
Axel Dörfler
81f2f81c21
If the kernel_args::cons_line field is not maintained (ie. is zero), the
...
console driver now clears the screen when it's initialized.
This improves the first impression of the standard boot process when
booting in text mode (which currently happens when you press "escape"
in the early boot stage).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 17:40:23 +00:00
Axel Dörfler
2ef444519e
Work-around for buggy device drivers: some drivers (including our current
...
IDE drivers :-)) don't respect the total amount of bytes to be read in the
former readv() (now read_pages()) call. This can potentially fix all sorts
of strange errors in userland :)
Fixed the debug build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 17:37:43 +00:00
Jérôme Duval
a725f63418
Added AT keyboard mapping
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 16:21:31 +00:00
Axel Dörfler
aad5dc5b3d
Removed holding the sMountOpMutex added by the last commit; although this
...
recreates a race condition, having it here breaks the kernel as fs_mount()
calls this function and already holds the mutex.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 15:46:02 +00:00
DarkWyrm
a3d34bb143
Added a couple of conversion methods for BPoints
...
Did some serious playing with update code in ServerWindow and Layer
BView::StrokeLine calls draw to the screen(!!!)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 00:51:51 +00:00
Axel Dörfler
82b76be31e
Cleaned up the page alignment macros, incorporated NewOS fix #2022
...
(but with the correct semantics).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-13 18:59:25 +00:00
Axel Dörfler
04a280790e
Added some debug output that's going through the kernel debug output.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8933 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-13 18:17:47 +00:00
Axel Dörfler
a0f707f29e
Fixed tab-output; usually, all characters after a "\t" would be ignored in the output.
...
Now panics if devfs_publish_device() fails.
Tracing can now be turned on and off (it's now completely silent in normal operation).
Some cleanups.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-13 16:25:47 +00:00
Oliver Tappe
17753fd375
- added missing initialization of fInUse such that setting up a threaded
...
test won't fail randomly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8931 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-13 15:52:46 +00:00
Ingo Weinhold
79c795cc5d
* create_new_vnode() now also fails, if the volume is about to be
...
unmounted.
* Clarified a comment in fs_mount().
* Added a bit of documentation regarding the mutexes and the basic vnode
functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-13 14:53:09 +00:00
Axel Dörfler
5a0da774a5
Fixed compilation.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-13 11:44:58 +00:00
Rudolf Cornelissen
c657da6085
minor PLL code modifications
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-13 11:41:12 +00:00
Ingo Weinhold
4ccf7da8d5
Added provisional implementation of system(). Requires a shell to be
...
available at /bin/sh (a symlink will do). Unfortunately there's some
problem with our shell that causes it to crash in most cases. :-(
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-12 17:41:34 +00:00
Ingo Weinhold
9516afb70a
Added `-c' option to execute a command line. Should work, but doesn't
...
always do. More often than not one gets page faults. As it happens
sometimes even before anything meaty has been done at all
(e.g. in main()->init_statements()->shell_var_set_text()->
shell_value_init_text()->malloc()), I believe that's a problem not caused
by me. And I wasn't able to track it down.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-12 17:37:42 +00:00
Ingo Weinhold
2c731698a2
Verified incorrect behavior of entry_ref_to_vnode() when hitting a mount point or the parent of a mount point.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-12 10:58:29 +00:00
Ingo Weinhold
1f8bfacc76
*_read_dir() now also returns "." and ".." Entries.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-12 00:06:37 +00:00
Ingo Weinhold
4f9e4fc932
* The VFS cannot just pass the result of fs_read_dir() calls back to
...
Userland. It must always set the d_pdev and d_pino fields and, if the
Entry refers to a mount point even replace d_dev and d_ino.
* Added a TODO comment to entry_ref_to_vnode(). It should take care of
mount points, as vnode_path_to_vnode() does, I believe. Will verify
and fix that next.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-12 00:05:51 +00:00
Ingo Weinhold
119e5eeef8
*_read_dir() now also returns "." and ".." Entries.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-12 00:00:29 +00:00
Ingo Weinhold
ba2acd78ed
Turn on debug output, only when debugging is enabled.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-11 14:30:25 +00:00
Ingo Weinhold
15f030fd16
Now lines starting with "# <number>" are skipped. This should fix problems when using a gcc 3.x preprocessor.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8917 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-11 14:07:18 +00:00
Ingo Weinhold
f740226bcd
Removed unnecessary include.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-11 14:05:05 +00:00
Ingo Weinhold
b9f857f16f
os/support headers not needed anymore.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8915 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-11 14:04:08 +00:00
Rudolf Cornelissen
139d62e968
updated modeline tuning for panels: fixes overlay distortions on native mode on NV34Go (at least). Please report if this introduces trouble on your panel(s)!
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8914 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-11 11:12:11 +00:00
Rudolf Cornelissen
fc69f2f4f9
fixed fetching BIOS ROM on (some?) laptops.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-11 09:46:27 +00:00
Axel Dörfler
eab2037630
When a B_CONTIGUOUS area is created, its pages are now reserved upfront, as
...
this is the one thing most likely to fail - it now also handles this case
gracefully instead of dying.
Small cleanup, cleared some other ToDos: some user functions now delete
the area when they could not copy the target address.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-11 00:38:54 +00:00
Axel Dörfler
76faade4e7
Cleanup, no functional change.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-10 23:43:15 +00:00
Ingo Weinhold
2cfbe8a086
Added missing include.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-10 23:14:59 +00:00
Ingo Weinhold
91a4796939
No need to define the types here, since arch_config.h now uses C types.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8908 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-10 23:14:18 +00:00
Ingo Weinhold
d5ea40e2bd
Use the build platform libstdc++.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-10 23:13:09 +00:00
Axel Dörfler
d79751261c
Added write support for the cache - it only writes internally right now,
...
it never writes back dirty pages. Code is not tested!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-10 19:49:46 +00:00
Axel Dörfler
be2703cb09
GCC 3 fixes. Doesn't work yet for some reason.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-10 18:29:52 +00:00
Axel Dörfler
8ad7344829
gensyscalls.cpp should now build under Linux again.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-10 15:40:12 +00:00
Axel Dörfler
327981c3d8
Now includes arch_config.h instead of arch_cpu.h (because the info contained therein has moved).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-10 15:20:37 +00:00
Ingo Weinhold
61b83cc210
* Changed my doxygen comment markers from Qt to javadoc style, still
...
leaving the tags Qt style though. That's a bit weird, but that's the
way Axel likes it, and we want to keep him happy, don't we? ;-P
* The common_[path_]read_stat() now fills in st_dev and st_ino in the
result stat structure after the FS had its go. The information is
readily available in the VFS, so why bother the FSs. In fact devfs
didn't (and still doesn't) fill in st_dev which gave dev_for_path()
some head ache.
* Modified _user_open_parent_dir() to accept a NULL buffer for the
entry name and added a doxygen comment for it.
df now works properly on Haiku (save that printf() doesn't support
floating point numbers at the moment).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-09 23:21:09 +00:00
Ingo Weinhold
86170a3cd5
* Got rid of devfs_cookie::stream. It was superfluous since one can
...
always also access it through the devfs_vnode. This also solves an issue
in devfs_read() where an access of a cookie->stream would crash the
kernel, since cookie->stream was not set in devfs_open().
* devfs_open() now doesn't fail for directories and symlinks anymore.
That prevented BNode to work for devfs dirs and symlinks.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8897 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-09 23:06:04 +00:00
DarkWyrm
b5eb4481e8
Some minor API cleanups
...
Documented quite a few functions while refamiliarizing myself with the desktop code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8896 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-09 00:54:21 +00:00
Ingo Weinhold
1dae20235b
If the /..' is
/' then the name of the root node should consequently be
...
`.'. This fixes the _kern_open_parent_dir() syscall for the root directory.
I realized, that rootfs_read_dir() doesn't return the entries `.' and `..',
unlike Be's rootfs. Shall I add those, Axel?
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8895 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-08 21:31:18 +00:00
Waldemar Kornewald
496d0bc32f
Moved uio struct to core_private.h.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8893 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-08 08:45:32 +00:00
Waldemar Kornewald
5fdb117cae
We are Haiku.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8892 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-08 08:45:24 +00:00
ejakowatz
5958205f6c
Fixed bug. There was an issue with unflattening. When moving dataPtr along the buffer to the next variable-size item, the padding was being incorrectly calculated (too large) because the four-byte size header was not being taken into account. E.g., for an 18-byte item, the padding was calculated as 6 bytes, rather than two, placing dataPtr directly past the size header for the next item. An incorrect value would be used as the size for the next item, which could result in anything from a segment violation to an allocation failure.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8891 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 23:33:31 +00:00
ejakowatz
974d454507
Fixed bug. BMessageBody's assignment operator was making a generic copy of the map which maintains the data -- meaning only pointers to contained BMessageFields were being copied. Added Clone() operation to BMessageField and Copy() to BMessageFieldStoragePolicy, along with a specialization of BMessageFieldStoragePolicy for BDataBuffer; a straight copy of the vector is sufficient for all other data types. This fixes issues with BMessage unittests where BMessage, entry_ref, BFlattenable, and raw data are exercises.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8890 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 23:25:09 +00:00
ejakowatz
02043d35db
Added calc_padding() convenience function for calculating how much padding to add to a buffer in order for it to fall on a specified byte boundary.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8889 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 23:06:32 +00:00
ejakowatz
e4265bfbfe
Modified BDataBuffer's copy constructor to let the user specify whether to create a copy of the buffer or just a reference. Also changed all void* params to be const.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 23:00:30 +00:00
ejakowatz
9fa0302ad0
Added two tests for flattening and unflattening.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 22:54:06 +00:00
ejakowatz
0cea36dca4
Jamfile addition so that BMessage B_NO_REPLY-on-destruction tests will actually get used.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8886 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 22:24:21 +00:00
ejakowatz
221abfb27f
BMessage now sends a B_NO_REPLY on destruction if no other reply has been sent; these are the tests for that behavior.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 21:59:28 +00:00
Axel Dörfler
bd80f1c775
Now handles NULL cookies for the VM fs calls gracefully (in case someone
...
would want to mmap() a device directly).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8884 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 15:39:03 +00:00
Axel Dörfler
df435e99c2
Now only prints out the path if the path was initialized successfully - else
...
the app would crash in this case (because BPath::Path() could return NULL
then).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8883 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 01:50:08 +00:00
Axel Dörfler
0f3697566d
The fs_readlink() function must work a bit differently in the new VFS API
...
(ie. it needs to add the terminating null byte).
It now also properly fails if the link is too long for the provided buffer.
This allows us to resolve links on BFS volumes using Haiku again :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8882 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 01:47:08 +00:00
Jérôme Duval
7072c960f8
adding comments
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8881 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 00:33:55 +00:00
Jérôme Duval
da4ca8a49e
added keymap
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8880 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 00:20:34 +00:00
Jérôme Duval
43ca889200
fixed logging, a bit of worker
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8879 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 00:03:20 +00:00
Jérôme Duval
e73537f459
rebased on the mouse device addon, cleaned, untested
...
still lacks better logging, thread worker, settings handling, keymap management and that's all!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 23:34:06 +00:00
Axel Dörfler
a4e05e618a
Added a "cookie" parameter to the fs_read|write|has_page[s]().
...
Implemented bfs_get_file_map().
Now uses the brand new file cache for the file data streams.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8877 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 22:56:52 +00:00
Axel Dörfler
dc3089f8ff
Added a "cookie" parameter to the fs_read|write|has_page[s]().
...
This has the advantage that the device can now be access in the right context.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8876 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 22:48:58 +00:00
Axel Dörfler
dd6cb90eac
Added a "cookie" parameter to the fs_read|write|has_page[s]().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8875 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 22:34:08 +00:00
Axel Dörfler
68085f7cec
Added a "cookie" parameter to the fs_read|write|has_page[s]().
...
Fixed the calculation of the amount of bytes read in bootfs_read_pages().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 22:32:00 +00:00
Axel Dörfler
2829b349c6
Added a "cookie" parameter to the vfs_read|write|has_page[s]().
...
Added an vfs_get_cookie_from_fd() call to at least temporarily support the
cookie as in the original devfs (not sure yet how this changes).
Implemented vfs_get_file_map() which calls the corresponding FS function.
Moved vfs_get_vnode_cache() around.
vfs_get_vnode() temporarily does its job unlocked - its only to be used (safely)
from within the file cache, but this should definitely be done better.
Fixed a bug in get_vnode_name() - it did not support getting the name of
a root directory; it didn't pass the call through to the parent file system.
Fixed a bug in _user_entry_ref_to_path() which would add another "/" for
files immediately under the root (ie. "df" showed "//boot" as mount point
for the boot partition).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 22:29:20 +00:00
Axel Dörfler
55efd37df7
Added the file_cache.cpp file to the build.
...
_KERNEL_MODE is already defined when using kernel build rules, no need
to do it here manually.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 22:05:46 +00:00
Axel Dörfler
e02c12f0b3
Added a "cookie" parameter to the vfs_read|write|has_page[s]().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8871 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 22:03:47 +00:00
Axel Dörfler
aabc1217bb
Fixed warnings, small cleanup.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 22:01:48 +00:00
assimil8or
1d24af2571
my first commit: makes it possible to load R5 terminal setting files via the command line (Option -p)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8865 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 20:15:13 +00:00
Axel Dörfler
cbe8d2b0fe
Applied some parts of our style guide.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8864 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 17:33:33 +00:00
Axel Dörfler
4bccccda2e
Fixed two wrong cast types which broke the build over here.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8863 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 17:28:42 +00:00
Philippe Houdoin
a68b2eb2ce
Fix the keyboard focus order by changing how and in which order things are
...
created.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8862 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 14:43:42 +00:00
Philippe Houdoin
606359d937
Commit often, commit small...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8861 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 09:51:12 +00:00
Stefano Ceccherini
33efb91915
Almost rewrote the mouse input add-on to handle multiple devices, added usb devices monitoring (not tested as USB doesn't work on my machine).
...
Now it generates the device name from the folder name (i.e. /dev/input/mouse/serial/0 ---> "serial mouse 1").
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8860 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 06:42:58 +00:00
Axel Dörfler
f72376a8dd
The beginnings of a file cache. Read-only is already working fine; very
...
basic and with a temporary API.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 01:23:57 +00:00
Axel Dörfler
7f2ba8be02
Now clears out any remainders of the pages in the iovecs if the request
...
couldn't be satisfied completely (ie. because the file size is not a
multiple of the page size).
It's no longer necessary to implement this functionality in the file systems.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8858 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-05 14:57:54 +00:00
Waldemar Kornewald
15288c9013
Fixed the build of our netstack.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-05 10:59:00 +00:00
DarkWyrm
8a715d82f6
turned off debug output in AppServer.cpp and ServerApp.cpp
...
system palette is now hardcoded using Ingo's BBitmap code for a speedup and the ability to reference the server's system palette without the server actually running
Added some utility classes to make finishing DisplayDriver easier and cleaner
Removed a stray debugger call in DisplayDriver
Added a display mode conversion function to Utils.cpp
Began conversion of BitmapDriver to utilize PixelRenderer class where appropriate
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8855 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-05 00:52:45 +00:00
DarkWyrm
3713534518
Tweak to FindClosestColor
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-05 00:46:37 +00:00
Axel Dörfler
d5a48f5dcf
The VM fs interface has changed to better match the one of the device interface.
...
Added an fs call for the file cache.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-04 17:52:32 +00:00
Axel Dörfler
14d725bb50
The VM fs interface has changed to better match the one of the device interface.
...
Added a new fs call for the file cache.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8851 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-04 17:48:11 +00:00
Axel Dörfler
33657fc8ac
No longer gets the old device_hooks but a pnp_devfs_driver_hooks structure
...
to be able to call device functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8850 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-04 17:47:08 +00:00
Axel Dörfler
f363b7231f
Eliminated the internal device_info structure - the devfs will now store the
...
node and its interface directly. It will also convert the old interface into
the new one to simplify the implementation.
devfs_open() now contains the former pnp_devfs_open() as well.
devfs_publish_device() no longer passes the "ident" parameter to its lower
layers - it will be removed.
The VM fs interface has changed to better match the one of the device interface.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8849 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-04 17:46:10 +00:00
Axel Dörfler
26de720c84
The VM store interface has changed to better match the one of the device interface.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-04 17:41:42 +00:00
Axel Dörfler
c66a5d50b7
"Improved" a commentary.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-04 17:36:50 +00:00
Axel Dörfler
b8d0a6779d
pnp_node_info is now a little bit more public and can now be found in kdevice_manager.h.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8846 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-04 17:35:15 +00:00
Michael Pfeiffer
d25d8e6b16
Test for class _PointerList_. Someone should convert it to a CppUnit test
...
and integrate it in the build system.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8840 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-04 10:00:13 +00:00
Michael Pfeiffer
ad867a27fb
Implemented quick sort. Refactored source code.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8839 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-04 09:39:05 +00:00
Rudolf Cornelissen
50bd00fe1f
added fixed CRTC FIFO watermark setup (in a temporary fashion). This should solve the 'bandwidth trouble' (memory fetch errors, noise on screen) on coldstarted cards. Tested and found OK on TNT2-M64. Coldstart is now just perfect there!
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8837 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-04 09:30:24 +00:00
DarkWyrm
30f5b3138d
Converted BGet memory pool manager to a class. Now we have the foundation for sending large objects (BRegion, BShape, etc) to the server
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8836 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-04 00:55:05 +00:00
Axel Dörfler
f6d0f5ea94
Accidently activated debug output with the last change.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 19:27:20 +00:00
Axel Dörfler
f3165b2826
Removed the vm_store::data field. Cleaned up the files a bit, removed
...
unused headers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 19:08:47 +00:00
Axel Dörfler
80249479d4
No longer needed, we're now using the vnode store in ../cache/vnode_store.cpp.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 17:06:47 +00:00
Axel Dörfler
5ad8418606
Now uses the new vnode store.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8830 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 17:05:21 +00:00
Axel Dörfler
447a16653a
Added a basic vnode store, more or less the same as the old one.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 17:04:09 +00:00
Axel Dörfler
e16b2bc4a9
Added a test application for the BlockMap class.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 16:05:44 +00:00
Axel Dörfler
21c6ae44d3
vfs_get_vnode_cache() was pretty broken, and didn't returned the correct
...
cache pointer in most cases.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8825 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:55:41 +00:00
Axel Dörfler
103d0293a9
Moved this file to ../cache/block_cache.cpp.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:40:10 +00:00
Axel Dörfler
35df9fef55
Removed cache.cpp from the build.
...
Removed unnecessary grist from source files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8823 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:39:14 +00:00
Axel Dörfler
837e295821
Added the kernel_cache.o object to the kernel.
...
Added arch dependent POSIX stuff to libroot.so.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:38:05 +00:00
Axel Dörfler
e521a22974
Added the "cache" subdirectory to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8821 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:36:35 +00:00
Axel Dörfler
3a976c2844
Adds block_cache.cpp to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:35:32 +00:00
Axel Dörfler
125f4d5101
Implemented a "block map" that can efficiently map contiguous blocks to
...
addresses.
Not yet used - might be used instead of the vm_cache page caching for the file cache.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:34:24 +00:00
Axel Dörfler
6a3016d2ab
Moved the block cache to this file (from ../vm/cache.cpp).
...
It still contains a very dump version of a BeOS compatible block cache.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 15:32:20 +00:00
Axel Dörfler
4872592920
Changed the way the vnode cache is set - it's now cleaner and can no longer
...
allocate a cache twice.
The VFS is now responsible for allocating the cache object - it will call
the VM to do that if necessary.
Added another accessor call to a pointer to the VFS private vnode object.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8817 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 14:11:04 +00:00
Axel Dörfler
2f1cbcf862
Changed the way the vnode cache is set - it's now cleaner and can no longer
...
allocate a cache twice. Now handles resource shortages gracefully.
Added small description to _vm_map_file().
Minor other cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 14:09:26 +00:00
Jérôme Duval
3f8c0d7e75
now button 2 is working
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 12:48:03 +00:00
Axel Dörfler
b0c6c1df05
Let some bin commands now link against our libroot.so, so that we
...
have more functions available (like strlcpy()).
Note, this might affect the functionality on R5. For example, the
"df" command will only work on Dano/Zeta, and of course, Haiku.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 12:31:09 +00:00
Jérôme Duval
5c506d7fdd
change debug
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 12:14:27 +00:00
Axel Dörfler
f8db8b97a8
No longer uses syscalls instead of POSIX calls.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 11:43:53 +00:00
Stefano Ceccherini
0dbc4bef49
Changed the fQuit variable to a static sQuit. Removed the snooze() in the device watcher thread function.
...
Started implementing the "one thread per device" design.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 07:43:56 +00:00
Stefano Ceccherini
145a357d37
This fixes the crash when Debug is active (at least over here; Korli, can you check?)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 07:12:02 +00:00
Jérôme Duval
600f089e43
added a base keyboard addon
...
added a grist to addons
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 22:27:29 +00:00
Jérôme Duval
0548f831d5
complete register and unregister
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 21:56:41 +00:00
Jérôme Duval
e07f3f03dc
added BInputDevice test
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 21:40:01 +00:00
Jérôme Duval
88caa4a867
added missing scrolllock
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 21:18:43 +00:00
Jérôme Duval
83589f8917
added BInputDevice server side
...
added set_modifier_key server side
now changes locks in the current keymap, it can then be reloaded
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 21:15:23 +00:00
Michael Pfeiffer
38ded28eee
Fixed bugs.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 20:29:30 +00:00
Rudolf Cornelissen
ba0b8a97e0
added coldstart support for TNT2M64 cards: added RAM width test in script execution. TNT2-M64 now working as good as normal TNT2: lower res modes OK, still needs fix for CRTC memory fetch errors on higher modes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 19:37:45 +00:00
Rudolf Cornelissen
85f38ca104
fixed finding RAM config table in cardBIOS: this enables coldstart support on a lot more NV05/NV06 (TNT2) cardBIOSes...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 15:22:47 +00:00
Axel Dörfler
74cbf93e61
Added and improved lots of comments in vm_soft_fault().
...
Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8800 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 15:13:15 +00:00
Rudolf Cornelissen
490c99a7db
updated default settings upon missing nv.settings file to best general settings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 13:01:41 +00:00
Rudolf Cornelissen
c1e1b1aef0
doc update for coldstart support.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8798 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 12:23:26 +00:00
Jérôme Duval
e361bf6901
fix buttons handling
...
seems doubleclick not handled yet
crash when debug is active (before this change)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 12:22:33 +00:00
Rudolf Cornelissen
6179417d78
added last two coldstart script cmds for pre-NV10 cards. This should complete coldstart support for pre-NV10 cards with BIOS info struct V2 and later (i.e. TNT2). Please test and provide feedback!
...
Note that FIFO watermark stuff still has to be setup (i.e. fix for CRTC fetching errors on coldstarted cards). So higher-res modes do not yet work reliably.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 12:20:43 +00:00
Rudolf Cornelissen
b2e882e612
added exec of another coldstart script cmd...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 10:52:43 +00:00
Stefano Ceccherini
3aa69c787f
Some changes to the Mouse Input Server Device add-on. B_MOUSE_UP/DOWN still don't work correctly
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 08:52:54 +00:00
Rudolf Cornelissen
f64878ee55
rewritten ISA coldstart script cmd's to actually use ISA I/O.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 08:43:55 +00:00
Rudolf Cornelissen
abbf0913fb
rewritten ISA coldstart script cmd's to actually use ISA I/O.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 08:36:27 +00:00
Axel Dörfler
05835518ae
Added a function prototype and description on how the userland waitpid()
...
functionality could be supported.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8790 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 01:41:06 +00:00
Axel Dörfler
39536410a6
Added dumb group functions - they only know one group: "users" (should be pretty similar to R5).
...
Implemented and added functions from inttypes.h (not everything is working correctly, though).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 01:03:01 +00:00
Axel Dörfler
929525b836
Implemented wait() using waitpid() following the POSIX spec.
...
Added some more debug output for waitpid().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 01:01:02 +00:00
Ingo Weinhold
d21749db83
Fixed a problem we had with bool parameters (probably with all types that consume more storage when being passed as function parameters).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 20:17:57 +00:00
Rudolf Cornelissen
fc3f2e637d
added ISA I/O functions in kerneldriver (for coldstart script exec)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 20:04:26 +00:00
Jérôme Duval
53d77642d6
Added mouse settings handling.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 15:55:54 +00:00
Axel Dörfler
d5b3917b25
Introduced new thread_entry_func type.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 15:48:36 +00:00
Axel Dörfler
a52018b53b
dev_for_path() should resolve symlinks.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 14:41:20 +00:00
Axel Dörfler
d3fe452749
A Jamfile for posix/arch.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 14:40:06 +00:00
Axel Dörfler
9d91354201
Added empty setlocale() call, just to export it.
...
Removed unnecessary grist from source files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 14:39:01 +00:00
Axel Dörfler
f283d6c99e
Added dummy strcoll() function.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 14:37:38 +00:00
Axel Dörfler
1676c18192
Added BSD style bcopy/bzero() functions to the build again - BeOS bash
...
uses them, too, and maybe others as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 14:35:20 +00:00
Axel Dörfler
7800e87a5a
Added kill() implementation, user part of sigprocmask() now works.
...
Renamed syscalls.
Cleaned up files.
Removed unnecessary grist from source files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 14:06:27 +00:00
Axel Dörfler
d32f5c2e8b
Added probably broken implementation of sigprocmask().
...
Renamed syscalls to the new scheme.
Some minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 12:05:09 +00:00
Axel Dörfler
532544a9a1
Added mktemp() and friends from FreeBSD - calls not part of the POSIX specs
...
are currently disabled.
Removed unnecessary grist from source files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 12:04:21 +00:00
Axel Dörfler
5be3370fe7
Added implementations of alarm() and ualarm() based on setitimer() (which doesn't
...
work yet correctly).
Added empty sbrk() for now - not sure what to do with this. Maybe we should remove
it completely (but BeOS bash needs it).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 12:00:00 +00:00
Jérôme Duval
61d7deee8a
added a mouse input server device courtesy of Stefano Ceccherini
...
basicly tested
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 11:54:09 +00:00
Jérôme Duval
97cdac132b
added methods
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 11:12:20 +00:00
Jérôme Duval
11b0d5ec50
Added devices
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 11:03:58 +00:00
Axel Dörfler
d21f25079b
Added missing function tzset() - doesn't do a lot yet, though. The source
...
file also contains the tzname symbol.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8763 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 10:28:25 +00:00
Axel Dörfler
f84671c1ca
Added empty PPC jamfile - there are no arch dependent things yet for PPC.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 10:23:08 +00:00
Axel Dörfler
7be5564a86
Added setjmp(), sigsetjmp(), and friends from FreeBSD.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 10:21:54 +00:00
Axel Dörfler
6914fa8c77
Removed rlimit.c - we now have one in sys/ where it belongs to.
...
Added new "arch" subdirectory to the build.
Removed unnecessary grist from source files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8760 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 10:18:36 +00:00
Axel Dörfler
866a87e2b5
Added several missing functions - some of them work, some of them don't.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8759 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 10:14:12 +00:00
Philippe Houdoin
6eb80c55ea
Dynamicly compute the settings area minimal size (and window, so) according
...
to add-on's views size.
NetworkSetupProfile class: work in progress...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8758 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 10:10:12 +00:00
Jérôme Duval
bb9fc82712
Moved to SimpleTest rule, to not clutter distro directory
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 09:24:55 +00:00
Ingo Weinhold
d9b1b5c979
Made the libglob.a targets for bash and make distinguishable for jam by adding grist to each.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8756 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 23:05:55 +00:00
Jérôme Duval
c1706cd270
minor fix
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8755 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 22:28:11 +00:00
Jérôme Duval
1cf63426c6
added messages outputs
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8754 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 22:17:23 +00:00
Jérôme Duval
dd658e005d
added system key chars size
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8753 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 22:12:14 +00:00
Jérôme Duval
dbf6aa568b
integration of the system keymap, loaded when settings one loading fails
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8752 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 22:06:54 +00:00
Jérôme Duval
5b7cb6de0a
Seems hex printf output is buggy with negative value, -1 should give ff and not ffffffff. we go to decimal
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 17:15:42 +00:00
Jérôme Duval
12379c683f
added header generation for input_server inclusion
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8750 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 16:56:19 +00:00
Jérôme Duval
b7a80e2d41
added a systemkeymap generation based on US-International keymap, it is hardcoded in the Jamfile for now
...
fix a bug in MouseSettings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 16:51:53 +00:00
Axel Dörfler
0f43544e4d
Calm down IDE debug output.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 13:08:34 +00:00
Rudolf Cornelissen
1f1a4dff41
fixed small typo. Erazor 3 (TNT2) indeed still operational exactly as before.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8747 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 12:34:16 +00:00
Rudolf Cornelissen
595ca96f05
some coldstart finetuning and yet another script command. mods not yet checked (so not yet run).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 12:16:18 +00:00
Stefano Ceccherini
4826cc5f6a
Added a (mostly not tested) _PointerList_ class. Please (Michael Pfeiffer or Ingo, whoever comes here first ) have a look at it :)
...
Note that I needed to write my own BSearch() because the compare functions used by _PointerList_ wants items as arguments, while the C bsearch() wants pointers to items as arguments.
The same applies to qsort(), though it's not been written yet.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 10:10:23 +00:00
Jérôme Duval
b00721dd1e
added error handling
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8743 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 09:57:34 +00:00
Jérôme Duval
bab3205a73
changed signature
...
added error outputs
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8742 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 09:56:59 +00:00
Jérôme Duval
1e4e105d82
added error outputs
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8741 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 09:56:17 +00:00
Jérôme Duval
30585c9757
added keymap bin tool
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 09:55:32 +00:00
Philippe Houdoin
d72d2ff161
Rename get_stack_driver_path() into stack_driver_path() to follow BeOS naming policy
...
about functions directly returning the value.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 08:56:18 +00:00
Stefano Ceccherini
f6cd639a4b
Sheesh! No wonder the styling code wasn't fully working, as we were using different constants for font attributes than the ones used by BeOS R5. Now we use those constants directly. Still not ok, but we are on the right track now (I hope :))
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8738 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 07:08:49 +00:00
Axel Dörfler
7ac08f006f
The user image ELF loader is now silent when compiled without TRACE_ELF defined as long as no serious error occurs.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8737 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 04:56:15 +00:00
Axel Dörfler
1980b54a21
Fixed a stupid bug in list_move_to_list(): it did not work for empty lists.
...
The kernel no longer trashes memory when you delete a port without any
messages in its queue (i.e. you can now safely link against libbe.so :)).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8736 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 04:45:02 +00:00
Axel Dörfler
0ebb4701b9
fs_read_info() will now also succeed if the file system in question does
...
not support the read_fs_info() function - only the values that the VFS
does know about are filled in, then.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8735 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 03:41:29 +00:00