Commit Graph

9632 Commits

Author SHA1 Message Date
Axel Dörfler
f0dd6fc2c8 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
2004-11-03 15:03:51 +00:00
Axel Dörfler
8c390406d7 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
2004-11-03 15:00:08 +00:00
Axel Dörfler
c1a8ebfa2d Added missing legacy bcmp() function.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-03 14:57:15 +00:00
Axel Dörfler
424f90aff9 Added prototypes for readv/writev() syscalls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-03 14:55:44 +00:00
Axel Dörfler
9d171dd8f9 Implemented _{user|kern}_{read|write}v() functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-03 14:54:10 +00:00
Axel Dörfler
283c934877 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
2004-11-03 14:45:47 +00:00
Axel Dörfler
c426897f56 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
2004-11-03 14:24:10 +00:00
Stefano Ceccherini
84fed7e642 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
2004-11-03 11:54:38 +00:00
shatty
2d7662810e 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
2004-11-03 11:12:24 +00:00
shatty
23e2aae480 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
2004-11-03 10:15:11 +00:00
Stefano Ceccherini
2f597f2eb7 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
2004-11-03 09:40:27 +00:00
shatty
16dc60cf10 use struct constructor to provide default initialization values
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9758 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-03 09:34:53 +00:00
Stefano Ceccherini
8ca0bfcbb0 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
2004-11-03 09:33:55 +00:00
Axel Dörfler
73760b2058 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
2004-11-03 03:02:34 +00:00
Axel Dörfler
5a7a832f37 Debug output now uses dprintf() rather than printf().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9755 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-03 02:35:56 +00:00
Axel Dörfler
1baf43ea86 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
2004-11-03 02:31:41 +00:00
Axel Dörfler
cdd04333a0 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
2004-11-03 02:28:27 +00:00
Axel Dörfler
d70ad16601 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
2004-11-03 02:25:28 +00:00
Axel Dörfler
92e0317c84 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
2004-11-03 02:23:42 +00:00
Axel Dörfler
d3b2cb65ad 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
2004-11-03 02:20:59 +00:00
Axel Dörfler
74a5be2dbd 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
2004-11-03 02:20:06 +00:00
Axel Dörfler
8ba84a800d 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
2004-11-03 02:17:58 +00:00
Axel Dörfler
127b80eca2 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
2004-11-03 02:15:31 +00:00
Axel Dörfler
b487348fb3 Now only use dprintf() for debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-03 02:13:18 +00:00
Axel Dörfler
ec5d706492 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
2004-11-03 02:10:10 +00:00
ejakowatz
cc17162615 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
2004-11-02 21:36:27 +00:00
ejakowatz
f936fa1261 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
2004-11-02 21:35:28 +00:00
ejakowatz
380156b567 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
2004-11-02 20:49:35 +00:00
Rudolf Cornelissen
48bfcd5601 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
2004-11-02 17:12:06 +00:00
Rudolf Cornelissen
92ee00b1da 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
2004-11-02 17:08:27 +00:00
Rudolf Cornelissen
39ac264a63 removed matrox cardID's.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-02 13:59:48 +00:00
Rudolf Cornelissen
1e4d5a6089 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
2004-11-02 13:58:22 +00:00
Rudolf Cornelissen
f2ef38a49b 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
2004-11-02 13:56:02 +00:00
Rudolf Cornelissen
fed5044c01 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
2004-11-02 13:52:22 +00:00
Axel Dörfler
40360d8c38 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
2004-11-02 01:49:54 +00:00
Axel Dörfler
d7fe004a2a 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
2004-11-02 01:41:09 +00:00
Axel Dörfler
eed194ef81 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
2004-11-02 01:37:16 +00:00
beveloper
e97f9121bf Basic BDataIO binding for MatroskaParser
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-02 01:00:39 +00:00
beveloper
1528ffa991 using UseLibraryHeaders now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-02 00:25:45 +00:00
beveloper
bf4770a920 Fix "left shift count >= width of type" bug
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-02 00:21:31 +00:00
beveloper
9ec428f4e3 removed duplicate struct definition
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-02 00:14:16 +00:00
beveloper
f3d7179ab8 removed unnamed structs and unions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9728 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-02 00:13:05 +00:00
beveloper
57a5afa736 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
2004-11-02 00:07:48 +00:00
Ingo Weinhold
135df065c1 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
2004-11-01 23:52:15 +00:00
beveloper
eca53b5dbe Initial revision
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9722 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-01 23:24:26 +00:00
Axel Dörfler
f09f1fa660 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
2004-11-01 21:46:24 +00:00
Axel Dörfler
ed85746ace 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
2004-11-01 21:44:23 +00:00
Axel Dörfler
e27751d3df 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
2004-11-01 21:38:56 +00:00
Axel Dörfler
7a577b56a1 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
2004-11-01 21:35:10 +00:00
Axel Dörfler
0759a7e5da 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
2004-11-01 20:36:09 +00:00