DarkWyrm [Sat, 6 Nov 2004 20:04:39 +0000 (6 20:04 +0000)]
fixed a bug in ViewDriver which caused it to not send mouse wheel messages
Added a method to CursorHandler to get the mouse position
Mouse messages are now sent to the client window
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9814 a95241bf-73f2-0310-859d-f6bbb57e9c96
DarkWyrm [Sat, 6 Nov 2004 19:45:49 +0000 (6 19:45 +0000)]
Added some changes for the new mouse wheel support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9813 a95241bf-73f2-0310-859d-f6bbb57e9c96
DarkWyrm [Sat, 6 Nov 2004 19:44:49 +0000 (6 19:44 +0000)]
Added a method to get the cursor position
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9812 a95241bf-73f2-0310-859d-f6bbb57e9c96
Jérôme Duval [Sat, 6 Nov 2004 17:37:00 +0000 (6 17:37 +0000)]
Moved sBootTime to an area, so that userland can clone it
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9811 a95241bf-73f2-0310-859d-f6bbb57e9c96
Jérôme Duval [Sat, 6 Nov 2004 17:34:39 +0000 (6 17:34 +0000)]
first real_time_clock impl
todo : setup_rtc_area should be called on startup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9810 a95241bf-73f2-0310-859d-f6bbb57e9c96
DarkWyrm [Sat, 6 Nov 2004 16:54:05 +0000 (6 16:54 +0000)]
Fixed a long-standing bug with displaying focus and some tweaks to Desktop focus code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9809 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Sat, 6 Nov 2004 15:26:40 +0000 (6 15:26 +0000)]
Cleaned Jamfile and moved all build rules to where they belong.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9808 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Sat, 6 Nov 2004 15:25:43 +0000 (6 15:25 +0000)]
Fixed strange build: the random driver had its build rules in src/add-ons/Jamfile.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9807 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Sat, 6 Nov 2004 15:23:48 +0000 (6 15:23 +0000)]
Fixed strange build of null/zero drivers; their build rules were previously
placed in src/add-ons/Jamfile.
Removed sample-code driver digit; it's of no use here.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9806 a95241bf-73f2-0310-859d-f6bbb57e9c96
Jérôme Duval [Sat, 6 Nov 2004 14:04:06 +0000 (6 14:04 +0000)]
collides with the bin tty
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9805 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Fri, 5 Nov 2004 16:08:00 +0000 (5 16:08 +0000)]
_user_set_real_time_clock() can now return an error. It currently even
will do this if this function is called by anyone other than the root
user.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9804 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Fri, 5 Nov 2004 16:06:28 +0000 (5 16:06 +0000)]
The set_read_time_clock() syscall now returns a status_t to be able to
indicate failure.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9803 a95241bf-73f2-0310-859d-f6bbb57e9c96
Jérôme Duval [Fri, 5 Nov 2004 13:25:13 +0000 (5 13:25 +0000)]
added a check of permission
now set errno and return -1 for errors
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9802 a95241bf-73f2-0310-859d-f6bbb57e9c96
Jérôme Duval [Thu, 4 Nov 2004 23:02:54 +0000 (4 23:02 +0000)]
added implementation of stime
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9801 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Thu, 4 Nov 2004 16:46:02 +0000 (4 16:46 +0000)]
Added empty arch_fork_arg structure.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9800 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Thu, 4 Nov 2004 16:42:16 +0000 (4 16:42 +0000)]
Neither unregister_wait_for_any() nor register_wait_for_any() returned
status.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9799 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Thu, 4 Nov 2004 16:41:32 +0000 (4 16:41 +0000)]
Updated the PPC stuff to recent changes in other parts.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9798 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Thu, 4 Nov 2004 16:35:44 +0000 (4 16:35 +0000)]
partial cleanup, starting to disable engine programming..
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9797 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Thu, 4 Nov 2004 16:15:08 +0000 (4 16:15 +0000)]
removed more nvidia refs
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9796 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Thu, 4 Nov 2004 15:54:47 +0000 (4 15:54 +0000)]
Relied on ktypes.h, but didn't include it (because on x86, some arch header
did that already).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9795 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Thu, 4 Nov 2004 15:51:27 +0000 (4 15:51 +0000)]
Fixed a warning in GCC 3.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9794 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Thu, 4 Nov 2004 15:30:29 +0000 (4 15:30 +0000)]
removed a lot of refs to nVidia
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9793 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Thu, 4 Nov 2004 15:29:28 +0000 (4 15:29 +0000)]
doc update, removed refs to nVidia
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9792 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Thu, 4 Nov 2004 15:28:24 +0000 (4 15:28 +0000)]
removed a lot of references to nVidia
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9791 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Thu, 4 Nov 2004 14:43:06 +0000 (4 14:43 +0000)]
skeleton driver compiles
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9790 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Thu, 4 Nov 2004 14:42:09 +0000 (4 14:42 +0000)]
added skeleton accelerant so it compiles
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9789 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Thu, 4 Nov 2004 14:41:05 +0000 (4 14:41 +0000)]
added skeleton driver so it compiles
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9788 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Thu, 4 Nov 2004 14:40:12 +0000 (4 14:40 +0000)]
driver compiles
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9787 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Thu, 4 Nov 2004 14:39:05 +0000 (4 14:39 +0000)]
driver now at least compiles
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9786 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Thu, 4 Nov 2004 12:40:37 +0000 (4 12:40 +0000)]
initial import of skeleton graphicsdriver shared files (not yet working/stripped)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9785 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Thu, 4 Nov 2004 12:37:27 +0000 (4 12:37 +0000)]
initial import of skeleton graphics kerneldriver (not yet working/stripped)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9784 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Thu, 4 Nov 2004 12:30:26 +0000 (4 12:30 +0000)]
initial import of skeleton graphics accelerant (not yet working/stripped)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9783 a95241bf-73f2-0310-859d-f6bbb57e9c96
Stefano Ceccherini [Thu, 4 Nov 2004 08:53:46 +0000 (4 08:53 +0000)]
Added a debugger call in case the reallocation fails.
We can't handle an allocation failure there (at least for now). Took the chance to stylize the code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9782 a95241bf-73f2-0310-859d-f6bbb57e9c96
shatty [Thu, 4 Nov 2004 08:21:48 +0000 (4 08:21 +0000)]
do not use void * delete
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9781 a95241bf-73f2-0310-859d-f6bbb57e9c96
Stefano Ceccherini [Thu, 4 Nov 2004 07:36:23 +0000 (4 07:36 +0000)]
- Avoid setting the input method active if it is already
- Now we use the textview coordinate system correctly in OffsetAt()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9780 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 17:46:22 +0000 (3 17:46 +0000)]
This fixes the build of the R5 version.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9779 a95241bf-73f2-0310-859d-f6bbb57e9c96
Ingo Weinhold [Wed, 3 Nov 2004 17:33:17 +0000 (3 17:33 +0000)]
Always define the symbols needed for basic C++ features. If we link against libgcc.a the symbols from there are simply overridden.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9778 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 17:24:41 +0000 (3 17:24 +0000)]
Changed the way the stores commit their memory: there is no special handling
for temporary memory anymore, it's the store's responsibility to do that
correctly now, and that functionality is reached via the vm_cache using
vm_cache_set_minimal_commitment().
Therefore, the vm_store commit() function now returns a status instead of
the size that could be commited.
Replaced the max_commit mechanism with one that cares about the available
memory, stores can reserve and unreserve such memory. The anonymous_commit()
will now fail in case it could not reserve the needed amount of memory.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9777 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 16:36:40 +0000 (3 16:36 +0000)]
Added initial version of some scripts for the boot process.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9776 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 16:23:45 +0000 (3 16:23 +0000)]
Added uio functions to the kernel (readv/writev[_pos]()).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9775 a95241bf-73f2-0310-859d-f6bbb57e9c96
Jérôme Duval [Wed, 3 Nov 2004 15:50:03 +0000 (3 15:50 +0000)]
Added -fno-rtti flag as it's not used
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9774 a95241bf-73f2-0310-859d-f6bbb57e9c96
Jérôme Duval [Wed, 3 Nov 2004 15:48:52 +0000 (3 15:48 +0000)]
added -fno-rtti flag as we don't use it
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9773 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 15:43:27 +0000 (3 15:43 +0000)]
Thanks to Johannes Fortmann, I learned that the blinking mode can be turned
off to enable bright background colors. It's now always done which enabled
me to improve the slider colors a bit.
Therefore, console_set_color() no longer clears bit 8 from the background color.
Now no longer tries to change the palette in non-8-bit modes; that fixes
the strange colors I got in high and true color modes (VESA palette changing
would fail and the fallback VGA palette changing was responsible for the effect).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9772 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 15:33:01 +0000 (3 15:33 +0000)]
Fixed a crashing bug in fill_sem_info() - if it was called for a semaphore
with an empty queue, it crashed. sem_info::latest_holder is obviously not
set correctly, and should be fixed.
Some cosmetics.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9771 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 15:05:35 +0000 (3 15:05 +0000)]
Added missing times() function (almost empty stub implementation).
Implemented uio.h functions: readv/writev[_pos]().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9770 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 15:03:51 +0000 (3 15:03 +0000)]
Since the status field is still not set correctly (lazy me), reset it to zero at least.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9769 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 15:00:08 +0000 (3 15:00 +0000)]
Added missing putenv() implementation. Chosed to limit env names to an arbitrary length of 64 bytes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9768 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 14:57:15 +0000 (3 14:57 +0000)]
Added missing legacy bcmp() function.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9767 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 14:55:44 +0000 (3 14:55 +0000)]
Added prototypes for readv/writev() syscalls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9766 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 14:54:10 +0000 (3 14:54 +0000)]
Implemented _{user|kern}_{read|write}v() functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9765 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 14:45:47 +0000 (3 14:45 +0000)]
Cleaned up the header a bit, added macro for bcmp().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9764 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 14:24:10 +0000 (3 14:24 +0000)]
Changed to make use of environment variables if present. I think we'll
later should cut down on the defaults.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9763 a95241bf-73f2-0310-859d-f6bbb57e9c96
Stefano Ceccherini [Wed, 3 Nov 2004 11:54:38 +0000 (3 11:54 +0000)]
Line wrapping needs to work at charachter level, not byte level
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9762 a95241bf-73f2-0310-859d-f6bbb57e9c96
shatty [Wed, 3 Nov 2004 11:12:24 +0000 (3 11:12 +0000)]
abs -> fabs, disable WidthBuffer, patch for confirmation in HandleInputMethodChanged
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9761 a95241bf-73f2-0310-859d-f6bbb57e9c96
shatty [Wed, 3 Nov 2004 10:15:11 +0000 (3 10:15 +0000)]
set color when using B_FONT_ALL or when using mode == 0
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9760 a95241bf-73f2-0310-859d-f6bbb57e9c96
Stefano Ceccherini [Wed, 3 Nov 2004 09:40:27 +0000 (3 09:40 +0000)]
fixed a warning, that amazingly didn't appear here (thanks andrew)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9759 a95241bf-73f2-0310-859d-f6bbb57e9c96
shatty [Wed, 3 Nov 2004 09:34:53 +0000 (3 09:34 +0000)]
use struct constructor to provide default initialization values
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9758 a95241bf-73f2-0310-859d-f6bbb57e9c96
Stefano Ceccherini [Wed, 3 Nov 2004 09:33:55 +0000 (3 09:33 +0000)]
ifdeffed out some code in OffsetAt(), and added some simpler (and hopefully more correct) code, to handle multi byte charachters correctly when selecting via mouse.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9757 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 03:02:34 +0000 (3 03:02 +0000)]
Moved serial interface code into separate file.
serial_init() is now called from start().
Changed the way the serial debug output is served: instead of having
the console node to dump everything to serial, too, only dprintf()
triggers serial output now.
dprintf() is now silent unless in debug mode; serial output could
be enabled separetely, though (currently only at build time).
There is no need to disable serial output while the menu is running.
Removed unnecessary grist from the Jamfile.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9756 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 02:35:56 +0000 (3 02:35 +0000)]
Debug output now uses dprintf() rather than printf().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9755 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 02:31:41 +0000 (3 02:31 +0000)]
Since my original color setup only looked good in Bochs (on real machines
some stuff blinked and had wrong colors), we now have a new color scheme
in the boot loader. Not perfect, but looks okay and the same on Bochs and
real machines.
Made changing the colors again easier by moving most colors to constants.
We now have 3 lines for help texts.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9754 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 02:28:27 +0000 (3 02:28 +0000)]
Standard console height are 25 lines, not just 24.
Now clears the screen and scrolls using the current colors (which allows
for other background colors than black).
console_set_color() no longer allows to set the 8 bit of the background
color which indicates blinking.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9753 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 02:25:28 +0000 (3 02:25 +0000)]
Changed the console color names to something simpler and better fitting.
Added comments about which colors can be used for what (unlike Bochs,
real systems support blinking modes, and therefore only 7 bits for
the background color).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9752 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 02:23:42 +0000 (3 02:23 +0000)]
Disabled VESA palette changing for now; it does not seem to work correctly
or I am messing things up (it will now use good old VGA palette programming).
This fixes the strange colors on my system, should investigate on how to
properly use the VESA stuff here.
Debug output now goes through dprintf().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9751 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 02:20:59 +0000 (3 02:20 +0000)]
Now properly resets the system using the keyboard controller.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9750 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 02:20:06 +0000 (3 02:20 +0000)]
No longer clobbers the lower 16 bit of the partition offset before it is saved.
The boot partition was not likely to be found before.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9749 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 02:17:58 +0000 (3 02:17 +0000)]
Partitions do now know if they actually represent a known partitioning system.
Now correctly removes the partitioning system from a device when it is no longer
needed. Also resets the parent pointer of its children.
Debug output now goes through dprintf() rather than printf().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9748 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 02:15:31 +0000 (3 02:15 +0000)]
Fixed a bug when the wanna-be boot partition could not been mounted;
the partition was deleted, but never removed from the partition list.
No longer prints out the root directory contents of all file systems.
Debug output now uses dprintf() rather than printf().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9747 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 02:13:18 +0000 (3 02:13 +0000)]
Now only use dprintf() for debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9746 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Wed, 3 Nov 2004 02:10:10 +0000 (3 02:10 +0000)]
SetParent() is now a public function (could be made private again and friend of
add_partitions_for(), though).
The partition now also tracks if it refers to a partitioning system or not.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9745 a95241bf-73f2-0310-859d-f6bbb57e9c96
ejakowatz [Tue, 2 Nov 2004 21:36:27 +0000 (2 21:36 +0000)]
Added clarifying comments and a bit more error checking
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9744 a95241bf-73f2-0310-859d-f6bbb57e9c96
ejakowatz [Tue, 2 Nov 2004 21:35:28 +0000 (2 21:35 +0000)]
A number of bug fixes. In particular:
- only one byte was being used for total data length in a data field
which had 'maxi' size data (total data > 255 bytes), rather than the
correct four bytes.
- Seem to have finally nailed the proper algorithm for calculating data
item padding (four size bytes + bytes of data, padded to 8-byte
boundary) in all places.
- Was passing the address of the padding string, rather than the string
itself, when writing out NULL padding bytes
- Was incorrectly clearing the MSG_FLAG_MINI_DATA bit when the number of
data items or the size of the largest data item exceeding 256 bytes.
Bit is now cleared when total size of all item data (including size
bytes and padding, if applicable) exceeds 256 bytes
- Modified SizePolicy::Padding(const T&) to use calc_padding() from
MessageUtils.h/.cpp
- Added SizePolicy::Padding(const Store&) to calculate padding for data
field's entire data store
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9743 a95241bf-73f2-0310-859d-f6bbb57e9c96
ejakowatz [Tue, 2 Nov 2004 20:49:35 +0000 (2 20:49 +0000)]
Clarified the format, in particular with regard to how 'mini' vs. 'maxi'
data effects field sizes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9742 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Tue, 2 Nov 2004 17:12:06 +0000 (2 17:12 +0000)]
updated ROM copy to be 64kB so we have it fully.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9741 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Tue, 2 Nov 2004 17:08:27 +0000 (2 17:08 +0000)]
updated ROM dump to be 64Kb instead of 32Kb: now we have the full thing.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9740 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Tue, 2 Nov 2004 13:59:48 +0000 (2 13:59 +0000)]
removed matrox cardID's.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9739 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Tue, 2 Nov 2004 13:58:22 +0000 (2 13:58 +0000)]
fixed VGA BIOS ROM dump to file option, updated docs, updated default settings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9738 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Tue, 2 Nov 2004 13:56:02 +0000 (2 13:56 +0000)]
fixed GET_TIMING_CONSTRAINTS and GET_ACCELERANT_DEVICE_INFO accelerant hooks to return valid data, updated CRTC modeline validity checks for one more variable.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9737 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rudolf Cornelissen [Tue, 2 Nov 2004 13:52:22 +0000 (2 13:52 +0000)]
added NV40-45 recognition for accelerant device info struct.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9736 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Tue, 2 Nov 2004 01:49:54 +0000 (2 01:49 +0000)]
Added stpcpy() implementation for the sake of compatibility (it's not a POSIX function).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9735 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Tue, 2 Nov 2004 01:41:09 +0000 (2 01:41 +0000)]
The kernel string functions are now part of kernel_posix.o.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9734 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Tue, 2 Nov 2004 01:37:16 +0000 (2 01:37 +0000)]
The kernel no longer links against posix_string.o, but has it's own subset now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9733 a95241bf-73f2-0310-859d-f6bbb57e9c96
beveloper [Tue, 2 Nov 2004 01:00:39 +0000 (2 01:00 +0000)]
Basic BDataIO binding for MatroskaParser
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9732 a95241bf-73f2-0310-859d-f6bbb57e9c96
beveloper [Tue, 2 Nov 2004 00:25:45 +0000 (2 00:25 +0000)]
using UseLibraryHeaders now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9731 a95241bf-73f2-0310-859d-f6bbb57e9c96
beveloper [Tue, 2 Nov 2004 00:21:31 +0000 (2 00:21 +0000)]
Fix "left shift count >= width of type" bug
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9730 a95241bf-73f2-0310-859d-f6bbb57e9c96
beveloper [Tue, 2 Nov 2004 00:14:16 +0000 (2 00:14 +0000)]
removed duplicate struct definition
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9729 a95241bf-73f2-0310-859d-f6bbb57e9c96
beveloper [Tue, 2 Nov 2004 00:13:05 +0000 (2 00:13 +0000)]
removed unnamed structs and unions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9728 a95241bf-73f2-0310-859d-f6bbb57e9c96
beveloper [Tue, 2 Nov 2004 00:07:48 +0000 (2 00:07 +0000)]
switched to MatroskaParser, this should be easier to get started
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9727 a95241bf-73f2-0310-859d-f6bbb57e9c96
Ingo Weinhold [Mon, 1 Nov 2004 23:52:15 +0000 (1 23:52 +0000)]
Extremely bad idea: Since the inline stat() is not static, we get a endless recursion, if the server is not running. Fascinatingly this doesn't happen on R5, but at least on BONE (with the same executable) -- correctly, I would think. Apparently a bug in the R5 loader.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9726 a95241bf-73f2-0310-859d-f6bbb57e9c96
beveloper [Mon, 1 Nov 2004 23:24:26 +0000 (1 23:24 +0000)]
Initial revision
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9722 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Mon, 1 Nov 2004 21:46:24 +0000 (1 21:46 +0000)]
Quick hack on our temporary keyboard driver to allow cursor movement and stuff like Control-D.
For example, command line history now works in the bash :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9721 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Mon, 1 Nov 2004 21:44:23 +0000 (1 21:44 +0000)]
If available, main2() will now execute the Bootscript. If not, it will fall
back to the old "init" command.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9720 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Mon, 1 Nov 2004 21:38:56 +0000 (1 21:38 +0000)]
Fixed a stupid bug in create_team_thread_start(): it copied the env variables
in the wrong direction for some time now, corrupting the argument area (user
apps would crash).
B_SYSTEM_TEAM is now reserved, so that no team can be created there.
Fixed some warnings when debug output is enabled.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9719 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Mon, 1 Nov 2004 21:35:10 +0000 (1 21:35 +0000)]
Now starts a login shell.
Renamed console_reader() function to keyboard_reader().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9718 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Mon, 1 Nov 2004 20:36:09 +0000 (1 20:36 +0000)]
pipefs_create() now also allows to open an existing pipe.
The inode now keeps track of the number of readers/writers.
Inode::BytesInChain() is now only used protected by the request lock.
Implemented some missing POSIX demands:
- when the last writer is closed, all waiting read requests are aborted
- pipefs_write() now returns EPIPE and signals the current thread with
SIGPIPE in case there are no readers left
- pipefs_read() will now return 0 in case there are no writers and no
unread buffers left in the pipe.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9717 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Mon, 1 Nov 2004 20:20:37 +0000 (1 20:20 +0000)]
Fixed a potential memory leak in devfs_open().
Correctly implemented devfs_create() - it will now open the an already
existing file if O_EXCL is not set, and no longer fail with EROFS.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9716 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Mon, 1 Nov 2004 20:18:46 +0000 (1 20:18 +0000)]
Added some more debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9715 a95241bf-73f2-0310-859d-f6bbb57e9c96
Axel Dörfler [Mon, 1 Nov 2004 19:48:40 +0000 (1 19:48 +0000)]
Added some minor debug output, and a ToDo comment for file_seek().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9714 a95241bf-73f2-0310-859d-f6bbb57e9c96
Ingo Weinhold [Mon, 1 Nov 2004 19:38:47 +0000 (1 19:38 +0000)]
Changed my mind. Now BPartition has a method to get the mount point of the partition, respectively a potential mount point, for partitions not yet mounted.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9713 a95241bf-73f2-0310-859d-f6bbb57e9c96
Ingo Weinhold [Mon, 1 Nov 2004 17:02:12 +0000 (1 17:02 +0000)]
Moved getting a partition's future mount point into a separate function, so it can be reused by mountvolume.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9712 a95241bf-73f2-0310-859d-f6bbb57e9c96