Commit Graph

60827 Commits

Author SHA1 Message Date
Murai Takashi
7fd9865ec6 translators/gif: Fix mismatching malloc/delete
fHeadMemblock is allocated by malloc() in MemblockAllocate(),
but freed by delete.
Pointed out by LGTM.

Change-Id: I5019c2c3e4d240051e6f8a1ac70a9738f6f97131
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1878
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2019-09-21 16:00:15 +00:00
Niels Sascha Reedijk
88dc9ee1b1 Remove MultiChannelControl.h
This class is not implemented in our code. It is not documented in the BeBook.

Change-Id: Id3a48dbd2039005f69998567dcc26548612f3e9f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1876
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-20 23:59:30 +00:00
Niels Sascha Reedijk
d450c75ca7 HaikuBook: Add skeletons for various undocumented interface kit classes
* BAbstractLayoutItem
 * BAffineTransform
 * BCardLayout
 * BCardView
 * BChannelControl
 * BChannelSlider
 * BDeskbar
 * BGridLayoutBuilder
 * BGridView
 * BGroupLayoutBuilder
 * BGroupView
 * BInput
 * BOptionControl
 * BSeparatorView
 * BSpaceLayoutItem
 * BSplitLayoutBuilder
 * BSplitView
 * BStatusBar
2019-09-20 21:03:54 +01:00
Humdinger
1448ced00b HaikuDepot: sentence casing notification titles
* We generally use sentence casing, even for alerts and notification
  titles

* Using "User usage conditions" uses a bit too many 'users' for my
  taste. How about dropping the "User" and distinguish possible future
  additions with e.g. "Developer usage conditions"?

Change-Id: Iff2473ec193515b960d3da45bbd590c95413f99f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1869
Reviewed-by: Andrew Lindesay <apl@lindesay.co.nz>
2019-09-20 16:58:57 +00:00
Niels Sascha Reedijk
4679af2788 API Docs: add various missing elements to support kit.
* Adds missing methods to BArchivable, BList and BString.
* Add missing defines to SupportDefs.h
2019-09-19 21:57:13 +01:00
Niels Sascha Reedijk
2afda31c8f API Docs: add skeletons for BBufferedDataIO, BStringList and BStackOrHeapArray 2019-09-19 21:57:13 +01:00
Niels Sascha Reedijk
eaf8dff073 API Docs: add skeletons for BUrl and BAlignment and complete BAlert 2019-09-19 21:57:12 +01:00
Niels Sascha Reedijk
97ae75c75b API Docs: add missing methods of class BView 2019-09-19 21:57:11 +01:00
Niels Sascha Reedijk
f6be862fc5 API Docs: small fix for InterfaceDefs.dox 2019-09-19 21:57:11 +01:00
Jessica Hamilton
19017f3f47 Initial version of lgtm.com configuration file.
* Ideally, should download a pre-built cross-compiler, but it
  finishes within the allowed run-time for now.
2019-09-19 04:03:09 +00:00
Kacper Kasper
827f75a766 Add missing include in bsd/sys/link_elf.h
* Doesn't build without it.

Change-Id: Ia8671f1545fee6684278e688d0a16a1147e78842
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1866
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-18 03:40:47 +00:00
Jérôme Duval
63ec1f9ae2 libroot: check API version to enable B_CLONEABLE_AREA on R1Beta1.
If at least one image is older than B_HAIKU_VERSION_1_PRE_BETA_2, new areas are
marked as cloneable.
Should fix #15244.

Change-Id: I82d7cad969102679084d0ad73430790278e3d15c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1849
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-09-18 03:34:02 +00:00
Humdinger
66d438d128 Mail: change keyboard shortcuts / labels
1) People normally don't change their email account and Mail settings
   often after the initial setup and short tweaking period. Using
   keyboard shortcuts on those menu items is wasteful. Let's remove
   them.

2) OTOH, I need to in/decrease the quoting level rather often (Mail
   could probably be more intelligent here, too...).
   Also, the current shortcuts for this ALT+' and ALT+SHIFT+' are awkward
   and in some keymaps (German, for example) unreachable.
   With the change in 1), ALT +/- becomes available, which is easily
   reched with many keymaps AFAIK, and the numpad.

3) Rename the menu items "Quote" and "Remove quote" to
   "Increase quote level" and "Decrease quote level", which is much
   more correct. Also ties n nicely with the +/- shortcuts.

4) Rename the BMessage constants for consistency.

Change-Id: I2da21ed3aa465c30d09b2520288b64dea70feeec
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1868
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-09-18 03:33:26 +00:00
Jérôme Duval
0227e84378 fat: add test script using mkdos, fstorture, fsx.
not fully tested, as fstorture crashes with #15357.

Change-Id: If00368f1287af1d46da38fef4c3943956de1db79
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1867
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-09-17 19:53:40 +00:00
François Revol
96e0ae70d4 dump_windows: off-by-1
Change-Id: Iaa6bd350cbc8b07016f7a73a267107431e173e93
2019-09-17 19:56:34 +02:00
François Revol
f60531661b Add a dump_windows script to help with automating screenshoting
Oddly hey hangs when asking Pe, someone should investigate.

Change-Id: Ic94d0a2600ceae5f73ce11d5666b6a7abd54c0c0
2019-09-17 19:32:32 +02:00
Adrien Destugues
9d87b2c5f8 Revert "Jamrules: Include the UserBuildConfig before processing repositories."
This reverts commit 7115cef989.

It prevents using UserBuildConfig to decide what packages gets included
in the resulting image.
2019-09-15 17:33:36 +02:00
Adrien Destugues
eff7baa89a Revert "kernel/fs: Add missing IS_USER_ADDRESS check in user_vector_io."
This reverts commit 2b5ebfcfd5.

Breaks cmake.
2019-09-15 17:00:39 +02:00
Adrien Destugues
d761df9f70 BMessage: fix NULL pointer dereference in out of memory condition.
Change-Id: I75ba6e5069cda8a92fd88bf7d1e999232359e73c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1864
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-14 20:06:18 +00:00
Humdinger
4015b5877f Mail: Fix 'Leave as 'New'
When closing an unread email via "Close | Leave as 'New'", it's
still set to MAIL:status "Read".
IComparing the BString read from the MAIL:status attribute returns
"0" for a match, which the if-statement turns to false...

Change-Id: I4c3846fd39a6056e4bed8388e41dbf4929798799
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1865
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-14 20:05:52 +00:00
Mikael Konradsson
9b695ae61d ProcessController: Fixed bars so they are aligned in center and scale
with the selected fonts

Change-Id: I016c600d62ea28d4197f94f29ec0c372b5a87169
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1848
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-09-14 17:31:11 +00:00
Augustin Cavalier
d46af3075e app_server: Catch drawing (AGG) allocation exceptions.
Since _DispatchViewDrawingMessage sends single B_ERROR replies
in a number of generic cases, doing so here is probably fine;
it's much better than crashing, anyway.

This is the generalized case of PulkoMandy's earlier patch,
which only applied to one drawing operation. This now affects
all AGG calls.

Change-Id: I751439e43cc300b964ac4cf41c48c1df30baf0a3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1863
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2019-09-14 17:25:58 +00:00
Autocomitter
174a50869d Update translations from Pootle 2019-09-14 08:39:05 +00:00
Mikael Konradsson
e5d533fda5 OutLineListView: adjust color of expander arrow when using dark color scheme
Change-Id: I7de7a460111556b7f40565ed0a6110c1f7660a25
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1847
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-09-14 05:08:06 +00:00
Augustin Cavalier
7ba58efd3a Installer: Skip block, character, FIFO, and socket devices/files.
Fixes #15019.
2019-09-14 00:40:30 -04:00
Augustin Cavalier
b9fc38d9a4 kernel/fs: Automatically tail syslog on "no boot partitions".
The real reason none were found is likely in the syslog.
Even if the last 15 messages do not have the real error, they
may be enough to point towards what the problem is, or at least
uniquely identify the issue.

Fixes #15348.
2019-09-14 00:26:58 -04:00
Augustin Cavalier
2b5ebfcfd5 kernel/fs: Add missing IS_USER_ADDRESS check in user_vector_io.
The iovecs themselves were checked before they were copied,
but the iov_base inside each was not, making it possible
for evil (or just broken) user applications to put kernel
addresses in here.

Part of #14961.
2019-09-13 22:11:27 -04:00
Augustin Cavalier
e315daa9c1 kernel/thread: Clarify permissions checking logic.
No functional change intended; but if I missed a case,
it will now be caught by the "return false" instead of
the "return true", which is a better default.
2019-09-13 22:10:23 -04:00
Augustin Cavalier
750b43405a kernel/device_manager: Add NULL checks before function calls.
Fixes #15175.
2019-09-13 22:09:53 -04:00
Augustin Cavalier
48a00c0f66 acpi: Support namespace reads into user addresses.
Fixes #15176.
2019-09-13 22:03:10 -04:00
Augustin Cavalier
cf344027f8 kernel: Add padding in mutex fields for equivalent KDEBUG/non-KDEBUG sizing.
Non-KDEBUG kernels and kernel add-ons use atomic operations to acquire
and release the locks inline, so non-KDEBUG kernels/addons are only
compatible with other non-KDEBUG kernels/addons.

Following this change, though, KDEBUG kernels/addons should be able
to run under non-KDEBUG kernels/addons, too, since they always call
into the actual kernel functions and do not inline anything of
consequence.
2019-09-13 22:02:52 -04:00
Augustin Cavalier
19e017cb13 XHCI: Clarify a comment.
No functional change.
2019-09-13 21:32:58 -04:00
Jaroslaw Pelczar
b3a12553f8 arm64: Implement IRQ masking for kernel
Signed-off-by: Jaroslaw Pelczar <jarek@jpelczar.com>
Change-Id: I05e41f8cd28834e4bcc9f02b4694a640f460cd17
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1856
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-13 23:07:02 +00:00
Simon South
a041f1b49c GLUT: Fix message handling in GlutWindow
Call the superclass implementation of MessageReceived() to process messages not
handled by GlutWindow itself.

This restores mouse and keyboard functionality in OpenGL apps, including
Celestia, affected by commit 75e5739772.

Change-Id: Ic3af56ab2f78e8b2b8be576d2edc30bb7357f359
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1862
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-13 22:57:04 +00:00
Jérôme Duval
428d8bc6fc usb_hid: use user_memcpy in JoystickProtocolHandler::Control().
on success, returns B_OK instead of B_ERROR.

Change-Id: I3e415d812ddbc6dbc4d27f346bbe7ea59374b39f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1861
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2019-09-13 17:40:27 +00:00
Jérôme Duval
be06cb25e9 libroot: make API version available.
Change-Id: I370d5c8e9b4f076e7f115ca6c87bc7f943d36c17
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1850
Reviewed-by: Rene Gollent <rene@gollent.com>
2019-09-13 13:38:08 +00:00
Humdinger
b05def659e Screen prefs: localize "Brightness" slider
Add a colon, so it fits better to the other slider labels.
Fixes #15346
2019-09-13 07:47:45 +02:00
Mikael Konradsson
9a9f4ef578 Deskbar: Made expander knobs light when menu background is dark
Change-Id: I56a2fe1d4b1ce66476077e96e64066bf2950b4b4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1846
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2019-09-12 09:38:41 +00:00
oreo639
0fe6734183 idualwifi7260: Import iwm-3168-ucode from FreeBSD 12.
This adds the firmware for Intel Dual Band Wireless-AC 3168NGW,
which the driver itself supports, making it possible to use this
device on Haiku.

Change-Id: Id8df2f3128cefb23dd1a5c2919c38945dce7cb94
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1844
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-11 22:53:16 +00:00
Jérôme Duval
afbf0848e1 ext2: add test script for ext2 filesystem.
based on a test script from FreeBSD.
this uses fsx and fstorture to exercise the fs, mkfs.ext3 to initialize,
e2fsck to check the integrity. single-threaded test is OK, multi-threaded is not.
the following blocksizes and features are tested: 1K, 2K and 4K; huge_file,
dir_nlink, extent, 64bit, metadata_csum.

Change-Id: I948672194bfae0132341183efa4f4af962e2de02
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1843
Reviewed-by: Rene Gollent <rene@gollent.com>
2019-09-11 05:43:15 +00:00
Andrew Lindesay
0c82f64bf6 HaikuDepot: Conditions on Create User
When the user chooses to create a new user they
are able to view the current usage conditions for
users.  They are also required to agree to the
conditions and they are required to confirm that
they meet the minimum age requirement.

Relates to 15209

Change-Id: I83cdaabe1b3da31a4cd21139b72341f4b93cab85
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1842
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2019-09-10 06:10:17 +00:00
Augustin Cavalier
a310e5e52f kernel/fs: Continue even if InitialDeviceScan returns an error.
See inline comment. Should fix #15330.
2019-09-09 20:51:58 -04:00
Augustin Cavalier
598b8e19a2 kernel/disk_device_manager: Continue scanning after invalid partitions.
As the inline comment notes, just because we could not scan one
partition does not mean we won't be able to scan the following ones.
This fixes scanning for disks on certain systems following axeld's
change in 7c2135591b.

Part of #15330.
2019-09-09 20:50:54 -04:00
Augustin Cavalier
1bdffaf427 kernel/fs: Only dump devices and partitions under KDEBUG.
Avoids a lot of noise in release kernel syslogs.
2019-09-09 20:46:45 -04:00
Augustin Cavalier
4ee6978ed7 BFS: Only compile with -O1 under GCC2.
GCC7+ does not have whatever compiler bugs plague GCC2, so we can
use -O2 there as usual.
2019-09-09 20:30:47 -04:00
Alexander von Gluck IV
194a45c6b4 system/glue: Add arm64 glue
Change-Id: I578c0ac89e5d40f086d0b66d5711f2b78c6087e1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1840
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-09-09 13:13:56 +00:00
Andrew Lindesay
051ee9d8fc HaikuDepot: Improvements to User Ratings
Change to match the web user interface behaviour;
the user ratings for all architectures are shown
and the list of user ratings is restricted to the
actual repository in use.  This is important
where two repositories have the same package with
different versions.  Also the architecture
is displayed with the version in the package info
page.

Change-Id: I8c024d9ddec6b97f52233b7462c47d2a1c83af09
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1817
Reviewed-by: Andrew Lindesay <apl@lindesay.co.nz>
2019-09-09 08:15:35 +00:00
Augustin Cavalier
75d2b89f76 Terminal: Fix GCC2 build. 2019-09-07 15:11:46 -04:00
Autocomitter
1625c5e549 Update translations from Pootle 2019-09-07 15:15:37 +00:00
sushilhub
595f071522 mediaplayer: write a break statement
Change-Id: I3cb8a7c6dcd6369b18062677963947fb4a313669
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1837
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-09-07 15:04:55 +00:00