It's not used for anything by the OS but userspace might want
to use it for its own purposes.
Change-Id: Icda4bcd6de9d68596555e81293c8bd075f80a2a4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7511
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Branch inside exception vector slot is emitted through PLT veneer,
which clobbers x16 and x17.
Making the function static removes the veneer, and fixes the problem.
Change-Id: If8810999675b6e36926be9806e23a78b7e5c0f10
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7509
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This is no-op for 32 bit platforms because `int32` is defined as `long` there.
Change interrupt vector number from 64 bits to 32 bits for 64 bit platforms.
Change-Id: I52d1ad616cab16488804e9733c7afaf772a670ba
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7507
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
It has been replaced by Noto as the default font for CJK characters and
is not referenced anywhere else anymore.
Change-Id: I9eb706531deb44395d71e0a04b0ec5e2f2dea230
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7499
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Was giving:
"warning: long int format, different type arg (arg 2)"
On beta4 32 bits.
Change-Id: Ifd50eaff8d40bf31d24db4441b15aad5590b8c95
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7502
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
This is now managed in another class entirely.
Change-Id: Ib415b17b5785b9077b42146fff97d85184b23a67
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7478
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
HDS is soon going to be enhanced to deal with more than
just the two-character ISO language codes that it
currently supports. The logic in HD is currently expecting
that HDS will only supply these two character codes. This
change is about making adjustments to be able to cater to
any ICU language IDs from HDS.
The naming in HDS is still going to continue to use the
terminology that it currently does; it will call the
identifier for a language a "natural language code". The
HD source will instead reflect the nomenclature of ICU
and call the same thing a language ID.
Change-Id: Ib138c2e3b7b667edf15cd497c2f710f80b3c29f8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7424
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
BFont::LoadFont can now use an index (0-based) and an optional named-instance (1-based)
to select the font variant from a file.
BFont::LoadFont can also use an index when loading from memory.
Change-Id: I0ce3eb6cc77d32cf43847416561eafe3063ca693
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7402
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Máximo Castañeda <antiswen@yahoo.es>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
The Local address will apparently be set by the module->bind() call
in EndpointManager::_Bind(), while the Peer address will be set by
EndpointManager::SetConnection().
This means that if BindChild() fails for some reason, we will now not
be left in a state where the LocalAddress is set but we are unbound.
That could be the cause of #17058, as that panic occurs when
TCPEndpoint::IsBound() returns true, but we have not been added to
the bound hash.
Change-Id: I3121d0d99289d8cf83c7ed3c3e2d413feb6dad70
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7490
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
* Deleted all the unnecessary lines of code and replaced the tab view with its direct child view.
Also changed the MessageReceived Functions in order to incorporate the change.
[Review 1]: Added the required Whitespace
Fixes#18213
Change-Id: Ibe4e1c2e3cb3acca58b3cb76f93c8184157d3cfe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7489
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
* Replace GridLayout Implementation with the GroupLayout In order to fix the misalignment issues
It seemed that the GridLayout implementation for the alignment was causing issues in the position of the
two checkboxes. Replacing this implementation with the GroupLayout class fixes this issue in a rather
simple way. Made a certain fix (upon reading the review) in order to incorporate the fix for all font
sizes as well :)
[Review-nephele]: Removed the unwanted tab-space according to the rules listed in the style guide :)
Fixes#10475
Change-Id: Ic6804cf6c3d20261ab00ce4abd130c46e304e881
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7481
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Also makes DeskCalc use the Panel text color if the contast is
sufficient
Change-Id: Ibe2d0ad4ba5958f2629be3759091233ad86bcc9d
Change-Id: I51cd7a06e6ea236ec3325d1787ff72ad489fe868
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7488
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Also increase MSI message data size to 32 bits according to PCIe spec.
Remove 0xff check for MSI interrupts because it is potentially valid
interrupt vector number. Reject 0xff only for legacy pin interrupts.
- MSI-X supports up to 2048 interrupts per device that do not fit to
`uint8`.
- Non-x86 systems may use separate interrupt vector ranges for
hard-wired interrupts and MSI interrupts so `uint8` is not enough to
represent all of them.
Change-Id: Iaf9ffb197ec23db0f97ffe3ea756d28d7bfc8705
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7433
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This allows programs running on Terminal to do things like select text using
SHIFT+arrows, and SHIFT+{Home,End} (tested with "mcedit" and "turbo" editors).
Moved Terminal's shortcut for:
- "Switch to nex/previous tab" to: B_OPTION_KEY+{left,right}.
- "Scroll Up/Down" to: B_OPTION_KEY+B_SHIFT_KEY+{Up,Down}
(B_OPTION_KEY+{Up,Down} seems to be captured elsewhere?)
References for the added escape sequences:
https://www.emacswiki.org/emacs/CuaModeTerminalProblems
Change-Id: I1b418f003355348dee454fbc680a09c220e80a3e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7241
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
All that happens is we wait unnecessarily, and cause the low_resource
monitor to run a lot, so we should skip doing that here altogether.
Encountered while running Falkon (Chromium): some part of Chromium
repeatedly tries to allocate 10+GB, more than my system has, which caused
the system to "stutter" due to low-resource-monitor runs locking
various kernel subsystems. This prevents that problem.
BSpinner had its own fValue defined instead of using the one from
BControl. This results in the be:value in the message sent when the
control is invoked to always be 0.
Change-Id: I1cff5f30adbf5b1dede57a14377cd4e1db7a30d3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7428
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
* Use B_DOCUMENT_TEXT_COLOR and B_DOCUMENT_BACKGROUND_COLOR instead
of black on white in text views.
* Depending on HAIKU_DISTRO_COMPATIBILITY_OFFICIAL build flag, either
show the official Haiku logo or the Walter logo.
* If the official Haiku logo is used, show a version with black letters
if B_DOCUMENT_BACKGROUND_COLOR is light, and white letters if it's not.
* Remove the "installer" versions of the black-on-white Haiku logo.
Instead introduce "black|white-on-transparent" logos with a
transparent background.
* Fixed the leave shadows in logo Wonderbrush files. Especially the
yellow leave's shadow appeared too large and blurry.
Change-Id: I6d3ac384d2c96d91d35e6d6e85025c9e2064d59e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7419
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
While it's obvious which link is broken when the user double-clicks it,
it isn't when the link was tried to be opened by a script, or the
launch_daemon etc.
In case resolving a symlink fails, offer a button to call Tracker's
"Get info" panel with the broken link that has info about the link and
its target.
Change-Id: Id878d0ea3da0db65ade21dd4656c18ecba585784
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7434
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
While these three worked just fine on my old Atom N450 based netbook,
all caused:
"PANIC: SMAP violation user-mapped address [...] touched from kernel [...]"
on a newer netbook with a Celeron N4020 CPU, before this change.
Side note / drivers status:
- acpi_ac works pretty decently on both machines.
- acpi_lid wrongly returns 0 until you close the lid for the first time.
Reports correct values after that, but seems to cause power_daemon's
event loop thread to peg one core to 100%.
- acpi_thermal readings are a mixed bag. Critical temp values Seem OK on
both machines. Current value generally OK on the older machine, very wrong
on the newer (reports 429496728.6 C).
Change-Id: Ia387a0bd5b21bdba1de0f0cd9ded814aa1ecdc26
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7432
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Same as ping, our IP modules don't support connect()/send().
Just use sendto().
Change-Id: I19e9874a5e92ac69f1935d3b192e4d652d201692
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7430
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
the mapping was missing as noticed by Julian Harnath.
Change-Id: I8ea3420e1de543571daf82d8c16ec95ac3423826
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7431
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
BePac Deluxe checks the reported frame count against the actually
read frames count, and if the two do not match, it considers
this an error and bails out. So, we need to be as accurate as
possible here.
Additionally, fix Duration() for when start_time is nonzero,
and stay in integers where possible.
Fixes BePac Deluxe (again.)
Change-Id: Ic063fc15215dbfe3437d2430358227d7e2fe17fc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7422
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
* our ip modules don't support connect()/send(). Just use sendto().
* ping6 disappears, ping supports -4 or -6 to force IPv4 or IPv6
Change-Id: I1e982e354cc75d3a314c5bbbfffa0373e8f4d9af
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7427
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Change the value of `AT_FDCWD` from -1 to -100. Either value should work,
since the Haiku implementation currently interprets any negative value as
`AT_FDCWD`, however -100 is preferable to -1 since -1 is used for error
return values.
fixes#18809
Change-Id: I53f273dd595c39ea9e4576b90adbbf7f555107cf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7423
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>