Commit Graph

54734 Commits

Author SHA1 Message Date
Jonathan Schleifer
93bcaf3650
arm/arch_exceptions.S: Replace spsr_all with spsr
After a quick look at binutils, they seem to be equal, however, Clang
does not accept the _all one.
2015-11-08 00:59:18 +01:00
Jonathan Schleifer
15d594cccd
ARM: Add __aeabi_memset and __aeabi_memmove alias 2015-11-08 00:54:32 +01:00
Jonathan Schleifer
d8548e00aa
Fix some more type mismatches with std::{min,max} 2015-11-08 00:44:18 +01:00
Jérôme Duval
6c4cca34c2 glibc: replace extern __inline with __extern_always_inline for x86.
* also update __atan2l for x86, update __FAST_MATH sections.
2015-11-08 00:38:20 +01:00
Jérôme Duval
7ccbb2f03f Add operator delete(void *, size_t) for C++14. 2015-11-08 00:38:20 +01:00
Jérôme Duval
b49dd60c46 Drop namespace std after 95d4ed6778. 2015-11-08 00:38:19 +01:00
Jonathan Schleifer
f10b49ed41
Fixup for my last commit (better check for Clang) 2015-11-08 00:37:13 +01:00
Axel Dörfler
7406866340 launch_roster: The beginnings of a launch_daemon control tool. 2015-11-08 00:09:26 +01:00
Axel Dörfler
b0ecbc13f0 launch_daemon: Refactored some message handlers, more info.
* The info getters will now add a lot more info.
2015-11-08 00:09:26 +01:00
Jonathan Schleifer
f2f1efc509
Use -no-integrated-as to create asm struct offsets
This depends on quite a nasty hack to generate those, namely using
inline assembly to generate a file with things that are not actually
assembly, which Clang therefore filters out.
2015-11-08 00:04:16 +01:00
Jonathan Schleifer
c7624537a3
ARM: Alias __aeabi_memcpy to memcpy 2015-11-07 23:11:14 +01:00
Jonathan Schleifer
456150599a
Add __clang__ to a few #ifdefs 2015-11-07 23:02:53 +01:00
Axel Dörfler
64df3e0483 launch_daemon: Added forgotten time update/dstcheck. 2015-11-07 21:58:12 +01:00
Axel Dörfler
5860caae39 launch_daemon: Added basic ability to stop/start jobs via API.
* Stopping a job is very simplistic right now, and will have to be
  extended considerably, probably with its own job.
2015-11-07 21:58:12 +01:00
Axel Dörfler
de0e15ae8c launch_daemon: corrected print server signature.
* Not sure yet why it actually worked before; must be some other
  bug :-)
2015-11-07 21:58:12 +01:00
Axel Dörfler
d8c022250d BMailAccountSettings: use BPathFinder.
* This allows to put add-ons in non-packaged folders, too.
* Also, Set{In|Out}boundAddOn() only ever looked in the system dir.
2015-11-07 20:55:14 +01:00
Jonathan Schleifer
617793f41b Add back declarations to kernel_cpp.h for GCC
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2015-11-07 20:53:13 +01:00
François Revol
9b1ce4307b Added flag for the Breton language.
Anyone wants to do the translation?

BZH POWAH!
2015-11-07 18:32:27 +01:00
Jonathan Schleifer
96474f3de2
Define __ARM_ARCH__=7 for RPi2 when using Clang 2015-11-07 18:30:07 +01:00
Jonathan Schleifer
55de0addd5
arm/arch_string.S: Only use sane insns for Clang 2015-11-07 18:29:50 +01:00
Jonathan Schleifer
ed6dfed2a0
Fix a type mismatch for std::min() 2015-11-07 18:16:40 +01:00
Jonathan Schleifer
71e0324992
Move new / delete kernel_cpp.h -> kernel_cpp.cpp
new and delete may not be defined as inline, as Clang loudly complains.
The same is true for static.
2015-11-07 18:16:23 +01:00
Jonathan Schleifer
b310316956
Fix arm/arch_string.S for Clang 2015-11-07 18:08:01 +01:00
Jonathan Schleifer
95d4ed6778
Add missing "using std::nothrow" 2015-11-07 18:08:01 +01:00
Jonathan Schleifer
5213914cec
Fix flags for RPi2
There's no point in tuning for the RPi1 CPU.
2015-11-07 18:07:45 +01:00
Jonathan Schleifer
95fd629fa3
Don't use -mapcs-frame with Clang 2015-11-07 18:07:45 +01:00
Humdinger
ad926b253a Improve/fix tab view layout as discussed
See http://www.freelists.org/post/haiku-development/Unifying-visuals-of-BTabView-usage

Besides the tab bar going the full width of the window, also some
layouting tweaks to several apps and prefs.

Still missing: the first (and last) tabs in the tab bar should be inset by
B_USE_WINDOW_SPACING so the controls in the tab view line up nicely.
I think I remember stippi wanting to look into it... :)
2015-11-07 17:40:24 +01:00
Humdinger
3c5208e439 Improve/fix layout
Some tweaks to the layout of apps/prefs in the course of using
B_USE_WINDOW_SPACING.
2015-11-07 17:40:22 +01:00
Humdinger
c8325bb7d7 Improve layouting of Expander
Especially actually hide the content's scroll view, which
otherwise would peak out if the B_USE_WINDOW_SPACING would
ever be increased.
2015-11-07 17:40:20 +01:00
Humdinger
744a39273b Use templatized version of BLayoutBuilder
...also more B_USE_WINDOW_SPACING
2015-11-07 17:40:18 +01:00
Humdinger
d0ac609964 Use B_USE_WINDOW_SPACING
Use B_USE_WINDOW_SPACING as inset from contents to window border.
Some whitespace cleanup.
2015-11-07 17:40:16 +01:00
Axel Dörfler
d5607aa971 SMTP: properly use const, and extern "C".
* This fixes having it picked up in the mail_daemon. That shouldn't have
  worked in the last three years...
2015-11-07 17:07:06 +01:00
Axel Dörfler
5ab027fdc9 Sudoku: use the layout API.
* This removes the CenteredViewContainer class, as it is no longer
  being used.
* However, it also removes its functionality, ie. the Sudoku view now
  fills the complete window (even without any borders), again.
2015-11-07 17:07:03 +01:00
Axel Dörfler
2e14f933e5 Sudoku: minor cleanup. 2015-11-07 17:07:01 +01:00
François Revol
4b53c7b1cf automake: update package to 1.15.0-1
I thought it would help fixing the current ARAnyM build, but no.
2015-11-07 16:17:47 +01:00
Humdinger
23efcbf39e Updated fish package.
Thanks to miqlas!
2015-11-07 15:15:35 +01:00
Humdinger
702f1b2e88 Added flag for the Catalan language.
Currently used in the user guide and welcome pages.
2015-11-07 14:37:15 +01:00
Michael Lotz
c869b2bb07 BPathMonitor: Remove unused headers, some whitespace cleanup. 2015-11-07 09:55:04 +01:00
Michael Lotz
8599f4b330 BPathMonitor: Lock on incoming node monitor messages.
The lock was only acquired when paths to watch were added or removed,
protecting the data structures against concurrent modification due
to addition/removal of entries by the API user.

Locking is also required for node monitor messages since these can
trigger the data structures to be modified (due to recursive watching
and new directories becoming available or due to resyncing of modified
ancestor chains).

Previously it was possible to corrupt the data structures when node
monitor messages were received while still starting to watch a directory
structure. This was especially likely in the case of watching devfs
directories, as accessing these can trigger device scanning which in
turn could possibly add new device entries. Either the path monitor
looper or the API user would then trip over the corrupted data
structures.

Probably fixes #11280. Although I was only able to reproduce crashes
on the API side, corruption of the hash tables and corresponding endless
loops are quite plausible.

Possibly also fixes #12412 if the input_server was in the process of
starting to watch entries. It's hard to tell due to the lack of a back
trace but would fit the crashes I was able to reproduce with a synthetic
test case.
2015-11-07 09:52:20 +01:00
autonielx
f22bfa7665 Update translations from Pootle 2015-11-07 06:32:09 +01:00
Simon South
75c31ae28d system: Build using public elf.h header
Reduce duplication of code by

* Removing from elf_common.h definitions available in os/kernel/elf.h
* Deleting elf32.h and elf64.h
* Renaming elf_common.h to elf_private.h
* Updating source to build using public and private ELF header files
  together

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2015-11-07 11:49:56 +13:00
Simon South
e3616ca108 system: Provide elf.h to applications
Make a version of elf.h (assembled from the private header files
elf_common.h, elf32.h and elf64.h, and including Haiku's extensions for
C++) available to applications ported from UNIX.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2015-11-07 11:49:53 +13:00
Axel Dörfler
e2f83cbd6b launch_daemon: Monitor teams, and restart services.
* Services that end are now automatically restarted.
* However, this is very basic at the moment, there is no throttling,
  and no support for shutting down the system.
2015-11-06 22:50:05 +01:00
Axel Dörfler
d8c0972a81 launch_daemon: Added "setting" condition.
* Moved the mail_daemon to the user startup, and start it only if
  enabled in the settings.
2015-11-06 22:49:17 +01:00
Axel Dörfler
c2f71fa688 launch_daemon: give the main worker thread a different name.
* It's now called "main worker" instead of just worker.
2015-11-06 22:49:10 +01:00
Axel Dörfler
3282b758b0 launch_daemon: Add API to get information on jobs.
* Ie. a listing of all targets/jobs, as well as specific (basic) info
  on each.
* Also added a bit of optional debug output.
* Moved translating the path to launch time -- we should take the job's
  environment into account here at some point.
2015-11-06 22:47:56 +01:00
Automatic Committer
7e45dd1057 Update pci.ids from pciids.sourceforge.net 2015-11-05 05:20:22 +01:00
Michael Lotz
44f5830503 BLocker: Make misuse warning more useful.
Also print the locker sem (for manual name lookup) and the involved
threads. It was also missing the line terminator which messed up the
following output.

Also fix a typo in a comment.
2015-11-04 00:11:17 +01:00
Michael Lotz
1cffe0dc51 BLocker: Fix recursive count for "unusual" use cases.
Since a BLocker can be unlocked from other threads than the one holding
the lock, it can also be further unlocked even when already unlocked.
This caused the recursive count to become negative. The first lock then
needs to reinitialize the count to 1 for the lock balance to work again.

Just incrementing the negative recursive count lead to it never
counting back down from one to zero in the unlock case, which made the
BLocker impossible to unlock.

This makes the Haiku BLocker behave exactly like the BeOS one, including
the negative recursive count and reinitialization, as evidenced by its
debugging features showing the internal counts.

Alternatively to reinitializing the recursive count it could be
prevented from going below zero in the first place, but I don't see why
we should deviate from BeOS there while allowing its awkward unlock
behaviour.

This makes some more exotic use cases work like the BGLView <-> SDL
combination that previously would always just hang. While these abuses
should be reviewed/corrected, just hanging the BLocker doesn't seem
useful.
2015-11-04 00:11:16 +01:00
Michael Lotz
271f422a92 listsem: Clean up format strings to use format macros.
Fixes printing values on x86_64.
2015-11-04 00:11:16 +01:00