Commit Graph

28263 Commits

Author SHA1 Message Date
Ingo Weinhold
3b8f138f43 Removed the parent directory from the header directories again. Instead
include the respective headers explicitly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 15:28:51 +00:00
Ingo Weinhold
c12690b58a Some file renaming (removed the haiku_ prefix).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 15:24:54 +00:00
Ingo Weinhold
b7d815f1cd Stubbed the missing methods. The library links now at least.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 15:14:24 +00:00
Ingo Weinhold
67cf3a62b4 Removed the file cache emulation and added implementation stubs for the file
cache functions. We won't emulate the file cache in userland anymore, but
forward the calls to the kernel. Besides that this will save quite a bit of
emulation code, it will also make mmap()ing files on UserlandFS volumes
possible. The drawback is that these calls will be slower.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 15:10:36 +00:00
Ingo Weinhold
e4ec0a2364 Added the kernel file map implementation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 13:47:10 +00:00
Ingo Weinhold
0559ce85e9 Moved the implementation of the public interfaces out of their namespaces.
This makes things a bit simpler and makes quite a bit of haiku_kernel_emu.cpp
superfluous.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 12:20:41 +00:00
Ingo Weinhold
8f53cb421d Missing include directory.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 12:16:18 +00:00
Ingo Weinhold
08ab7a19f5 Commented out the interaction with the specific kernel interfaces. This has
to be implemented differently.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 11:46:57 +00:00
Ingo Weinhold
a7b3468770 * Reorganized the sources. Haiku and BeOS kernel interface each have their own
subdirectory, now.
* Moved all code specific to a kernel interface into the respective library.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 11:39:46 +00:00
Ingo Weinhold
a20733f9e7 Forgot to add the dummy slab implementation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 10:09:36 +00:00
Ingo Weinhold
f6d0017dea Fixed duplicate parameter name.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 10:08:30 +00:00
Axel Dörfler
2e47b62e2c * Consolidated '*' style.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 23:09:39 +00:00
François Revol
595d8a3b9c Fix for gcc4 build. Thx Monni.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 22:44:05 +00:00
Axel Dörfler
ed3e5ec031 * zero_pages() did not fill in the _bytes parameter correctly - it returned how
many unclear bytes remained instead of how many were cleared. This caused
  sparse files to show garbage instead of empty space. This fixes bug #2889.
* common_file_io_vec_pages() set "size" (size_t) from file_io_vecs::length
  which is off_t without taking into account that important information could
  be lost.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 22:31:15 +00:00
Stephan Aßmus
8bf58c3b53 Specify the maximum signature buffer size to prevent unwanted overflow.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 21:11:05 +00:00
François Revol
3b40448410 added cache/TLB descriptors from Intel Application Note 485. Patch by Christian Packmann.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 16:50:25 +00:00
Ingo Weinhold
203c622934 * Added condition variables.
* Added a dummy slab implementation.
* Updated the lock, hash, and block cache implementations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 16:17:58 +00:00
Ingo Weinhold
42ef52132a Made usable from userland.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 16:11:57 +00:00
Ingo Weinhold
9bb78ee296 Removed the superfluous 'extern "C"'s.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 12:06:43 +00:00
Ingo Weinhold
3594d63b34 Got the kernel interface compiling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 11:38:26 +00:00
Ingo Weinhold
b19b5f9dda More adjustments to the new FS interface. The enabled sources compile again,
but don't link yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 10:54:26 +00:00
Ingo Weinhold
f6583b4a17 Got rid of no longer needed LookupNoType(). The lookup hook doesn't doesn't
have a type return parameter anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 10:52:19 +00:00
David McPaul
42e4132ed3 made comment a TODO
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 09:06:53 +00:00
David McPaul
905faca0bf Output as Stereo as AudioChannelConverter cannot handle > 2 channels
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 08:58:59 +00:00
François Revol
bbc84914d4 Working version of the driver. At least it does seem to work with my onboard com port, but not the OxfordSemi PCI card I have here. Still requires tty_manager, and config_manager too, so won't work in Haiku yet. Needs cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 00:15:20 +00:00
Jérôme Duval
b5aca78a04 * compute offset based on vendor (32 for non intel) and sample rate
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 23:27:28 +00:00
Bruno G. Albuquerque
2144797f02 This fixes retrieval of email from IMAP servers. It seems there is a difference between the behaviour of BPath in R5 and Haiku (as this used to work in R5). More specifically:
BPath blah("blah");
printf("%s\n", blah.Path());

It seems that in R5 it would print "blah" (untested as I don't have R5 anymore, but this code definitelly used to work). And in Haiku it prints "/currrent/path/blah".

This fixed bug #3187.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 22:38:24 +00:00
Oliver Ruiz Dorantes
025e2c7bfe Separate stolen ListItem subclass to work on a new one for bluetooth devices
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 20:56:27 +00:00
Oliver Ruiz Dorantes
84a2dcb0eb Discoverability can be set through preferences now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 20:52:14 +00:00
Ingo Weinhold
cdebdeb0aa Some more work towards adjusting the UserlandFS to the current FS interface:
* Split the FSCapabilities bit mask into three bit masks for the FS, the
  volume, and the vnodes, since we have three independent FS interface
  structures, now. The latter is not supported in the kernel add-on, yet.
* Server:
  - Temporarily removed some things from the build (the BeOS interface
    and the cache implementations).
  - Some WIP in HaikuKernelVolume and [haiku_]kernel_emu.{h,cpp}.
  - Added HaikuKernelNode, which wraps fs_vnode for the client FS.
  The server is still quite a bit away from being buildable again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 00:09:43 +00:00
Jérôme Duval
346ae57c93 * Stream interrupts seem to arrive too early on most HDA chips:
we adjust buffer descriptors to take this into account. It defaults to one sample, but it should depend also on the sample rate or the chip vendor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-25 19:12:23 +00:00
Bruno G. Albuquerque
3539f6ec6a Added a TODO related to the runtime loader + OpenSSL problem.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-25 10:41:12 +00:00
Bruno G. Albuquerque
bec8576238 Works around problem with runtime loader described here:
http://www.freelists.org/post/haiku-development/Runtime-loader-problem

The problem seems to be related to loading/unloading add-ons linked against the
recent OpenSSL. Linking the E-mail preferences against the SSL libraries (when
USE_SSL is enable) fixes this as the SSL libraries are not unloaded then.

I am still investigating this but will have no more time this week so I am commiting this workaround until I look at it again.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-25 10:37:42 +00:00
Alexandre Deckner
634596058d * Revert the changes in r29316 as it's now fixed upstream.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 21:41:32 +00:00
Ingo Weinhold
2bcdce290b First work towards adjusting the UserlandFS to the changed FS API. The
kernel module compiles again, though newer features like VM file support,
asynchronous I/O, and FS layers aren't supported yet. The userland code is
still completely out of sync and won't even compile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 21:07:40 +00:00
Stephan Aßmus
c0b6b0dff6 * Refactored _SanitizeEvents() a bit to remove small bits of duplicate code.
* Round the mouse coordinate to be compatible with BeOS behavior. I know that
  in WonderBrush, I had to extract the fractional coords using the be:tablet_x
  and y fields. This may actually be a better fix for #1527, now that we know
  what caused it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 20:13:49 +00:00
Alexandre Deckner
ea83c971c6 * Round mouse coords before doing BRegion ops for the transparent
selection rect, as BRegion behaves unpredictably with non-integral 
values (cf bebook).
  Fixes #1527


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 18:55:23 +00:00
Ingo Weinhold
5abd9a464d Whitespace cleanup and variable renaming for consistency. No functional
change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 14:20:24 +00:00
Ingo Weinhold
308c212c31 Patch by Matt Madia: Added automatic detection of 32 or 64 bit mode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 14:14:40 +00:00
David McPaul
be125ae02f Remove wrong format
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 12:50:31 +00:00
Stephan Aßmus
50d6da5a0e Fix GCC 4 build. Implemented constructors/destructors and standard operators.
Hopefully, I am not stepping on your toes, David! Please check these changes,
I've added some TODOs where problems may be lurking.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 12:15:40 +00:00
Stephan Aßmus
8ee9217eec Improved the look of the slider triangle thumb. Still missing is the vertical
version.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 11:09:27 +00:00
Stephan Aßmus
887f9688a4 Improved the look of the icon label outline, at least the white text
version should look much better now. Not so sure about the dark text
version, but if you don't want that, just make sure your desktop bg
color is dark enough to get white text.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 11:07:22 +00:00
Stephan Aßmus
2b4f382aac * When painting the view background bitmap, make sure to do
this with a reasonable drawing mode. Otherwise the current
  graphics state setup may not be what we need.
* Automatic white space cleanup. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 10:50:47 +00:00
David McPaul
201970d309 First cut at improving avi seeking
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 08:12:27 +00:00
David McPaul
3e02e6ae4d Seek functionality changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 08:05:18 +00:00
David McPaul
379d4bb08f implement basic C yuv422toRGB function
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 08:00:46 +00:00
David McPaul
decfff7c4d implement seek function
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 08:00:06 +00:00
David McPaul
c6527ff508 add additional motion jpeg fourcc
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 07:56:25 +00:00
Ingo Weinhold
1e525344d6 * Automatic white-space cleanup.
* Handle the new B_DEBUGGER_MESSAGE_HANDED_OVER and pick the "causing thread"
  as our first victim. Fixes #2956.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 23:02:28 +00:00