Commit Graph

20824 Commits

Author SHA1 Message Date
Axel Dörfler
5d12f64c57 I have no idea why it would be a good idea to call ReceiveLine() 200000 times if it didn't
deliver a line back, but I've changed it such that it only does this for R5.
I've enlarged the timeout back to 60 seconds, as I guess that could have been the culprit.
Tested here, and it at least still works.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-31 16:41:06 +00:00
Michael Pfeiffer
3177724f8c * return invalid BFile on cancellation for backwards compatibility with
BeOS R5.
* style changes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-31 16:40:15 +00:00
Michael Pfeiffer
66486a1b7d Avoid memory access to deleted object.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-31 16:38:48 +00:00
Michael Pfeiffer
2535e771cf Renamed printer spool folder to 'Save as PDF'.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-31 16:36:28 +00:00
Axel Dörfler
bec0386d82 bonefish+axeld: Implemented a robust notification framework for the kernel.
Will be used for node monitoring and other stuff, too (like the Registrar or the
VM low memory handler).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21768 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-31 16:23:40 +00:00
Axel Dörfler
2851dbad53 * Moved Referenceable.cpp to src/kits/support (private libbe API), and its header to
private/shared.
* Made AddReference() and CountReferences() inlines.
* The registrar is now using the private Referenceable version in libbe.so.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-31 16:20:37 +00:00
Axel Dörfler
8405223037 axeld+bonefish: Got rid of the ParentType in the HashTableDefinition; it doesn't really
belong there.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-31 16:14:58 +00:00
Axel Dörfler
b1c07d8165 * Fixed dumb uses of select() with a hardcoded number of file descriptors.
* Decreased the timeout from 60 to 30 seconds; somehow it seems it waits more
  than just once this time in case something fails over here.
* Cleaned up the messy SSL patch.
* Made the whole thing a bit more compliant to our coding style.
* Got rid of the useless pop3_error() macro.
* Fixed error reporting in ReceiveLine().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-31 16:00:26 +00:00
Axel Dörfler
2ae1709efb Fixed the date string to comply to RFC 2822 - apparently, the timezone must not be given
as a string anymore (it's deprecated). That at least allows mmlr's internet provider to
recognize mails as valid mails rather than spam.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-31 15:12:50 +00:00
Axel Dörfler
8d9b9d333a Renovated the about window a bit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21763 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-31 15:04:26 +00:00
Stefano Ceccherini
d7b25be846 cleaned up a bit thread creation and deletion
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-31 12:53:16 +00:00
Ingo Weinhold
81bb654dfb Made the ResComp and ResAttr actions spaces-in-file-names-proof.
AddDirectoryToHaikuImage with attributes does also work for directory
names with spaces now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-31 01:54:24 +00:00
Jérôme Duval
87ebb10a40 ES1370 audio driver for QEmu, first version.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21760 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 23:35:00 +00:00
Jérôme Duval
6df0b2d554 selecting the current default input or the current default output doesn't change the setting anymore, and doesn't ask to restart the media server
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21759 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 21:53:01 +00:00
Jérôme Duval
a9383a861c now checks buffer_cycle field for playback and record
clean up


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21758 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 20:59:52 +00:00
Jérôme Duval
af8bd8f6b4 fixed ppc build: replaced a cast to float with a multiplication as the cast requires __floatdisf from libgcc
the other solution would have been to link against libgcc.a. please comment.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 19:57:50 +00:00
Jérôme Duval
3c25084c0e only add libglut.so on x86
added keymap symlinks Finnish, Brazilian, Croatian
Keymap preferences app wasn't able to load symlinked keymaps


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21756 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 18:43:32 +00:00
Michael Pfeiffer
ff8e5cd851 The Haiku 'Save File Dialog' returns NULL in case of cancelation contrary to BeOS R5. Now NULL is check too. Fixes issue #1068.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21755 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 18:31:21 +00:00
Michael Pfeiffer
dc5219b081 Added sanity check to public method. Set offset to first page in header.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21754 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 18:19:56 +00:00
Michael Pfeiffer
820f5fa5a5 Undo last change (Search spool folder by name stored in attribute
'Printer Name'). In other parts of the print_server we had assumed that
printer spool directory name = printer name. So the change broke some
things.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21753 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 17:41:06 +00:00
Stefano Ceccherini
cfc9ef8ac3 Implemented B_ABOUT_REQUESTED in TermView, for the replicant version.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21752 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 15:22:37 +00:00
Stefano Ceccherini
67188b4ca2 More or less reverted TermView::KeyDown() to r21695. Fixes bug #1340.
Thanks to Ingo & Korli for the help.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 15:05:04 +00:00
Stefano Ceccherini
60be800755 Added a wrapper method to instantiate_object(), where we catch any
possible exception thrown from the constructor called by the function 
itself, for safety. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21750 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 14:21:41 +00:00
Stefano Ceccherini
685271a77a Better error messages
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 12:56:22 +00:00
Michael Lotz
63218bfd3f Use a flag to cancel issuing new transfers instead of relying on a B_CANCELED. This should ensure that the hid driver does not use the device after the remove hook completes. Untested...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 12:54:20 +00:00
Stefano Ceccherini
9821c5c4e1 on MouseDown(), TermView becomes the focus view (like BTextView does).
Now input works also with a replicanted Terminal, although I have to 
click on it twice(!?!?). Don't call exit_thread() anymore in 
TermParse::PtyReader(). Hope this is correct. (feel free to beat me on 
this).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21747 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 12:19:20 +00:00
Axel Dörfler
6e09c5679e area_for() in the kernel can now also find user areas in case you are coming from a user team.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 11:54:11 +00:00
Stefano Ceccherini
2240e7df9b Add the add_on field in TermView::Archive(). This way instantiating a
replicant works (thank you Marc). Return errno instead of the return 
value of read() (thank you Jerome).
Terminal now can be instantiated as a replicant, although input doesn't 
work :((.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 11:48:35 +00:00
Stefano Ceccherini
948b80756a Initialize the string, so we don't get garbage in case of problems in
getting the name.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 10:26:24 +00:00
Stefano Ceccherini
ba40a9b6a7 Added a TermView::NotifyQuit() method, used in TermParse, so it doesn't
mess with be_app anymore. Renamed TermView private methods to have an 
underscore prefix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21743 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 09:59:17 +00:00
Stefano Ceccherini
53763c54d1 Don't use exceptions in TermView constructor, as it would cause problems
with instantiation. Note that if an error occurs in the constructor, 
we're pretty much screwed. Made some TermView functions private. Some 
small cleanup, and some WIP code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21742 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-30 08:59:12 +00:00
Michael Lotz
8040388202 Initialize the endpoints of all interfaces of the configuration to be set. Fixes stuff that needs more than one interface at the same time (ACM modems for example).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21741 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-29 21:46:10 +00:00
Axel Dörfler
4bef3723a1 * Followed Ingo's suggestion and send the message manually in the runtime loader;
therefore, we could remove the ugly defines from KMessage again, and compile it
  with KMESSAGE_CONTAINER_ONLY.
* Added KMessage::SetDeliveryInfo() to be able to send messages with a correct
  header.
* Fixed a bug in KMessage::SendTo() that would not send the senderTeam when passing
  a negative value for the parameter, but override it when passing in a valid
  value.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-29 21:36:49 +00:00
Axel Dörfler
3dab566b3a Patch by Vasilis Kaoutsis:
* Fixed several missing incorrect initializations from fYear.
* Style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-29 21:12:21 +00:00
Michael Pfeiffer
620f852c78 Search printer spool folder by name stored in attribute 'Printer Name'.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21738 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-29 09:03:25 +00:00
Michael Pfeiffer
d4fd997069 Do not overwrite current printer name. Name should be provided by print_server already.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21737 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-29 08:59:46 +00:00
Marcus Overhagen
4e7050cd09 Allow thread priority setting from inside kdl. Right now, a
single priority 12 thread can make the whole GUI appear frozen.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21736 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-29 01:30:59 +00:00
Ingo Weinhold
696c54d067 * Moved members pgrp_id, termios, window_size from the tty structure to
the new structure tty_settings of which there's only one instance per
  master/slave tty pair. Previously the existence of two instances of those
  members caused several kinds of problems, e.g. the Terminal setting
  the window size on the master and CLI programs readings the unchanged
  values from the slave. E.g. less correctly adjusts the display when the
  Terminal size changes, now.
* Reorganized writing to a TTY. We do no longer handle writes to master
  and slave the same way. Writes to the master are "input" and need to
  be processed differently from writes to the slave ("output"). Before,
  both were processed first as output then as input, which caused incorrect
  behavior. E.g. CRs were not echoed correctly.
* Added canonical ERASE (backspace) and KILL (clear line) processing.
  Couldn't really see it work. glibc's fgets() seems to read single
  chars, so that we never have anything in the line buffer.
* Added handling for EOF. Works well with Be's Terminal, ours seems to
  write an ESC sequence instead of the EOF char (Ctrl-D), though.
* Extended output processing support (ECHOE, ECHOK, ECHONL, OCRNL,
  ONLRET, OLCUC).
* Writes use user_memcpy() now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21735 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-29 01:09:39 +00:00
Marcus Overhagen
3ab19002fe Added "suspend", "resume" and "drop" commands to kernel debugger.
It's now possible to debug amok-running user threads by 
suspending or resuming them, as well as dropping them into 
the userland-debugger from inside kdl.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21734 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-29 01:06:36 +00:00
Marcus Overhagen
8f5e97473f build fix (rebuidling MessagingService.o wasn't possible after this jamfile was changed in r21715)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-29 00:51:36 +00:00
Marcus Overhagen
2e53897578 kernel debugger support for suspending a thread
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-29 00:24:54 +00:00
Marcus Overhagen
71ec907eaa Build fix for GCC 4
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-28 22:36:02 +00:00
Ingo Weinhold
b42ecb4e53 Beginnings of a little test partitioning tool.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-28 14:57:12 +00:00
Ingo Weinhold
04ed91ac9c Added copy constructor and assignment operator.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-28 14:56:02 +00:00
Stefano Ceccherini
69adf535c1 TermView and the classes used by it now don't know about PrefHandler
anymore, but have methods to set the needed options. Various cleanups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21728 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-28 14:49:39 +00:00
Michael Pfeiffer
f00954fc65 Added "default" printers to image (Preview and Save as PDF). Thank you
Ingo, for providing the necessary build infrastructure!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21727 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-28 07:17:23 +00:00
Michael Pfeiffer
da0bbaed22 Updated copyright year.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-28 06:15:01 +00:00
Stefano Ceccherini
a77bd4200b Implemented Archive() and unarchiving constructor. TermView won't work
as a replicant, though, until I remove the preference code from it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-27 21:56:47 +00:00
Stefano Ceccherini
cd2b8867e1 Removed weird code in TermWindow::WindowActivated. Added basic
Archive(), Instantiate(), and unarchiving constructor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21724 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-27 21:43:24 +00:00
Stefano Ceccherini
258e949475 More work towards a tabbed terminal. Actually it already somewhat works
(code not enabled, though). Moved scripting from TermWindow to 
TermView. Added a SmartTabView which (for now) only resizes the 
child views to fit their size. Usual cleanups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21723 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-27 21:23:32 +00:00