Commit Graph

28825 Commits

Author SHA1 Message Date
Ingo Weinhold
bd8837cd1b Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-17 01:34:00 +00:00
Ingo Weinhold
c7a618a037 Removed work-around for FileCacheReadRequest and TODO for
FileCacheWriteRequest. Stacking requests is now possible, so reentering the
file system while serving those requests is no problem anymore. BFS seems to
be quite happy as far as I've tested it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-17 01:29:20 +00:00
Ingo Weinhold
b19ee1e164 * Port:
- Send() now also gets the message to send as parameter.
  - Added methods to reserve and unreserve space in the buffer.
* RequestAllocator: Uses the port buffer reservation methods now. This allows
  to let more than one RequestAllocator use a Port in a stack-like manner.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-17 01:24:31 +00:00
Ingo Weinhold
c1f05b2803 Got rid of Port::GetMessage[Size]().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-17 00:46:40 +00:00
Ingo Weinhold
60f4376e26 * Removed the unused Port::SendAndReceive().
* Change Port::Receive() semantics. It does no longer use the buffer associated
  with the object. Instead it allocates heap memory for the caller. Since
  there's only one caller who clones the message anyway, we save one copy this
  way (though we have an additional syscall in userland) and don't overwrite
  a request being prepared for sending.
* Changed RequestAllocator::ReadRequest() to also read the request from the
  port.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-17 00:33:07 +00:00
Jérôme Duval
c0f674824c * fixed symlink creation and symlink attributes
* more debug output


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 21:55:50 +00:00
Oliver Ruiz Dorantes
3c2f52ad93 little typo in a company name
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 21:26:58 +00:00
Oliver Ruiz Dorantes
b3064a44cf Some corrections to the strings, and cleanups in the Devclass
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 21:24:10 +00:00
Ingo Weinhold
8ed201229d Don't allocate the buffer on early error.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 15:52:24 +00:00
Stephan Aßmus
a6f9e71c98 This should fix ticket #3481 again. It keeps the same semantics as before when
the header is used for compiling with -std=c99 or -std=gnu99 and GCC4, which
has a reverted meaning of "extern inline" (now standard compliant).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 09:40:33 +00:00
Stephan Aßmus
edb449545f Followed David McPaul's suggestion and disabled usage of EBX register in the
libavcodec ASM code to fix the GCC4 build. Tested with GCC4 on Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 09:23:11 +00:00
Ingo Weinhold
4a92b6134f _mutex_trylock():
* The loop is unnecessary, since the call doesn't block anyway, so it can't
  be interrupted.
* Set the holder, if KDEBUG is enabled. Otherwise the panic() in
  recursive_lock_unlock() would be triggered.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 03:34:08 +00:00
Ingo Weinhold
0c9a35e882 * FileCacheReadRequest: Implemented work-around for the problem that
file_cache_read() will reenter the file system which will overwrite the
  buffer associated with the port, so we can't allocate space in the buffer
  before calling it.
* FileCacheWriteRequest still has a similar problem, though it's probably better
  to rethink the kernel-userland communication completely.

BFS basically seems to work in userland, now. Didn't really test write
operations though. They will probably run into problems due to the issue above.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 03:30:52 +00:00
Ingo Weinhold
6747f715cf ReadVNode(): We need to create the VNode object before sending the request
to userland, since typically the file cache for the node is created there
and our FileCacheCreate() method requires and existing VNode object.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 03:21:04 +00:00
Ingo Weinhold
efdfca1551 * Added debug output.
* Passing a NULL parameter to file_cache_delete() is OK.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 03:18:16 +00:00
Ingo Weinhold
8055729289 Fixed debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 03:17:24 +00:00
Ingo Weinhold
ebd44d3436 Debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 03:16:36 +00:00
Ingo Weinhold
94ea9b3924 DO_ITERATIVE_FD_IO_{REQUEST,REPLY} were incorrectly categorized by
is_userland_request(), thus triggering a panic()/debugger().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 03:16:17 +00:00
Jérôme Duval
8f29cb488f * added debug output
* don't create the directory with the link name, only the parent


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 00:23:16 +00:00
Ingo Weinhold
dfb31b6603 CreateVolume(): Things work way better when actually returning the volume.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 00:05:23 +00:00
Ingo Weinhold
3967230d7f Reverted r29471. It breaks building kernel code including this heaader in
debug mode with gcc 2.95.3.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29547 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 23:45:05 +00:00
Ingo Weinhold
c76e8d36fb * Implemented forwarding the do_iterative_fd_io() callbacks to userland.
* Pass the request offset and length with the DoIORequest. This allows us to
  already get the first vecs for do_iterative_fd_io() in userland, saving a
  trip back and forth.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 18:24:14 +00:00
Joachim Seemer
2bb8b19f08 Forgot to re-format the About alert. Oops.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 17:47:59 +00:00
Joachim Seemer
1e251de143 Exchanged all occurences of 'Expand-O-Matic' to 'Expander'.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 17:07:48 +00:00
Axel Dörfler
51755cf832 * Added DefaultNotificationService and DefaultUserNotificationService
implementations that can be used by subsystems that want to have a pretty
  standard service. Only the latter is really complete, though.
* The notification manager is now available earlier in the boot process.
* Added notifications to teams/ports (only add/remove).
* The network notification implementation is now using the
  DefaultUserNotificationService.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 10:21:56 +00:00
Axel Dörfler
d60fa63b38 * Turned off sync debug output.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 10:13:59 +00:00
Axel Dörfler
3601f762ed * Turned off buffer exchange debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 10:13:28 +00:00
Ingo Weinhold
687e02f945 * Forward the io() and cancel_io() hooks. Implemented the missing kernel
part.
* Implemented a good part of the kernel part for the support of
  do_iterative_fd_io(). The forwarding of the callbacks are missing yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 02:49:05 +00:00
Ingo Weinhold
fa1b5a713c Get and store the userland team running the file system.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 02:45:09 +00:00
David McPaul
888b341a2e Missed a file on ffmpeg 0.5 commit
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 01:39:23 +00:00
David McPaul
499e71a657 sync with ffmpeg 0.5 release
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 01:37:36 +00:00
David McPaul
51cb342a77 sync with ffmpeg 0.5 release
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 01:35:02 +00:00
David McPaul
3d50ba22de sync with ffmpeg 0.5 release
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 01:34:41 +00:00
David McPaul
6608bd7c78 sync with ffmpeg 0.5 release
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 01:34:21 +00:00
Jérôme Duval
b38dbcd92d * set the thread priority to normal for spawned processes (bug #3564)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 22:19:35 +00:00
Stephan Aßmus
c7bb90f8de Improve cosmetics when menu scrollers are shown. The menu is not supposed to
draw all of the frame (no top/bottom borders).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 21:47:48 +00:00
Axel Dörfler
49cc2c3bf8 * Style police at work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 21:07:54 +00:00
Stephan Aßmus
f5812f4b02 r28745 prevented overwriting the global type ahead string buffer from
an unrelated window. However, we broke unsetting the type ahead string on the
little info view. This fixes this again, the type ahead string never went
away.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 21:06:12 +00:00
Jérôme Duval
85db3c9778 * cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 18:40:52 +00:00
Jérôme Duval
b06fce1203 * remove ac97 code
* style clean up


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 18:34:40 +00:00
Jérôme Duval
0db1930895 * update codec list
* move codec dump in ac97


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 18:28:09 +00:00
Oliver Ruiz Dorantes
a7c3c46562 - Created an experimental(more c++ & templatized) way to create bluetooth commands
- Add strings for all bluetooth manufacturers
- Add a bunch of strings for each command
- Add methods to get string given a manufacturer code or a command code



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 17:54:42 +00:00
Jérôme Duval
83458e6d82 fix gcc4 build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 17:22:05 +00:00
Jérôme Duval
18f6b63cd2 fix the build with ac97 code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 17:18:19 +00:00
Jérôme Duval
7979b1cf49 * factorized ac97 code for auich auvia geode drivers
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 16:52:11 +00:00
Ryan Leavengood
e23a519b2a BHandler deletes the BMessageFilters added to it, so this delete in the
destructor of ScreenSaverWindow was not needed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 16:35:41 +00:00
Ryan Leavengood
0834f79c8c An Esc pressed while the password window is showing will close it and resume
the screen saver.

I added this to the filter in the ScreenSaverWindow instead of the
PasswordWindow to avoid having to add another BMessageFilter. It already is
getting all keydowns anyhow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 16:25:46 +00:00
Michael Lotz
e83cf52aa7 Ensure that our stat buffer is available when opening. Otherwise reads could
fail and the O_TRUNC might be overwritten as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 16:06:49 +00:00
Ryan Leavengood
04caac4ad1 Renamed the new "_fake" mouse moved boolean to "be:transit_only", as suggested
by Axel.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 15:32:52 +00:00
Michael Lotz
3e37362327 At least if we hit the boot volume override the hardcoded check for BFS. This
makes the Desktop work when booted from an iso only CD, but I agree with the
TODO to move those into the filesystem API.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 15:29:49 +00:00