65602 Commits

Author SHA1 Message Date
Augustin Cavalier
959d9cd069 kernel: Cleanups to the XSI message queue & semaphore implementations.
* Remove unused/unneeded parameters to Dequeue.
 * Make use of StackOrHeapArray.
 * Reorder syscall-entry checks for efficiency.
 * Inline the unlock-block method and unset variables in the process.
 * Reorder code for clarity and to reduce indentation.
2023-09-21 22:20:31 -04:00
Augustin Cavalier
f759ab2733 headers/compatibility/bsd: Update headers to remove BSD advertising clause.
Rewrite link.h entirely.
hrev57284
2023-09-21 18:38:10 -04:00
Augustin Cavalier
2e0e70b5bb libroot: Delete some old private math headers.
These haven't been needed or used in a long time.
2023-09-21 18:31:22 -04:00
Augustin Cavalier
d6b37ce996 packagefs: Fix missing unlocks in Volume package content node removal.
When breaking out of _RemovePackageContentRootNode() by encountering
a specified "endPackageNode", we need to unlock all directories.

This case is only possible to encounter when _AddPackageContentRootNode()
fails partway and invokes _Remove() to remove the just-added nodes.

Fixes a hang/deadlock encountered by Diver while testing some (disabled)
HaikuPorts recipes.
hrev57283
2023-09-21 14:53:06 -04:00
Alexander von Gluck IV
3e2b187899 build: Update arm64 build-packages for gcc13
Change-Id: I1143072d4783310f37ef68cd9e3793579f3388cb
hrev57282
2023-09-21 13:12:15 -05:00
David Karoly
1978148f9e boot/amiga_m68k: Handle, ExecDevice should be subclasses of Node
hrev55571 introduced several new pure virtual functions in Node,
none of which are implemented in Handle or ExecDevice any of their
descendants.

This change fixes the build after the Node/ConsoleNode refactor.

Change-Id: I098005df063160fd984e70da29ddb24a1d7a7133
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6940
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57281
2023-09-21 17:58:22 +00:00
David Karoly
45c84b2857 boot/atari_m68k: Handle should be a subclass of Node
hrev55571 introduced several new pure virtual functions in Node,
none of which are implemented in Handle or any of its descendants.

This change fixes the build after the Node/ConsoleNode refactor.

Change-Id: I825b90a114d83105f46d566e7fe1f644ba997ec5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6939
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57280
2023-09-21 17:57:43 +00:00
Augustin Cavalier
2903a69d4a network/ipv4: Fix NULL dereference in multicast-send.
Fixes the KDL in #18585.
While at it, add a missing NULL check and fix a leak.
hrev57279
2023-09-20 16:39:28 -04:00
David Karoly
39fa47a536 boot/next_m68k/mmu: implement missing functions
Change-Id: I78b51ab394c9083b081f12ca4e02f50904f67674
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6938
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
hrev57278
2023-09-20 18:47:12 +00:00
David Karoly
6393778b93 boot/amiga_m68k/mmu: implement missing functions
Change-Id: I1164ca30659684d8d273b58a7cc0ea33dde0a240
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6937
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-09-20 18:47:12 +00:00
David Karoly
3b7ddf557f boot/atari_m68k/mmu: implement missing functions
Change-Id: I7605abc7f5e7b5b15d6dd33ec3bd73777a0804aa
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6936
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-09-20 18:47:12 +00:00
David Karoly
ad29214d43 boot/libs: hush warnings for zstd on arm64
Change-Id: I971cdefd670d26e669e9bdfd9c9a29ca5508ff9d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6915
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57277
2023-09-20 18:45:57 +00:00
Alexander von Gluck IV
bcd89a79ad build: Update arm build-packages for gcc13
Change-Id: Idc18fb42e18165fc35f657e0a1d19de479c137ed
hrev57276
2023-09-20 10:30:55 -05:00
Humdinger
9e76d619a2 Terminal: Fix translation of "Colors" window title
Change-Id: I9a9f166dbdb4a2e008eabab53c9ab70f3439aa59
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6899
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57275
2023-09-19 08:49:30 +00:00
David Karoly
31199cd950 update bootstrap package versions for ppc
Change-Id: I84d8e32cbba725e952d0864c4a82028fa91b5209
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6912
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57274
2023-09-17 19:14:00 +00:00
David Karoly
ad115900db ppc: use generic_msi
Change-Id: Ibe9e80bc9853f529bc1f0ef3dad78cd37af82280
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6911
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57273
2023-09-17 19:13:19 +00:00
David Karoly
f76f6d8f57 libroot/musl: Import ppc atomic_arch.h.
Change-Id: I51b460b6a126cf401679ae2fd398445bd9969761
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6910
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57272
2023-09-17 19:12:54 +00:00
David Karoly
dc3b3e172d m68k: VMTranslationMap.h is not needed in arch_vm.h
Change-Id: Ica0efdeabaa73be0030e0522352c0c3bf311a9ad
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6913
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57271
2023-09-17 19:12:33 +00:00
David Karoly
420ca7cfe1 m68k: use generic_msi
Change-Id: Ifced80c25c08632ade10190658f2fc17b1de5309
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6909
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57270
2023-09-17 19:12:11 +00:00
David Karoly
edc473bb3a libroot/musl: Import m68k atomic_arch.h.
Change-Id: I33aef6b417177ac7b998715b60ced7f28be8c3eb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6908
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57269
2023-09-17 19:11:43 +00:00
Autocomitter
cadb5b63ec Update translations from Pootle hrev57268 2023-09-16 08:15:11 +00:00
Jorge Acereda
d51ee1e8bd Keymap: Add caps modifiers remapping
Refactored some functions.

Change-Id: Idb16b1298fcd8f2fbca256275d16fbc3584bdb55
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6842
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
hrev57267
2023-09-14 06:36:09 +00:00
David Karoly
d7b59fd308 libroot/musl: adopt default implementation for a_crash from upstream
Change-Id: I30a1075163c1702755c86d0bd85beeb75ad894d2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6907
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
hrev57266
2023-09-13 00:35:24 +00:00
Chris Roberts
2435c1bd28 filteredquery: whitespace cleanup
Change-Id: I3d52a6edaebc21c8f1e37521d4862f4d9d3da3c1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6906
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57265
2023-09-10 20:31:09 +00:00
Chris Roberts
d351cd366f filteredquery: link against libstdc++
Change-Id: I595b7ab6f374657222f1030655744c68bf2a893a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6905
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-09-10 20:31:09 +00:00
David Karoly
05f767f88d Debugger: add DWARFv5 constants to Dwarf.h
Change-Id: I81d3e3cc6d896ca90e8c10f01783cc294b91886f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6903
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev57264
2023-09-10 13:04:22 +00:00
David Karoly
dfc8e0741a update bootstrap package versions for m68k
Change-Id: I813ddbd1619b57aceac6f303e6ea716736d8db2d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6902
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57263
2023-09-10 11:43:30 +00:00
Chris Roberts
49f7074b65 filteredquery: miscellaneous fixes
* Remove the TFilteredQuery::GetNextDirents() stub as it was preventing the
results from showing

* Fix the getopt string so that a -p argument is recognized

* Move the folder_params declaration out one level so that it doesn't go
out of scope when needed

* Clean up the help output

Change-Id: If37c300b4b67773ffc33fd637c2ef9add3c12275
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6901
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57262
2023-09-09 21:18:20 +00:00
Autocomitter
f4de95a66b Update translations from Pootle hrev57261 2023-09-09 08:15:00 +00:00
Humdinger
5491ece2a4 PowerStatus: Rename 'battery low' sound, add 'critical' sound
* Renaming "Low battery" to "Battery low" so it's right next to
  "Battery charged" in the Sounds prefs event list.

* Adding "Battery critical" sound. I think it makes sense to have
  a different - more urgent - sound when there's only 15% left,
  compared to "Low" (30%).

Change-Id: I46b5975e5797a9c3a84d4619e697be162e79b1cf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6900
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57260
2023-09-08 15:12:04 +00:00
Zardshard
36830615dd Icon-O-Matic: Remove "using namespace" from header
Putting a "using namespace" statement (_USING_ICON_NAMESPACE in this
case) in a header file causes all source files that include that
header to use that namespace, regardless of whether they actually
wanted to.

Change-Id: I3ebf4ea3366f5f2b9068e3da88f40a7b4d98fd6b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6897
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57259
2023-09-04 15:36:53 +00:00
Trung Nguyen
ea2870c839 headers: Define static_assert for C11
Defines the `static_assert` macro in `assert.h` as required by
the C11 standard.

Change-Id: Ic25dc99537f995404b7b4280b72c6000a293a1df
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6916
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
hrev57258
2023-09-04 05:58:31 +00:00
Autocomitter
c079e6936f Update translations from Pootle hrev57257 2023-09-02 08:19:51 +00:00
Augustin Cavalier
75e1de3c23 libnetwork: Synchronize netresolv with NetBSD 9.3.
Some of the Haiku-specific modifications that were previously unmarked
are now clearly marked with #ifdef __HAIKU__.

BIND9-specific files containing private APIs never exposed in public
headers have been removed.

Tested with wget, curl, pkgman (Network Kit), WebPositive (WebKit/curl),
and Falkon (QtWebEngine/Chromium). All DNS-related operations seem
to still work just fine.

(One patch also imported from NetBSD trunk for GCC 12+ compatibility.)

Change-Id: I4a349577b24b4df008fd9cba5d3a322cd24397f1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6879
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57256
2023-08-31 23:38:47 +00:00
Augustin Cavalier
ac30bc0ef6 libnetwork: Remove lcl_sv.cpp.
This has not been included in the build for years, probably since the
initial NetResolv merge. Services are now returned via the "protocols"
file, and getservent() has no need for these utility functions.

Change-Id: If18bdd9593463b38a9aaedb7a621d0ddc15530e4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6878
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-08-31 23:38:47 +00:00
Augustin Cavalier
4dcc1ed654 kernel: Synchronize inet_addr.c to remove advertising clause.
Change-Id: I03665bcad679e3fddaea0d8a95663be12b003bd8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6877
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-08-31 23:38:47 +00:00
Augustin Cavalier
56241aab2f Zip-O-Matic: Fix and enable _SelectInTracker().
Based on a code example from humdinger.
hrev57255
2023-08-31 15:25:06 -04:00
Augustin Cavalier
711b36b44c Tracker: Merge SelectPosesListMode and SelectPosesIconMode.
There was a TODO comment about this, which dated all the way back
to the original OpenTracker import over 20 years ago.

There's still more cleanup needed, so I left another TODO.
2023-08-31 15:13:06 -04:00
Augustin Cavalier
46a6070b57 libroot: Replace strcspn and strchrnul with musl versions.
Removes the last BSD advertising clause from the "string" directory.
hrev57254
2023-08-31 15:10:19 -04:00
Augustin Cavalier
bc328a435b libroot: Import a lot of changes to stdlib, string code from FreeBSD.
Includes licensing clause removal. Also deleted 2 files that are
not used in the build and are not referenced anywhere else.
2023-08-31 15:10:19 -04:00
Augustin Cavalier
a573f9e4be libroot: Fix build of new time files under GCC2. hrev57253 2023-08-30 22:46:36 -04:00
Augustin Cavalier
a8e2f08853 libroot: Replace the old localtime fallback backend with musl code.
This allows for the deletion of quite a lot of ugly C89 code.
hrev57252
2023-08-30 22:32:58 -04:00
Jessica Hamilton
16c85099f9 libroot: Replace asctime[_r] with musl's.
This broke anyway in hrev56361.

Change-Id: I1e7e02b27d6fee4845c81cf6f229bca0048a0e61
hrev57251
2023-08-30 19:39:06 -04:00
Augustin Cavalier
b09c82377a libroot/locale: Minor fixes and expose internal POSIX locale.
* We can return early from duplocale() so set the "magic" flag early.
 * Initialize all fields up front.
 * Add an internal method __posix_locale_t() which returns a locale_t
   usable as a global C/POSIX locale type, and add the appropriate
   definition to the musl internal header.
2023-08-30 17:57:19 -04:00
Augustin Cavalier
2705bc6bdf libroot/locale: Fix indentation of locale_t.cpp.
Also adjust some braces. No functional change intended.
2023-08-30 17:55:04 -04:00
Augustin Cavalier
efdfb84038 signal.h: Look for _DEFAULT_SOURCE not __USE_GNU for sighandler_t.
Our features.h does not define __USE_GNU, and so applications trying
to use this GNU-ism would have to define it for themselves, even if
_GNU_SOURCE had already been specified.
hrev57250
2023-08-30 17:31:31 -04:00
Augustin Cavalier
8e8c7a073f Tracker: Reimplement BSlowContextPopup as BPopUpNavMenu.
BSlowContextPopup was mostly a duplicate class of BNavMenu
only on top of BPopUpMenu instead of BMenu. Now, BPopUpNavMenu
just subclasses BNavMenu and adds the few features of BPopUpMenu
neccessary.

Drag-and-drop of files using the pop-up nav menu seems to still work fine.

Change-Id: Ic1f49c5bed60fff7a3076a22f74aebc6eba51d57
2023-08-30 17:04:24 -04:00
Augustin Cavalier
18ee9c8397 Tracker: Add some missing includes.
These were implicitly picked up thanks to SlowContextPopup,
but that is about to change.
2023-08-30 16:51:07 -04:00
David Karoly
3f2464f759 Debugger: implement parsing for v4 line-info
Differences between DWARF v3/v4 for line-info:
- added new field maxOpsPerInstruction
  this new field will typically have the value of 1
  unless VLIW architecture is being used
  (which is not the case for Haiku)
- state machine contains a new field op_index
  it has any relevance only when maxOpsPerInstruction > 1
  i.e. on VLIW architectures
- added new operation DW_LNE_set_discriminator
  this is already implemented in LineNumberProgram.cpp

This implementation just reads maxOpsPerInstruction and
checks that it is set to 1, which is what we expect on
all architectures currently supported by Haiku.

Change-Id: I14755d615a0e2b3a5177928c4d8f9014940a5fcf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6876
Reviewed-by: Rene Gollent <rene@gollent.com>
hrev57248
2023-08-30 13:24:23 +00:00
Leorize
e86afc8f75 libs/bsd: add arc4random(3)
Change-Id: I86e67484f04b062a4496cb63ccb34b990868b693
Reviewed-on: https://review.haiku-os.org/c/haiku/+/32
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57247
2023-08-29 19:42:27 +00:00