Commit Graph

62171 Commits

Author SHA1 Message Date
Murai Takashi
1f7ac2962b media-add-ons/opensound: Fix -Wvla-larger-than=
Change-Id: Id98018caf81ce8a2eb1069c52ee80a5ee00bfacb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3378
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-11-08 11:56:10 +00:00
Autocomitter
66b9faa816 Update translations from Pootle 2020-11-07 08:50:03 +00:00
Jérôme Duval
b05d6f0af0 POSIX: asprintf and vasprintf are BSD/GNU extensions
fix #16259

Change-Id: Ia16bb6e1944b87b25d1a940bbdaaf6e236db1abf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3381
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-11-07 08:49:34 +00:00
Jérôme Duval
21ba652bab kernel/fs: fix previous commit logic
fix #16598

Change-Id: Ie34c1563bd34dbe9c6cda92e41a2d5a96d20c3b1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3383
Reviewed-by: Jacob Secunda <secundaja@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-11-06 21:14:00 +00:00
Jérôme Duval
2a849a6457 fifo: fsync() returns EINVAL
fix #15288

Change-Id: Ic86bcec662c81cb04b743ec077cc8a2f3941f96e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3379
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-11-04 22:01:15 +00:00
Jérôme Duval
6878792ae4 C11: add aligned_alloc()
Change-Id: If648c0e27ed946874d393e8e33a4548b70c8ecdb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3377
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-11-04 21:01:42 +00:00
Jérôme Duval
26ab0d051c kernel/fs: update position when user writing with O_APPEND
when appending, pos is passed unchanged to the write hook.
fix #16506

Change-Id: I102e8e00e635d7a32cf50f09d8bd3d28dc235f9b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3373
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-11-04 06:19:02 +00:00
Jérôme Duval
b48159dce2 POSIX: add tcgetsid()
Change-Id: If58141b4e56b7fe444460b6808e33abc5ea71f37
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3374
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2020-11-04 06:18:17 +00:00
Jérôme Duval
102bf4b799 kernel/x86_64: fix build 2020-11-02 18:08:58 +01:00
Murai Takashi
aaca5974ec bin/top: Fix -Wformat-security
Change-Id: I40bec25162d03f5af3a12f7b6a51d88be4c6e7b8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3370
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-11-02 07:22:26 +00:00
Murai Takashi
56e857a499 libs/util: Fix -Wformat=
Change-Id: I2ef917da71d4e436c274dfeb13386936e1c9d2d4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3362
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-11-02 07:20:28 +00:00
Jérôme Duval
18112d73b2 kernel/x86_64: use standard xstate length
for sse/avx when found invalid

Change-Id: I1c93e5dd8de80bf155eabb55c77119349a7186ab
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3372
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-11-02 07:18:10 +00:00
Autocomitter
5c752d3160 Update translations from Pootle 2020-10-31 08:59:25 +00:00
Jérôme Duval
071d7d3e3f network/stack: assume zero length ioctl requests are valid
posix ioctl calls don't provide a request length. Theorically these length checks
could be removed altogether.

Change-Id: Ie53f10dc8d050dd3bdf2e5a792ed79f139a24d29
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3364
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-31 08:15:09 +00:00
Mark Barnett
072d3935c2 makefile-engine: Fix driver compilation on x86_64
Remove unnecessary -fno-pic and make sure x64 linker output doesn't
put too much space between program header sections. By default, the
GNU linker will align program headers to page boundaries. In Haiku's
x86_64 builds this is 2MB, which the kernel considers to be too
much wasted space.

Fixes #15702

Change-Id: I2adce69b3de74340b05f7c0e8cda44d1b25b69fa
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3361
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-30 07:41:17 +00:00
Murai Takashi
ebb21bd148 file_systems/netfs: Fix -Wformat=
Change-Id: I291900a38cedf6b0bf6b61e55256ba60bff7935d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3349
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-30 07:40:15 +00:00
Jérôme Duval
47472aae7b kernel: fix gcc2 build 2020-10-29 22:29:18 +01:00
Jérôme Duval
4a722a65f3 strace: Added a few more types to termios ioctls.
Change-Id: I863a0a9bc6ad7527a56465246acac073f8878809
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3365
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-10-29 14:31:30 +00:00
Murai Takashi
67f1eabc45 libroot/posix/malloc_hoard2: Fix -Wformat=
Change-Id: I025aece61efabe2e7b32fec2fc9aec8969bd6664
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3358
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-29 11:15:15 +00:00
Murai Takashi
d56df58f3f kernel: Fix -Wformat-security
Change-Id: Ie07933315c055ba1e6896e0bf69b12bb6bec62f9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3343
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-29 11:14:09 +00:00
Murai Takashi
edb4846779 media-add-ons/usb_webcam: Fix -wformat=
Change-Id: Ie726c7b4ef9328e5542d845a1e7276e0509c4682
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3344
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-28 16:30:14 +00:00
Murai Takashi
17904e6253 bin/df: Fix -Wformat-security
Change-Id: Ib8e3000f9b16ef055269728fde3adaf1005a4fba
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3353
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-28 16:26:35 +00:00
Murai Takashi
ef2e30aaca boot/loader: Fix -Wformat-security
Change-Id: I760d2c7a99f0d20ae6d81c09f9ba786013c405d6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3354
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-28 16:25:26 +00:00
Murai Takashi
4f819c8959 servers/input: Fix debug build.
Change-Id: I74f90906c12284ee8a2aea9d9525a0a39bf16e64
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3359
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-10-27 10:11:28 +00:00
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