Commit Graph

34547 Commits

Author SHA1 Message Date
Ingo Weinhold
45b01eb841 Added private system arch specific arch_cpu_defs.h header, currently defining
only a SPINLOCK_PAUSE() macro.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 14:16:48 +00:00
Ingo Weinhold
2f1e62186e mkbuiltins.c does not include builtext.h, it generates it. Resolves a cyclic
dependency that caused unnecessary bash rebuilds (#5750).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 13:39:14 +00:00
Ingo Weinhold
7f646d6952 parse.y includes builtext.h as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 13:37:38 +00:00
Ingo Weinhold
cf25e85b0c Update libbe version info.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 12:09:21 +00:00
Ingo Weinhold
71ad4aedd9 Switched trunk to R1 pre-alpha 3.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 11:50:36 +00:00
Ingo Weinhold
bf0a463e35 Introduced version constants for R1 alpha 2 and R1 pre alpha 3.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 11:41:00 +00:00
Stephan Aßmus
3d5f2c6f8d Patch by idefix, make sure the lists are properly scrolled to the selection
after showing the window. Thanks! Fixes #5576.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 08:46:29 +00:00
Stephan Aßmus
c9ec9c7211 Patch by augiedoggie: Remove the hardcoded translator_id values from Screenshot.
Fixes ticket #5733. Thanks a lot! (Note: small coding style fixes by myself,
so expect merge conflicts.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 08:21:21 +00:00
Ingo Weinhold
45538a5e31 x86_handle_debug_exception(): The values of dr6 and dr7 are only stored in
the CPU info, if x86_exit_user_debug_at_kernel_entry() was executed before,
i.e. if the debug exception occurred in userlands. In all other cases we need
to read the current register values. Fixes #5742, a regression introduced in
r35951.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-18 17:06:02 +00:00
Matt Madia
d546a6fb9c Patch by Andreas F?\195?\164rber:
Define Tar's dependency on LibIconv. Fixes #5745.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-18 13:39:57 +00:00
Jérôme Duval
02b361c0b0 add a newline after setwep status (patch from luroh #5739).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-18 09:41:44 +00:00
Siarzhuk Zharski
4607535f11 - Russian translation updated from HTA.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-18 07:01:21 +00:00
Jérôme Duval
8c6242d071 * revert previous commit
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-18 00:27:00 +00:00
Oliver Ruiz Dorantes
2db900d8f1 - Some refactoring on the event handling
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-17 20:10:47 +00:00
Ingo Weinhold
b9d586e9d9 Added wrappers for the spinlock functions.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-17 19:59:02 +00:00
Ingo Weinhold
ef1716f81b Patch by Lucian Adrian Grijincu: Added pthread spinlock support.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-17 19:38:01 +00:00
Jérôme Duval
c8d939eaa8 * hopefully display correctly Penryn based Pentium models (instead of Core 2 Extreme).
* fix a cache entry I introduced.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-17 16:20:27 +00:00
Jérôme Duval
42fb4f4050 * fstatat: the meaning of AT_SYMLINK_NOFOLLOW was reversed. Fixed #5731.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-17 11:39:01 +00:00
Clemens Zeidler
8bb679076d Set the write combine flag for the framebuffer area.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-16 15:29:30 +00:00
Ingo Weinhold
a34e7d0ec4 Set fTranslationMap to NULL in the constructor. Otherwise an error in
Create() could cause the destructor to crash.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-16 08:36:58 +00:00
Axel Dörfler
b44c25de42 * Factored out a single base class out of the three Keymap implementations we
had in our tree.
* Adapted Keymap, <input>keyboard, and consoled to use it - the additional
  functionality is implemented via a subclass in the first two cases.
* "keymap" will come next.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-16 07:47:41 +00:00
Scott McCreary
c2d5ae0960 Updated PCRE to 8.02
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-16 05:53:47 +00:00
Scott McCreary
ae85d9bebc Updated openSSL to 1.0.0, this required rebuilding openSSH, git, curl, neon, python, subversion, and perhaps others that will need to be updated.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-16 05:18:34 +00:00
Adrien Destugues
6bea662d4c Adding more flags. I did all the easy ones in batch mode, I'll let a talented graphist do the others.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 23:41:12 +00:00
Ingo Weinhold
89dc7e4875 Added private BPositionIO derived classes BFileIO and BFileDescriptorIO which
wrap a FILE* respectively a file descriptor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 22:19:27 +00:00
Ingo Weinhold
f71274580b * Private libroot locking primitives:
- Reimplemented mutex to use the _kern_mutex*() syscalls.
  - The initializer functions cannot fail anymore -- changed their return type
    to void.
  - Changed the initializer function semantics to not copy the name by default
    anymore (as in the kernel). Also added *_etc() versions of them that take an
    additional flags.
  - Added static initializer macros.
  - Made the mutex (and thus recursive_lock) lock functions non-interruptable.
  - Got rid of the "lazy" version. They are no longer needed, since the
    initialization of the standard types can be done statically and cannot fail.
* Adjusted libroot, runtime loader, and other code using the private libroot
  locking primitives to the new semantics.
* pthreads mutexes and condition variables:
  - Reimplemented using the _kern_mutex*() syscalls.
  - Consistently use POSIX error codes.
  - Fixed some not quite POSIX compliant behavior.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 21:52:49 +00:00
Ingo Weinhold
251e72542e Added TODO.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 21:48:12 +00:00
Adrien Destugues
0638c3ab4c * Add some more icons for better testing
* Use the country name instead of the language name to identify each icon
 * Cleanup, fixed copyrights, and some more checks to avoid crashing in case of a missing icon


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 21:34:00 +00:00
Ingo Weinhold
35ca8fd8aa Added various missing functions to the error mapper.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 21:23:46 +00:00
Ingo Weinhold
0dffa8d48e * remove_user_mutex_entry(): The next entry wasn't removed from its own list.
* user_mutex_unlock_locked(): Set or clear the locked flag depending on whether
  we wake up a waiter.
* _user_mutex_switch_lock(): The syscall cannot be restartable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 21:21:32 +00:00
Fredrik Holmqvist
186058c517 Some corrections and cleanup to ACPI Embedded controller:
* Exposed ACPI API needed by Embedded Controller
	This will be removed again if moved inside the bus manager.
	It also duplicates ACPI's own headers so it might go out of sync atm.
 * Added mutex to controller and fixed the mixup between acpi_status needed in int handlers and Haiku status.
 * Major code cleanup
	Not for headers as they are mostly redundant if we move the controller.
	Variable names still needs some cleanup

This makes the ACPI errors from the controller understandable. I get AE_NO_HARDWARE_RESPONSE now.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 19:23:43 +00:00
Jérôme Duval
dd41712c26 * added more L2 cache labels
* white space cleaning


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 19:16:55 +00:00
Michael Lotz
1da48c4149 Simplify the SetTrigger() code. The trigger is a single byte char anyway, so no
need to convert the looked up label position to a char code. Also actually make
sure that the trigger is lower case by doing an explicit tolower() instead of
assuming that it already is.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 18:56:34 +00:00
Michael Lotz
bae33cdad5 Automatic whitespace cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 18:54:30 +00:00
Adrien Destugues
ffbcecd489 Add support for flags in BCountry. The flags are stored as HVIF icon resources in liblocale.so.
Test french flag took from http://www.bastisoft.de/misc/flags/ (licence is very permissive), converted to HVIF with Icon O Matic.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 18:52:20 +00:00
Michael Lotz
8c4c164a91 Make the result a proper const char *.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 18:51:49 +00:00
Axel Dörfler
362b036d1a * Applied a slightly edited patch by Christophe Huriaux, as part of ticket
#5724: this adds a settable filename for the silent invocation, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 18:25:51 +00:00
Axel Dörfler
e3ce6e4be5 * Added warm reboot functionality based on a patch by Grey, thanks! It can be
invoked using the 'w' key.
* Checking allocations doesn't hurt.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 18:10:00 +00:00
Axel Dörfler
868aa7a0e0 * Added shortcut handling to the boot loader menu (in preparation of adopting
ticket #5312).
* Added shortcut 'b' to continue booting, 'r' to reboot.
* Consolidated asterisk style.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 18:07:40 +00:00
Joachim Seemer
1cae99d78e Updated welcome page. Thanks to all translators.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 18:02:06 +00:00
Joachim Seemer
71b14067a1 Updated userguide. Thanks to all translators.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 18:01:21 +00:00
Adrien Destugues
5e7931beaa Separate LanguageListView from LocaleWindow as it was occupying more than half of the file and will grow even more soon.
No functionnal change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 17:48:31 +00:00
Michael Lotz
2272ecea26 zooey+mmlr:
* Ensure that there is still buffer left when 0-terminating the buffer in
  RealText().
* Remove the fExtraCount member and instead make it into a constant as that's
  how it's used and more obvious.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 17:22:16 +00:00
Axel Dörfler
7af231d838 * Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 17:05:20 +00:00
Michael Lotz
5c4e7641a7 zooey+mmlr:
* Large cleanup in _FindLineBreak(), be a bit more clever by storing the found
  offsets instead of calculating them multiple times, use
  _TabExpandedStyledWidth() instead of _StyledWidth() and manual tab calculation
  which was also broken (it assumed tabs were consequtive which was possibly not
  the case).
* Modified CanEndLine() to also return true when going from non-whitespace to
  whitespace and the other way around which is more logical (so we'd break after
  the word and not after word + whitespace, even though we actually do that
  in the end by eating whitespace after words in _FindLineBreak()).
* The TextGapBuffer is not necessarily 0 terminated, so RealCharAt() needs to
  check if the index is at the end of the string and return 0 in that case.
  Before it would access the buffer "out by one" which could've lead to a crash.
* Simplified the gap moving calculations by removing some no-op calculations.
* Added debugger calls in TextGapBuffer in case of invalid use.
* Some minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 16:12:16 +00:00
Adrien Destugues
87158047dd Add a call in BCountry to get an icon for that country.
Untested and not working yet since we don't provide any icon.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 15:57:30 +00:00
Axel Dörfler
024bc08b2f * Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 15:51:47 +00:00
Michael Lotz
ec7d168081 Automatic whitespace cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 15:48:48 +00:00
Axel Dörfler
24386c2937 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 15:33:20 +00:00
Axel Dörfler
87e256c2e8 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 15:32:56 +00:00