Commit Graph

17644 Commits

Author SHA1 Message Date
Axel Dörfler
1c494ffa65 It no longer crashes, but now runs forever! At least this fixes bug #760.
Looks like our fdopen() does not work correctly, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-22 22:09:59 +00:00
Axel Dörfler
9e22843851 * Fixed the most annoying style violations of the files I had to look at - there
are still plenty of them left, though. Hey Jonas, we do have a coding style guideline!
* Removed an extra copy of the message passed in to the settings constructor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-22 21:37:22 +00:00
Axel Dörfler
48096634af Enabled private BeOS syscalls for the build with GCC 4 as well for now, until
this issue has been solved in the code that needs them (which is the same as
the PPC version also does at this time).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-22 20:48:12 +00:00
Jérôme Duval
68f9cce4c9 clean up of tracing. I tried to distinguish error from trace, I could be wrong on some
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-22 17:03:46 +00:00
Stefano Ceccherini
f9d284011a invalidate the null style in BTextView::MakeEditable(). Fixes bug 362
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-22 15:25:24 +00:00
Stephan Aßmus
8ae0d03ade * Icon inherits from Referenceable in Icon-O-Matic mode
* new listeners receive an AreaInvalidated notification


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-22 13:33:27 +00:00
Jérôme Duval
58da9ac9e5 moved from cbuf to ring_buffer, untested
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-22 13:23:38 +00:00
Jérôme Duval
50028ed21e adding usb_raw and usb_hid, hope nobody minds
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-22 12:59:33 +00:00
Niels Sascha Reedijk
f95dbf8906 Implement Find in Terminal. This is almost identical to R5's Terminal, except that it doesn't look for regexps. Code tested by me. Thanks to jburton for helping me out and reviewing the patch.
This resolves bug #199.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-22 09:33:01 +00:00
Stefano Ceccherini
0adbde4a9e Don't invoke the highlighted item if menu was closed using the ESC key
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-22 09:04:21 +00:00
Stefano Ceccherini
136869d8c0 Don't start tracking if user clicked and released mouse button on a zone without any item.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-22 08:55:52 +00:00
Andrew Galante
171ee97271 TCP Socket creation and destruction implemented, as well as the beginning of the TCP state-machine
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-21 23:16:22 +00:00
DarkWyrm
8ecdb90192 Adding DejaVu fonts to eventually replace the Bitstream Vera fonts
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-21 21:21:59 +00:00
Stephan Aßmus
2d8b47105a * a VectorPath can transform all it's points using a given
Transformable, should have been part of the last commit...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-21 18:19:16 +00:00
Stephan Aßmus
bd04a1e761 * quickly unbreak the build... I wasn't realizing that the headers
got added in my (bonefish's) developer branch...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-21 17:33:19 +00:00
Stephan Aßmus
86133f5e63 * (temporarily) added libexpat, built as static lib, removed all
clutter, straight from the sources of release 1.95.8, configured
  to obtain expat_config.h, seems to work fine


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-21 17:24:26 +00:00
Niels Sascha Reedijk
438fdb88ea Revision 18539 broke the build on R5. This is because on R5 it includes Be's headers, which of course don't include a USB2.h or USB3.h.
This change fixes that on non-haiku targets. Please note that the change is only needed on R5 and bone probably, but it won't do any harm on other build platforms either.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-21 16:19:47 +00:00
Jérôme Duval
c7295a063f hopefully fix bug #758
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-21 15:10:25 +00:00
Jérôme Duval
5ed5c96602 updated these files to glibc 2.3.5
hopefully it should fix bug #754


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-21 15:05:59 +00:00
Stefano Ceccherini
9d402220eb Added a test for MenusBeginning/MenusEnded\
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-21 14:39:24 +00:00
Stefano Ceccherini
e8db36f1d2 Don't scroll to the selection when calling BTextView::Insert(). This fixes bug 506
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18547 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-21 12:42:01 +00:00
Axel Dörfler
c33ac538c4 Semaphore could get interrupted by a pending signal, even if that signal was blocked.
This fixes the failure of the fork test 12-1.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-21 12:02:18 +00:00
Axel Dörfler
26a9fcd6ab * set_alarm() now correctly returns the time left for the currently active
alarm, or 0 if there isn't any.
* setitimer() now also sets the previous timer values correctly, so that
  alarm() and ualarm() now return the correct values as well - this fixes
  the test fork_9-1 failing at alarm().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-20 22:44:53 +00:00
Axel Dörfler
505347b0b2 Threads are now removed from the hashtable earlier, so that a kill() following
a waitpid() can no longer succeed; this fixes the occasional fork 3-1 test failures.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-20 21:34:25 +00:00
Axel Dörfler
2b6a368811 wait_for_child() could eventually hang until another team exited (or forever if
it waited for a specific child), as B_RELEASE_ALL opened up a race condition between
looking for an existing death entry, and waiting for the dead children semaphore.
Now we're counting all waiting threads for teams and groups separately.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-20 21:27:12 +00:00
Stephan Aßmus
4fdb58bec0 * added device ids for "Geforce 7300 GT". Lucky me, this works
beautifully. Tested with ZETA on PCIe system.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-20 12:13:10 +00:00
Axel Dörfler
4b66b0e0ee Imported ContainerWindow.cpp 1.38. This fixes bug #298.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-20 11:43:06 +00:00
Michael Lotz
1e8c0b3649 * Implemented iovec based data handling in Transfer and UHCI
* Implemented QueueBulkV of the v3 API that uses it

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-20 01:07:15 +00:00
Michael Lotz
5b0ec61f97 * Added USB API Version 3. It's put into USB3.h while the v2 API resides in USB2.h. USB.h just includes USB2.h for now.
* Rewrote both headers on the way.
* The usb module now exports both, the v2 and v3 module_info.
* Changed the internals of the USB Stack to give out usb_ids instead of opaque handles to internal classes.
* Cleaned up some more of the Stack by moving members into other classes and removing unused stuff.
* Updated the usb_raw driver from v2 to v3 API.

Since both usb_hid (which still uses the v2 API) and usb_raw (which now uses the v3 API) work, I'd call it a success ;-)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-19 23:09:05 +00:00
Michael Lotz
c3157a2749 Created a compatibility header for the USB Stack so that it can be compiled on BeOS too. How to do this correctly? I don't think that this stuff should go to HaikuBuildCompatibility.h as it's kernel stuff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-19 13:18:03 +00:00
Stefano Ceccherini
27f1bc8217 Don't activate the window, because it will steal the focus from the current active window, and clicking elsewhere won't close the menu
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-18 10:26:29 +00:00
Stefano Ceccherini
152808170e Reverted the previous change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-18 10:18:10 +00:00
Stephan Aßmus
a3b31b17d2 added versions of the logos on transparent background, clipped to
have no unnecessary pixels around the logo


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-18 09:54:11 +00:00
Stefano Ceccherini
08c1246909 In case of error, errno should be set to a positive value. Yeah, I know,
it's sick.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-18 09:40:12 +00:00
Stefano Ceccherini
c941d45cd5 oldSet shouldn't be changed in case of error. Thanks axel for noticing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-18 09:37:32 +00:00
Stefano Ceccherini
0ce93ee730 the signal block mask is inherited by the child process on fork()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-18 08:26:37 +00:00
Stefano Ceccherini
a5a36fe421 the second parameter of sigprocmask() can be NULL
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-18 08:00:07 +00:00
Stefano Ceccherini
8cf2c839c5 more fork() tests. Some pass, some fail
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-18 07:24:36 +00:00
Axel Dörfler
79dd3d935a * The parent/group dead semaphores are now released a bit earlier to make
wait_for_child() hanging less probable - there is a general problem with
  this code, though, as we need to have a dedicated free counter for the
  semaphore to remove all race conditions.
* Also, test fork_3-1 still sometimes fails because the thread is still
  available to the public for a short time, even after its death entry
  has been collected.
* Added a TODO in the code for these issues.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 21:45:37 +00:00
Axel Dörfler
73a56f1bac * wait_for_child() (the backend to waitpid()) did not work correctly in case you
wanted to wait for a specific child; it always assumed you had specified WNOHANG.
  This fixes the bug the fork_3-1 and fork_4-1 test applications reported. 3-1 still
  sometimes fails, but that's a different problem (to be solved later).
* Also, it could return B_BAD_THREAD_ID instead of the expected ECHILD (for waitpid()).
* There was a race condition between testing for a thread, and checking its death
  entry.
* wait_for_child() can now be interrupted in case it has to wait.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 21:40:55 +00:00
Axel Dörfler
d024bdc9e6 kill() is supposed to return ESRCH instead of B_BAD_THREAD_ID.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 19:59:44 +00:00
Axel Dörfler
3b46e73c2b Replaced DOS newlines with "real" ones :-)
This lets the files compile again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 18:16:23 +00:00
Stefano Ceccherini
278510fe87 added two tests for fork(). Both fail on waitpid().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 15:20:47 +00:00
Jérôme Duval
e18b600868 posix headers not needed anymore
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 14:27:15 +00:00
Jérôme Duval
cb57453f51 fix the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 13:22:36 +00:00
Jérôme Duval
25160e5093 restored sys/ioccom.h in headers/compatibility/bsd/
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 12:58:01 +00:00
Jérôme Duval
44d5675324 KernelAddon and KernelStaticLibrary don't include kernel, kernel arch, boot platform headers anymore.
Fixed the build of most of targets using these rules. Though the build can be still broken, feel free to fix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 12:18:11 +00:00
Stefano Ceccherini
83333816a2 adding back Terminal.cpp as it's obviously needed
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 08:41:53 +00:00
Stefano Ceccherini
16f6901c0b Removed old and unused files
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 08:08:49 +00:00
Stefano Ceccherini
6636dcac56 BTextView::DrawLines() was drawing some text over some already existing one. Fixes bug 738 (and also the weird text redrawing in Terminal and StyledEdit)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 08:00:27 +00:00