Commit Graph

18038 Commits

Author SHA1 Message Date
Axel Dörfler
57d9d07781 * Fixed another big bug that the new heap revealed: when loading an image failed,
it was never removed from the sLoadedImages list - and thus, would happily
  access invalid memory.
* get_next_image_dependency() is now using the global lock as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19047 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-11 17:50:06 +00:00
Axel Dörfler
5cfd3a1592 The heap now grows if needed; this allows VLC to load all of its plugins.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19046 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-11 17:45:13 +00:00
Axel Dörfler
6f0994d460 * Switched to the boot loader's heap implementation.
* This sane heap revealed a bunch of bugs (like sLoadedImageCount not being
  maintained that was used for various allocations).
* If the allocation of the image fails, opening the app will now just fail
  instead of crashing of overwriting random data (IOW VLC will now load
  okay, but cannot load some of its add-ons anymore).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19045 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-11 16:02:43 +00:00
Axel Dörfler
3862cbfeee Fixed a potential buffer overflow error.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19044 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-11 13:54:51 +00:00
Stefano Ceccherini
ecb8972497 Added print server to the image
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-11 11:51:18 +00:00
Axel Dörfler
598d9e8dd5 Added _h_errnop(), fixing bug #898.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19042 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-11 10:48:34 +00:00
Axel Dörfler
4e4c58037e Implemented collapsing forked vm_cache object chains when they become unused.
This fixes bug #227 by closing that memory and semaphore leak.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-10 22:47:00 +00:00
Axel Dörfler
bcf2f8133b * Fixed a big memory leak: vm_delete_areas() did not put the reference of the
address space of reserved areas - IOW address spaces were never freed upon
  team exit.
* dump_cache() now prints a list of the cache's consumers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19040 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-10 22:42:12 +00:00
Axel Dörfler
45894e1088 Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19039 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-10 22:39:57 +00:00
Jérôme Duval
127f01dd39 fix for gcc4 (strcmp needs cstring, nothrow is in std namespace)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19038 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-10 19:14:54 +00:00
Axel Dörfler
a7181e951d Accidently turned on printing stack traces with the last commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-10 17:27:03 +00:00
Axel Dörfler
0b8e0bfc08 Some cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-10 17:25:38 +00:00
Axel Dörfler
d593e74a27 First steps towards being able of collapse vm_cache objects after forking:
* a vm_cache now maintains a list of its "consumer" caches.
* introduced to new functions that add/remove consumer to a cache (instead
  of only maintaining the vm_cache::source field).
* fixed the incorrect reference counting when doing copy-on-write; we kept
  one ref too many of the lower cache.
* minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19035 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-10 17:16:06 +00:00
Niels Sascha Reedijk
6177d112d4 Improve/fix lazy pipe creation introduced in 19032 based on suggestions by Michael and Marcus.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19034 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-09 12:55:10 +00:00
Marcus Overhagen
ffffd44b12 Moved switching to protected mode into stage1 loader, so code above 1MB can be executed in protected mode.
Executing the stage2 loader works now, up to the point where mmu_init() reuses the same address space.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-08 20:17:03 +00:00
Niels Sascha Reedijk
ee93bd93e8 Implement lazy pipe creation. The Default Pipes for each speed will be created as needed, instead off at the construction of the busmanager. This is due to the fact that the creation in the constructor would callback methods of the busmanager class which might cause improper behaviour with uninitialized variables.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-08 20:12:53 +00:00
Marcus Overhagen
4ba8420ca5 save and restore destination address
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-08 19:10:53 +00:00
Michael Pfeiffer
5c3281f91b Write print job to spool file. Not tested under Haiku. Seems to work fine with a simple R5 test application.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-08 18:08:12 +00:00
Axel Dörfler
66a1b50b01 Forgot to add an 'extern "C"' to the R5 compatibility exports.
This fixes bug #892.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19029 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-08 11:05:49 +00:00
Axel Dörfler
61edba289e Replaced libstdc++.r4 with $(TARGET_LIBSTDC++) - this should fix the build for some targets.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-08 10:46:38 +00:00
Axel Dörfler
3c1e481aa7 Added print transport and driver add-ons to the image.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19027 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-07 19:21:22 +00:00
Axel Dörfler
1f66b01946 LPR had the same problem (SocketStream2.o does not exist anymore).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19026 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-07 19:15:36 +00:00
Axel Dörfler
70dd6916db Fixed build (was still trying to link against SocketStream2.cpp).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19025 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-07 19:13:56 +00:00
Michael Pfeiffer
926f124731 Got rid of WIN32 related source code. Someone, please build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19024 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-07 18:59:59 +00:00
Axel Dörfler
1781c9776e Added libmail.so, Printers & E-mail (preferences), and BeMail to the image.
The printer transport add-ons and drivers are missing yet, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19023 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-07 18:00:36 +00:00
Axel Dörfler
8c603fe7c6 Build fixes for Haiku - is this WIN32 stuff really needed, or can we get rid of it?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19022 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-07 16:35:16 +00:00
Axel Dörfler
d2ae268f24 libnetapi.so no longer exists under Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19021 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-07 16:15:57 +00:00
Axel Dörfler
e6a3af0462 Added R5 libnet.so specific getusername() and getpassword().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19020 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-07 16:04:18 +00:00
Axel Dörfler
c5b560408b Removed unneeded second calculator from the repository.
Accidently, this also fixes bug #867.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-07 12:46:38 +00:00
Axel Dörfler
ee50138fcd Now notifies all pending selects when closing the socket.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-07 12:37:13 +00:00
Axel Dörfler
a7028ce680 * Implemented select support for sockets and notifications, not yet tested, though;
this closes ticket #811.
* Added notification support to IPv4 and UDP.
* Implemented reading out SO_ERROR.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19017 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-07 12:32:02 +00:00
Axel Dörfler
fb4e373041 * Followed suggestions by Philippe and moved libnetapi.so into libnetwork.so as well.
* Also added libbnetapi.so and libnetapi.so to the R5 compatibility evaluation score.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-06 17:20:50 +00:00
Axel Dörfler
6a5dcb571c Imported most of the old libnet.so compatibility functions (from old/compat/libnet/compat.c).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19015 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-06 13:46:14 +00:00
Axel Dörfler
e9828bbd25 * libnetapi.so should now work correctly in the R5 compatibility environment.
* Added a link from libbnetapi.so to libnetapi.so. We might think about moving
  libnetapi.so into libnetwork.so as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19014 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-06 13:17:00 +00:00
Axel Dörfler
fd589b20ba Fixed the build - one of those last minute changes you forgot to compile... :-/
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19013 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-06 13:14:22 +00:00
Axel Dörfler
153b2845d2 * Added a link from libnet.so to libnetwork.so for R5 compatibility.
* Fixed R5 socket definitions to match their actual definitions.
* libnetwork.so now detects at runtime wether or not R5 compatibility should be
  enabled or not.
* All socket functions should now be R5 net_server compatible.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19012 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-06 13:07:05 +00:00
Axel Dörfler
3cf73255de The Haiku startup code now exports a symbol called __gHaikuStartupCode. This can
be used to determine wether or not the executable was linked for/under Haiku or
not (ie. BeOS).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19011 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-06 12:19:20 +00:00
Axel Dörfler
e979f4bac7 get_image_symbol() and get_nth_image_symbol() now accept NULL arguments for the
location and type parameters.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-06 12:17:06 +00:00
Axel Dörfler
0d7ec13a82 Simplified a bit, removed unneeded function stubs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19009 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-06 11:46:23 +00:00
Axel Dörfler
7f4e6824df Added a private call to get the dependencies of a loaded image. This will be used
to determine linkage of libnet.so vs. libsocket.so/libbind.so in the libnetwork.so.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19008 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-06 11:40:20 +00:00
Andrew Galante
db893fd8d8 Sending data over TCP should work now. Receiving is still MIA.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-06 04:02:23 +00:00
Axel Dörfler
ecf0475ad0 Porting r18992 to the R5 version of BFS (and therefore, bfs_shell used to build the
Haiku image) revealed a problem with that change:
* If the root node only contained a single entry it was freed instead of just making
  it a leaf node - that could produce an invalid b+tree (could only happen with
  attribute or index trees, as directories always contain '.' and '..').


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-05 17:34:11 +00:00
Axel Dörfler
bad41d39a2 Ported r18992 from the Haiku version of BFS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-05 13:59:07 +00:00
Stefano Ceccherini
4dd74f2945 disabled the use of _BWidthBuffer_ until the app_server font backend implements B_BITMAP_SPACING. Small cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-05 12:19:06 +00:00
Axel Dörfler
d4f8d429da * Allowed widescreen modes to be displayed on analog monitors using the "force_ws" setting.
* Also added a 1270x720 HDTV resolution (was accidently part of the previous commit).
Both changes courtesy of Doug Shelton.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19003 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-05 12:15:24 +00:00
Axel Dörfler
a459c8e0d8 Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19002 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-05 12:11:18 +00:00
Axel Dörfler
e12e7a2004 Added support for the nVidia GeForce 7600 GS, courtesy of Doug "tigerdog" Shelton.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-05 11:54:51 +00:00
Axel Dörfler
f00c299faa Made adjusting the partition size a bit more strict (negative sizes aren't allowed
anymore; maybe we should even introduce a minimal partition size).
This fixes bug #882.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-05 10:55:59 +00:00
Niels Sascha Reedijk
65416e2a91 The docbook dtd requires the listitems to contain <para>s
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18999 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-05 08:52:24 +00:00
Marcus Overhagen
b488dcdbad modified, but still wrong
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-04 23:39:19 +00:00