Commit Graph

20864 Commits

Author SHA1 Message Date
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
Ingo Weinhold
619c170539 Some documentation. Courtesy of Jan Matejek.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21722 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-27 17:05:45 +00:00
Ingo Weinhold
d86af8ce27 * Style cleanup.
* Moved method documentation from headers to source files.
* Fixed small problems (memory leaks, unsafe string duplication,...).
* Added TODOs where I spotted problems.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-27 16:32:47 +00:00
Ingo Weinhold
e098680c08 Missed those in the previous commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-27 15:37:23 +00:00
Ingo Weinhold
2dc6403ddc Addition of write support to the disk device manager. Courtesy of Tomas
Kucera and Jan Matejek.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21719 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-27 12:12:35 +00:00
Axel Dörfler
7548b9ae20 Forgot to include strace in the huge commit that changed the _kern_load_image() signature, sorry!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21718 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-27 09:40:26 +00:00
Ingo Weinhold
288102e6c3 * Style cleanup.
* Moved method documentation from headers to source files.
* Removed test code.
* Added TODOs where I spotted problems.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-27 02:48:18 +00:00
Axel Dörfler
74f09960d2 Forgot to remove some debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-27 02:47:22 +00:00
Axel Dörfler
74c0424a43 * Added a mechanism to retrieve a BMessage with eventual error descriptions
for _kern_load_image().
* Added KMessage to the runtime_loader (a bit hacky, though) - it will use
  it to deliver the above mentioned functionality.
* load_dependencies() did return the wrong status code in case a library
  was missing; now it returns B_MISSING_LIBRARY.
* load_dependencies() will now try to load all dependencies when a report
  message is requested; therefore, all missing libraries are listed.
* Renamed uspace_program_args to user_space_program_args.
* The kernel filled in various members of the user_space_program_args structure
  unsafely, ie. was not using user_memcpy().
* Renamed some local variables in team.c to better fit our style guide (ie.
  uargs to userArgs).
* Changed Tracker to use the new _kern_load_image() variant on Haiku to retrieve
  and report all missing libraries. This fixes bug #1324.
* Adapted kernel_cpp.cpp to the runtime loader as well; the latter will now
  compile with _LOADER_MODE defined.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-27 02:32:19 +00:00
Axel Dörfler
d6dfbc4de5 Minor cleanup in comments.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-27 02:15:39 +00:00
Axel Dörfler
67aa3b3eb0 The "Delete" item in the Trash is not really needed - but was pretty close to "Restore"; I've removed it for safety.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-27 02:12:23 +00:00