Commit Graph

53001 Commits

Author SHA1 Message Date
Axel Dörfler
f1dd9654ed BFS: Made bplustree_header::CheckNode() use const node. 2015-01-19 21:21:11 +01:00
Adrien Destugues
c299b09cff SupportDefs: make it C89-safe again
The atomic inlines were not implemented in a C89 safe way:
* Use of "static inline" not allowed, but static __inline__ is
* __inline__ is a GCC extension, but these are already in a __GNUC__
block (other compilers use a non-inline version)
* also fix a C++ style comment
2015-01-19 13:54:18 +01:00
Guillermo Bonvehi
4c61114eff Make sure Mail leaves enough space for all strings
* The code was assuming "Attachments" would be the longer word used, but
this doesn't always work outside of english. Actually search for the
longest string in the translations.
* Fixes #5285.
* It would be even better to convert the whole window to use layouts,
but this makes it useable until that's done.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2015-01-18 14:37:16 +01:00
Hamish Morrison
64f6fcbccd TCP, UNIX sockets: allow multiple calls to listen
* Subsequent calls to listen on an already-listening socket can resize
  the backlog.
* While not explicitly spelled out by POSIX, this behaviour is
  consistent with FreeBSD and Linux.
2015-01-17 19:51:16 +00:00
autonielx
ba483af7de Update userguide translations 2015-01-17 18:26:48 +01:00
Adrien Destugues
5c9a335c57 More build tools fix. 2015-01-17 17:45:00 +01:00
Adrien Destugues
1985b16d1e Also fix the buildtool version of catalogs. 2015-01-17 17:18:01 +01:00
Adrien Destugues
4bb4130ff2 Fix instanciate_catalog prototype
The prototype didn't match what the Locale Kit actually uses, making the
plaintext catalog (and any other add-on) unusable.
2015-01-17 17:02:40 +01:00
Adrien Destugues
412f030b0f Some clarifications to BInvoker docs. 2015-01-17 13:41:55 +01:00
Adrien Destugues
658f64c3f1 LocaleRosterData: use BPathFinder to locate catalog add-ons
* Makes the code slightly simpler and more future proof.
2015-01-17 13:16:49 +01:00
autonielx
1ff0a2b51a Update translations from Pootle 2015-01-17 06:35:41 +01:00
John Scipione
db7ef1292a Add BMessageRunner docs 2015-01-16 18:00:50 -05:00
John Scipione
1f4de50d39 Style fixes to BMessageRunner, no functional changes intended 2015-01-16 18:00:27 -05:00
John Scipione
2eb2dcfabe Small fixes to BMessenger docs 2015-01-16 17:59:48 -05:00
John Scipione
fd3c25a928 Move the operator function docs over too 2015-01-16 16:43:34 -05:00
John Scipione
973984649c Add BMessenger docs 2015-01-16 16:43:33 -05:00
John Scipione
6fd099550f Style fixes to Messenger, no functional change intended 2015-01-16 16:43:33 -05:00
Puck Meerburg
14d1920039 bindfs: Keep settings in scope for the entire Mount operation
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

* Fixes #11760.
* Bug made visible by the changes to fix private driver settings. Before
the change, the settings were most often leaked, so there was no
use-after-free.
2015-01-16 22:38:01 +01:00
John Scipione
19ce061e0b Update BInvoker docs to clarify them
...with notes from PulkoMandy and Axel. Also added author credits.

Class documentation is moved to the appropriate method and then \sa
is used to point to the documentation so it is only documented in
one location.

Added some text about how the interaction between BInvoker and
BHandler and/or BLooper works.

BMessenger needs to be documented to understand how SetTimeout() is
suppose to work, refer to BeBook for now.
2015-01-16 14:24:32 -05:00
Puck Meerburg
0bc1fc98a5 TabDecorator: Invalidate all tabs when updating a title
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

Fixes #8569

I'm not sure if this works properly if you reorder tabs (see #9175). But
the fix for that is reordering the tab list to match the visible order,
which doesn't affect this part of the code.
2015-01-16 18:45:02 +01:00
Humdinger
bccd0cd661 Update QuickLaunch package.
Don't ignore /system/bin by default.
Now that more and more ports are available for Haiku, some GUI apps
do appear in that folder...
2015-01-16 15:36:20 +01:00
Adrien Destugues
8e13d9d6a6 getifaddrs: std::nothrow and allocation checks.
Thanks to Axel for reviewing.
2015-01-16 15:03:44 +01:00
Adrien Destugues
46c267cf18 Move getifaddrs to libbnetapi
* Since it uses BNetworkAddress, it can't be in libnetwork.
2015-01-16 13:29:47 +01:00
Adrien Destugues
e2fc7cd3c7 Implement getifaddrs.
This is a BSD extension also available in glibc, but is not POSIX.
Fixes #6279.
2015-01-16 13:10:57 +01:00
John Scipione
23f1ce0756 BInvoker::Timeout was introduced in BeOS R5, not R3 2015-01-15 15:33:27 -05:00
John Scipione
9bf7584d96 Add BInvoker docs 2015-01-15 15:30:23 -05:00
Axel Dörfler
7fb1396861 BFS B+tree test: use set to ensure string uniqueness.
* The previous solution was rather slow, and also could produce
  duplicates under some circumstance.
2015-01-15 20:30:50 +01:00
Axel Dörfler
9b61a43ad6 MediaPlayer: make sure info window is on screen. 2015-01-15 20:30:48 +01:00
Axel Dörfler
aeb121ec03 Sudoku: consolidated set value code paths.
* Renamed _ToggleValue() to _SetValue(), and only let it do that.
* It's now called from _InsertKey(), and _SolveSingle() as well which
  results in a correct visual update (ie. completed values, and the
  value hints are updated correctly).
* _SolveSingle() would also not test for a completed game.
2015-01-15 20:30:46 +01:00
Axel Dörfler
758cfd808a BFS B+tree test: style cleanup. 2015-01-15 20:30:45 +01:00
Axel Dörfler
f982c9ed88 BFS btreeTest: fixed DEBUG build. 2015-01-15 20:30:43 +01:00
Automatic Committer
eb27e2297a Update usb.ids from www.linux-usb.org 2015-01-15 05:20:28 +01:00
Adrien Destugues
684eb9df1e keymap: Fix unused variable warning.
These constants are not used when building on the host, move them inside
the appropriate ifdef.
2015-01-14 16:40:37 +01:00
Adrien Destugues
0b90f99bc3 Mail server: fix disabling notifications
* The default notifier didn't always take the setting into account.
* The mail server was not using the setting from the settings file and
instead waiting for a message that wasn't sent anywhere.

Fixes #10852.
2015-01-14 16:27:33 +01:00
Adrien Destugues
d8853b4953 Add mail provider data for hotmail.com.
Servers only accept SSL connections, so the MX entry isn't enough to
autoconfigure. Moreover, hotmail.com MX still points to mx3.hotmail.com,
while outlook.com suggests to use pop3.live.com.
2015-01-14 15:07:56 +01:00
Adrien Destugues
6394d0e838 Mail Preferences: use correct message constant
Would crash the SMTP add-on as the message sent would end up trying to
toggle a non-existing checkbox.
2015-01-14 14:01:55 +01:00
Adrien Destugues
1736cb1d59 driver_settings: fix allocating an empty settings
I misread the condition and broke this in 0687a01. Thanks to Axel for
reviewing!
* Refactor the code again to move all the error checking at the top of
the function, to make it easier to read.
2015-01-14 13:39:35 +01:00
Adrien Destugues
bcb793d37b Fix driver_settings in kernel mode outside of drivers.
The API allows to create driver settings which are not added to the
global list, however those were left partially uninitialized, and there
was no way to cleanly delete them.

Tag such unattached settings with a ref_count of -1, and have
delete_driver_settings check for this and handle the case correctly.

Note: #10494 comment 2 says the settings for packagefs shouldn't be
added to the kernel driver settings list, which is why I went with this
solution. An alternative would be always using the list and the
reference counting, but I don't know what the consequences are.

Fixes #10494.
2015-01-14 11:53:19 +01:00
Adrien Destugues
0687a01b53 driver_settings: don't strdup(NULL)
* This is not allowed by strdup POSIX specs and GCC may use its builtin
strdup which doesn't check for it.
* also refactor parse_driver_settings_string to create the
settings_handle using settings_new, to reduce code duplication.
2015-01-14 11:53:18 +01:00
PulkoMandy
98731302d8 fssh_api_wrapper: fix build on non-Haiku.
* I'm not sure why strings.h needs to be included before <new>, but it
wouldn't work otherwise.
2015-01-14 10:16:32 +01:00
Adrien Destugues
6e35da8308 WebPositive: parse "host:port" as a valid URL
* Web+ would not understand this and do a search engine query instead.
* Fixes #11726
* Also add some comments to _SmartURLHandler to make it clearer how it
handles URLs.
2015-01-14 10:16:56 +01:00
Adrien Destugues
e95068dfa8 ext2: fix logic error.
* Thanks to Ingo and Jérôme for review.
* The Remove can't fail after a succesful Lookup so don't check for that
* Return B_OK on success
2015-01-13 22:53:37 +01:00
Humdinger
89678b6b5a Updated youtube-dl package. 2015-01-13 19:12:00 +01:00
Adrien Destugues
749bd21c45 rootfs: fs_shel build fix attempt.
Sorry, I can't test all cases when building from Haiku.

Including <new> after the fs shell wrapper makes the compiler fail
because new needs a size_t argument (not an fssh_size_t). But including
it before also fails because it includes C++ typedefs without the fssh
wrapper, leading to conflicts.

Undefining size_t just for the include of <new> isn't very clean, but
seems to work. new gets a size_t argument as it should and the other
typedefs aren't conflicting.
2015-01-13 16:21:14 +01:00
Adrien Destugues
a7d444d145 Remove old block cache implementation
This was not used anywhere except the tests written for it (which is
also removed).
2015-01-13 15:48:59 +01:00
Adrien Destugues
ace74964f1 Remove khash from the sources.
Fixes #9552.
2015-01-13 15:48:58 +01:00
Adrien Destugues
bb3092b298 rootfs: convert to BOpenHashTable.
* Add an fs-shell compatible version of BOpenHashTable in the fs_shell
to keep it working. The header is renamed to KOpenHashTable to avoid a
conflict with the OpenHashTable.h available in private/shared which is
not API compatible.
2015-01-13 15:48:58 +01:00
Adrien Destugues
9d053f5975 BOpenHashTable: document some subtleties
Mainly the interaction of resizing the table with iterators.
2015-01-13 15:48:57 +01:00
Adrien Destugues
9d1c3b8d4b block cache: convert to BOpenHashTable. 2015-01-13 15:48:56 +01:00
Rene Gollent
be60c04c89 modules: Fix #11746.
- When normalizing paths of the preloaded modules to their final mounted
  path, remove them from the hash table before updating their path. Otherwise,
  the remove would fail due to the hash no longer matching, which in turn
  would cause the code in question to introduce an infinite loop in the
  hash table's internal link list due to manually rewriting the next link.
2015-01-12 19:08:24 -05:00