Commit Graph

62047 Commits

Author SHA1 Message Date
Autocomitter
d88490a505 Update translations from Pootle 2020-10-24 08:48:24 +00:00
Jérôme Duval
7335fb0d5c in6.h: declare in6_addr with a union and extra fields
According to https://tools.ietf.org/html/rfc3493:
3.2 IPv6 Address Structure
"The structure in6_addr above is usually implemented with an embedded
union with extra fields that force the desired alignment level in a
manner similar to BSD implementations of "struct in_addr"."

Change-Id: Ibe0ee685366398c143cdf9573dcb77566a12888b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3348
Reviewed-by: Rene Gollent <rene@gollent.com>
2020-10-23 08:13:03 +00:00
Murai Takashi
fb4fd84f4d packageinstaller: Fix -Wformat-security
Change-Id: I9792b89ed0b59d509f20c43170f806a6168cbf81
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3347
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-23 07:49:53 +00:00
Murai Takashi
f7fbc22a58 servers/app: Fix -Wformat-security
Change-Id: Ia2ad0aac295c7a1ce3aafe571ae71f3aa8a4f433
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3346
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-23 07:11:59 +00:00
Murai Takashi
2613144749 bin/urlwrapper: Fix -Wmisleading-indentation
Fix misleadingly indented printf() at line 142.

Change-Id: I498d171db6a09425901a13d52a8b2eca1413a068
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3342
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-23 07:09:20 +00:00
Murai Takashi
1363e29b52 bin/safemode: Fix -Wimplicit-function-declaration
Fix implicit declaration of strcmp() at line 25.

Change-Id: I1653157b417b8b7da3936405d038150309999226
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3336
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-23 07:08:25 +00:00
Jérôme Duval
d504f219f4 POSIX: add _SC_TTY_NAME_MAX
Change-Id: Ifa24f68535d7a4a4c5fe3f01e63fe2c87adcc429
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3340
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-23 07:08:03 +00:00
Andrew Lindesay
4cd33fec63 HaikuDepot: Fix x86gcc2 Build
Change-Id: I06c94f6c09f9a4fdec3dc22a2da704225a7845c5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3345
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-22 20:39:17 +00:00
Kyle Ambroff-Kao
107712bf01 AutoRaise: Properly load tray icon bitmap
AutoRaise needs to load bitmaps stored as resources in the AppRaise
image. The strategy it used before was to store the path to itself in
its settings file.

It stored the entry_ref to the image in the settings, which may not be
stable across reboots with packagefs. In addition, the path could
change at some point for any other reason.

This patch changes AutoRaise to just use the same method as other tray
applets, which is to search the process for the image containing the
AutoRaise code, and then to get the path from the image_info.

Most of the initialization work is performed by TrayView::_init(),
which is called by the constructor. Some of the operations performed
by this method can fail, leaving TrayView partially initialized. Any
error is handled by returning early after telling Deskbar to remove
this item so that it will not continue running in a partially
initialized state. Deskbar will invoke the destructor so even a
partially initialized TrayView will be cleaned up.

Fixes #16473

Change-Id: Id1ac1ef78d410a7d191cfe88f1ba1db30e258adc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3341
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-22 17:52:53 +00:00
Andrew Lindesay
a5e4976d39 HaikuDepot: Lists; Categories + Stabilities
Remove use of custom list class where it is not
really required in the area of Categories.  Also
introduces stabilities relayed over from the
Server and used in the HD user interface instead
of being hard-coded.

Relates To #15534

Change-Id: Ib71141e71cd4a0b4882827e2e59b62072de01b4b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3331
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-22 08:51:25 +00:00
Murai Takashi
380234c5d8 ICNSTranslator: Fix -Wformat-security
Change-Id: Id5b4506b66f43a776b2850c92fd352a7d25ec5a9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3334
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-22 06:10:49 +00:00
Murai Takashi
1a7208e060 tools/gensyscalls: Fix -Wformat-security
Change-Id: Ib114ca218c103a0642b864a658696a3bab81b9d3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3329
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-22 06:03:50 +00:00
Murai Takashi
1af900b16b TIFFTranslator: Fix -Wformat-security
Change-Id: I598547fcb098ab88b62ffc2762696093b0d0eb3b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3328
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-22 06:02:07 +00:00
Murai Takashi
097d6b9ce3 bin/locale/collectcatkeys: Fix -Wformat-security
Change-Id: I7e09dd3d8eac8eeb6c4b92e9d9ebf61d5a7b9f5a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3338
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-22 05:59:30 +00:00
Murai Takashi
422eeed699 file_systems/userlandfs: Fix -WFormat=
Change-Id: Ib36c0696be0604e452ba68158fe98ecf31b4216f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3337
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-22 05:58:14 +00:00
Murai Takashi
f91802873f file_systems/reiserfs: Fix -WFormat=
Change-Id: Id8b4c3137cfcabaef09d8adf55a3ab6667b5c55c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3335
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-22 05:57:50 +00:00
Murai Takashi
6b48b59daf codycam: Fix -Wformat-security
Change-Id: I6dfaebc1cfa8b9881bd25c2105cc949ca0711108
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3326
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-22 05:57:28 +00:00
Murai Takashi
e0264ea1c4 accelerants/nvidia: Fix -Wformat-security
Change-Id: I42241d584b8edd66117c2a53cf9f4a87630fd4c7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3333
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-18 07:58:28 +00:00
Murai Takashi
4b15c3739b accelerants/matrox: Fix -Wformat-security
Change-Id: Ib9fa1361dc364ca9b4e0da676b67ed3b695259da
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3332
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-18 07:57:49 +00:00
Murai Takashi
7f83301d7c processcontroller: Fix -Wformat-security
Change-Id: I50aaf5e92aefaaea4e616e535c22196cfb69a879
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3327
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-18 07:52:09 +00:00
Murai Takashi
9d6f3d05e2 terminal: Fix -Wformat-security
Change-Id: I03826c86ea6ffc03b25db5def48f74d72a6f7c4a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3320
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-18 07:49:11 +00:00
Murai Takashi
1e4ea7c351 WebPTranslator: Fix -Wformat-security
Change-Id: Ide2ea81d8c66684d3bd101599ae2110970f3f66b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3321
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-18 07:44:36 +00:00
Murai Takashi
3d29f848c8 drivesetup: Fix -Wformat-security
Change-Id: Ie5c6d3ea621a1a5704cead8c5e59bf835e907e64
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3322
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-18 07:43:45 +00:00
Murai Takashi
e769acbe80 autoraise: Fix -Wformat-security
And use BString.String() for printf().

Change-Id: Id11394bb9278764ed25fde801d82a177ad0d88b9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3318
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-18 07:42:23 +00:00
Autocomitter
cc149396d1 Update translations from Pootle 2020-10-17 08:51:10 +00:00
Alexander von Gluck IV
6655809041 haikuports/icu: Reintroduce old icu to fix build
Hardlinked-By: Alexander von Gluck IV <kallisti5@unixzen.com>
Change-Id: I1a76647fe47949e950b4034629ad92ca16c53aa8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3325
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-10-16 21:44:37 +00:00
Adrien Destugues
019a5fdfb1 update to icu 66
Hardlinked-By: Alexander von Gluck IV <kallisti5@unixzen.com>
Change-Id: Id37ef57b0042722ca8089e73d420d6e4edac1019
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3121
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2020-10-16 20:56:44 +00:00
Humdinger
03ae622745 FirstBootPrompt: Improved language, make distro-aware
Replace "Haiku" with "%distroname%" for non-official builds i.e. forks.
The forker will have to replace the "*Distroname*" that is now shown
on unofficial builds.

Change-Id: I1a48403d7acc69529769870d869238f660deb49c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3299
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-16 10:50:22 +00:00
Alexander von Gluck IV
6116b3a02f drivers/usb/bt: Expand knowledge of non-standard devices
* usbid's borrowed from the Linux bluetooth driver

Change-Id: Ie7f93fbc1038e8b7011d0fdfbad497cdf2b97ff6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3323
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2020-10-15 17:40:53 +00:00
Alexander von Gluck IV
e1fafa3a6e libroot/musl/math: Fix non-legacy hybrids
* If you're building a hybrid, each arch directory gets included.
* If the architectures are all non-legacy, you end up getting
  "all architectures" built in each architecture directory.
* This prevents this condition by filtering on sane architecture
  matches per arch directory.

Change-Id: I529e2b3d315b0930aff594239dadd9db70dc9cfa
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3316
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-15 12:48:50 +00:00
Alexander von Gluck IV
f598f71cd5 build/cross_tools_gcc4: x86_64, explicit enable-multilib
* This was originally added circa 2012. via hrev43954
* Our toolchain appears to work fine now with explicit
  multilib enabled.

Change-Id: I1f5d55c63a6b3b6ab1c4db95da3d14d5ef2da0df
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3315
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-15 12:48:38 +00:00
Alexander von Gluck IV
c33a98eebc build/scripts/gcc2: Specify -fcommon as the default changed in gcc10
* gcc10 changed to -fno-common default
* Resolves #16520

Change-Id: I9af2234532177f2153159eea94a05a106587ebbb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3317
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-14 15:36:20 +00:00
Murai Takashi
969c176d82 tools/locale: Fix -Wformat=
Change-Id: I2261a75e32a78fb3e43735bc9c616e101d6d39f5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3313
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-14 12:45:40 +00:00
Murai Takashi
024c0670ac media-add-ons/video_producer_demo: Fix -Wformat=
Change-Id: I55272a78e13b56b2b01970be4c61ff0a5c20420f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3314
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-14 12:45:30 +00:00
Murai Takashi
5d80f760f5 libs/gnu: Fix -Wformat=
Change-Id: I29db5d08cf575cf1aaada131270c4b3ccc65720e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3311
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-13 15:19:14 +00:00
Murai Takashi
a2efc1d6e0 netstat: Fix -Wformat=
Change-Id: I70bfb12f9d56e7e4c8dbdd4bd48ca0282057a713
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3312
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-13 15:19:05 +00:00
François Revol
ad22267906 m68k: Add missing disklabel.h for NeXT support
Currently used by fixup_next_boot_floppy.

Change-Id: I47c10657b5280f00e470a3171ad11744859ce76c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3310
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-12 06:36:15 +00:00
Leorize
e67a4284c0 libbnetapi: Disallow instantiation of BUrlRequest subclasses directly
This API change forces all creation of BUrlRequest to be done via
BUrlProtocolRoster::MakeRequest(). This allows the structure of protocol
addons to be altered without breaking ABI for client applications.

Change-Id: I1785c9136c50d19eaa9e57cb9d259ed8d88a5b56
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3080
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-10-12 06:36:00 +00:00
John Scipione
26ca2e3226 BTabView docs: fix typo 2020-10-11 23:50:11 -04:00
Augustin Cavalier
e6076c6d2e freebsd_network: Define _KERNEL for C++ files too.
This also allows the removal of a function that is also in the cpufunc.h header.
2020-10-11 20:36:41 -04:00
Adrien Destugues
c12c97a6f1 usb_hid: do not publish a keyboard device when a mouse is connected
My trackball has a "system control" in its descriptor, but is
definitely not a keyboard. This results in an extra entry in Input
preferences for it.

If we actually want to accept input from such devices, we should scan
them more closely to check there is actually a valid input there, and
consider publishing them as something else than keyboards, because
that's not really suitable in Input preferences.

Change-Id: I9027454b3b24d0f39ea562aed851402d0be7aeb4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2715
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-10-11 16:07:34 +00:00
Adrien Destugues
47bf2e3878 sdhci: detect Ricoh SDHCI controllers
They don't advertise themselves as standard SDHCI, but are mostly
compatible. Only check for the one in my machine for now.

Also improve tracing in the probe function.

Change-Id: Ia47238fb25b783790fa8caaedf2a71aeb6e29d89
Reviewed-on: https://review.haiku-os.org/c/haiku/+/806
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-11 16:04:05 +00:00
Adrien Destugues
62eaf4c0e1 mmc_bus: add execute_command function
For now it just forwards the command to the SDHCI controller.
The bus will gain more features and functions as work advances (tracking
which card is active, arbitration of DMA transfers, etc).

Change-Id: I094eb84f27e7789387a3f8fb65fba1e5fcfa3e8a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3094
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-10-11 16:02:22 +00:00
Adrien Destugues
d4a668083c sdhci: fix interrupt handling
The interrupt handler clears the interrupt register, so the main thread
cannot get the errors from there. Save the interrupt state in the
handler so that the thread can know if a command succeeded or not.

Change-Id: Ibee35c3caed6be8e2552b6c66c4e854a00f5465d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3090
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-10-11 16:02:22 +00:00
Adrien Destugues
cd78ed4d46 sdhci: fix response type definitions
These are apparently ignored by the Ricoh controller I did my previous
testing on, but QEMU is more strict about them

Change-Id: Ie70808a5c8b26e6f0f22bd8259a42452903781a3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3089
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-10-11 16:02:22 +00:00
Adrien Destugues
dedbe94e46 mmc: register devices for detected cards
Change-Id: I90891ead9a425e0e8bd25c2190fe3d430d49411b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1067
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-10-11 16:02:22 +00:00
CruxBox
fc87b4a284 xfs: Read Block directories
Block directories can now be read.
Change-Id: I9aa898638e6ac39cb903f2dd58cd184785e1a06b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2992
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-11 16:00:26 +00:00
Adrien Destugues
3255108dde ufs2: fix reading directories.
Main problem was the use of sizeof(dirent) instead of sizeof(struct
dirent) so it used the size of the pointer.

Change-Id: I7d9388235d583d942ada5e3650cf8320ff2be6cb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3197
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-10-11 15:57:51 +00:00
Adrien Destugues
14c58ad1bd ufs2: implement scan_partition
Not needed by fs_shell but required to use the driver natively in Haiku.

Change-Id: I547ab4c0637230d447f437cb47a419734a0401e7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3196
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-10-11 15:57:51 +00:00
Suhel Mehta
f563d6e696 ufs2: Reading symbolic links
Symbolic links are now showing path and relative path can be tested.

Change-Id: I47820a475d78d8090c02564f698e72dd8fbaa3a1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3171
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-10-11 15:57:51 +00:00