25873 Commits

Author SHA1 Message Date
Stephan Aßmus
edc51252d3 * A few versions of BMessage::AddXXX and ReplaceXXX did not check the argument
passed to the function against NULL.
* Made BMessage::AddFlat() use an optionally heap allocated buffer versus always
  a stack allocated one.
* Small simplification in BMessage::AddMessage(), we can simply compare the
  buffer with the stack based buffer to know whether we need to free() it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26943 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26943
2008-08-12 14:38:31 +00:00
Axel Dörfler
44cd4a02c7 * Deskbar's Switcher had an explanation what the window_info::layer field is
about. ServerWindow::GetInfo() now fills in that value following this logic
  as well as further testing.
* Whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26942 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26942
2008-08-12 13:44:17 +00:00
Axel Dörfler
0eb592d7fe * Fixed off by one error in the number of clicks to finish the game (it can
hardly be odd).
* Fixed spelling error Genarate -> Generate.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26941 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26941
2008-08-12 13:03:36 +00:00
Rene Gollent
fb6d782320 Fix some style issues pointed out by Axel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26940 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26940
2008-08-12 12:41:10 +00:00
Ingo Weinhold
dce8d473d5 When freeing the swap space associated with a page, the page must be
marked modified again, so that we don't lose its data when someone
decides to steal it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26939 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26939
2008-08-12 00:08:33 +00:00
Ingo Weinhold
95accc28f8 Patch by Zhao Shuai with small changes by myself: The page daemon does
now also free swap space assigned to pages that are rather active.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26938 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26938
2008-08-11 23:55:30 +00:00
Rene Gollent
3734bee77d When the boot loader goes to load its settings files, it will now also prepend the "kernel" settings file to the safe mode settings if it exists. This allows settings from kernel/drivers/kernel to be respected early in the boot process as well, which allows us to do things like disable_smp permanently instead of having to pick from the safe mode menu every single boot. Review welcome.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26937 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26937
2008-08-11 23:03:36 +00:00
Stephan Aßmus
afbd081a6f * TRACE macro no longer needs double parenthesis.
* The global BPathMonitor looper is now always used, no more optional looper
  and no more BApplication looper usage. This way we know how the looper behaves
  and PathHandler::Quit() can be synchronous. In the end, the bug I was
  observing was not caused by the previous asynchronous node monitor stopping,
  but this should be safer anyways. When BPathMonitor::StopWatching() returns,
  you have really stopped watching and not some time later.
* Introduced "FileEntry" which is an entry_ref plus node id. This is now used
  instead of the node_ref for the "watched files set". The whole point
  is to really be able to add the "path" field to the B_PATH_MONITOR message.
  Previously, the initial path that was passed to StartWatching() was added,
  regardless if the message was for an entry somewhere down the hierarchy when
  watching recursively. The downside of the new method is that it uses a lot
  more RAM per entry. Another option would be to store the node id of the parent
  directory and iterate the directory always when in need to construct the path.
* Watching a folder recursively now really adds all the existing subfolders
  as well as all the files if not watching for folders only. The tests for the
  old implementation only tested what happens when the watched folder was newly
  created and then subfolders were created. Those where already added by the
  code. Now it also adds the subfolders of folder that appear in a watched
  folder.
TODO: Remove folders and files recursively when they dissappear. More testing
for B_ENTRY_MOVED. Optimizations are possible when some information is
retrieved twice. I am also planning to add a way for the BPathMonitor user to
filter the automatically watched files/folders in B_WATCH_RECURSIVELY mode.

I grepped the entire Haiku tree for usage of BPathMonitor. Only net_server
and Mail were using it, but both in a way that is not affected by these
changes. Anyways, TextSearch works more reliable now, even for entries in
subfolders.

Feedback very welcome! :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26936 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26936
2008-08-11 20:02:59 +00:00
Stephan Aßmus
545bce00c6 * Added more tracing facilities (Function enter/exit printer)
* Decreased the node monitor activity timeout to 150 ms
* _StartNodeMonitoring() simply starts watching the root folder with the
  B_WATCH_RECURSIVELY flag set. (Requires forthcomming changes to
  BPathMonitor, but it was broken anyways.)
* _StopNodeMonitoring() returns early if node monitoring is inactive.
* When node monitoring is started after a search finished, it is done
  asynchronous, since messing with the other controls results in modification
  messages that otherwise stop node monitoring again. Now the message is
  inserted last and works reliably.
* When receiving B_PATH_MONITOR messages, they are supposed to simply contain
  a "path" field with the full path to the node that changed. That's not
  currently the case with BPathMonitor, but I will commit that stuff next.
  (Was broken before anyways.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26935 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26935
2008-08-11 19:08:12 +00:00
Stephan Aßmus
b815b7edc6 * Added convenience methods for debugging.
* Added better tracing support.
* GetNextName() was not incrementing the index when iterating to the next entry
  and was therefor broken if the object managed more than one entry.
* Made a small simplification in EntryRemoved().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26934 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26934
2008-08-11 19:00:35 +00:00
Stephan Aßmus
0f5788e861 It's important to add the ref ot the message also when we are reporting a
negative.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26933 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26933
2008-08-11 18:57:09 +00:00
Axel Dörfler
872c3d3f6a * Fixed the broken nodeFlags semantics in BDirectory::Contains() (they are
flags, after all).
* This fixes the "Command-Tab" ie. switch to source/header command in Pe.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26932 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26932
2008-08-11 18:16:33 +00:00
Axel Dörfler
8f38768e65 * Don't define DEBUG in public headers!!! Doing it this way will break the
build for others, namely those that also include <Debug.h>
* This fixes the remaining problems of building Pe under Haiku.
* Those files need a giant style cleanup... Fredrik, time to have a look at
  our style guide :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26931 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26931
2008-08-11 16:45:26 +00:00
Stephan Aßmus
45d431a676 Applied patch by Andreas Faerber:
Consequently use the IANA "x-" prefix for unofficial MIME types.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26930 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26930
2008-08-11 11:15:28 +00:00
Axel Dörfler
3d3fe5a58c * Added tracing support to our scheduler to be able to do better diagnosis
with scheduling problems.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26929 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26929
2008-08-11 10:20:16 +00:00
Stephan Aßmus
4c660d948d Applied patch by scottmc to fix the placement of some out of order names.
Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26928 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26928
2008-08-11 09:05:36 +00:00
Ingo Weinhold
5409ef46f6 Squashed TODO: Clone the image list on fork().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26927 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26927
2008-08-11 00:30:00 +00:00
Ingo Weinhold
77acd7fece Patch by Zhao Shuai with some changes by myself:
* Added functions swap_free_page_swap_space(), swap_available_pages(),
  and swap_total_swap_pages(). They will be used by the page daemon
  code.
* Free allocated swap space in the VMAnonymousCache destructor.
* Write(): First free swap space assigned to the pages to be written
  (was leaked before) and update fAllocatedSwapSize upfront. Both is now
  done with the cache locked, as it should be.
* Fixes several instance where the cache offset in bytes was used
  instead of in pages.
* Print the correct error when _kern_write_stat() fails.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26926 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26926
2008-08-10 23:46:00 +00:00
Karsten Heimrich
4b7da592ee * first steps towards a new printer api...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26925 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26925
2008-08-10 23:26:38 +00:00
Karsten Heimrich
92e47f6dbc * broaden the window a bit, fixes ticket #2378 ;)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26924 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26924
2008-08-10 23:21:59 +00:00
Ingo Weinhold
bbc9703cc3 As suggested by Rene and Andreas: Use '%lld' instead of the non-standard
'%Ld'. This solves build problems in Solaris.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26923 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26923
2008-08-10 22:18:53 +00:00
Salvatore Benedetto
461106374f * Fix year in license
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26922 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26922
2008-08-10 17:02:34 +00:00
Salvatore Benedetto
4093d16d51 * updating license
* use _{BEGIN|END}_DECL macro instead of ifdef C++



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26921 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26921
2008-08-10 16:29:51 +00:00
Salvatore Benedetto
839157e97c * Removing bonnie in favor of bonnie++-1.03d
BTW: I've added bonnie++ as it is. That is, I just realized that some
unnecessary directory/files (like debian) could have been removed. 
They shouldn't harm ;-)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26920 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26920
2008-08-10 15:39:11 +00:00
Salvatore Benedetto
24bd900833 * Adding bonnie++ suite version 1.03d. It includes the binary zcat and bonnie++ itself
I'm adding it to the same directory of where bonnie was, but I think
src/test/apps would be a better place.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26919 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26919
2008-08-10 15:36:25 +00:00
Salvatore Benedetto
71d31cc518 * Removing old version of bonnie
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26918 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26918
2008-08-10 15:33:26 +00:00
Axel Dörfler
c3a9fa2150 * Added a kludge to the test environment to be able to support two pages sized
non-contiguous areas.
* Added a test that allowed to reproduce #2595.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26917 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26917
2008-08-10 15:32:13 +00:00
Philippe Houdoin
b74ede5b2c Fixed a typo. Structs debug_image_created and debug_image_deleted are today identical,
but better not assume they're.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26916 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26916
2008-08-10 14:57:43 +00:00
David McPaul
654aaf100d handle invalid tracks better
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26915 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26915
2008-08-10 13:54:42 +00:00
David McPaul
086dbe90c8 limit no of retries to prevent infinite loop
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26914 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26914
2008-08-10 13:54:03 +00:00
David McPaul
27c790c14c handle invalid tracks better
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26913 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26913
2008-08-10 13:52:32 +00:00
David McPaul
1ac79e42f3 preparation for aac_decoder
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26912 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26912
2008-08-10 13:51:39 +00:00
François Revol
0bdaf02821 Start of a file map disk driver for the bootloader.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26911 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26911
2008-08-10 01:24:01 +00:00
Ingo Weinhold
2fc2b436d2 Another hard code (DMAResource::TranslateNext()) fix: In the write case
if after the main loop the transfer is already block aligned, we still
have to check whether the last vec is a bounce buffer that is shorter
than a complete block, but exceeds the original end of the request. If
so, we have to cut back to the previous block and add a block-sized
bounce buffer instead. Actually that's almost the same case as when the
transfer length is not yet block aligned, and thus we let the same code
handle it. Fixes bug #2584.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26910 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26910
2008-08-10 00:44:30 +00:00
Ingo Weinhold
1bb2ad1ed8 Test case to reproduce bug #2584.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26909 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26909
2008-08-10 00:25:53 +00:00
Ingo Weinhold
3656dc0d61 Removed debug tracing that obviously slipped in in a former commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26908 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26908
2008-08-10 00:24:32 +00:00
Ingo Weinhold
a3afb5ee0d Handy on-demand debug tracing, I've used a few times already. So I leave
it commented out in the code for the time being.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26907 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26907
2008-08-10 00:23:35 +00:00
François Revol
0228d059a2 allow giving count of insn to disassemble, up to 50 for now as buffer is still fixed sized.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26906 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26906
2008-08-09 22:36:34 +00:00
Axel Dörfler
ed0303d19d * When creating the physical vector array, we did not advance "base" in the
loop.
* This is probably the cause for file corruptions as well as bug #2595; will
  have another look tomorrow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26905 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26905
2008-08-09 21:27:24 +00:00
Axel Dörfler
96e0e6d137 * Applied patch by Justin O'Dell: the 8168 MMIO region is obviously in the
third range, not the first.
* This finally closes #1853 again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26904 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26904
2008-08-09 20:57:46 +00:00
Oliver Ruiz Dorantes
696b8e46f3 Move header to private, is meant to be used by acl component as well
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26903 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26903
2008-08-09 20:47:30 +00:00
Bruno G. Albuquerque
b407c416eb Force multi-device mode for JMicron controllers supporting SATA/PATA
interfaces. This fixes bug #2227.

Note that when the SATA interface is in AHCI mode it is still failing 
due to what seems to be a device manager problem. I will open a separate 
bug for it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26902 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26902
2008-08-09 20:32:18 +00:00
Jérôme Duval
ef0fc55562 use absolute path when launching makebootable as it seems unable to find its own path without it
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26901 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26901
2008-08-09 16:15:04 +00:00
Jérôme Duval
9c83a65a77 update signatures
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26900 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26900
2008-08-09 15:47:25 +00:00
Ingo Weinhold
4d121ec067 Patch by Andreas Faerber with changes by myself: Work towards Solaris
build platform support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26899 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26899
2008-08-09 15:36:24 +00:00
François Revol
8c57f7ed08 Apply the patch I made to have it build on BeOS, doesn't hurt and fixes a warning about missing inet_ntoa proto.
Patch at http://revolf.free.fr/beos/patches/wget-1.11.4-beos-haiku.diff.txt


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26898 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26898
2008-08-09 14:16:54 +00:00
François Revol
88b1a3b340 - update to wget 1.11.4
- update config.h with one generated with the BONE devkit under Zeta, should be enough.
- fixed config.h so it builds (we do have socklen_t, and stdbool.h)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26897 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26897
2008-08-09 14:14:06 +00:00
Ingo Weinhold
730798eb99 Test case for bug #2586 (more given physical vecs than max segment
count).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26896 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26896
2008-08-09 12:58:09 +00:00
François Revol
52646494cd Remove unneeded files. Configure line was:
./configure --prefix=/boot/home/config/wget/ --without-ssl -disable-nls --disable-ipv6 --disable-rpath


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26893 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26893
2008-08-09 12:02:37 +00:00
Axel Dörfler
46b2c7efd3 * Now uses different base addresses for mapping the registers depending on the
chipset. This should now finally fix bug #1853.
* Instead of reading values directly from the PCI config space, we now just use
  the pci_info structure to retrieve them (interrupt, and base address).
* Renamed alloc_mem() to alloc_contiguous() to make clearer what it does.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26886 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev26886
2008-08-09 09:43:19 +00:00