61470 Commits

Author SHA1 Message Date
Augustin Cavalier
926dd357ae HaikuDepot: GCC2 fix.
Change-Id: Idef303343a009df8ec858f5a2a596b6292366d57
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2806
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 60d011e07fb5d10fb13a92817f2ba86d39a57cd5)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2807
2020-05-25 02:18:40 +00:00
Augustin Cavalier
29bec8efb1 idualwifi7260: C89 fixes.
Change-Id: I8138f4ed4877b3f7e8eb54ad0bc64a60278e8b61
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2734
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit f37d2d10a0f878b0d461725273eb52e22a87ea1c)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2805
2020-05-25 01:40:19 +00:00
Augustin Cavalier
1c9e27c98d idualwifi7260: Port changes from newer FreeBSD.
This adds support for the 9xxx series of devices.

Change-Id: I43385e91b91201732397b79c38bd9bb4f3a18f1b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2733
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit ba5694b017dc885a29578f302e691a98686cd34d)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2804
2020-05-25 01:40:05 +00:00
Adrien Destugues
3568a92fa3 Create filesystem indices when creating Haiku image
Fixes #4424.

Change-Id: I737ee4f9bb70ce48c0c94f3a862a3073da8c0c4d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2803
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-24 20:08:18 +00:00
Niels Sascha Reedijk
4f00c9cd55 AboutSystem: activate and update credits for hr and eo
Change-Id: Ie50b96823ad684bcaba39a85728a2ab2cf676613
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2785
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-24 15:53:41 +00:00
Adrien Destugues
e64e69fd87 Time preferences: fix button jumping position
Fixes #16102.

Change-Id: I8d89173009b21e1c31652bb2f011ceb46195c232
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2795
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 307745c6ad187448a37a292e269402e65de46be7)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2801
2020-05-24 15:53:25 +00:00
Andrew Lindesay
b05ceb5b54 HaikuDepot: Fix Crash on Quit During Load
If the system is currently loading-up and populating
data and the user quits then it was crashing because
of a call to a deleted ProcessCoordinator object.
This change implements the reference as BReference
ensuring that the ProcessCoordinator object is only
deleted after it is not used anywhere.

Resolves #16109

Change-Id: If535c151819da37d502283af3745e4148da69026
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2797
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit f95ec23e9582b09d2067c39903ea8cbbe7bf1e94)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2800
2020-05-24 15:52:08 +00:00
Kyle Ambroff-Kao
6cd0211057 tcp: Don't skip TIME_WAIT state for loopback sockets
This fixes a SEGFAULT in the tcp add-on reported in issue #15952. See
that issue for some analysis.

The short version is that, when closing a session over the loopback
interface, there is a special branch which skips the TIME_WAIT state
and instead just releases the socket while handling a RST/ACK
segment. If the timing is right this can lead to the reference
counts becoming imbalanced, leading to the code in tcp_receive_data
segfaulting when it tries to release the reference it acquired from
EndpointManager::FindConnection.

I can't find any other systems which skip the TIME_WAIT state with
loopback sessions, and I'm not entirely certain that it's a totally
safe thing to do anyway. This patch instead just treats local sessions
the same way it does a remote session and uses the TIME_WAIT state.

Any workload which creates and discards lots of ephemeral sockets can
just use SO_REUSEADDR to handle this situation like any other system.

To add a final bit of safety, the only place where a net_socket can be
used after calling gSocketModule->release_socket(net_socket*) is in
tcp_receive_data(). release_socket() returns true if the reference
count falls to zero, deleting the socket. There was an unused segment
action flag DELETE_ENDPOINT that I renamed to DELETED_ENDPOINT, which
is used by tcp_receive_data to know whether its safe to release its
reference to the socket after calling TCPEndpoint::SegmentReceived().

Change-Id: I2652fb225c3c8419234cfd627f74ff2de8402003
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2793
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 51dd385e3ea8651afd345d724193365cc47dacf2)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2799
2020-05-24 15:48:18 +00:00
Andrew Lindesay
3594a3b432 HaikuDepot: Single Package Crash
In single package mode there was a crash owing to the
status bar not being present.  This may as well be
added because it provides some feedback that the
application is actually doing something.  The
behaviour of this is not ideal because the feedback
could be better, but it will resolve the crash
issue this ticket is raising.

Resolves #15964

Change-Id: I603a7b163139859f0c46a35ead0809e5d82e0f8d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2791
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 87016f8f49d6de59aedcf9a26f64362a4abe1d46)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2792
2020-05-23 21:58:24 +00:00
Augustin Cavalier
e51536b91e app_server: Add locking to the Decorator class.
This class can potentially be accessed by multiple "tabs" (windows)
at once, so it must be read/write locked to account for that.

Fixes #16027.

Change-Id: I9cc741874caed4997497b03c8893bc2acb0e6fe7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2779
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit f0a8640b45451b9891fa641144acc33b90ac9a23)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2790
2020-05-23 17:59:37 +00:00
Niels Sascha Reedijk
5527f11778 Documentation: add userguide in fur, id, ro and tr
Change-Id: Iee02ec9c62a3fdf14920c3b08ebb97c282a5aa91
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2788
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-23 17:52:39 +00:00
Adrien Destugues
0e55a366be FirstBootPrompt: adjust window size to font size
At 12pt, we try to fit a 640x480 display. But at larger font sizes we
have to allow some more space.

Fixes #16066.
2020-05-23 14:39:54 +02:00
Kyle Ambroff-Kao
96f1875f90 tcp: Remove sanity checks from BufferQueue in release builds
Each TCPEndpoint has two BufferQueue members, one for the send queue
and one for the receive queue.

If DEBUG_BUFFER_QUEUE is enabled, then most methods of BufferQueue
call BufferQueue::Verify(), sometimes twice. This member function
performs some sanity checking which requires iterating through every
net_buffer in the queue.

Disabling this in a debug build improved throughput by a factor of 5x
over the loopback interface on my laptop. Using iperf the measured
throughput went from 900Mbps to around 4.8Gbps.

This patch turns this sanity checking off for release builds.

* Rename DEBUG_BUFFER_QUEUE to DEBUG_TCP_BUFFER_QUEUE
* Change the default in BufferQueue.h to disabled
* Set DEBUG_TCP_BUFFER_QUEUE to KDEBUG_LEVEL_2 in
  kernel_debug_config.h

Change-Id: I262dac5d7e2889d2942bbdcf6b667cc0cbafa4c8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2780
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 44a4bc5fd6d2bf7a0cfbaf303f6ec4b3f46f7142)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2782
2020-05-23 02:33:21 +00:00
Andrew Lindesay
9fa545e581 HaikuDepot: Performance
This change removes two mistakes I made a long time ago
that caused unnecessarily copying of lists of data. This
fix speeds up the UI alot.

This change also clears data in UI list elements when a
bulk load is requested.  It stops clearing otherwise and
instead uses "add" and "remove" operations in the lists
which is OK now because the UI list elements are much
faster than they have been in the past.  This removes
the strange clean-and-reload that was visible in the UI
previously.

A threaded package loading system was put in place a long
time ago, but with these performance improvements this
mechanism is no longer necessary; it has been removed to
simplify the code.

Fixes #16012

Change-Id: I393cee929695726539602b51630ae285fb8384f1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2748
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
(cherry picked from commit c419919252f9076761900fd4e7575407a554255e)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2777
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-22 14:16:10 +00:00
Andrew Lindesay
445d808c00 Packages: Local Repo Config Formats
The local storage of the various repositories' config
needs to cater for different generations of storage
formats and also needs to be able to swap out legacy
repository identifiers.

Change-Id: Ib4b3857254b7b703858eff6815e2d6c54d69da3c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1963
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
(cherry picked from commit 9d8d114499db1f50f105c48c1a2172ea56e18bcd)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2776
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-22 14:15:53 +00:00
Adrien Destugues
4d34c12cd7 Fix building on Haiku 2020-05-22 16:13:00 +02:00
Adrien Destugues
3724428f18 Icon-O-Matic: use the MIME sniffer to recognize SVG files
Our sniffing rule is not perfect, but it is already a lot better than
what was done here.

Partially fixes #14437 (the icons also fails parsing for other reasons,
but with an error message, at least)

Change-Id: I25475b419b5fbe863c71f553a336757d7950bf48
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2662
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 17626df948e1d384072e6a2f8eab4f7fc6a18d0a)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2775
2020-05-22 14:08:57 +00:00
Adrien Destugues
8fd4dad78c Icon-O-Matic: replace SVG parser with nanosvg
The parser was based on an old example from agg. NanoSVG is originally
based on the same code, but has lots of bugfixes. So it makes sense
to use it.

Nanosvg revision 25241c5a8f8451d41ab1b02ab2d865b01600d949

Fixes #5955, #8586, #13021.

Change-Id: I38ff9aa4e1d403c41979ebe42f7b45d4500a870c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2661
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 2a3b385efba22655c4d6ff61ed59203283392ad7)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2774
2020-05-22 14:08:38 +00:00
Adrien Destugues
f151ff0b09 Add Thai font to the font fallback system.
Fixes #16077.

Change-Id: I9809dcdcad61fc2956a270ff92b1ccaef4e8efb3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2768
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit afc74b61fe070cb58906d8a20a6ab42c9b019add)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2772
2020-05-22 01:30:15 +00:00
Adrien Destugues
94e7aaf616 app_server: fix font fallback
Actually check that the replacement font contains the needed glyph.

Change-Id: I6d774361fcf16a36dc3d05ce8b0fe1cb407fabff
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2767
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 4dcd8c81b12790b0ad7661f3ab8742ae619996be)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2771
2020-05-22 01:29:44 +00:00
Adrien Destugues
4e9dddd9c1 GlyphLayoutEngine: cleanup, no functional change.
Change-Id: I688d4a5f1c93de10f15bd34045cf342ea03fa984
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2766
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit c0e0ba1fd81bf26576e7bba166f03628adfa6b1d)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2770
2020-05-22 01:29:26 +00:00
Humdinger
794158e49b Pulse: fix typo in signature
Fixes #16088

Change-Id: Iccfcd5c59c9eca989872d76ddf5cac5f06ef85e3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2751
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit cdd33d8e6112b3d080b1f28be89130675d123d3e)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2765
2020-05-21 17:28:46 +00:00
Autocomitter
882339b7fc Update translations from Pootle 2020-05-21 16:47:08 +00:00
Niels Sascha Reedijk
9e9b996ae9 Beta2: block using the Installer to upgrade an existing system.
See #15808. Installer does not do what it promises to do, that is, that is
clean the system folder and essentially perform a clean install. Instead all
packages are copied to /system/packages, but they are not activated. To make it
worse, the system is then unable to upgrade through pkgman later on, as it
bails with the error that the files already exist.

This change at least stops Installer from pretending to do a clean install.

Change-Id: I5e2b1f571a99f9f8c020f77c314974719346f750
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2760
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-05-21 16:29:01 +00:00
Jérôme Duval
5e70b35ad1 packagefs: for symlinks, return the symlink length as size.
Change-Id: I60cc9c751a7426d18e27a9cbb163d43b80bcfa28
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2761
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 2905c9fcef1be428c60bc71543559d862ec558b6)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2764
2020-05-21 14:39:57 +00:00
Jérôme Duval
fc63fa40d4 write_overlay: readlink behavior change
Change-Id: I036f3e7f84e4a771846482fe81c2db4c4d718aef
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2754
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 3966c601394f6248c3152e668abb998b9414b6c1)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2759
2020-05-21 01:44:27 +00:00
Jérôme Duval
89061e5ae5 kernel/fs: rootfs and devfs readlink behavior change
Change-Id: I23ec687965493162594924c32f8ff31e7da396d7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2753
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit bc231fc7824aba2ecad7a9b2491618a03b00c747)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2758
2020-05-21 01:43:58 +00:00
Jérôme Duval
7299ed0f04 kernel/vfs: follow up for hrev54107
_user_read_link: don't write after the buffer end, anytime the buffer is too
short. It should honor the user bufferSize, instead of using the link length.
normalize_path: null-terminates when bufferSize is lower than B_PATH_NAME_LENGTH.

Change-Id: If3892dc1ffc4aa7a79a333bbe607449ca409a7f0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2752
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 10b5c00fca4a3f2f957116aa599ae5d8f5705fcb)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2757
2020-05-21 01:43:31 +00:00
Augustin Cavalier
434d2ec582 kernel/file_cache: Properly size I/O request vectors when writing zeros.
Should fix #16039.

Change-Id: Ifc5c79354979aaa7b27b09acc6d6450e21146e76
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2727
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 8ba0b5eb9b5ad37695c492748d9155b0491d29ce)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2756
2020-05-21 01:41:56 +00:00
Alexander von Gluck IV
eb87bf2819 Fix build of Haiku on gcc10 host
Change-Id: Iea16a7d07a32497c4f228739945356b5c8be9897
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2540
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit a742970be5ec4d3fab3fb6a35567038986f50116)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2755
2020-05-21 01:35:32 +00:00
Autocomitter
eb4002a4db Update translations from Pootle 2020-05-19 05:45:18 +00:00
Augustin Cavalier
00fcefa40e nvme_disk: Avoid doing I/O larger than the maximum size, if possible.
libnvme can break up transfers that are too large, but to do so,
it allocates one nvme_request struct (of which it has a large,
but finite, pool) per segment. Since we are already iterating
over "vecs", we might as well cut off transfers after they
would otherwise go over the limit.

Individual IOVs that are too large are left alone, though;
libnvme can still handle this. But at least we no longer try
to do all I/O in one go.

Tested in a similar manner to the previous commit.
(cherry picked from commit 4d0ad37aba376be915192ae142345efd72e00342)

Change-Id: Ib3ebcd4954c260e75211205b8ec59e346b119ce2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2747
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-19 04:36:00 +00:00
Augustin Cavalier
ec8c6f2da7 nvme_disk: Fix ior_reset_sgl.
The "offset" parameter was not actually an IOV offset, but actually
a byte offset across all IOVs... whoops. Somehow, this went unnoticed
as most controllers have large enough maximum transfer sizes
that we would in practice not hit the limit (even with bs=1M
dd tests!)

KapiX's controller, as seen in #16049, however, has a maximum
transfer size of 64 pages; much smaller than these other controllers,
so it did trigger this behavior and exposed the bug.

Tested by adding an artificial limit of 2 blocks as the max
transfer size (which makes things pretty slow, as you might
expect.)
(cherry picked from commit 8eb950cd6421ce20123c99b899d6d7e24dcdddd3)

Change-Id: Ia87ba4962d401da62fdff015b19809b8908bdf3b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2746
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-19 04:35:40 +00:00
Augustin Cavalier
52eff22d11 nvme_disk: Error check after do_nvme_io_request.
Fixes partial transfers being reported as larger than they actually were.

Change-Id: If7feda4e10203e8b6f2fd563fa4dcfb2b6cfc0d1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2745
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-19 04:35:11 +00:00
Augustin Cavalier
f9f41257f4 HaikuDepot: Fix GCC2 build.
Change-Id: Id7ab6286ccf3b5e832ef18b6aa7996aa87310760
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2741
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-19 02:44:43 +00:00
Andrew Lindesay
b0f2de3518 HaikuDepot: Featured Pkgs View
This change will move the display of the featured packages
from a dynamic layout to one that is static.  This should
improve layout consistency and ui performance as well as
introduce keyboard navigation in the featured packages
list.

Resolves #11675, #15012
Helps #14675

Change-Id: Iddac7a9562763c7a890ec5dcf633e94f84684f43
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2708
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
(cherry picked from commit 9883929b9cf86d48b4e6ee22ba22da30f0e1a998)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2737
2020-05-18 06:39:53 +00:00
Augustin Cavalier
5541a820dc nvme_disk: Fix nvme_qpair_submit_queued_requests.
I added this function to make the queued requests logic more robust,
but I failed to notice that since it is called from nvme_qpair_submit_request,
it would just result in a deadlock of any qpair that had requests
queued.

May help with some of the "qpair lockup" tickets.

Change-Id: I5ff63b509ae8812356d0d33f019027d3159b6685
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2735
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit cb53bf1e28eed6de3d3d94da913b1bbc3e2f9947)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2736
2020-05-18 00:23:39 +00:00
Augustin Cavalier
6bb73448d1 acpi: Use mutex_trylock() for ACPI_DO_NOT_WAIT.
We do not need to go through all the overhead of mutex_lock_with_timeout()
if there is in fact no timeout.

Change-Id: I7891ae9138a7d45be934ac53412b82546d52b901
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2730
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit a3a192c1cb6b4ae2403ffe7f50b48c663549d061)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2731
2020-05-17 19:34:22 +00:00
Augustin Cavalier
a796670d44 Deskbar: Fix build after last commit.
Change-Id: Ice721e56b9ff8bbdd01dde65933d6fa0c750823a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2728
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 97310aa7fc94a6569ef9117b062b93dfc2b99e76)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2729
2020-05-17 18:43:02 +00:00
Adrien Destugues
0a93571851 TimeView: fix direct messaging to another window
The window may be gone (if its B_QUIT_REQUESTED was called before the
main Deskbar window one), so we can't safely call Quit() on it. Instead,
just send a B_QUIT_REQUESTED through the BMessenger, which is a bit
safer.

Should fix #16026.

Change-Id: I4c99c3a7f994044c3c3f0c08b35ae451c3ff9ea7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2721
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 54bff8ec8213acf63f2dae914560c9fac575dc45)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2726
2020-05-17 18:27:49 +00:00
Adrien Destugues
cc4146ee10 HaikuDepot: do not use ICU directly.
Change-Id: I0097fe51cc9b41509e5ba0d2452c5f28eac0538a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2724
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 05d6891800b50ebc7fe95bbe93d8233322b5d718)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2725
2020-05-17 16:01:09 +00:00
Panagiotis Vasilopoulos
d625efa1c1 Deskbar: Improved UX in the shutdown submenu
* Moved 'Power Off' on top of 'Restart system'.
* Made a few visual changes to the code that adhere better to the Haiku coding style.
* 'Suspend' is now at the bottom of the shutdown submenu.

Change-Id: I0d41e3e5656d5d9ea02e3cb072b6a6092c70c640
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2701
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 79ca65ac9d561fe4c83f88a015350e9f591d8b2c)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2723
2020-05-17 14:27:40 +00:00
Augustin Cavalier
2681a159c0 kernel/lock: Fix build under non-KDEBUG.
I forgot to change MUTEX_INITIALIZER following removal of the
unused field.

Change-Id: I011c023ae00bb4576c8bcecf83546892fef3a77e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2719
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit e54b2d7cf2012fd0021025b0bb812838841fbd59)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2720
2020-05-17 03:36:25 +00:00
Augustin Cavalier
d35d946ad0 kernel/locks: Remove ignore_unlock_count and fix races in lock timeout.
As far as I can tell, there is no reason to ignore unlocks, ever;
if no threads are waiting, then mutex_unlock() will act appropriately.
So all we need to do is increment the lock's count here,
as we are relinquishing our request for locking.

On the other hand, if we did not find our structure in the lock,
that means we own the lock; so to return with an error from here
without changing the count would result in a deadlock, as the lock
would then be ours, despite our error code implying otherwise.

Additionally, take care of part of the case where we have woken up
by mutex_destroy(), by setting thread to NULL and checking for it
in that case. There is still a race here, however.

May fix #16044, as it appears there is a case where ACPICA
calls this with a timeout of 0 (we should make this be
a mutex_trylock, anyway.)

Change-Id: I98215df218514c70ac1922bc3a6f10e01087e44b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2716
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit fd161d7bf2e391af79507f3710f4ac27e22fc88c)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2718
2020-05-17 00:22:35 +00:00
Adrien Destugues
529cf83388 wacom: start node monitor earlier
Should fix #16003 but I don't have the hardware to test.

Change-Id: I0e6c0df7b66adf72e35e4afa272cd907427a9427
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2714
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 785518beefc57c5eaa0ce5cb293bffd7d25f1387)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2717
2020-05-17 00:15:02 +00:00
Adrien Destugues
6920f35fca Build fix 2020-05-16 20:12:37 +02:00
Pascal Abresch
c720d047ed aboutsystem: add Pascal Abresch
Change-Id: I30722cf3a72c0ebb89b5da08c5d3d7f03ac485ee
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2528
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-05-16 20:07:55 +02:00
Adrien Destugues
8e5a64fe25 Tracker: tweak FindPanel layout again
- Remove the "more options" latch
- Put the icon back on the left.

Fixes #16015
2020-05-16 20:04:54 +02:00
Adrien Destugues
957f33d497 Fix protracker mod sniffing rule. 2020-05-16 20:04:54 +02:00
Niels Sascha Reedijk
b7805185a9 AboutSystem: localize copyright string
Change-Id: Ia43004bbe56bebdb32bcfd3394135ffb9b9914af
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2711
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 9094f0c24f91b0f5ffe37bdbcd8d791c042b87fe)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2713
2020-05-16 17:39:50 +00:00