Commit Graph

56962 Commits

Author SHA1 Message Date
Axel Dörfler
742b85c1f1 vfs: Let new_vnode() and publish_vnode() wait for busy vnodes.
* Both functions need to wait when encountering a busy vnode, in order
  not to create a race condition in combination with get_vnode().
* This should fix both #5262, and #9839.
* I did not implement Ingo's suggestion to burden the file systems with
  solving the problem for the following reasons:
  - I think the file system interface should be as simple as possible.
  - I can't think of a possible locking issue at least for BFS.
  - The solution on the file system side would look pretty similar to
    what the VFS already does or has to do (minus controlling the locking
    directly), so it would cause quite a functional duplication.
2017-04-02 14:30:45 +02:00
Adrien Destugues
d5bff72ed8 Fix use after free.
As pointed by Marcus, FindString returns a pointer to the internal data
of the BMessage, so the message must stay in scope as long as we use the
pointer.

Thanks for reviewing!
2017-04-02 08:23:01 +02:00
Alexander von Gluck IV
ad7a5be908 x86_64: Update sdl2_ttf to 2.0.14-5
* Fixes broken shared library symlink
2017-04-01 13:59:54 -05:00
Adrien Destugues
737e508de0 ffmpeg: give a little hint about the file type.
ffmpeg, especially older versions, is not very good at detecting file
types and relies on us giving it a file extension for a better guess.

Use our MIME sniffing to have a first try at detecting the file we are
about to play, and pass this information to ffmpeg.

Fixes #13150.
2017-04-01 19:11:02 +02:00
Brian Hill
b105213b81 SoftwareUpdater improvements
*Bug fix- list item colors use Appearance settings
*Problem Solver window buttons right aligned, window now app modal
*The main window's stripe and icon now use the same scaling as BAlert
*A pop-up menu displays an option to view more details (replaces the
	tooltips)
*New prompt at application start to choose between doing an Update or
	a Full Sync.  Also lays the ground work for implimenting silent
	check-only feature.
2017-04-01 12:40:39 -04:00
autonielx
c5c0dd6c8b Update translations from Pootle 2017-04-01 06:43:41 +02:00
Humdinger
a1483eb904 New package for QuickLaunch v1.1
Needed a quick new release:

*	Fix disappearing favorites.
*	Add context menu with quick access to favorites and QuickLaunch's
	"About" to Deskbar replicant.
*	Updated localization and documentation.
*	Tiny tweaks to the QuickLaunch icon.
2017-03-31 19:58:22 +02:00
Axel Dörfler
fe9ddedc07 BBox: Fixed broken fBounds position update.
* FrameMoved() is only for frame movements; only scrolling affects the
  bounds position.
* Thanks stippi!
2017-03-31 18:21:44 +02:00
Adrien Destugues
6bbb8b3022 Build fix. 2017-03-30 18:40:34 +02:00
wangxingdsb
c8a27537a7 ext2: check some more values for ext2_super_block
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #13401.
2017-03-30 07:31:29 +02:00
wangxingdsb
2ff144d005 ext2 Journal: Warn that we found an unrecognized block
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #13400.
2017-03-30 07:31:20 +02:00
Humdinger
e633e9ef5a Fix crash with missing midi_settings
fActiveSoundFont wasn't initialized when there's no midi_settings file.
Don't allocate it on the heap, the object get implicitely initialized to
an emtpy string.
Tiny style fix.
Thanks to AnEvilYak for his consultation.

Fixes #13402.
2017-03-29 16:29:56 +02:00
Alexander von Gluck IV
deb50a898c xhci: Cleanup tracing, add trb ring dump
* Cleanup trace output. Don't print hex without 0x prefix.
2017-03-28 15:47:54 -05:00
Fredrik Holmqvist
e5c95a01ff Use 64 bit addressing for ACPI on 32 bit builds.
32 bit builds with PAE are so much fun. It's like
64 bit without all the extra registers...
2017-03-28 21:34:42 +02:00
Fredrik Holmqvist
dd9702007b When logging, use correct function name. 2017-03-28 21:34:42 +02:00
Alexander von Gluck IV
45ce7ea829 xhci: Improve No-Op tracing 2017-03-27 16:51:07 -05:00
Alexander von Gluck IV
8629d82e17 xhci: Cleanup double endian conversions
* The previous xhci endian fixes performed some double
  conversions.
* Tighten down conversions to only where the driver interacts
  with raw trb3 data in the ring buffer
* No impact to x86*
2017-03-27 15:41:10 -05:00
Fredrik Holmqvist
4bef8ab8de Function needs more void. 2017-03-27 20:12:24 +02:00
Humdinger
463525bb70 Updated QuickLaunch to v1.0, added/updated optipng packages 2017-03-27 20:01:40 +02:00
Fredrik Holmqvist
35226072bc __FreeBSD_version__ is always 8, remove old #if
Reduce number of todos...
2017-03-27 19:04:30 +02:00
Adrien Destugues
7099f6549c openjpeg: update to fix libpng dependency 2017-03-26 11:25:49 +02:00
Adrien Destugues
471813967b Update ca_root_certificates
Any way to automate this like for PCI and USB ids?
2017-03-26 10:36:02 +02:00
Adrien Destugues
a4834579f8 Add test for BNetworkAddress::Equals
Shows that #12247 is invalid.
2017-03-25 15:49:44 +01:00
Fredrik Holmqvist
f1361497b0 Revert min / max change and set timeout_t nice way
Mixing up seconds and micro-seconds made me do it.
2017-03-25 15:00:55 +01:00
Fredrik Holmqvist
3bbff30d9e DHCP initial timeout 0.25s from 4s
Connecting to wifi is very slow, there are several issues.
Easiest to find and fis is that on my wifi DHCP always took
4s, as first request fails. Still investigating why..
Reducing timeout to 0.25s makes DHCP process fast.

Moved timout handling into its own struct, and changed state
timeout from max(remaing, 60s) to min(remaining, MAX_TIMEOUT)
Not sure about that change, but why would you want a max value
that is at least 60s?
2017-03-25 13:42:08 +01:00
Thorsten „mirabilos“ Glaser
be9a70562e Make /etc/profile compatible with non-bash shells again.
Fixes #13384.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-03-25 12:04:08 +01:00
Adrien Destugues
2616691f31 Add tnftp package for x86_gcc2.
This will replace our old fork in Haiku sources, once it is available
also for x86_64 and x86.
2017-03-25 10:54:54 +01:00
autonielx
f1a552cad9 Update translations from Pootle 2017-03-25 06:41:13 +01:00
Axel Dörfler
ff4dee1caf BView/BBox: Fixed FrameResized() handling.
* BView incorrectly passed the current width and height to
  FrameResized(), not the one from the message. Since there is such
  a call for each size change, a Draw() might have been called for
  each of those in return.
* This should also fix such problems in BMenuBar, as it used the size
  from FrameResized() as it should have.
* BBox now correctly takes the update events into account, and no
  longer ignores the size passed to FrameResized().
* This fixes bug #3037.
2017-03-24 16:33:12 +01:00
Brian Hill
a652a5fed3 Reorder fallback fonts. Fixes #13389
Put the Noto Sans Symbols font last in the list of fallback fonts.
2017-03-21 18:57:53 -04:00
Alexander Andreev
19d8e4f73c ipv4/6: fixed crossing link fields from different hash tables.
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2017-03-21 12:38:55 +01:00
Alexander von Gluck IV
d8ce1a9fad x86/irq_routing: Convert panic into warning. Solves #13388
* Solves #13388 and likely a bunch of other bug reports.
* While this *is* an issue that can potentially be serious,
  there really isn't a risk of data loss or a system
  instability, only broken PCI devices. Show warning and
  keep going.
2017-03-20 14:10:14 -05:00
Brian Hill
ab8f11bff8 SoftwareUpdater updates
Bug fix- show correct version on package uninstall list item tooltip
Correct if else formatting
Use the BPackageManager FullSync() function instead of Update
Change warning strings in BPackageManager to sentence casing
Show list item tooltip on a mouse down (helps with touch devices)
2017-03-20 06:51:06 -04:00
Alexander von Gluck IV
8eee7007cf x86/irq_routing: More tracing around fill_pci_info_for_entry 2017-03-19 17:44:11 -05:00
Brian Hill
9458fd57e2 SoftwareUpdater fixes and network status check
Bug fix- use a proper sized 32 pixel application icon for notifications
Bug fix- sorting list of packages to install and uninstall added
Removed use of FinalWindow class now that resizing issues are resolved
Diaplsy alert if no network connections are found at application start
2017-03-19 18:05:02 -04:00
Alexander von Gluck IV
acdfec1189 x86/irq_routing: Improve trace information 2017-03-19 16:29:11 -05:00
Fredrik Holmqvist
ca92f2f454 Add back 32 bit addressing flag for 32 bit builds.
Should fix #13383.

Leaving other warning fix as they may not be needed with new ACPICA.
2017-03-19 21:14:07 +01:00
Alexander von Gluck IV
d78cf60aca acpica: Return semaphores to glorious signed integers
* Reintroduce change in last 2016 acpica upgrade
* Our semaphores are int's. This is the only change needed
  to the acpica source code to get it to function under
  Haiku.
* We could also disable this int-conversion warning,
  however lets go with the "more correct" behaviour in
  something that pretty much controls how our kernel finds
  PCI devices, CPU's, etc :-|
2017-03-18 23:41:54 -05:00
Alexander von Gluck IV
0bc647d605 acpica: Upgrade to 20170303
Notable changes since 20160729:
  * Will be dual licensed going forward. We choose the Intel License.
  * Fixed two issues with auto-repair double-delete an internal object
  * New hook for sleep support (AcpiOsEnterSleep)
  * Fixed a regression introduced in 20160729, "FADT support cleanup"
    around early 64-bit address support.
  * Fixed a problem where runtime implicit conversion was
    incorrectly disabled for the ASL operators below. This brings the
    behavior into compliance with the ACPI specification:
    FromBCD,ToBCD,ToDecimalString,ToHexString,ToInteger,ToBuffer
  * Fixed a regression in the internal AcpiTbFindTable function where
    a non AE_OK exception could inadvertently be returned even if the
    function did not fail. This problem affects the following operators:
    DataTableRegion,LoadTable
2017-03-18 23:16:13 -05:00
Alexander von Gluck IV
8cc5325ad5 agg: Pull in updated scanline + basics header from 2.4
* Resolves #13382
2017-03-18 18:59:30 -05:00
Augustin Cavalier
ad05d1f087 libs/agg: Remove GPC.
It was licensed with a "no commercial usage allowed" license, which if
we were using it would be a gray area at best. We weren't using it at all,
and AGG seems to have disabled building it by default, so just remove it
from the tree entirely.

Briefly discussed on IRC.
2017-03-18 19:27:45 -04:00
Humdinger
b8eeeb21e3 Added makefile_engine documentation to package
Added a note where to find more info on the makefile-engine to the
Makefile template. Added makefile-engine.html to the package.
2017-03-18 20:20:58 +01:00
Brian Hill
3d18f37d46 SoftwareUpdater fixes and features added
Changes:
Fixed window resizing bug that happens after packages start downloading
Application icon and left stripe are sized relative to font size
Added alert window dialog to display BPackageManager warnings
Added tooltips to the packages in the list view
2017-03-18 08:36:04 -04:00
autonielx
663a6ac2f9 Update translations from Pootle 2017-03-18 06:40:38 +01:00
Brian Hill
93b87bac1f Add Noto Sans Symbols as a fallback font
Haiku should be able to display more symbol characters now with this
as a fallback font.
2017-03-16 18:10:18 -04:00
Automatic Committer
5487ff036f Update pci.ids from pciids.sourceforge.net 2017-03-16 05:20:15 +01:00
Hy Che
3f73d5625c Fix crash when mounting btrfs volumes
Found item has data offset higher than block size. Move the stream to get the
data. If the data does not fit in the block, fetch it directly from the device.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #12788.
2017-03-13 19:43:44 +01:00
Humdinger
4135f1fd20 Update makefile-engine doc to v2.6
Grammar, formatting, updated paths etc.
2017-03-13 19:33:40 +01:00
Alexander von Gluck IV
63863c9849 cpu_type.h: Fix missing ;, sorry for spam 2017-03-12 15:11:02 -05:00
Alexander von Gluck IV
54066ddbb7 OS.h: Add AMD Ryzen CPU name identification.
* Update cpuidtool.c to new post-smp rework name
  calculation
2017-03-12 14:46:02 -05:00