Commit Graph

62663 Commits

Author SHA1 Message Date
Fredrik Holmqvist
99806fe3d6 Anyboot CD detection, remove nr of partitions check
When booting from floppy image (BOOT_VOLUME_BOOTED_FROM_IMAGE)
we don't know the partition offset, and the number of partitions
are different for 32 bit and 64 bit anyboot cds. So don't check
for number of partitions.

This should only happen when BOOT_VOLUME_BOOTED_FROM_IMAGE
is set. Its intention is to signal if boot was from a floppy
image, so most boot platforms should not set it. It seems they
do, that probably needs a fix of its own.

Change-Id: I6b60a997b72b9928555840358257e15ff417fd42
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3819
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-23 14:18:03 +00:00
Jérôme Duval
10ff9c6a14 unix: sendmsg should return EPIPE after close
https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html
"[EPIPE] ... the socket is connection-mode and is no longer connected."
Change-Id: I6728b088d2f717b769697218edf26c76c59f488e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3816
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-23 07:30:36 +00:00
Jérôme Duval
f0c4b0a69a unix: get a read event when read-polling a read-shutdown socket
UnixEndpoint::Receivable(): EOF means there is nothing left to read, and
the shutdown happened on the read side or the write side.

also fix x86_64 build with trace

Change-Id: I54c806f0b900591c3d441240b8f6768dfb756bad
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3808
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-23 07:30:36 +00:00
Niels Sascha Reedijk
9335a062be Revert "Fix building on Haiku after hrev54993"
This breaks the build on other platforms, so it needs a bit more thought and testing.

This reverts commit d0834b34d5.
2021-03-22 22:52:50 +00:00
Niels Sascha Reedijk
d0834b34d5 Fix building on Haiku after hrev54993
Change-Id: I052aad6374ae7ab7b4bcbf47bd88cd84193a9879
2021-03-22 21:10:09 +00:00
Dancsó Róbert
2cba2d5642 Added localization support for Cortex app.
* Fixes #7530.

Change-Id: I238c4c8fe32b181a8e1a4bd688bcbe9f3a87f79f
Signed-off-by: Kacper Kasper <kacperkasper@gmail.com>
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3169
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-22 18:50:39 +00:00
Andrew Lindesay
133ebab62c HaikuDepot: Increment Pkg View Counter
Closes #16814

Change-Id: Idf451628b4680fb33563dbf4817bd11049c326b5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3803
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-03-22 07:13:43 +00:00
Jérôme Duval
068d41df0f usb_midi: make buffers kernel-only for SMAP
also use user_memcpy in usb_midi_write().
confirmed that it fixes #16856, thanks nephele.

Change-Id: I548cd2bd5cf44f7da078745fe403cf131c4cc4b0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3806
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-03-20 09:31:33 +00:00
Jérôme Duval
267c6a9b0d Locale: correct fix binary compatibility for BNumberFormat
fix HaikuDepot build after hrev55006

Change-Id: I3c275e1b0f23f936db448ad82639458535617d6a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3809
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-03-20 09:30:14 +00:00
Autocomitter
f116fa6b2e Update translations from Pootle 2021-03-20 08:43:43 +00:00
Jérôme Duval
e3c3983827 Locale: fix binary compatibility for BNumberFormat
Issue: https://github.com/HaikuArchives/Album/issues/15
Change-Id: I1f8d5055f929957adb0cca20a8f6b13bcccabfab
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3807
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-19 10:53:15 +00:00
dsizzle
7124ff96d3 Character Map: Added larger character popup on left-click
Fixes #15983.

Added left-click support to the existing function that pops up the context
menu for copying characters.  Instead of menu options, put a large version
of the currently-selected character in the popup on left-click.  The popup
character is 2.5 times as large as the current font size, because that
seemed nicer than 2 times.

Right-click functionality is unchanged.

Change-Id: I3b64fff3cafc02e2c54e34db6e58461b4e08b3b9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2832
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-19 10:18:21 +00:00
jiceland
7e094dc359 FindPanel - Corrected operators less / greater than + rebuild of attributes for MIME change
* Operators for Less than/before and Greater than/After were incorrectly set to <= and =>,
  now corrected to < and >
* When query type is set to By attribute and user changes Filetype, corrected the update of attributes
  Before this change, attributes were updated according to previous filetype

Change-Id: I7e02af9cb667c4db2c0efd8fa0da8b2b0c4b9ddf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2990
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-19 10:17:40 +00:00
Emir SARI
87f4776937 Add mobile phone field
Change-Id: I655c06ce050f4d1a1b09a4065514c695ec7b6452
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2876
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-19 10:17:25 +00:00
Tri-Edge AI
773d5303d1 app_server: Implement B_OUTLINE_RESIZE
- Allows applications to be resized without the window contents resizing with the window frame.
- Due to the nature of out-of-tree decorators using private APIs, this will require all pre-existing decorators to be rebuilt
- Newer decorators won't work on older versions of Haiku...
- Also has some formatting with license headers.
- Fixes #2724

Change-Id: Id0b45e7bbc0b636e6dffbd396eb584bf348b5296
Reviewed-on: https://review.haiku-os.org/c/haiku/+/344
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Jacob Secunda <secundaja@gmail.com>
2021-03-19 10:17:01 +00:00
Fredrik Holmqvist
29034cf270 CDDA, stop returning error status as a float
It is a bit unorthodox, and we expect a number on how well you can
handle the partition.

Change-Id: Ie1b5d4e0a8e2411f9782957d7f124756f992a086
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3805
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-18 21:14:09 +00:00
Jérôme Duval
b2b83ad10f runtime_loader: dlopen() should respect RPATH of the loading module
Change-Id: Ic58edb53114dfff30cc7188957cd32508fa8bd48
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3798
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-03-18 08:19:55 +00:00
Ulrich Drepper
a06fca85da (_IO_new_file_fopen): Recognize 'e' flag and set O_CLOEXEC is needed.
this is a widely supported non-standard flag for fopen.

Change-Id: I58bae7535cfdb7dae419534179fe2e6256ec8d35
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3801
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-18 08:19:23 +00:00
Kacper Kasper
8534484314 Fix MutableLocaleRoster::LoadCatalog logic
* It should always try loading parent language.

Change-Id: I3af14beef70a41242d09b11f09abf749ac92e588
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3802
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-17 07:25:00 +00:00
Adrien Destugues
645c3796d7 64bit build fix. 2021-03-16 20:35:36 +01:00
Murai Takashi
741032ea6d servers/app: Fix double delete
Pointed out by Clang Static Analyzer.

Change-Id: Ifba9ffd03a49fd66cc3e3c7cacaee641b7e939ab
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3774
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-16 17:01:47 +00:00
Jérôme Duval
3592432e9b utmpx.h: add ut_host for compatibility (not posix)
Change-Id: I27e8f7b6dbc29232542e3749d8e194efa2ef5209
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3799
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-16 16:55:44 +00:00
Jaidyn Ann
a29f0661ce Tracker: Don't use hardcoded colors for the Open With window
Change-Id: Idb7b336006391da3d64b7f395e87ff30c07d3100
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3797
Reviewed-by: humdinger <humdingerb@gmail.com>
2021-03-16 16:12:38 +00:00
Niels Sascha Reedijk
fc03b45a71 POSIX: make readv() and writev() conform to IEEE Std 1003.1-2001
The standardized version of readv() and writev() take an int as the third
parameter. Arguably a size_t makes more sense, but the standardization bodies
decided otherwise.

The non-standard functions of readv_pos() and writev_pos() have been updated
for consistency. The corresponding _kern_readv() and _kern_writev() internal
functions continue to take the size_t parameter.

The ABI will not change, even though on 64 bit machines the size of the count
parameter will change from 8 to 4 bytes.

The actual use will be slightly different. Like with the size_t argument type,
it will not be possible to give a count lower than 0. If the value is less than
0, then the B_BAD_VALUE/EINVAL error will be set.

Change-Id: I949c8ed67dbc0b4e209768cbdee554c929fc242e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3770
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-03-16 12:03:02 +00:00
Jérôme Duval
4f7db7e037 libroot: fix warning: strfmon needs asprintf
Change-Id: Ief7d8a42e5cae6b11ac4be8e3450dda7d459240d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3800
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-16 10:18:24 +00:00
Adrien Destugues
e440740ad1 sdhci_pci: fix computation of bar index
I think this bug was introduced when modifying the code to handle
multiple slots. It would result in slots after the first two to use
incorrect bar offsets.

Should fix one of the problems seen in #16778.
2021-03-15 19:26:17 +01:00
Adrien Destugues
9274ca847b intel partition map: implement changing the active partition
Implement the needed parts in both the userland add-on (loaded in
DriveSetup) and the kernel side one (used by disk system manager in the
kernel).

This allows changing the active partition in DriveSetup.

Change-Id: Ia65768b5f8f11d626ef24621ae7735723dcbc39d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3771
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-15 10:18:43 +00:00
Adrien Destugues
8f5c5225da partitioning_system: get the correct parameter editor
When editing a partition parameters, we want to get the editor from the
parent partition. This will be the editor used to set the active
partition on Intel partition map, for example. The code testing if this
is supported and the code to apply the parameters did this, but the code
to get the parameter editor didn't.

Fixes the remaining part of #11641.

Change-Id: I25a6cf11fe315b8f6e118529f2395816101b7fe1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3766
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-15 10:18:43 +00:00
Adrien Destugues
76fc09c0b9 DriveSetup: fix logic to enable the "change parameters" menu
Just ask the partition if its parameters can be changed, instead of
trying to guess.

Now the menu is always disabled. This is because none of our
partitioning systems actually allow changing any of the parameters of an
already created partition (they don't enable B_DISK_SYSTEM_SUPPORTS_SETTING_PARAMETERS).

Fixes #11641 (but we should implement editing parameters in the intel
partitionning system to set the active partition).

Change-Id: I242e7f73c4188824ba0e3984c0d97172da84e9a7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3765
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-15 10:18:43 +00:00
Adrien Destugues
ace584913d Input preferences: fix selection of focus mode
- Replace the popup menu with a BOptionPopUp to simplify the code
- Remove an unused menu to select "warp mode"
- The focus mode is not stored in the mouse settings file
  (config/settings_Mouse_settings), it is in another file
  (config/settings/system/app_server/mouse). This file is not read or
  written directly by mouse preferences, but we get the settings by
  asking app_server. However, the code to get these was missing in one
  place, resulting in these settings not being correctly initialized.

Fixes #16524

Change-Id: Ia1efc235c9d1a5408e3c6abc2526da7a0a639fa4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3796
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-03-15 10:10:32 +00:00
Adrien Destugues
a59f6b7a8c mmc_bus: fix possible deadlock when initialization fails
Should fix the remaining part of #16778

Change-Id: Ia148f4bde095d33752df788b8f7911ee9cf44c61
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3773
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-14 17:17:19 +00:00
CruxBox
8897bed702 xfs: Fixes and refactoring some parts
Found some bugs while testing different possible cases of Extent based
directories (1 extentmap case). Also did some refactoring.

Change-Id: Icb3b6e21de100c1bee93779c419bb2e86c694ae6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3118
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-14 14:03:24 +00:00
CruxBox
19488d5c68 xfs: Reading Node Directories
Node directories can now be read. With this, extent directories are
complete.
Change-Id: Ic42c8464e810137cff4946e8c975edc121daaa4f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3045
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-14 14:03:24 +00:00
Alexander G. M. Smith
3376ed1a72 Package Kit: Proper Installation for First Boot Packages
Do the final installation operations for all the packages in the
/system/packages directory when the OS is booted for the first time.

This will run their post-install scripts, create users, groups and generate
settings files (marked with a package version attribute).  Previously we just
ran all the shell scripts found in the /system/boot/post-install directory
(don't do that as much now).

Fixes bug #14382

This patch has simpler code flow in CommitTransactionHandler::_ApplyChanges
Tested on 32 and 64 bit systems.  Once it's official, need to remove the
open_ssh redundant post-install script that creates users etc. from HaikuPorts.
Now we can notice bugs like package version attributes on settings files aren't
fully working. :-)

Didn't remove special case for add_catalog_entry_attributes.sh since it
still does stuff that the build system doesn't do.  Might be able to add
that script as part of the Haiku.hpkg.  See change 3751 for removing it,
https://review.haiku-os.org/c/haiku/+/3751

Change-Id: I3807b78042fdb70e5a79eca2e2a45816ece0236f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2342
Reviewed-by: Alexander G. M. Smith <agmsmith@ncf.ca>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-14 09:10:18 +00:00
Murai Takashi
e459857d1c BMessage: Fix declared variable-length array has negative size
Add checks for value of 'size', since FlattenedSize() may return
negative value (B_NO_INIT).
Pointed out by Clang Static Analyzer.

Change-Id: I68176ee47076512a0b96539f9986ac5edbb587af
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3772
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-13 09:16:47 +00:00
Jérôme Duval
06a78d0d88 runtime_loader: set default alignment to max_align_t if available
...as done by mmlr in malloc_debug.
TLS blocks are expected to be aligned, gcc happily uses SSE instructions,
triggering exceptions.

Change-Id: I5a7bfe287600286e724cd13fe9aa7c7916091979
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3768
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-13 09:16:31 +00:00
Autocomitter
9aed476999 Update translations from Pootle 2021-03-13 08:45:30 +00:00
Andrew Lindesay
564de1924a Locale: Support for Percent Formatting
Updates BNumberFormat to be able to format
percentages.  Also re-introduces some unit
tests and updates the BNumberFormat ones.

This doesn't actually fix #16312 as the
defaults for percentage formatting don't seem
to track the selected language, but goes part
way there.

Related to #16312

Change-Id: Id6ddf426ce5571f4e8513c0eb1663cf42ac53cb1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3767
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-13 00:29:32 +00:00
Humdinger
4c2d3a38ad Web+: Copy script console items to clipboard
For easier bug reporting.

* Allow multiple selected items
* Copy the selected items to clipboard with ALT+C
* Remove unnecessary horizontal separator
* Adjust spacing around list and button

Change-Id: Ie8fb104b85e95acec92bd6226779d4de7ee11878
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3769
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2021-03-11 10:53:01 +00:00
Andrew Lindesay
dfbcbde1e1 HaikuDepot: Remove Custom List
Closes #15534

Change-Id: I23fa60145607c3e8f25552f24c5e2c630b940537
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3758
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-11 08:34:16 +00:00
Andrew Lindesay
0b69420bc8 HaikuDepot: Fix Redraw Featured Pkgs
The invalidation logic for when packages are
added or removed from this view was broken.  The
new approach involves demarcating the mutation
of the data with a begin operation and
terminating it with an end operation with the
view invalidation happening in the end operation.

Resolves #16260

Change-Id: I012610c72714323cc2f7471ad05cc758d9127ef0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3764
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-08 10:50:36 +00:00
Jérôme Duval
a44af2ec16 libroot: call thread exit hooks before destroying tls
Change-Id: Ide2799ccf8620e42650a8f45177fb5fac4f09696
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3762
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2021-03-06 10:31:51 +00:00
Andrew Lindesay
d13981d199 HaikuDepot: Fix Open Button
Resolves #16826

Change-Id: Id7d32a1a4c7d776f462817f72bcb80377452f5f5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3763
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-06 10:30:24 +00:00
Autocomitter
46c7a1d9de Update translations from Pootle 2021-03-06 08:44:18 +00:00
Murai Takashi
08f2b4d50a filepanel: Fix -Wformat-security and remove unused options.
Change-Id: Iedf3bb500de15a29188c30940b5fd64dcaf043f5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3319
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2021-03-06 08:03:38 +00:00
Pascal Abresch
e5feb3a7ae Webpositive: Change default search engine to duckduckgo
Change-Id: I4cb519453b0697260778fb34449ba5ac36972dcd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3757
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-05 08:00:50 +00:00
Zoltán Mizsei
a1d14e4d75 WavPack support
Change-Id: Id731621f39defd8f065b5460a9a5fb8c5b868c98
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3752
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-05 08:00:35 +00:00
Daniel Schaefer
bc33f9dd87 efi/riscv64: Fix NumberOfRvaAndSizes of PE header
The riscv64 UEFI executable has inconsistent header and therefore cannot
be loaded by the EDK2 implementation of UEFI. Apparently Uboot doesn't
care about this detail but EDK2 validates it.

Specifically NumberOfRvaAndSizes should be the number of data directory
entries. It is set to 6 but there are actually 16.
(All entries below NumberOfRvaAndSizes until section_table)

This was probably a typo 0x6 -> 16 (or 0x10).

This is the check of EDK2:
https://github.com/tianocore/edk2/blob/stable/202011/MdePkg/Library/BasePeCoffLib/BasePeCoff.c#L313-L321

Fixes #16824

Change-Id: I5c0dc080cb1cd191b44e016298656db9edd9ca8d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3761
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-03-02 19:41:53 +00:00
Niels Sascha Reedijk
ec8bba1587 PackageKit: fix download logic for remote files
This was broken in hrev54968, as some code was lost while switching to the new
way the network services kits writes files to disk.

This should fix #16822

Change-Id: I104d82e268ded287fd64db1cb902f94b71bad53b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3760
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-02 15:17:58 +00:00
Murai Takashi
8cd3603b99 compat/freebsd_network: Fix Use of zero-allocated memory
If device is not found, 'list' is allocated to size 0.
So, modify function to return 0 as FreeBSD's subr_bus.c
when 'count' is 0.
Pointed out by Clang Static Analyzer.

Change-Id: Ice24ae939bfcdb6e1276a86dba40d0b689030fbb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3753
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-02 14:19:54 +00:00