Commit Graph
32314 Commits
Author SHA1 Message Date
Ingo Weinhold ea5a105b2d Fixed spelling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 19:43:10 +00:00
Axel Dörfler 75bb8dc650 * Applied kaliber's patch part of ticket #6789, thanks! This makes the code not
only more readable, but also working correctly.
* Solved the problem stippi outlined differently, by checking whether length is
  greater size for unsupported options.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 18:44:27 +00:00
Jérôme Duval e1d8e05d15 * some style cleanup
* don't try to non configured memory map IO space
* use a kernel thread when irq number is zero or 0xff
Should help with #4491


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 18:13:50 +00:00
Stephan Aßmus 21c8f94c7d I don't understand much about the code in question, but the ticket #6789
hints at a possible problem: Within the process_options() function, the
code does not make sure that size is a multiple of the option length
(unless I missed something) and thus the loop could wrap the unsigned
size variable, and not exit as intended. Make size an ssize_t and cast
where appropriate, after making sure it's initially a positive value.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 17:39:15 +00:00
Ingo Weinhold 09bd92c5c0 * Source text_setup with explicitly given current directory path component.
Apparently the source semantics has changed, as the that wasn't necessary
  in older OpenSuse versions.
* Replaced gcc invocations in the test scripts with with
  compile_{lib,program}[_dl]() shell functions defined in test_setup.
* Build libraries with -fPIC, so we don't get complaints for x86_64.

Apparently the runtime loader semantics has changed in OpenSuse 11.2 compared
to older versions. Some tests don't pass any longer (respectively even crash).
Would be interesting to know what happens on a current FreeBSD.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 16:38:44 +00:00
Ingo Weinhold aa3507feea terminate_program(): Call the termination function of all images, not only
of the program image and its transitive dependencies.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 21:15:39 +00:00
Ingo Weinhold e60625b708 get_sorted_image_list(): Allow passing a NULL image argument, meaning that
all loaded images will be sorted and returned.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 21:14:09 +00:00
François Revol 2ef563d813 80 cols & cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 19:37:30 +00:00
François Revol f649b1fa77 Make multiboot.h usable from assembler, and remove duplicate defines.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 19:06:36 +00:00
Jérôme Duval eb7aa0dafb Volume: don't use a block allocator when mounting readonly.
BitmapBlock: also use file system blocks, current type is off_t. Also added more trace.
BlockAllocator: added an assert and more trace


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 18:25:58 +00:00
Jérôme Duval 6fa1b3a596 actually use the 64bits value when doing comparing, previously SCSI_6 were wronly used for some io requests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 18:01:46 +00:00
Ingo Weinhold fb8e088927 Added dummy __cxa_atexit() and __cxa_finalize() to the kernel. We might
actually implement those, if we decide to support global
constructors/destructors in kernel add-ons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 16:26:43 +00:00
Ingo Weinhold d64f6189c0 unload_library(): Added comment about the exit hook handling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 16:22:11 +00:00
Ingo Weinhold 85f9496a24 Implemented __cxa_atexit() and __cxa_finalize() which are required by the
Itanium ABI. Whether __cxa_atexit() really works for associating hooks with
DSOs has not been tested yet, as our compiler doesn't use the function.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 16:21:20 +00:00
Ingo Weinhold b502275bc8 exit.c -> exit.cpp
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 11:07:01 +00:00
Axel Dörfler ba3217eee8 * Moved the Tracker navigation logic into its own class, TrackerNavigation.
* Added a new class FolderNavigation that implements the same for folders
  without a Tracker window.
* ImageFileNavigator is now using either one depending on whether it got a
  valid tracker messenger.
* Removed some unused/unneeded methods.
* Made entry_ref a reference at some more methods, as it's not really optional.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 23:29:54 +00:00
Rene Gollent 6bb1b32f42 Should have been part of previous commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 21:54:52 +00:00
Rene Gollent 5a13e7b045 Add a means for the user to locate source files if they are not found
at the location specified in the debug info.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39289 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 21:52:39 +00:00
Axel Dörfler 2281340d02 * Renamed _LoadSettings() to _ApplySettings().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 21:30:53 +00:00
Axel Dörfler 745226bd2f * Got rid of the useless fTrackerMessenger field.
* Ordered the methods in declaration order. Ordered BWindow hooks in "run"
  order.
* Renamed private methods to have the '_' prefix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 21:26:08 +00:00
Axel Dörfler 36272f0d4c * Removed the home-brewn recent menu, and just uses the one libtracker.so
provides instead.
* This also fixes bug #6774.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 21:04:51 +00:00
Axel Dörfler 01939af669 * Quit() in the constructor does not work as one might expect.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 20:42:33 +00:00
Ingo Weinhold f085f5b012 * checksumfs_write_stat(): Actually add the node to the transaction as the
comment claims. Spotted by Axel.
* Added preallocate() slot to gCheckSumFSVnodeOps.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 20:42:17 +00:00
Axel Dörfler ddcb5a2cda * Reverted Rene's fix for the broken build - it's no longer necessary. Thank
you for cleaning up behind me!
* Fixed bug #6771 by adding the shift key to the page shortcuts.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39282 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 20:00:49 +00:00
Axel Dörfler 60334dc831 * Got rid of the type == 0 feature in Update(); it does not really serve any
purpose anymore, and was just confusing.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 19:53:10 +00:00
Jérôme Duval 0ac16c5b3e big_endian conversion: this should be more correct
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-02 21:13:30 +00:00
Jérôme Duval f058886908 * added definitions for SCSI_OP_VERIFY_* op commands
* added support READ_12/16 and WRITE_12/16 in ata and scsi_periph, this enables read/write on block offsets greater than 2TB


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-02 20:56:20 +00:00
Ingo Weinhold be649db06f * Added support for reading gcc 4 generated .eh_frame sections. The main
difference to gcc 2 .eh_frame sections is the initial location field in the
  FDEs, which is a relocated absolute address with gcc 2, but a relative address
  with gcc 4.
* Recognize and skip the additional augmentations gcc 4 puts in the .eh_frame
  sections contain. We might want/need to interpret some of them, but, since
  I haven't found actual documentation for them yet, currently they are just
  ignored.
* DwarfFile::UnwindCallFrame():
  - Correctly support CIE offsets in .eh_frame sections. Unlike in .debug_frame
    they are current position relative back offsets.
  - Cleaned up some debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-02 20:21:03 +00:00
Ingo Weinhold e2ea5a6646 Added the load address and the section flags to ElfSection.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-02 20:03:11 +00:00
Matt Madia f316c81731 Moved it to the "Contributors" section, which also lists all the former
contributors.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39272 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-02 15:06:24 +00:00
Matt Madia 6e268ab2d3 Jorge G. Mare aka Koki is no longer a contributing member.
See http://www.freelists.org/post/haiku-development/Banning-Jorge-G-Mare
for more information.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39270 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-02 12:08:45 +00:00
Philippe Houdoin 6fd9d3d930 Fix style.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-02 11:31:01 +00:00
Philippe Houdoin aede543994 Checks AddItem() success, as hinted by Stippi 5 (!) weeks ago.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39268 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-02 11:17:39 +00:00
Rene Gollent b1534fc0e8 Build fixes mostly due to usage of a translation macro that isn't (currently) available in the source tree.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-02 02:22:29 +00:00
Matt Madia 88a3ad40f8 Tweaked Gutenprint's PackageCredit to list GNU GPL v2
Note: .SetLicense() needs a filename from HAIKU_TOP data system data licenses.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39265 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 22:51:03 +00:00
François Revol 4219bd961b Rework the ConsoleDevice to be a full featured window based console.
Only looses high intensity color from the plain console, but doesn't eat keystrokes, and a 2nd window opens for dprintf stuff.
Only Amiga makes it possible ;-)
http://revolf.free.fr/beos/shots/shot_haiku_loader_amiga_m68k_004.png


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39264 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 22:35:43 +00:00
Adrien Destugues a528bdee7f * Make ReadOlyBootPrompt look a bit nicer : don't use a regular BTextView but a custom view with an "haiku background leaf outline" below the text. The color and size of the leaf may still be altered, feel free to play around with it.
* Also do some changes to ReadOnlyBootPrompt layouting to include some insets and similar stuff.
  * Add country flags in the language selection menu
 * Modify locale roster method for getting a flag so it is a bit more tolerant. It is case insensitive on the country code, and also works if given a full locale code such as pt_BR.

Known problems :
 * The new BitmapTextView doesn't work well with the chinese text as it does line breaks only on space chars (0x20), and there is no such char in chinese text. However, the usual BTextView is also unable to do proper linebreaking. This should 
be solved  by using tools provided by ICU.
 * The way I altered LocaleRoster is not as good as it could be. Locales with variants such as zh-hans are not going to work (the computed country code is now 'NS'). Not sure there is a better way
 * The way the list is sorted in ReadOnlyBootPrompt is annoying as it prevents keyboard navigation. As the sorting changes each time you select a language, it's impossible to travel through the whole list. One possible solution is to do the 
language change on invoking an item. Another one is to sort the languages in a locale-neutral way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39263 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 21:39:47 +00:00
Axel Dörfler 04f965443f * Removed resizing ability.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39262 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 21:26:53 +00:00
Jérôme Duval 0d16ad4437 style fix (pointed out by Axel)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39261 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 20:52:29 +00:00
Michael Pfeiffer 09750a224f * Dynamically create contents of transport sub menu.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 20:19:25 +00:00
Axel Dörfler cd6b5cde06 * Completed stippi's work on the ImageFileNavigator.
* ShowImageWindow is now using such a navigator.
* Removed navigation support from ShowImageView.
* Prepared everything to support asynchronous image loading (which is not yet
  implemented, though).
* Note, this commit brings some regressions I intend to fix in the next few
  days, namely deleting files won't work anymore, and dropping images onto
  ShowImage. There might be more I don't know about, though :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39259 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 19:48:23 +00:00
Michael Pfeiffer c6a51c24e7 * Fixed bug. If a transport add-on returned an empty
port list, the transport add-on could be selected,
  altough later using it would fail. In that case
  now a sub menu item is created containing the text
  "No printer found!" and selecting it won't work.
  TODO the contents of the sub menu should be refreshed
  before the sub menu is opened, so that only currently
  connected and turned on printers are shown.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39258 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 19:38:02 +00:00
Michael Pfeiffer 018242ded4 * Added preliminary credits for Gutenprint.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39257 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 18:46:47 +00:00
François Revol a55b596e1c Allocate the IOReq if not done yet at Open() time.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39256 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 17:57:36 +00:00
François Revol 499f2a5c48 Some more work to get video support working, add generic code to support the boot splash in.
However all modes available are planar, and there doesn't seem to be a way to tell it in the kernel args framebuffer struct...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 17:24:20 +00:00
François Revol 9bc9cf069d Cleanup. Add a LLKeyboardDevice using lowlevel.library but it doesn't seem to be available in the kickstart I have anyway.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39254 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 17:22:25 +00:00
Jérôme Duval 8d5a0a8ff1 fixed warnings, added a better label for >1TB sized volumes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39253 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 16:33:25 +00:00
Jérôme Duval f10a55a632 * ata: added ATADevice::ReadCapacity16()
* ata: don't fail if lba_sector_count is null and lba48_sector_count is not
* scsi_periph: if ReadCapacity() returns 0xffffffff, use ReadCapacity16() instead
* scsi_disk: use a different computation in the struct geometry computation for bigger disks
Tested successfully with a virtual 10TB hard drive.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39252 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 16:31:09 +00:00
Matt Madia ae7af41e11 Related updates for *.c -> *.cpp
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 22:06:19 +00:00
Matt Madia 04c448da78 Specify the location for the musepack headers. Other build issues remain.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 21:48:18 +00:00