Commit Graph

35315 Commits

Author SHA1 Message Date
Ingo Weinhold
7bb72b8daf Comment typo fixes 2011-11-25 06:17:41 +01:00
Ingo Weinhold
7ea4dbcecf Hard code "Public Domain" as acceptable license 2011-11-25 06:17:41 +01:00
Ingo Weinhold
d5df784299 Fixed input server start fallback
After failing to start the input server by signature, the fallback
didn't append the input server name to the servers directory returned by
find_directory().
2011-11-25 06:17:40 +01:00
Ingo Weinhold
16ca035b2b Nicer error output 2011-11-25 06:17:40 +01:00
Ingo Weinhold
870d5c92fe write_pos(): Fix return value for attribute writes 2011-11-25 06:17:39 +01:00
Ingo Weinhold
2cce5a0a05 fs_write_attr(): Allow 0-length NULL buffer 2011-11-25 06:17:38 +01:00
Ingo Weinhold
0f15206ac9 ReaderImplBase::ParseStrings(): Avoid new[0] 2011-11-25 06:17:38 +01:00
Ingo Weinhold
fab5eddca9 Split package kit DataReader.cpp
Pull AttributeDataReader and FDDataReader implementations out of
DataReader.cpp into own source files. Thus we can avoid dependencies
(e.g. to fs_attr code) we don't need/want.
2011-11-25 06:17:37 +01:00
Ingo Weinhold
caa4217eb5 PackageWriterImpl: Build platform symlink issues
On a non-Haiku build platform map openat(), fstat(), and
FileDescriptorCloser to _kern_open(), _kern_read_stat(), and
BuildFileDescriptorCloser respectively, so symlinks can be opened and
stat()ed.
2011-11-25 06:17:37 +01:00
Ingo Weinhold
7162cff6b0 <build>package: attribute iteration, license dir
PackageWriterImpl:
* Iterate through attributes using fs_read_attr_dir() instead of
  readdir(). Makes it work correctly on the build platform.
* On the build platform look up the system licenses in their source
  directory rather than based on find_directory().
2011-11-25 06:17:36 +01:00
Ingo Weinhold
06cdc7e6d9 libroot_build: fix error.ccp build
Since USES_BE_API is set by default on all libroot_build sources, the
error.cpp
was broken, since it wouldn't be exempt from the error mapping. Define
the
BUILDING_HAIKU_ERROR_MAPPER for it directly in the Jamfile, now.
2011-11-25 06:17:35 +01:00
Ingo Weinhold
2aedac8df2 Build the package tool for the build platform 2011-11-25 06:17:35 +01:00
Ingo Weinhold
7ed37afaba Build libpackage for the build platform 2011-11-25 06:17:34 +01:00
Ingo Weinhold
c4b463c5cd Added several APIs to libbe_build/libshared_build 2011-11-25 06:17:33 +01:00
Ingo Weinhold
d62ec0bd75 Fixed host build issues/warnings 2011-11-25 06:17:33 +01:00
Ingo Weinhold
d9516a06cc Open/close attribute support for xattrs backend
For the xattr/BSD (untyped) attribute backend implement fs_fopen_attr()
and fs_close_attr(). A new AttributeDescriptor is created. It is
currently used in write_pos() only.
2011-11-25 06:17:32 +01:00
Ingo Weinhold
b19dacd077 Added driver settings and find_directory() support.
find_directory() is a very simplified implementation, only supporting
what we currently need.
2011-11-25 06:17:31 +01:00
Ingo Weinhold
37c83f4e8f Made the check for B_BUFFER_OVERFLOW more flexible. 2011-11-25 06:17:30 +01:00
Ingo Weinhold
cdf4afaaf4 Use fs_close_attr()/write_pos() instead of close()/pwrite().
This makes it easier to reuse the code on non-Haiku platforms.
2011-11-25 06:17:30 +01:00
Ingo Weinhold
c3093f6d0f Fixed printf() format related warnings. 2011-11-25 06:17:29 +01:00
Ingo Weinhold
dad288f954 Removed obsolete TODO. 2011-11-25 06:17:29 +01:00
Ingo Weinhold
287243ab5f Added very simple BLooper class to libbe_build. 2011-11-25 06:17:27 +01:00
Oliver Tappe
323b65468e Filtered flat import of Oliver's svn package management branch
Bring the changes that aren't package management related and the ones
that are but don't take effect as long as they are ignored by the build
system into the master.

Summary of changes:
* Introduce private header <directories.h> with constants for a good
  deal of paths that should usually be retrieved via find_directory().
* Replace hard-coded paths by using find_directory() or the
  <directories.h> constants (e.g. in drivers and the kernel).
* Add find_directory() constants needed for package management.
* Add __HAIKU_ABI_NAME and B_HAIKU_ABI_NAME macros.
* src/apps/deskbar: BeMenu.* -> DeskbarMenu.*,
  DeskBarUtils.* -> DeskbarUtils.*
* Change deskbar menu settings directory from ~/config/be to
  ~/config/settings/deskbar.
* Other smaller cleanups, changes, and fixes.
2011-11-25 06:17:07 +01:00
Alexander von Gluck IV
cb050a33be Add support for thermal status queries on newer chipsets
* add temperature query support for Juniper, Sumo, Evergreen, and North Islands
* add missing thermal defines for evergreen cards
* northern island cards use the evergreen thermal calculations
2011-11-24 19:42:45 -06:00
Oliver Tappe
8fd51c0819 Use ErrnoMaintainer in setlocale() to protect errno.
* this avoids spurious errno changes leaking into application code,
  which could become confused - i.e. 'rm' on a gcc4 build would always
  prompt for confirmation

I spend a couple of hours hunting down the behavioural difference
between gcc2- and gcc4-builds and it turns out that the reason for that
is that gcc4's libstdc++-code initializes its own locale data via the
POSIX calls, which trigger (correct) errno value changes, which were the
ones leaking into application code.
2011-11-24 23:48:19 +01:00
Oliver Tappe
59e43b2ac9 Add tracing to some locale backend functions. 2011-11-24 23:48:18 +01:00
Oliver Tappe
ae90193596 Introduce __set_errno() throughout libroot.
* add errno_private.h, which defines the __set_errno() macro with
  and without tracing
* instead of setting errno manually, all libroot's code now invokes
  __set_errno(), which makes it much easier to trace changes to errno
* redirect glibc's use of __set_errno() to our own version
2011-11-24 23:48:18 +01:00
Jérôme Leveque
6fabf01910 ice1712: Style cleanup and improvements 2011-11-24 20:54:41 +01:00
Jérôme Duval
dea8f9c766 usb_printer: support for alternate interfaces, not just the default one.
* Tested with a Profilic USB-Parallel adapter and a Laserjet printer.
2011-11-24 18:59:42 +01:00
Philippe Saint-Pierre
6b41836304 Add missing break statement
Fix CID 3304
2011-11-23 20:57:12 -05:00
Philippe Saint-Pierre
e904435328 Missing break statement
Resolves CID 3401
2011-11-23 20:00:25 -05:00
Oliver Tappe
c894d1868e Bring rewritten multibyte-support into repository.
* update copyrights of locale backend files

Multibyte-support has been rewritten to use ICU as backend.
While this does not necessarily work properly in every aspect
(e.g. the shell still has [different] problems with multibyte-
characters now), it does fix #6263 and #7700.
2011-11-23 19:55:34 +01:00
Oliver Tappe
53c09cffcb Actually store & use our assigned TLS-key (OOPS!) 2011-11-23 19:32:17 +01:00
Oliver Tappe
5c112a16ff Reset mbstate to initial in wcrtomb() with 0 wchar. 2011-11-23 19:31:13 +01:00
Oliver Tappe
9161a59746 Fix build of libroot-addon-icu with gcc4. 2011-11-22 23:27:17 +01:00
Oliver Tappe
bb79d18614 Drop no longer needed multibyte stuff from glibc. 2011-11-22 18:56:41 +01:00
Oliver Tappe
b4435552a7 Drop our old, limited multibyte implementation. 2011-11-22 18:38:43 +01:00
Oliver Tappe
cc5eca7554 Activate our new multibyte implementation.
* add implementations for the following multibyte-related
  functions:
    btwoc()
    mblen()
    mbrlen()
    mbrtowc()
    mbsinit()
    mbtowc()
    wcrtomb()
    wcswidth()
    wctob()
    wctomb()
* the implementation of the above function live in a symbol
  named __<name>, the above symbol names are defined as a weak
  alias to the internal ones - TODO: we need to make sure to
  only invoked the internal functions (i.e. prepended with __)
  in order to avoid problems with symbol preemption.
* deactivate the limited mb implementation we provided before,
  as well as respective stuff from glibc
2011-11-22 18:31:27 +01:00
Oliver Tappe
28ae43d033 Add multibyte-support to ctype-locale backend.
* add actual converter methods MultibyteToWchar() and WcharToMultibyte()
  to locale backend and implement them in the ctype subpart
* add management code for maintaining converters referenced by mbstate_t
2011-11-22 18:17:58 +01:00
Oliver Tappe
e0eb1d38c4 Let MB_CUR_LEN lookup the actual value.
* instead of yielding 1, MB_CUR_LEN now looks up the correct
  value in the ctype data provided by the locale backend
2011-11-22 17:32:39 +01:00
Oliver Tappe
bf5ff48092 Use TLS and converter manager in locale backend. 2011-11-22 17:17:18 +01:00
Oliver Tappe
bcadc4ca66 Start work on multibyte-support in locale backend.
* add ICUThreadLocaleStorageValue, which will be used to maintain
  per-thread ICU converters
* add ICUConverterManager
2011-11-22 16:55:39 +01:00
Oliver Tappe
02606f712c Provide BReferenceable in libreferenceable.a, too.
* the upcoming multibyte-implementation in libroot's ICU locale
  backend is going to use this, so it's not good enough to provide
  BReferenceable only in libbe.so
2011-11-22 16:43:53 +01:00
Oliver Tappe
3a57f54e4d Glibc-features: protect against existing __STDC_ISO_10646__.
* we define it in our compilers now, but glibc expects to define
  this itself - we let our own version overrule
2011-11-22 16:34:18 +01:00
Oliver Tappe
fc4fa46848 Fix charset and drop debug output in gnulib-test-btwoc. 2011-11-22 16:21:03 +01:00
François Revol
a8eaac6934 U-Boot: board-specific setup is already in build/jam/board/ 2011-11-22 02:27:11 +01:00
Axel Dörfler
e2c30bd6c2 Forgot to include the Jamfile in the commit.
* The socket API is now actually available.
2011-11-22 00:00:33 +01:00
Axel Dörfler
29e07dd0eb Added a buffered DataIO subclass.
* Only the read path is tested so far.
2011-11-21 23:55:13 +01:00
Alexander von Gluck IV
0cd972316d Add first hints of thermal monitoring on radeon cards
* add a few missing/needed header defines
* show GPU temp in millidegrees C on r600/r700
* evergreen+ support soon
* function may be moved to driver long term once testing done
2011-11-21 17:54:27 -06:00
Alexander von Gluck IV
97b846e874 Style fix gpu_state naming, cleanup
* correct naming on gpu registers that effect MC idle state
* cleanup MC idle failure situation, we are stuck and
  need to try the changes anyway.
2011-11-21 17:00:07 -06:00
Alexander von Gluck IV
28e71fb070 Fix rookie tab typo, no functional change 2011-11-21 17:00:06 -06:00
Axel Dörfler
0e478f5aec Added experimental version of a Socket API with SSL support.
* Each class has a Socket() method to retrieve the underlaying file descriptor
  to be able to do the more advanced stuff, if necessary.
* A server socket is yet missing, but the rest is pretty much covered.
2011-11-21 22:07:52 +01:00
Alexander von Gluck IV
db528c0065 Clean up engine and hooks
* clean up radeon_hd engine tracing
* clean up radeon_hd engine
* clean up radeon_hd hooks
* add engine accelerant count function
2011-11-21 14:52:45 -06:00
Rene Gollent
fd651d785a Fix issues with child creation in BMessage nodes.
BMessageValueNode and BMessageFieldNode weren't correctly setting
the children created flag. This would result in duplicates of
some of the nodes showing up, especially in the case of nested messages.
2011-11-20 23:25:31 -05:00
François Revol
75e4ff02d0 Style cleanup 2011-11-21 03:19:31 +01:00
François Revol
1cdb5905fc U-Boot: Print the panic message also to the serial port
It seems puts() currently hangs when used in panic(), will need some more work.
2011-11-21 03:00:07 +01:00
François Revol
70ac17baab U-Boot: Cleanup; s/arm/$(TARGET_ARCH)/g
U-Boot is not only about arm...
2011-11-21 01:36:43 +01:00
François Revol
d1460ff57b ARM: Rename flash and mmc base generic targets
They are not so much arm-specific, really.
We now have haiku-flash-*image variations,
and haiku-mmc-image.
2011-11-21 01:30:02 +01:00
François Revol
1d6f7e86ee ARM: Use proper Jamfiles for u-boot/arch/ subdirs 2011-11-21 01:22:32 +01:00
François Revol
e3591817b3 ARM: move kernel calling code to arch specific file
* needs some more cleanup.
* had to change gUBootOS to 32bit to avoid a linker bug.
2011-11-21 01:22:32 +01:00
Alexander von Gluck IV
3383e56426 Improve GPU memory controller idle check
* style fix
* add better tracing for non-idle memory controller conditions
2011-11-20 16:58:47 -06:00
Alexander von Gluck IV
021332df5d Improve GPU memory controller setup on later chips
* Fix bug where we setup MC twice on Evergreen+
* Northern Island chipsets use the Evergreen MC setup (just cosmetic)
2011-11-20 16:32:59 -06:00
Rene Gollent
b07517d9ed Style fix. 2011-11-20 08:50:18 -05:00
Humdinger
244e14532b Correct spelling. Thanks Loïc. 2011-11-20 11:45:11 +01:00
Rene Gollent
11102e3848 Reworked GUI settings storage.
- Simplified things so each window simply records all its settings into
  a BMessage, which is what ultimately goes into the actual UI settings.

- Added settings storage/retrieval to the various sub views of the
  team window. This means that the column widths/positioning on all
  views hosting a column list view are now also preserved and restored.
2011-11-19 18:17:40 -05:00
Rene Gollent
79dbafbc66 Add GUI archiving utility functions to build. 2011-11-19 18:17:39 -05:00
Rene Gollent
1483288fe1 Simplify archiving functions. 2011-11-19 18:17:37 -05:00
Rene Gollent
258d8821ea Simplify GUITeamUISettings to be simply message-based. 2011-11-19 18:17:36 -05:00
Rene Gollent
29ca41d541 Add utility functions for saving/restoring the state of a Table.
For the time being, these are simple wrappers around BColumnListView's
{Save,Load}State() functions.
2011-11-19 18:17:34 -05:00
Rene Gollent
0c07f01eb6 Modify TeamWindow to use factored out archiving functions. 2011-11-19 18:17:33 -05:00
Rene Gollent
8314c36b58 Add GUISettingsUtils class to house settings utility functions. 2011-11-19 18:17:31 -05:00
Jérôme Duval
b1f9573f59 btrfs: added support for zlib decompression of inline extents.
Reuse code from tarfs to decompress zlib compressed inline extents.
No idea yet on how to decompress regular extents which are currently
served by the file cache.
2011-11-19 23:34:45 +01:00
Oliver Tappe
a1721a7c30 Remove superfluous link to changelog.txt of bonnie++ testsuite.
* Eclipse's Git-plugin chokes on symlinks, and since this is the
  only one in our repo and it isn't needed at all, it has to go
2011-11-19 13:27:30 +01:00
Jerome Leveque
8519dc0f22 Internal routing management for ice1712 audio driver
* internal chip routing management.
* style cleanup.
2011-11-18 19:20:25 +01:00
Michael Lotz
8a5fb91c07 Stricter tests for PCI bridges at interrupt routing.
Validate the candidate child device a bit more by checking the device ID
and the base and subclass of the device. We don't even know if the child
is still on the PCI bus and some firmware may mark disabled devices by
simply invalidating one of these values. Possibly fixes #8111.

Added TODO concerning that we might not want to fail at all since we
ensure that we matched all devices after routing preparation at which
state we would notice any missing child devices anyway.
2011-11-18 13:03:46 +01:00
Jérôme Duval
5eac5217a6 Update iprowifi4965 firmware.
Update iprowifi4965 firmware to 17.168.5.3 for iwlwifi-6000g2a.
2011-11-17 19:34:14 +01:00
Rene Gollent
23829e4e74 Adjust SaveSettings() to take into account split view method naming changes.
Remove unnecessary saving of collapsible property.
2011-11-17 09:12:49 -05:00
Rene Gollent
7b27c8fc41 Adjust method naming. 2011-11-17 09:12:47 -05:00
Rene Gollent
7449551dab Save/restore the collapsible and visible properties on the splitters as well. 2011-11-16 22:20:26 -05:00
Rene Gollent
6beb27d4a1 Add {Get,Set}ItemVisible() accessors and setters. 2011-11-16 22:19:02 -05:00
Rene Gollent
6d16dcfa0c Add GetCollapsible() accessor to BSplitView/Layout. 2011-11-16 21:43:35 -05:00
Michael Lotz
35632c56af Fix harmless oversight marking pages with the wrong state.
While the log of hrev35726 says that unusable page ranges are supposed
to be marked with PAGE_STATE_UNUSED and allocated ones with
PAGE_STATE_WIRED, both actually marked with PAGE_STATE_UNUSED.
2011-11-16 11:06:46 +01:00
Michael Lotz
4200073542 Tiny optimization by skipping a no-op iteration.
We initialize the physicalPagesEnd from physical_memory_range[0] so
re-evaluating that range is a no-op.
2011-11-16 10:56:16 +01:00
Michael Lotz
3dbd9c1148 Fix the LIMIT_AVAILABLE_MEMORY debug option.
When limiting the available memory by reducing the page count it may not
be enough to just limit sNumPages. Depending on the physical memory map
non existing pages between ranges (sNonExistingPages) would still be
added up and later subtracted from the sNumPages, resulting in a wrong
max page count. Also due to the fixed removal of non existing page
ranges the actually available memory would usually not be the amount
set via LIMIT_AVAILABLE_MEMORY.

Instead we now calculate the available memory when going through the
physical memory ranges and limit/exit as soon as we've reached the
desired amount of available memory (also ignoring further non-existing
pages).
2011-11-16 10:40:56 +01:00
Rene Gollent
4c43e5395e Fix incorrect storage of breakpoints.
When a breakpoint is asked to archive itself to a message, ensure that
the message is empty before writing. Fixes breakpoints past the first one
being broken on restore due to each breakpoint archive containing
the combined settings of all previous breakpoints.
2011-11-14 18:49:53 -05:00
Alexander von Gluck IV
cf225839c2 Fix WebWatch build, remove __declspec(dllexport) 2011-11-14 14:59:31 +00:00
Alexander von Gluck IV
f09b888e61 Fix login window width to prevent time / date being cut off 2011-11-14 14:24:31 +00:00
pulkomandy
ff49e36ea9 Fix BSnow localization.
* Having defines in a header that are used only a single time is not helpful.
  * B_TRANSLATE in a macro is only expanded when the macro is used, so it escaped collectcatkeys eyes.
2011-11-14 20:39:41 +01:00
Michael Lotz
c12f51264b Ensure the sanity of the stats returned, make the TODO a Note.
* Ensure that we don't underflow the used_pages count and that used
  + cached pages don't overflow max_pages. As there is no locking the
  values may change while we read them so that such situations could
  arise.
* Make the TODO about the missing locking into a Note explaining the
  above, as it is not really worth adding locking here. The stats are
  only informational.
2011-11-14 19:07:37 +01:00
John Scipione
4d3d4878a5 Patch by taos to add localized catalog for the Keymaps Modifier keys window.
Due to a missing entry in Keymap's Jamfile, the localized strings of
ModifierKeysWindow.cpp are not yet included in the corresponding catalog
on HTA.

The attached patch adds ModifierKeysWindow.cpp to DoCatalogs and changes 'Ok' to 'OK'.

Fixes #8127
2011-11-14 11:50:51 -05:00
Alexander von Gluck IV
5a2c35728d Improve legacy card support and cleanup
* break apart encoder type lookup to share with legacy
  connector probe
* add function to check for external encoders
* reduce chip requirement to Avivo+ from R600 for register population
2011-11-13 23:30:05 -06:00
Philippe Saint-Pierre
8458b41ba6 Merge branch 'master' of ssh://git.haiku-os.org/haiku 2011-11-13 22:21:17 -05:00
Philippe Saint-Pierre
a9e957e2de DiskUsage: Implement truncation in tabs labels
* To allow more devices to be shown and accessible within
  DiskUsage, truncate the columns names if necessary.

Might help but not quite fix #6800.
2011-11-13 22:20:25 -05:00
Rene Gollent
56f0b3baa9 Merge branch 'debugger' 2011-11-13 20:23:53 -05:00
Rene Gollent
72d140460d Remember the last source location path chosen by the user.
- When the user chooses the location of a source file via the file panel,
  we now preserve the file panel so it can remember its previous location
  when invoked again.

Resolves the other part of #8095.
2011-11-13 20:19:10 -05:00
Rene Gollent
f7337f78ee Fixed intelligent file location services in Debugger.
- When adding files/directories into the file manager, we now also take care
  to add them to their respective parent entry lists as well. This allows the
  intelligent location functions to actually traverse directories to update
  all sibling/parent locations properly as needed.

- Slight changes to ensure that the implicit/explicit status of the location
  can be passed around throughout the process. Needed for the above to work.

Resolves the intelligent location portion of #8095.
2011-11-13 20:13:56 -05:00
François Revol
478dc9887e PPC: Preliminary untested boot support for Common Firmware Environment
CFE is used in the upcoming Amiga X-1000 dualcore PPC board.
* Largely inspired by the OF and U-Boot code.
* Still largely stubbed out.
* The loader builds but I don't have a machine to test it. Anyone interested?
2011-11-14 01:31:50 +01:00
Michael Lotz
5247333d36 Don't do the heap size calculation when using the slab as heap.
The initial heap size calculation only applies to the legacy/debug
heap, so it isn't needed when using the slab as kernel heap.
2011-11-13 22:20:24 +01:00
Michael Lotz
a28bab4790 Add the object pointers to the panic messages. 2011-11-13 22:18:29 +01:00
Michael Lotz
3733c51d38 Fix the computation of used memory and add a TODO.
* The altered used pages calculation of hrev43168 wasn't correct, as
  the inactive page queue may (validly) contain mapped pages as well.
  Those would then get counted twice (as they are included in
  gMappedPagesCount already).
  Instead we calculate the used pages from the total page count, minus
  everything we account for otherwise. Doing it this way is possible
  without introducing any additional counters, as all the counts to
  subtract are already present (as opposed to some of the ones that
  would be needed for adding the counts up). Fixes #8109.
* Added TODO regarding the problem of not locking any of the counters
  which runs the risk of them getting modified while we haven't yet read
  all of them.
2011-11-13 22:02:36 +01:00