Commit Graph

62726 Commits

Author SHA1 Message Date
Jérôme Duval 04be20a75a Implement stack protection support
this adds kernel & libroot stack protector hooks. it uses /dev/random in userspace.
A configure option --enable-stack-protector is added to activate -fstack-protector
on selected system components (ATM apps, kits, servers).

Change-Id: If3a2920ba9aa0a85eaff4ba6778947f8c76ade31
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3895
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-05-03 17:52:31 +00:00
Pascal Abresch 409d65c0d6 Decorator: Introduce Scroll bar size call
Change-Id: I07f08c2893d832e431c29ae753e0a93d6e619701
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3892
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: X512 <danger_mail@list.ru>
2021-05-03 16:42:32 +00:00
Murai Takashi e158326d29 userlandfs/server/beos: Fix wrong type of arguments to formatting function
Pointed out by lgtm.

Change-Id: I0b0fde001e18902efee386be5723a1290f6e512f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3894
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-05-03 16:40:50 +00:00
Rudolf Cornelissen 0516144cf2 nVidia driver: Fixed PLL for C51 chipset. Finally fixes ticket #12955 2021-05-02 16:10:15 +00:00
Fredrik Modéen 6cd4da00c0 SettingsMessage: Add uint16 and uint64 support
* Thanks to kottan I notices something was of..
* Added uInt16 and uInt64, I was missing UInt16.

Change-Id: Id136dbb5a81392a7a694ac1fbbd9aefbd7f77af3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3888
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-05-01 12:58:34 +00:00
Murai Takashi c1eed5c7f3 tools/set_haiku_revision: Fix wrong type of arguments to formatting function
Pointed out by lgtm.

Change-Id: I385356c8bafec99d15184d5475f23e6418ec9849
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3889
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-04-30 14:31:14 +00:00
Jérôme Duval 20308ad6a7 build: follow-up for hrev54993
should help with bug #16929, untested

Change-Id: Ia7b9b6cc8e84e2377d79c0edd1c278cdf74d869b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3891
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-30 10:42:21 +00:00
Zoltán Mizsei 13e1bb0e0d Enable GCC11 as GCC4 compatible ABI
Change-Id: I55faec61f9f3162108c5ad4da11bad588663c9d1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3890
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-04-30 06:11:02 +00:00
Murai Takashi 2bde55cb6c tracker: Fix wrong type of arguments to formatting function
Use B_PRId32 for int32 type fValue.
Pointed out by lgtm.

Change-Id: I751451281ace627e2f3be67d1b860b8ebe675ba5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3886
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-04-25 09:00:53 +00:00
François Revol df026fdf16 BMessage: fix typos 2021-04-24 12:55:17 +02:00
François Revol c7ac2d5042 SettingsMessage: Remove existing int32 when saving an uint32
Fixes #16922 for good.

Previous attempt did read the saved value but didn't save it back properly.
2021-04-24 12:48:20 +02:00
Niels Sascha Reedijk dc31a541e0 HaikuBook: Add missing members to BWindow
BWindow: :MoveToScreen() and related enum flags
BWindow: :ResizeToPreferred()
BWindow: :Close()
Change-Id: I589f7c10753de232a09bdd3ed12b5dc42d5f12ba
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3885
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-24 10:44:10 +00:00
Autocomitter bfa67886ba Update translations from Pootle 2021-04-24 09:19:36 +00:00
Murai Takashi fd61ca46f2 icons screen saver: fix memory leak
Fix fBackBitmap and items of fVectorIcons were not released.

Change-Id: I8bf974a9f11852c4b1092490e699b46bd79997eb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3879
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-24 08:49:55 +00:00
Adrien Destugues 51b5bca96e SettingsMessage: style fix. 2021-04-23 18:13:14 +02:00
Máximo Castañeda 8f16317a5b Fix build
Change-Id: I0d3e3afc7262688e3bc90672766e6e7d263f06b8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3884
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-23 11:33:23 +00:00
Adrien Destugues 63046071f9 SettingsMessage: search for int32 version when searching an uint32 setting.
There was a bug in the version of this class previously used by MediaPlayer,
and as a result we have settings where uint32 fields are stored as int32.
If the uint32 version is not found, try the int32 version.

Fixes #16922.
2021-04-23 08:53:28 +02:00
Han Pengfei 2db2b2123b headers: Make structure padding explicit in efi_memory_descriptor
The EFI memory descriptor 64-bit aligns PhysicalStart on both 32- and
64-bit platforms. Make the padding explicit for arm efi and referring
32-bits platform.

- Same fix in FreeBSD: https://reviews.freebsd.org/rS320234
- Confirmed with NetBSD: https://github.com/NetBSD/src/blob/trunk/sys/external/bsd/gnu-efi/dist/inc/efidef.h#L191
- Confirmed with Linux: 5ee96fa9dd/include/linux/efi.h (L137)
- Confirmed with Zircon: https://github.com/vsrinivas/fuchsia/blob/master/zircon/kernel/lib/efi/include/efi/boot-services.h#L34

The Early Zircon/Fuchsia version has the same problem we have, apparently they did not
test their header on 32bit platforms either, now They have got it fixed.

Signed-off-by: Han Pengfei <pengphei@qq.com>

Change-Id: I0c685d41420c4a63773a7bb39b7d2fdd61e932c4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3875
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2021-04-21 09:28:45 +00:00
Han Pengfei d3b7fb5a1d headers: Update efi headers from current versions in Zircon
- Add device path message macros
- Add serial terminal defines

Signed-off-by: Han Pengfei <pengphei@qq.com>
Change-Id: I9760c506eae49a7d0c474a13b2d2a97a369be3b6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3878
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-21 07:16:43 +00:00
HrithikKumar49 5685473e0c formatted file using clang-format with _haiku-format formatting options
Change-Id: Iac91219ac10be70bc5b4ae2ffc0d4e44893d8a44
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3864
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-19 19:49:40 +00:00
Máximo Castañeda 8f5700bc46 intel_extreme: disable CK505 clock source
Using the CK505 clock source may need some more checks or configuration
we currently don't do, leading to a blank screen in some systems.
Whatever the reason, disabling it makes the driver work on my machine.

Fixes #16357

Change-Id: If207ffdddcf6e6eb73bc69ce5a8bd2842fd2141b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3867
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-19 19:48:47 +00:00
CodeforEvolution 123406799f input_server: Properly implement watch_input_devices() & add documentation
Allow for multiple programs to watch for changes in the state
of input devices connected to the system. Previously only one program
at a time could watch input devices. While this functionality was not
implemented in BeOS R5, it was at least documented in the BeBook.

Also added some API documentation where necessary for the function
and related constants.

Change-Id: Icd927998cffcab212bb63bcf10c64c620e9da9a2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3872
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-19 19:48:29 +00:00
Niels Sascha Reedijk 5b113c01c2 kernel: remove stray dprintf about acquire_advisory_lock
Change-Id: I306e2816e59a621a4c478babad5f3aa2cc69fc8d
2021-04-19 07:12:22 +01:00
Niels Sascha Reedijk 82cd6aad15 HaikuBook: add missing object from AffineTransform.h
Change-Id: I3a3098db4a35b8fe12e763dd3a7e1e5fa9cafc69
2021-04-19 07:11:34 +01:00
Niels Sascha Reedijk 4497337b22 HaikuBook: unichar was removed in hrev54953
Change-Id: Ib5faf5b0e0d6c46bf6eb49a941c9fa4e0ef6b47d
2021-04-19 07:02:08 +01:00
Niels Sascha Reedijk 2aad295eb2 HaikuBook: escape the # character as it implies a link request
Change-Id: I9100d74fb3af9298b3386bea02c4a5818c45296b
2021-04-19 07:00:42 +01:00
Niels Sascha Reedijk f125de8cc8 HaikuBook: Add internal skeletons for BGradient* classes
Change-Id: I9b75084550dc510692122994a102ccd9923ed987
2021-04-19 06:56:16 +01:00
Adrien Destugues 61013090a0 Attempt to fix deadlocking USB transfers
Whenever a device is removed, let usb_raw cancel all its pending
transfers. Does not seems to help with the issue I'm getting however.

Change-Id: Ie2856e68ea402c9f1cc352ac47bbca624e17d3dc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1424
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Fredrik Modéen <fredrik@modeen.se>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-18 07:58:48 +00:00
Adrien Destugues a77684c96a MultiAudioNode: sanitize inputs
Change-Id: Ida5d74b88ec06daf738fd8b98c29737ed87c7cae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3491
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-18 07:58:27 +00:00
Shannon Mackey 572e0095c2 Printers window peristence
implemented using same pattern as Screen preferences
made corrections from review

Fixes #4262

Change-Id: I658baebcdc6ef7809d871b61db75d0b4099937ed
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3870
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-18 07:45:35 +00:00
Rudolf Cornelissen 375a70e9fd Fixed I2C buses not working on C51 (some Geforce 6100/6150/Go cards). DDC/EDID should now work on all supported cards. 2021-04-18 00:51:46 +00:00
Murai Takashi 159ed479f8 lgtm.yml: Fix build
lgtm build requires HAIKU_REVISION for DetermineHaikuRevision1.

Change-Id: Ie458080b82bdd5d32936393758aab6626bab8018
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3868
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-17 19:53:06 +00:00
Autocomitter 410ed2fbba Update translations from Pootle 2021-04-17 08:53:12 +00:00
Niels Sascha Reedijk f706ac5bd5 HaikuDepot: remove double space after period in UI string
Change-Id: If5e63499c5fe7894294319c31c15e6ef133553d9
2021-04-17 08:31:19 +01:00
Murai Takashi f6c0f9307f Update lgtm.yml
* Update configure script.
* Remove HAIKU_REVISION from build_command.

Change-Id: I2d2e3e8ba9a5ca333845734d42c5da00dc4e7610
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3866
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-16 16:36:12 +00:00
Adrien Destugues 3d768367d4 DefaultMediaTheme: fix build with tracing enabled. 2021-04-15 22:51:10 +02:00
Adrien Destugues 38e5e3401b repository build readme: add a missing dependency to instructions 2021-04-15 22:47:51 +02:00
Alexander von Gluck IV 37bebb702a docs: Update build-repository documentation
Change-Id: I4566c6e93dca4701eda19ba512e20b0f224956e7
2021-04-15 15:06:10 -05:00
Rudolf Cornelissen d827b3cc06 nvidia driver: fixed tickets #2780, #4670, #6292, #12955 (Nforce 4, 4xx display trouble) 2021-04-13 00:16:53 +00:00
Humdinger 27188e2153 Cortex: avoid duplicated translation efforts
Many translatable strings are used in both classes.
Use same B_TRANSLATION_CONTEXT to avoid duplicated
translation efforts.

Change-Id: I514a380de4ac8d414634555c25b90650f370a2cb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3865
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-12 08:18:27 +00:00
Maciej Bałuta a0db7ef272 Return "Unsupported" from VESA accelerant mode setting
Currently, when trying to change settings in Screen preferences on
a system which uses VESA driver on UEFI system, the displayed error
message is "Invalid argument". This commit simply changes returned
error code to B_UNSUPPORTED, so that in the UI we show
"Operation not supported" error.

Change-Id: I2a654d6f652c7b24ecd23969e04e477456235aa0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3858
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-12 07:08:09 +00:00
Fredrik Modéen 96aca43744 Bluetooth Pref: remove 2 Printf that broke x86_gcc2 build.
* Remove those 2 line.

Change-Id: Ie291f590181f4d461865b6b77311995597285eed
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3857
Reviewed-by: Fredrik Modéen <fredrik@modeen.se>
2021-04-11 08:53:37 +00:00
Fredrik Modéen 6375ef053d Move SettingsMessage to a central location
* Move SettingsMessage
* Remove SettingsMessage from MediaPlayer and WebPositive
* Use the central SettingsMessage in MediaPlayer and WebPositive (Later Bluetooth)
* Fix a Jam file.

Change-Id: I3bb82a40082c5ece5c2aea2468a77bcd9f15ce77
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3856
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-11 08:53:18 +00:00
CruxBox 4a2870fcf2 xfs: Check Permissions
Implemented the xfs_access hook and we now check for permissions where
required.

Change-Id: Idaa71f300e0a73951d13073b66cb9ff37dbfa3ec
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3151
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-11 08:45:03 +00:00
Fredrik Modéen 91cbfa855e Bluetooth Pref: Inactiveate button and things that don't do anything.
* Inactiveate button and things that don't do anything.
* Those button and controlles that hade any actions in the Bluetooth Pref now saves in settings.
* Fix some windows/views.
* Fix Copyright in last Bluetooth commit.
* Last commit before we move saving settings with BMessage.
* Changed PoupMenu to BOptionPopUp

Change-Id: I32b85f1985b558d24b294a184665e08e6ce18a7d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3829
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-10 20:28:43 +00:00
Autocomitter 6d93dff127 Update translations from Pootle 2021-04-10 08:53:20 +00:00
Alexander von Gluck IV 4ae0376c1f src/tests: Update standardized qemu testing script
* Adds riscv64
* Improves serial output to virtual console and on-disk logs
* Add log check for kernel load

Change-Id: If66cd3b9d342953b71d2362de1003d8e7547e6ae
2021-04-09 19:27:13 -05:00
Humdinger 6f2e83ce65 Boot options: rename 'blocklist' option
As 'blocklisting' sounds weird, esp. when used as verb, call the
option "Disable system componets". Also, "components" is less
technical than "entries".

Change-Id: Ia6dbbbe6ebc800e2017e0fb4b0393d19f07afbc5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3833
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-07 12:20:01 +00:00
Gerasim Troeglazov 1ab6200126 DefaultMediaTheme: implement BTextParameter handling for BParameterWeb
These changes add text parameters support to DefaultMediaTheme
for the BParameterWeb class.

Change-Id: I6ec04109af73011f84bb7c1fd5210c5c8842c2cb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3828
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-06 20:17:52 +00:00
Saloni 02dabf4bd9 input preferences: Updates code according to Haiku guidelines
These are the changes using tool clang-format with argument --style=haiku and the changes that were not according to guidelines have been removed.

Change-Id: I2d34370e1e0a112da895001bd220bb82b7086e90
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3827
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-06 20:17:29 +00:00