Commit Graph

18781 Commits

Author SHA1 Message Date
Bruno G. Albuquerque
f212f3bad2 Fix build with TRACE enabled.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-17 16:02:19 +00:00
Axel Dörfler
849de6ef97 Added another GetStyledText() function to force a specific encoding.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-17 12:04:02 +00:00
Axel Dörfler
691e54b4ab Minor fixes:
* the "state" variable was reset for each loop cycle.
* since the inner loop tested for "bytes" instead of "bytesLeft", convert_to_utf8()
  was called twice for each chunk read.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19846 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-17 12:02:06 +00:00
Axel Dörfler
d0fc29af1f StyledEdit now makes use of the new BTranslationUtils functions which
simplify the code quite a lot.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-17 11:39:56 +00:00
Axel Dörfler
ac0ff19664 While investigating why our UTF-16 files are broken (with a smaller output buffer),
I noticed that "state" was never set, but as expected this doesn't help at all:
we just can't use iconv() this way, I'll open a bug for this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-17 11:18:33 +00:00
Axel Dörfler
4ea89ce5c8 Looks like Be and Andrew mixed up UCS-2 and UTF-16; I added the UTF-16 conversion as well
now (which has a marker at the beginning of the file, unlike UCS-2).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-17 11:08:39 +00:00
Axel Dörfler
471c6cea75 * Added the file_ascmagic() stuff from our text sniffer add-on (originally taken from
BSD's file utility) to identify text files.
* The translator now automatically decodes files based "be:encoding" (which can now
  also be a string type attribute), as well as whatever file_ascmagic() recognizes.
  IOW we can now finally read all text files we recognize as text files.
* Added an ioExtension to force a specific encoding for Translate() (called "be:encoding"
  as well).
* Enlarged the read buffer to 32768 bytes (instead of just 2048).
* Now fails when reading/writing files >4GB in STXT format (which doesn't support those)
* Translate() now writes the "be:encoding" attribute in case it detected the encoding
  itself.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-17 10:46:28 +00:00
Axel Dörfler
8acdd17f08 Added WriteStyledEditFile() variant that gets an encoding argument; it will automatically
encode the text in the BTextView accordingly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19841 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-17 09:10:16 +00:00
Bruno G. Albuquerque
e62e6bd5a7 Implemented support for hardware cache flush. This is based on code I originally
did for yellowTAB GmbH when I worked for then and is being used under permission.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19840 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-17 01:39:59 +00:00
Marcus Overhagen
7f6c8fdc86 added ahci to the image
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19839 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-17 01:11:19 +00:00
Marcus Overhagen
c6a23809ea add ahci driver to build system
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19838 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-17 00:40:11 +00:00
Marcus Overhagen
f39cc7fbeb added device detection
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19837 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-17 00:39:33 +00:00
Marcus Overhagen
ebb02063bd Fixed documentation, uint16 was wrong and doesn't work. Also checked other usage of this items, but they are already correct.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19836 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-17 00:19:59 +00:00
Marcus Overhagen
dd994777b7 added some register definitions from AHCI 1.1 specification
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 23:45:43 +00:00
Marcus Overhagen
573135490d header file for AHCI
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 23:17:41 +00:00
Marcus Overhagen
bff626f156 copied from the Silicon image driver to get started
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19833 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 22:47:25 +00:00
Marcus Overhagen
d16104f0bd created new directory for AHCI support
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19832 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 22:45:20 +00:00
Axel Dörfler
450a5aea22 * GetStyledText() is now much more forgiving when it comes to corrupted data
(ie. if the text file is cut off, it will no longer return an error, but
  load as much as possible).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 20:50:56 +00:00
Jérôme Duval
84137e45f1 now uses the dpc module for AcpiExecute(). Untested with hardware events.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19830 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 20:37:22 +00:00
Axel Dörfler
8cddf19132 Tracker now prefers an icon coming directly from the MIME type over one specified
by the application - as FileTypes already did.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 17:36:16 +00:00
Stefano Ceccherini
68fb266820 get rid of the now useless trackTime parameter
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 15:22:31 +00:00
Stefano Ceccherini
ebd1a3a130 some more work on menus... fixed bug #953 and some more stuff
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 14:43:01 +00:00
Axel Dörfler
0013964388 Ported r19825 back to the R5 version of BFS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 14:40:15 +00:00
Axel Dörfler
458ff7ff31 Inode::WriteAttribute() did not adopt a changed "type" when the attribute was a file,
causing subsequent reads with that type to fail.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19825 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 14:33:23 +00:00
Stefano Ceccherini
ee144512ec use Invalidate() and UpdateIfNeeded() in BTextView::SetTextRect(). Fixes bug #571
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 09:04:14 +00:00
Stefano Ceccherini
1e634f4d9c Actually use B_COLOR_SELECTION_TEXT when drawing. Patch by Andrea Anzani
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19823 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 08:36:35 +00:00
Axel Dörfler
8d7ddfde53 Fixed build under BONE again...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 00:28:46 +00:00
Axel Dörfler
55a147c27e Fixed build under Dano/Zeta.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19821 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 00:17:52 +00:00
Michael Lotz
e323965be8 * Properly initialize the whole mouse_movement structure to 0 instead of only some fields
This fixes the random horizontal scrolling that happened with one-wheeled USB mice like mine or Marcus'.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 22:16:10 +00:00
Axel Dörfler
2effffff60 Added Vasilis Kaoutsis to the list of contributors.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 20:52:55 +00:00
Axel Dörfler
b73f3b8a15 Applied patch by Vasilis Kaotsis, and added him as an author (because you don't really
recognize the original anymore :-)).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 20:48:32 +00:00
Axel Dörfler
04121b1396 * Add() did not add fNumBytes in case of an out of order packet, causing all kinds of
hickups on TCP connections.
* Added a bit more of debug output to Add().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19817 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 18:00:39 +00:00
Axel Dörfler
bbaa26a490 The net_server is now a BServer instead of a BApplication, IOW it doesn't rely on the
app_server being started anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 16:51:27 +00:00
Axel Dörfler
c2f09ed5b7 * Fixed compilation with debug output turned on.
* Added FIONBIO ioctl() in debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19815 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 16:17:08 +00:00
Axel Dörfler
9ef37e3bc4 The networking server is now launched at system startup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 16:16:10 +00:00
Axel Dörfler
4062fe7ce3 fReceiveNext was not maintained correctly in case of out of order packets.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 16:10:13 +00:00
Axel Dörfler
e1771d9b1d Calmed down ICMP protocol module as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 15:14:02 +00:00
Axel Dörfler
ab4048488d The IPv4 protocol now stores all domain receiving protocols, and only put them away on uninit.
This should speed up packet retrieval a lot.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 14:22:31 +00:00
Axel Dörfler
235a50037c accept() and bind() now accept NULL address parameters in the R5 compatibility mode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 13:07:09 +00:00
Axel Dörfler
9aed1afa6a "step" could be zero, in which case the loop would never end.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 12:53:11 +00:00
Axel Dörfler
6f19c1db2d There was a race condition between removing the thread from the hash and putting
its death entry into the parent team's queue - we need to do this atomically.
As an effect, wait_for_thread() sometimes failed with B_BAD_THREAD_ID.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 12:41:08 +00:00
Axel Dörfler
7383c05e71 The R5 socket protocol constant conversion routine was broken - now, NetPositive
is starting to work under Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 12:37:08 +00:00
Axel Dörfler
e9ffbbf36c Moved locking into map_backing_store() - it now gets a vm_cache_ref instead of a vm_store,
so that this can be done safely.
It was also needed, as it would call vm_cache_release_ref() on failure which requires you
to have no vm_cache_ref locks around (as it might deadlock in this case).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 11:40:13 +00:00
Axel Dörfler
d8a7f74053 vm_store::fault() is now called with having the vm_cache_ref locked, so it shouldn't
be locked again here...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 10:24:22 +00:00
Axel Dörfler
d60fa6c96f Now checks the return value of wait_for_thread() and print out an error message if it fails.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 10:11:03 +00:00
Axel Dörfler
49b3453720 Applied patch by Eric: this fixes a crash after some time (when the FIFO queue was full
for the first time).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 09:42:08 +00:00
Jérôme Duval
63ac6cdcf4 fix gcc4 build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-14 23:33:52 +00:00
Axel Dörfler
842d81bf28 vm_cache_remove_consumer() did not only access vm_cache_ref::cache without having
had the cache_ref locked, it also locked two refs in the wrong order (bottom-up);
there was even a TODO item for this...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-14 23:29:23 +00:00
Axel Dörfler
f39acd678c * Made vm_area_lookup() part of the kernel private API.
* "sc"/"where"/"bt" now prints the area where the function of the stack frame
  is located in case there is no other information (using the above function).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19800 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-14 23:26:20 +00:00
Axel Dörfler
f4972679f7 * team::args was not correctly initialized in create_team_struct()
* even worse, in case of fork(), it was never initialized.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-14 23:22:49 +00:00