Commit Graph

27686 Commits

Author SHA1 Message Date
Michael Lotz
b289baf147 * The close hook did trigger a synchronize without locking the device. This
could have messed up the state of other transfers currently running on that
  device. Since devices are regularly opened/closed for enumeration/scanning
  from different threads, this could've easily lead to bad situations. I've
  removed the sync completely as it's not our task to issue it and because
  a close doesn't always correspond with an unmount at all.
* Retry receiving the command status wrapper also when another error than a
  stall is returned. The specs aren't too specific, but the graphic suggests
  this is a general recovery path.
* Do a reset in case there is an error during data transfer to start the next
  command from a clean state.
* Make sure we never acknowledge more data than we actually transfered. This
  is to make sure devices that return broken residue values do not mess up our
  transfers.
* Detect a few more cases of invalid and non-meaningful command status wrappers.
* If the device explicitly tells us that the sync command isn't supported don't
  try it a few more times. Only retry at most five times if an unspecific error
  is returned that could also come from another (temporary) error case.
* Add a bit more trace output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-18 01:34:22 +00:00
Michael Lotz
8f30f14edd Fix pretty severe error in the convenience functions Pipe::SetFeature(),
Pipe::ClearFeature() and Pipe::GetStatus(). These requests take the endpoint
address in the logical form, including the direction bit. This caused all those
requests to fail for all input pipes, most prominently visible in mass storage
where a mass storage reset could never be done completely and would cause many
devices to be unable to recover from errors.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28929 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-18 01:13:17 +00:00
Bruno G. Albuquerque
d254c83c84 - Changed BNetBuffer to a simpler (and R5 compatible) implementation.
- This has the side effect that now it actually works.
- This also indirectly fix BNetEndpoint usage of BNetBuffer.
- Added DynamicBuffer (the underlying buffer implementation) to the Jamfile.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 21:28:10 +00:00
Jérôme Duval
1ae36cc173 updated libpng to 1.2.34
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 18:43:09 +00:00
Jérôme Duval
f98eee6e83 update to tzdata2008i
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 18:32:21 +00:00
Joachim Seemer
9384249452 * Added Philippe ("Socapex_2K") Groarke's work on an installation topic.
It's based on the blog articles of several people that will be credited in each
  page's header comment soon.
* Did a little additional formatting and restructuring.
* This is still a work in progress as we continue to restructure and remove redundancies.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 18:05:49 +00:00
Bruno G. Albuquerque
a12096e5c7 - Got it to actually compile.
- Default buffer size is now set to 1 instead of 0, which would cause the
  construction without a given size to fail.
- Added copy constructor.
- Changed _GrowToFit() to have a boolean parameter to indicate if we want
  to resize the buffer to an exact size. Used by the copy constructor. 



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 15:56:40 +00:00
Stephan Aßmus
4e034d2ab3 Make sure that text clippings dragged from DeskCalc will be named "DeskCalc
clipping" instead of the default "Untitled clipping". Fixes last remaining
issue of #2749.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 14:55:15 +00:00
Stephan Aßmus
bc7dbfd71d Forgot to add "x" as a multiplication sign as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 14:21:53 +00:00
Stephan Aßmus
85d74ff62d Changed token type handling so that different chars can resolve to the same
token type (part of #3236). "/" now equals "\" and ":" to mean "divide by".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 14:19:36 +00:00
Bruno G. Albuquerque
b93465f1e0 - Ops... Missed some.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 14:03:22 +00:00
Bruno G. Albuquerque
c98ce75f21 - Fixed style violations pointed by stippi.
- Use std:nothrow for new calls.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28919 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 14:01:22 +00:00
Bruno G. Albuquerque
550d24175f - Simple dynamic buffer class implementation.
- Will be used by the new (R5 compatible) NetBuffer class.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 13:30:21 +00:00
Stephan Aßmus
cf4ef413b1 Set resizing mode before calling BMenuBar::ResizeToPreferred(), since the
default menu bar resizing mode triggers some R5 compatibility behavior wich
we don't want in MediaPlayer. This fixes the (apparantly) last remaining
issue from #2180.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28917 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 13:04:01 +00:00
François Revol
3c4b936066 Add /dev/mem driver, it builds fine.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 00:02:18 +00:00
Oliver Ruiz Dorantes
e5da0ec57e some cleanups and styling by Mika and me
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28915 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-16 20:32:19 +00:00
Jérôme Duval
6dec91b4e8 use uint32 as temp variable, noticed by Marcus. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28914 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-15 23:01:45 +00:00
Axel Dörfler
258ca3186e * Another try for ticket #2791, this time using the modeline proposed by
tigerdog; let's see how many complaints we get this time :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28913 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-15 22:23:20 +00:00
Axel Dörfler
89a5132e8d * Fixed typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-15 22:16:31 +00:00
Jérôme Duval
07fbbf9b6e build fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-15 20:37:10 +00:00
François Revol
b641656c2b Make sure the hack-coff tool is built when needed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-15 16:47:53 +00:00
Axel Dörfler
ff6ab52278 * We don't need the BeOS FrameMoved() work-around for Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-15 11:39:55 +00:00
Axel Dörfler
3dc4e7fa47 * The move/resize window protocol now uses absolute coordinates rather than
relative ones. This fixes bugs #2658, and #3213; in BWindow::ScreenChanged()
  the window does not yet know that it moved on the new screen (when it already
  had a position on that workspace).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28908 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-15 11:35:39 +00:00
Axel Dörfler
f3bd277ed5 * Moved the screen change to a later point, as the workspace-leaving message
did arrive after the change; now it's: leave workspace, change screen,
  enter workspace.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-15 11:33:13 +00:00
Jérôme Duval
391bf22d79 try to complete snooping enablement
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 23:26:10 +00:00
Axel Dörfler
a7cf5bfcf6 * Forgot some debug output in the driver...
* Took the opportunity and cleaned up coding style problems in that file.
  Clemens, I hope you're reading :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 21:32:21 +00:00
Jérôme Duval
744f14552b update pci ids
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 21:17:39 +00:00
Axel Dörfler
40890e97b3 * Committed Clemens Zeidler's Intel speedstep driver. Thanks a lot, Clemens!
This is a very welcome addition.
* There are a few issues, and maybe questionable decisions (like the dependence
  on ACPI), but I see no reason why it shouldn't be added in its current form
  already.
* Unfortunately, I could not test it yet, though, as the CPU of my laptop is
  not supported; will see if I can find a supported hardware, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 21:08:37 +00:00
Stephan Aßmus
7a6bda7716 Got rid of the options window and implemented them directly
in the context menu. Since there are only so few options, this
is much more convenient. (Fixes part of #3236.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 19:12:42 +00:00
Axel Dörfler
51ad57d4f0 * Moved the empty directories to the other location where empty directories
are added.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 14:26:23 +00:00
Axel Dörfler
2fd04ff545 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 14:19:43 +00:00
Axel Dörfler
33d17f74e0 * Added some temporary debug code to measure the boot time.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 13:57:42 +00:00
Axel Dörfler
0d585fc128 * Build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 13:55:14 +00:00
Axel Dörfler
e38a38aacf * I obviously forgot to commit this: adds siginterrupt() prototype, and
does some minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28897 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 13:52:13 +00:00
Stephan Aßmus
46c8e2c17d Patch by Lukasz Kozlowski:
* Fixed About menu item for DeskCalc to say "DeskCalc" instead of "Calculator".
  (fixes #3234)

Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28896 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 13:37:19 +00:00
Philippe Houdoin
58a9f0902b Ooops, it was not Capitalized.
BTW, sometimes it is (undocumented application pages), sometimes it's not.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28895 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 00:30:33 +00:00
Philippe Houdoin
e812decffc Fixed Documentation Mailing list broken HTML tag.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 00:25:02 +00:00
Joachim Seemer
17c89cf196 This file apparently didn't make it with my last commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28893 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-13 14:44:55 +00:00
Axel Dörfler
49509985cf * Applied another patch by Adrian: the route used by TCP was never given back.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28892 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-13 12:10:35 +00:00
Alexandre Deckner
e5a30119a0 * There was a bug in the way the mimetypes list was constructed, it would recalculate the list on
each addition, which is o(n). It's already refreshed lazily on read, only rarely when ContainerWindow updates 
his menu.
 Now there's only one recalc when finished adding poses, 9ms for 20K files here.
Pose adding is almost linear now for the first thousand files, but it gets worse after that due to 
another known problem. Now doing 35s instead of 80s on a 20K files folder here, more to come :) 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28891 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-12 19:42:41 +00:00
Joachim Seemer
077a475a14 * Added docs of applications:
CDPlayer and CodyCam (both work in progress), DeskCalc
* Started installing.html.
* Added a screenshot of Glyph+Subpixel rendering to Appearance prefs.
* Mentioned new setting "Monospaced Fonts Only" glyph hinting in Apperance prefs
* Mentioned sysinfo and listdev in bugreports.html as pointed out by scottmc.
* Some tweaks to the Haiku-doc.css.
* Put a link to http://www.haiku-os.org/community into welcome.html,
  removed the "(online)".
* Reorganized the file hierarchy to accommodate future translations. See thread:
  http://www.freelists.org/post/haiku-doc/Organizing-translations-of-User-GuideWelcome-Package.
* Added a userguide/languages.html that will serve as entry for the different
  translations.
  Since the welcome page is more or less only one page, we'll find another
  solution for that when the first translations are available. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28890 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-12 15:58:51 +00:00
Axel Dörfler
f58d8cf235 * _user_flock() will no longer accept invalid operations, thus fixing bug #3141.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28889 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-12 12:07:06 +00:00
Salvatore Benedetto
b3e849c2ce * Adding libgen.h as a public header
* Implementing dirname and basename

I removed dirname from glibc/misc and reimplemented in order
to (hopefully) keep thing tidy.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 23:38:27 +00:00
Jérôme Duval
7f2d1a266e * for user_memcpy, use an on-stack structure and copy that at once, as suggested by Axel.
* apply to auvia, emuxki and echo*.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 22:55:55 +00:00
Karsten Heimrich
168353694e * cleanup
* use std::nothrow



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28886 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 19:06:45 +00:00
Karsten Heimrich
b47e734742 * Prevent a column to shrink smaller then the default column width. This was most notable
when double clicking e.g. the Size column in a tracker window containing only folders.
  It would shrink smaller then one can resize it while dragging the resize 'handle'.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 18:12:12 +00:00
Karsten Heimrich
b2f91e61b7 * Prevent the B_OBSERVER_NOTICE_CHANGE to get passed on to ContainerWindow, since
this would crash Tracker in case the 'Open With' window is shown and one try's
  to set, e.g 'Show full path in title' or 'Show Navigator' etc.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28884 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 17:39:54 +00:00
Axel Dörfler
518720875d * Fixed a few more problems that the test application revealed. This should
also close #2594.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28883 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 16:41:08 +00:00
Axel Dörfler
124ee2f4ef * A new test app for the BufferQueue implementation - this currently fails.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28882 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 16:40:12 +00:00
Axel Dörfler
fbb7d4cd57 * fs_write() is optional for read-only file systems. This fixes bug #3062 and
also #3083 (although I could not reproduce the latter).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28881 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 14:24:38 +00:00