Commit Graph

27589 Commits

Author SHA1 Message Date
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
Axel Dörfler
f5c4a08357 * Actually show the error that happened - are we Windows or what?
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28880 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 14:22:49 +00:00
Axel Dörfler
99fe8fb0f6 * "" is not really a good error description.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28879 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 14:19:20 +00:00
Axel Dörfler
b3cb15e21e * Applied most parts of Adrian's patch in #2594, applied our coding style.
* Cleaned the net_buffer::sequence handling, and fixed a few more problems of
  maintaining it in Add().
* Extended Verify() to check everything that's possible, and call it
  conditionally on several places, depending on DEBUG_BUFFER_QUEUE. It's turned
  on for now which means that any remaining problems should show up when they
  happened.
* Call Dump() from TCPEndpoint::Dump().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 11:47:31 +00:00
David McPaul
f1ee5448a9 Implement seeking support
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28877 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 07:07:14 +00:00
David McPaul
1a50289baa Implement seeking support
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28876 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 07:06:51 +00:00
David McPaul
b459205340 Implement seeking support
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28875 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 07:06:18 +00:00
Rene Gollent
1f7f1654fb The problem appears to be at the level of _PointerList_ itself. Also note, BList does not exhibit the issue.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 04:52:18 +00:00
Rene Gollent
4c1a09d0cf Added a test that exposes a problem in BObjectList/PointerList. If a list contains 17 items or greater, and you attempt to sort it with a sort function that always returns 1 regardless of the items being compared, it will crash 100% of the time. Looking into why next.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 04:43:53 +00:00
Alexandre Deckner
51505cb08a * The pose adding thread was going too fast, opening too many files (those are closed by the window thread), and
reaching the file descriptor limit. For some still unknown reason, this was causing GetNextDirents to stop returning new 
entries. The result was that, on populated folders, Tracker wouldn't load all poses and stop at a random amount.
We now take a more conservative approach and close the files before sending, reopening them on reception.
 
Now the AddPoses thread is a bit too aggressive, especially on second runs, i needed to add some snoozing otherwise it 
would stall Tracker for several seconds. (testing on a 20000 files folder).
This fixes #3054 



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 03:08:56 +00:00
Rene Gollent
6d344473e6 Fixed broken ternary logic in GenericAttributeText::Compare() that would result in the wrong value being returned when one or both attributes being compared were undefined. A symptom of this was the crash reported in ticket #2760. Leaving that ticket open for now though as returning the wrong value to the sort shouldn't have caused a crash regardless.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28871 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 01:40:05 +00:00
François Revol
f861e599f5 typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 00:41:30 +00:00
Axel Dörfler
e677f5aa67 * Fixed two possible crashing bugs in the file system check code: the checker
was attached to the inode instead of the file descriptor, causing it to call
  BlockAllocator::StopChecking() whenever anyone closed the device's root node
  during the check. The other bug was that it tried to fix errors even if the
  device was read-only.
* Added TODO that ioctl() accesses userland buffers unsafely.
* Removed no longer valid or superfluous comments.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28869 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-10 22:16:48 +00:00
François Revol
c6f50a6aa9 Try to probe the keymap to use from the supported language advertised by the browser.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28868 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-10 04:15:30 +00:00
François Revol
cdbd64465a Make sure google won't index or archive the page, there is nothing interesting really. googlebots even tried to index my own box which isn't always online...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28867 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-10 01:44:40 +00:00
David McPaul
2405fee747 Better check for end of data
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28866 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-10 01:05:39 +00:00
David McPaul
d06fb5745a add ffds fourcc, some sort of xvid variant
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28865 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-10 01:03:28 +00:00
François Revol
0420c39114 typo
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28864 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-10 01:03:06 +00:00
François Revol
ce7a391ee0 Remove unused variable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28863 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-10 00:40:37 +00:00
François Revol
ad06cdd139 Move the tgz archive offset to 300k, should fix CD boot again, but it's getting tight.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28862 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-09 20:36:50 +00:00
Jérôme Duval
6c16c42586 * style fixes
* use user_memcpy in buffer exchange for Haiku


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28861 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-08 23:45:16 +00:00
Jérôme Duval
b8ea3ce774 * fixed Haiku version of B_MULTI_GET_DESCRIPTION
* use user_memcpy for Haiku in buffer exchange, with interrupts enabled


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28860 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-08 23:39:02 +00:00
Axel Dörfler
0e5a3fc6c6 * BufferQueue::Get(size_t ...) now always returns successfully if it does not
return an empty buffer. This should avoid losing data in case not everything
  could be appended due to a resource shortage.
* Also, it now assures that fNumBytes and fContiguousBytes are always
  maintained correctly, thanks to Adrian for pointing this out! This should
  fix bug #2594.
* Added extra debug code to BufferQueue::RemoveUntil() so that it checks
  whether or not fContiguousBytes could be maintained correctly (ie. if this
  function is called only as thought).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-08 18:31:22 +00:00
Karsten Heimrich
5fa4ff6a86 * use std::nothrow
* implement min/max labels
* fix drawing for horizontal sliders
* removed commented code value drawing code
* changed 'tooltip' to show left/right, top/bottom of the knob



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28858 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-08 16:16:58 +00:00
Karsten Heimrich
45735be6c9 * extend test with sliders containing min/ max labels
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-08 16:12:23 +00:00
Karsten Heimrich
e6753e37c6 * fix small mem leak
* whitespace cleanup, etc
* some renaming to fit Haiku style



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-08 15:48:10 +00:00
Jérôme Duval
359176d906 * now use source and destination as initial directory for file panels. This fixes bug #3175.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28855 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-07 21:52:07 +00:00
Axel Dörfler
d5ec380523 * Added siginterrupt() function, this closes ticket #3263.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-07 19:40:53 +00:00
Axel Dörfler
095f2c0e21 * Applied patch by Olivier: corrects vertical text positioning. This closes
ticket #3266, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-07 19:32:46 +00:00
Axel Dörfler
25b944d41c * Applied patch by Olivier: fixed sending wrong signal to a custom signal
handler. This closes ticket #3265, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-07 19:02:25 +00:00
Axel Dörfler
6a90578f76 * Removed a left-over mutex_unlock() that could cause a panic on removing
a busy vnode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28851 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-06 21:19:09 +00:00
Axel Dörfler
5500d8a54f * All file descriptors that only refer to a mount now keep the mount, ie. they
won't call put_mount() before they are freed. Internally, this causes them
  to grab a reference to the mount's root vnode.
* This fixes bug #3262.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28850 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-06 21:17:47 +00:00
Jérôme Duval
74010f9911 * reading CORB_READ_POS_RESET as zero fails on some chips (ie nForce).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28849 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-06 19:25:34 +00:00
Rene Gollent
9c566bdabf Updated gcc2 Vision package with one or two minor fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-06 04:33:41 +00:00
Axel Dörfler
ea5c7202cb * If a window was hidden during resize/movement, it would still be in resizing
or moving mode when it was shown again. Added a test app HideAndShow which let
  you easily reproduce the faulty behaviour (with a previous version of the
  app_server, that is).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-05 10:32:30 +00:00
Jérôme Duval
5ddb65f007 * added missing dprintf for errors
* fix a warning and zeroed the controller struct


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28846 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-03 22:40:26 +00:00
Axel Dörfler
64e0d0841b * Inodes are no longer trimmed from the checking thread. This should fix bug
#3190.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-02 10:59:47 +00:00
Axel Dörfler
2187c4988a * Not sure how this happened.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-02 10:42:44 +00:00
Axel Dörfler
790d3aee0a * When the window to be activated isn't a normal visible window (ie. floating
or modal), we need to check if our effort to make it visible (by activating
  its subset window) was successful. This fixes bug #3201.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-02 10:33:46 +00:00
Axel Dörfler
74c05b1d3c * Accidently forgot to fix the typo that Adrian pointed out in his patch to
#2919 (OMG :-)).
* While I was at it, I also cleaned up some style inconsistencies.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-02 09:39:29 +00:00
Axel Dörfler
f9e72b6e5b * Small variation of Adrian's patch to fix bug #2919, ie. re-enable paging
and colors for the on-screen debug output when leaving KDL. Thanks, Adrian!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28841 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-01 22:13:02 +00:00
Salvatore Benedetto
e4263eb78e * Uncommenting POSIX mkdtemp function. Tested.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28840 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-01 21:01:51 +00:00
Jérôme Duval
c71a6614e2 * try to enable EAPD on capable pin widgets
* added a pin capabilities attribute instead of input and output pin attributes
* added ATI and nVidia vendor ids definitions
* uses "mic in" and "line in" when pin colors are undefined


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28839 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-01 17:13:43 +00:00
Jérôme Duval
321e633fa4 Patch from tqh, modified by myself: enable PCIe snooping through vendor specific registers (ATI and nVidia).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28838 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-01 14:58:10 +00:00
Axel Dörfler
e4737a9260 * Added a third hinting mode: monospaced fonts only. This is especially helpful
with low resolution devices like the EeePC - small fonts can look pretty bad
  when hinting is turned on, and you still have the advantage of hinting for
  text editors and the terminal.
* Added a ServerFont::Hinting() method (that currently only evaluates the
  global hinting setting).
* Added a TODO comment on why having global settings is not what we aim for.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28837 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-31 18:44:02 +00:00
Philippe Houdoin
16edc24aba Ooops, typo spotted by Diego. Thanks proofreader(s).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28836 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-31 17:03:36 +00:00
Salvatore Benedetto
4a39c23620 * Reworked ps command a bit as its previous output was just messy.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-31 16:47:45 +00:00
Philippe Houdoin
0832f66cc5 Added a small faking OpenGL renderer add-on as a testbed for direct
mode threading/drawing issue.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-30 20:17:18 +00:00