Commit Graph

7850 Commits

Author SHA1 Message Date
Axel Dörfler
87df3fdab8 WriterLocker mixed up source and target and always locked the wrong one.
tty_write_to_tty() now takes the extra character into account that may be
inserted with OPOST and ONLCR and don't write more characters as there is
space.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-01 17:27:57 +00:00
Jérôme Duval
549360d822 i don't even wonder why i have to do this, i simply do it
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-01 16:02:20 +00:00
Jérôme Duval
6be0f7ef24 reversed sign change, bad idea ...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-01 15:58:13 +00:00
Jérôme Duval
7c862ee441 added comm tests
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-01 15:50:58 +00:00
Jérôme Duval
9bc892a8da added some support for R5 app_server communication
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-01 15:24:49 +00:00
Jérôme Duval
6ed407d8fa added log
added a sign change


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-01 15:23:04 +00:00
Stefano Ceccherini
bed94c4a3a Started to Implement a way to have different ps2 packet sizes.
Added (empty) handlers for some ioctl which started to bug me,
some cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-01 07:13:04 +00:00
Nathan Whitehorn
d774d9a0a1 While we're modifying ether_driver.h, added in an ioctl for link state detection, and implemented it in the two Broadcom drivers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-01 03:01:20 +00:00
Axel Dörfler
2c8b3014ef Moved select events to Select.h. Now includes that header, too.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-01 00:31:20 +00:00
Axel Dörfler
7f246a3068 Added proper select() support for R5 and Haiku.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-01 00:29:49 +00:00
Axel Dörfler
a83233417d Fixed warning, small cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-01 00:11:19 +00:00
Nathan Whitehorn
82a393590f Finished converting the mail daemon to use rdefs instead of binary resource files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 23:37:34 +00:00
Ingo Weinhold
b4c1459318 Make use of the newly introduced generated syscall numbers header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 23:30:29 +00:00
Nathan Whitehorn
0edd0ce523 Removed the makefile I accidentally committed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 23:29:39 +00:00
Ingo Weinhold
1f90f9aa63 We do now also generate a header file that defines macros for the syscall numbers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 23:28:57 +00:00
Ingo Weinhold
89e53cea26 It is now understood where the _kern_restore_signal_frame() is used.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 23:25:55 +00:00
Nathan Whitehorn
d4010e5eae Added a driver for the Broadcom 570x (aka Tigon 3), version 7.3.5, using the SubIncludeGPL rule.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 22:13:51 +00:00
Nathan Whitehorn
45418db003 Cleaned out the sis900 install rules from the bcm440x Jamfile. (Can you tell which Jamfile I copied?)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 21:59:06 +00:00
Nathan Whitehorn
58fcb06c24 Added the Broadcom 440x driver under the SubIncludeGPL rule.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 21:39:31 +00:00
Nathan Whitehorn
45abc8d70d Added SSL compilation support by defining USESSL as an environment variable.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 21:24:20 +00:00
François Revol
d3a2714980 hmm 5 seconds is 5 seconds.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 17:07:18 +00:00
Stefano Ceccherini
d51394ddd6 Fixed bad redrawing of the text when alignment is different than B_ALIGN_LEFT
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 13:10:43 +00:00
Rudolf Cornelissen
650765d20c modified script PCI config space access: 'old' method doesn't work on NV11!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 13:01:02 +00:00
Stefano Ceccherini
5302d71190 Fixed LineWidth(): now it calls StyledWidth(). It's not an issue, since charachter widths are cached by _BWidthBuffer_.
Marc Flerackers lend me a hand and now alignments should work much better (if not perfectly)

Some cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 12:49:34 +00:00
Philippe Houdoin
9bf0b0b085 BeMail.rsrc replaced by *.rdef files...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9118 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 12:21:39 +00:00
Stefano Ceccherini
1c4b8c6af4 This file was building fine on my pc. Weird. Hope this fixes the issue.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9117 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 08:10:30 +00:00
Stefano Ceccherini
dbce0eca86 Now configures RX filter to receive broadcast transmissions also. This fixes the issue of
the card not receiving anything if the transmission was started from another box.
Fixed a couple of warnings. Many cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 06:34:16 +00:00
Nathan Whitehorn
43c1e26809 Made the packaging system better, with readmes and a better install script.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 03:49:35 +00:00
Nathan Whitehorn
6c033b8a92 Converted binary rsrc to rdef.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 02:50:55 +00:00
Stephan Aßmus
0cd4ecd8b2 cosmetical improvements to status view, it also shows the image size now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 19:47:18 +00:00
Jérôme Duval
33140fa001 added file debug output for daemon mode
added some R5 app_server communication init


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 15:42:47 +00:00
Axel Dörfler
8b41e11557 Fixed a possible deadlock (the requests benaphore is now unlocked before
waiting on the write semaphore).
The write functions didn't change the buffer address on a partial write
which could lead to corruption in the pipe data.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9111 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 14:30:53 +00:00
Axel Dörfler
a83d9efacf Some changes to debug output.
Fixed a warning that popped up if TRACE_VM was defined.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 14:24:44 +00:00
Axel Dörfler
2ff1ba0dc7 tty_input_read() was blocking until the whole buffer could be filled - that's
not really standard behaviour...
tty_input_putc() now also releases the reader semaphore if that hasn't been
done before.
tty_input_putc_locked() now does character processing and sends some signals -
not yet complete, though, especially VERASE and VKILL do nothing right now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 12:58:33 +00:00
Axel Dörfler
8b2f07b69e Removed sleep(), it now uses spin() from cpu.cpp - which is the exact same thing anyway.
This fixes the build as unistd.h defined sleep() as well.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 12:51:34 +00:00
Axel Dörfler
a67dbcba14 reset_line_buffer() is actually called clear_line_buffer().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 12:21:21 +00:00
Axel Dörfler
005333c0d9 No more debug output for the driver part.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9106 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 12:20:31 +00:00
Axel Dörfler
f3df760478 Fixed the return type of user_memcpy() and friends.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 10:47:46 +00:00
Jérôme Duval
372a32913b when our input_server links against libopenbeos.so , addons have to do the same
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 09:16:57 +00:00
Stefano Ceccherini
d7ff9fac45 getopt() is already defined in unistd.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9100 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 07:59:55 +00:00
Stefano Ceccherini
2ebebc8356 Our termios.h header doesn't define termio to termios (as the R5 one does). termios is the correct name, anyway.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 07:49:09 +00:00
Waldemar Kornewald
982115e516 Fixed a buffer overflow caused by our R5 select() emulation.
Added missing uname() function which is needed for full R5 compatibility.
It seems that nearly all apps are working now. I could finally run Vision (BONE and R5), BeShare (quick test only), lynx, Net+, etc.
Apps that don't work: Mozilla for BONE, some ssh binary that I downloaded, Be's ftp when not in passive mode.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 07:35:31 +00:00
Waldemar Kornewald
42605e58c3 Changed to choose select() emulation on a per-request basis.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9097 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 07:32:12 +00:00
Stefano Ceccherini
70751f7bfc - Fixed every Styling issue (at least the ones exposed by StyledEdit). Setting fonts works now
- Cleaned up PageUp/Down handling code
- Now setups undo in Clear()
- Alignment now partially works
- Fixed some visual artifacts which could've showed up during typing with an input method
- Added a "known bugs" section


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 07:18:10 +00:00
Rudolf Cornelissen
9ea0c780e4 added type2 scriptcmd #$33, NV11 reports OK status now as well (secondary card function not yet tested).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9094 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-28 19:39:37 +00:00
Ingo Weinhold
ec0a76c84d The keymap files shall depend on the "files" target only, if jam was run from an ancestor directory.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9093 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-28 17:50:36 +00:00
Axel Dörfler
f7bc46254a readwrite() was broken when it had to load more than one missing page at once.
It now prints a warning if the device driver doesn't handle iovecs correctly.
Again, this could lead to very strange behaviour.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-28 16:30:25 +00:00
Rudolf Cornelissen
f7ed173238 modification in script type2 stuff so cmd #33 can be accomodated
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-28 15:04:55 +00:00
Rudolf Cornelissen
90c531ff69 NV40/GF 6800 PLL update..
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9090 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-28 12:46:13 +00:00
Jérôme Duval
3cf3a52dc5 Some mice have two wheels
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-28 11:27:30 +00:00
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