49179 Commits

Author SHA1 Message Date
Adrien Destugues
76b3c7f420 More noSSL build fixes. hrev46692 2014-01-17 11:21:13 +01:00
Adrien Destugues
0876ab98f9 fixed gcc2 package, following atomic_add change. 2014-01-17 10:53:29 +01:00
Adrien Destugues
e1caa56b1e Add another mssing string::compare prototype.
Matches buildtools change 8b70c20ed25f905e7e217376c9e2f65a8dee6729.
hrev46691
2014-01-17 10:00:32 +01:00
Pawel Dziepak
d0f2d8282f Merge branch 'scheduler'
Conflicts:
	build/jam/packages/Haiku
	headers/os/kernel/OS.h
	headers/os/opengl/GLRenderer.h
	headers/private/shared/cpu_type.h
	src/add-ons/kernel/drivers/power/acpi_battery/acpi_battery.h
	src/bin/sysinfo.cpp
	src/bin/top.c
	src/system/kernel/arch/x86/arch_system_info.cpp
	src/system/kernel/port.cpp
hrev46690
2014-01-17 04:06:15 +01:00
Pawel Dziepak
0269dd284e Revert "scheduler: SCHEDULER_EXIT_FUNCTION() is not needed"
This reverts commit 667617ad043a4587d8d366d5192d9ad291cfa37a.

Scheduler profiler uses CPU local data to store function information, hence
arch_thread_context_switch() usually is not a problem. However, when
we switch to a new thread we end up scheduler_new_thread_entry() instead
of scheduler_reschedule() what may corrupt data collected by the profiler.
2014-01-17 01:55:42 +01:00
Pawel Dziepak
3dce49af0e scheduler: Cache quantum length 2014-01-17 01:55:42 +01:00
Pawel Dziepak
4835c216f7 scheduler: low_latency: Try to keep all cores busy 2014-01-17 01:55:42 +01:00
Pawel Dziepak
0d27a57cf1 scheduler: Fix divide by zero on CPU disable 2014-01-16 23:26:10 +01:00
Pawel Dziepak
f978518a52 scheudler: Cache ThreadData::IsCPUBound() result 2014-01-16 23:26:10 +01:00
Pawel Dziepak
b7d404c2df scheduler: Add ThreadData::{GetPriority, IsIdle, IsRealTime}() 2014-01-16 23:26:09 +01:00
Pawel Dziepak
093c220267 scheduler: Improve latencies 2014-01-16 23:26:09 +01:00
Pawel Dziepak
7f212f45c3 scheduler: Update used time when thread yields or sleeps 2014-01-16 23:26:09 +01:00
Pawel Dziepak
dd8a866adc libroot/x86: Fix indirect jump hrev46689 2014-01-16 20:18:22 +01:00
Pawel Dziepak
79c9b824e4 libroot: sync() should not return any value 2014-01-16 20:18:22 +01:00
Murai Takashi
f1a28e35ec Fix icon-o-matic build with gcc 4.8 (x86_64)
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
hrev46688
2014-01-16 17:51:27 +01:00
Adrien Destugues
e395fc4f3b NetworkCookieJar: use-after-free, memcpy overwrite
* Add some tracing, std::nothrow and null checks
* The HashString class doesn't like SetTo being called with a substring
of the current key, so use a copy of it instead.

Fixes #6667.
hrev46687
2014-01-16 16:54:51 +01:00
Adrien Destugues
547c1486ff Add some missing std::nothrow
... and allocation failure checks.
2014-01-16 13:29:15 +01:00
Adrien Destugues
b70c72a692 Fix concurrency issues in BSecureSocket
* Use pthread_once to initialize the SSL context once, in a thread-safe
way.
* Do not delete the BIO immediately when closing a connexion, instead
delay this to the destructor. This makes sure the protocol loop is done
running when we do that.
* Instead of creating a new BIO when we reconnect an already used
connection, create the BIO upfront, and reuse it with the new file
descriptor.
* Fix a memory leak: the SSL struct from OpenSSL was never freed, only
the BIO was.

Fixes #10414.
hrev46686
2014-01-16 11:25:47 +01:00
Adrien Destugues
67af469ef0 Fix time_t/bigtime_t mixup.
Thanks stippi for noticing!
2014-01-16 09:41:01 +01:00
Adrien Destugues
3db3864644 Fix crash when trying to open a non-existing file. hrev46685 2014-01-16 09:30:13 +01:00
Adrien Destugues
385a7d89b7 More style fixes. 2014-01-16 09:30:12 +01:00
John Scipione
969fac14a7 Evaluate asynchronously in a separate thread
Show calculating animation
hrev46684
2014-01-15 18:54:12 -05:00
Adrien Destugues
159d1fb69a Style fixes, build fix with OpenSSL disabled. hrev46683 2014-01-15 23:32:10 +01:00
Jérôme Duval
66a7f29f59 x86_64: include the "32" dir when targeting 32-bit
* helps with building boot loader with GCC 4.8
hrev46682
2014-01-15 22:45:45 +01:00
Adrien Destugues
00b65b2d7b FileRequest: multiple fixes
* Don't crash when opening a symlink, traverse it instead.
* Add a ".." entry to navigate to the parent folder
* Set the encoding to utf-8 in the MIME header, but this doesn't seem to
work.
hrev46681
2014-01-15 20:20:58 +01:00
Adrien Destugues
4e4396fa46 Fix build. hrev46680 2014-01-15 17:52:39 +01:00
Adrien Destugues
5ebdc79955 SecureSocket: add some certificate support
* Instead of creating an OpenSSL context ofor each socket, use a global
one and initialize it lazily when the first SecureSocket is created
* Load the certificates from our certificate list so SSL certificates
sent by servers can be validated.
* Add a callback for signalling that certificate validation failed, the
default implementation proceeds with the connection anyway (to keep the
old behavior).
* Introduce BCertificate class, that provides some information about a
certificate. Currently it's only used by the callback mentionned above,
but it will be possible to get the leaf certificate for the connection
after it's established.

Review of the API and implementation is welcome, before I start making
use of this in HttpRequest and WebKit to allow the user to accept new
certificates.
hrev46679
2014-01-15 17:45:21 +01:00
Alexander von Gluck IV
b11772acca build: Update x86_gcc2 gcc packages
* Resolves problem with secondary arch builds
  not picking up secondary os kit headers
* Still need to build x86 gcc packages
* No binary changes, shouldn't need a bootstrap
hrev46678
2014-01-15 00:45:59 -06:00
Alexander von Gluck IV
7c28f77332 system: Improve AMD CPU detection
* Several CPUID's were thrown into the Athlon 64
  catch all.  Add Sempron 64 and correct CPUIDs
  solves #9553
* Add better AMD A-Series detection
hrev46677
2014-01-14 20:24:02 -06:00
Adrien Destugues
e326520241 Fix bitmap scaling
Bug introduced in 810f0a42e50b32d17c478f0bdf73b1b34d315ad0.
The uint8 cast were also acting as masks for each of the pixel
components, moving them out of the multiplications made things go wrong.

Use rgb_color instead of messing with bitshifts and masks for better
readbility (the colors are out of order, but the processing is the same
on each color so the end result is valid).
hrev46676
2014-01-14 19:12:45 +01:00
Adrien Destugues
7292163915 Add a placeholder icon to the URL bar
... shown when website has no favicon.

This avoids the URL moving by 16 pixels as the favicon is downloaded and
rendered.

Fixes #8888.

The icon is from Zumi's BToolbar set ("insert link") with some
tweakings. Something less colorful may be better.
hrev46675
2014-01-14 14:28:25 +01:00
Adrien Destugues
a98f119a60 Fix drawing glitch with small text sizes.
The GroupView sometimes has visible pixels when the text size is smaller
than the favicon height. Draw those with the same color as the textview
background.
hrev46674
2014-01-14 12:08:34 +01:00
Adrien Destugues
48af26c7d3 Don't reuse same tab for multiple bookmarks.
As WebKit is asynchronous to the window, when launching a request in a
BWebView, IsBlankTab() will keep returning true until it gets the
BMessage and updates its state.

When opening bookmarks or refs, we would send them too fast, not detect
this, and reuse the same tab for several items. Make sure the blank tab
is only used once when looping over the refs, and force opening all
remaining refs in new tabs of the same window.

Fixes #6625.

Also optimizes the ref loading by not looking up the window for each
ref. Pick one window, then use it for all the bookmarks in the loop.
hrev46673
2014-01-14 11:27:07 +01:00
Adrien Destugues
dd71f18175 Open bookmarks in the current window
* Instead of looking for the first window in the workspace, add the
current one to the message.
* Fixes #6623.
hrev46672
2014-01-14 10:31:41 +01:00
Kevin Harris
d21e9097b6 Use configured search string for searching
- The search query position is signified by %s in the search string,
- Automatically migrate the old default search string to the new one.

Patch from #9926 with some rework from me.
hrev46671
2014-01-14 09:39:42 +01:00
Freeman Lou
e13de87284 Installer: closing EULA with Alt-W continues to main app
* Shortcut issue - closing EULA window with Alt-W continues to main
  application window instead of sticking windowless application in
  the Deskbar tasks list. The idea is closing only the one window
  of two;
* Fixes #9982.

- GCI 2013
hrev46670
2014-01-13 20:01:04 +01:00
Jonathan Schleifer
9fc69d1b00 runtime_loader: Add __dso_handle.
The symbol is needed for global objects. Usually, GCC also requires
this, but for some reason, the linking error only occurs when using
Clang.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
hrev46669
2014-01-13 19:35:34 +01:00
Jonathan Schleifer
e929cd2f8f ipv6 datagram: Fix Clang complaining about a flexible array member.
Interestingly, [0] should be as invalid in C++ as [] in this case, yet
Clang refuses [], but accepts [0].

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-01-13 19:16:31 +01:00
Jonathan Schleifer
9c707f06a2 udf: Move constant to header.
This way, it is a compile time constant and Clang does no longer
complain about dynamic arrays of non-POD types.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-01-13 19:15:58 +01:00
Jonathan Schleifer
76b12d6056 StackOrHeapArray: Add missing include of cstddef.
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-01-13 19:14:49 +01:00
Jonathan Schleifer
3d916a2cd7 Intel Partition Table: Remove dummy atomic_add.
This dummy was intended for boot code, however, atomic_add seems to be
already properly defined in boot code.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-01-13 19:14:34 +01:00
Jérôme Duval
a1c015a924 iprowifi4965: added several firmwares. hrev46668 2014-01-13 18:03:02 +01:00
Adrien Destugues
0e766ecb5b allow BNavMenu to traverse symlinks
* Patch by stpere
* Fixes #6780.
hrev46667
2014-01-13 10:46:09 +01:00
Adrien Destugues
9ab54f9475 Filerequest: UrlDecode() the request.
Makes things work even if the filename has some URL-disallowed
characters (spaces, utf-8, or otherwise).
hrev46666
2014-01-13 09:18:42 +01:00
Stephan Aßmus
4c9d2df499 HaikuDepot: Forgot to rename RatePackageWindow.cpp in DoCatalogs hrev46665 2014-01-13 09:10:43 +01:00
Adrien Destugues
b3cc244542 Simplify cookie string-ification code. hrev46664 2014-01-13 09:05:19 +01:00
Adrien Destugues
aa5101ce5c Update HaikuWebKit package to version 1.2.3.
Older versions will not work anymore because of the API changes in
network kit (removal of nonstandard B_PROT_* status codes). x86 and
x86_64 packages have to be updated again.
2014-01-13 09:02:35 +01:00
Adrien Destugues
024e81af86 Update UserBuildConfig readme and sample
AddOptionalHaikuImagePackage is replaced with AddHaikuImagePackages.
2014-01-13 08:05:34 +01:00
Adrien Destugues
121a158f9c Lua: update to bugfixed package
The previous version didn't work at all.
2014-01-13 08:05:33 +01:00
Adrien Destugues
3d864cd870 Remove B_PROT_* and related code
Use standard error codes instead.
This allows using error code returned by the underlying functions
directly, and makes it possible to use strerror for debugging. So, we
can also remove StatusString() from the various *Request classes.
2014-01-13 08:05:32 +01:00