Commit Graph

57236 Commits

Author SHA1 Message Date
Adrien Destugues
f0f458ebea Remove glow from boot logo.
It looks better without it.
Note: beta and "development" images not adjusted. We don't have the
wonderbrush sources in the repo for these, apparently.
2017-07-29 12:27:50 +02:00
Adrien Destugues
f40841ac86 BNetworkRequest: fix _GetLine on empty lines.
On an empty line terminated by \n, we would access the temporary buffer
(stack allocated) with an index of (uint32)-1. On 32bit machine this
would just read the byte before the array on the stack, but on 64bit it
would crash.

Check that the length is at least 1 before trying to access a character
in the array.

Fixes #13625.

Thanks to accessays for proofreading the code:
2017-07-28 21:59:19 +02:00
Wiktor
b6b792f8cb Fixed certain labels not being drawn.
BTextControl was created with label as the first argument and NULL
as the second, while constructor expects control's name to come
first and then the label. The fix was to simply add a name
argument before the label and remove the extra NULL.

Fixes #13636.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-28 21:21:56 +02:00
Adrien Destugues
615ef07db3 libnetapi: missing NULL check. 2017-07-28 21:08:54 +02:00
Alexander von Gluck IV
f806447f52 aarch64: Add aarch64 build host support
* Maybe it will be a target someday.
* 64-bit ARMv8 for those not in the know.
2017-07-27 18:45:54 -05:00
Brian Hill
3e967b3fb4 Repositories bug fix
* Remove code that tries to detect repo name from other existing repos
* Automatically enable repo after it is added
Fixes #13602
2017-07-27 19:00:06 -04:00
Jérôme Duval
6c9e01265b pthread_rwlock: use a mutex for process-private locks.
* instead of a benaphore.
* define PTHREAD_RWLOCK_INITIALIZER.
* adjust Init(), Destroy(), StructureLock() and StructureUnlock().
2017-07-27 18:33:53 +02:00
Automatic Committer
b34aa933ed Update pci.ids from pciids.sourceforge.net 2017-07-27 05:20:23 +02:00
hyche
0c2d2d7f0f btrfs_shell: remove BEOS_COMPATIBLE as Haiku doesn't support anymore 2017-07-25 09:35:03 +07:00
hyche
46eba5c02d BTRFS: Some modifications of BTree _Find
* Added "read" argument, may change variable type in the future instead of just bool variable.
* Now search key's objectId is changed to found key's objectId.
2017-07-25 09:34:57 +07:00
hyche
a4a1be758a BTRFS: Added retrieve Volume from BTree 2017-07-25 09:34:55 +07:00
hyche
4ba7b70ff3 BTRFS: Added more flags and key types 2017-07-25 09:34:53 +07:00
hyche
052a981c14 BTRFS: Added more on-disk data structures 2017-07-25 09:34:49 +07:00
hyche
9f9ba0bdc1 btrfs_shell: Support AVLTree 2017-07-25 09:34:46 +07:00
hyche
370ee09fe5 BTRFS: Added logical address (root) for BTree 2017-07-25 09:34:39 +07:00
hyche
7698541e6b btrfs_shell: Added cat command 2017-07-24 20:57:47 +07:00
hyche
548a0d80a0 BTRFS: rename BNode and BPath
Changed name BNode, BPath to Node, Path and move them into BTree
as the original names are already exist in Haiku Storage Kit.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:07:53 +02:00
hyche
17b1b1c0ea BTRFS: Some modifications for Volume.cpp
* Removed redundant codes when mounting roots
* Added TRACE
* Finding root should be "FindExact" to make it more understandable.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:06:09 +02:00
hyche
35a5e5ad18 BTRFS: Combine BNode and _Find
* Replaced fStream by BNode, this might fix errors when handling BTree with multiple levels because fStream remains at leaf after first allocating.
* Changed search algorithm for items (linear search -> binary search)

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:05:40 +02:00
hyche
a420881a6c BTRFS: Added retrieve RootBlock of BTree
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:05:18 +02:00
hyche
0d726c5cde BTRFS: Enhanced node search slot to handle btree_traverse type
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:04:53 +02:00
hyche
fc4a1e78e2 BTRFS: Added SetRoot for tree. Tree root is initialized at mount time
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:04:39 +02:00
hyche
7568abd559 BTRFS: BlockNum -> LogicalAddress to prevent misunderstanding
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:56:27 +02:00
hyche
91d7f850cf BTRFS: Added binary search for item slot
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:55:53 +02:00
hyche
bd2dab1c73 BTRFS: Add some missing constants
Chunk tree objectID is 3,
256 is the objectID of first created subvolume in fs tree,
    and also of first chunk tree (item in chunk tree).

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:25:37 +02:00
hyche
1481c49cd1 BTRFS: Initialize BPath and BNode for tree manipulation
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:19:20 +02:00
hyche
875a0552ae BTRFS: Method _Compare from BTree is now in btrfs_key
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:19:00 +02:00
hyche
5f4f71665a BTRFS: CachedBlock now is writable.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:18:25 +02:00
hyche
0878766c72 BTRFS: Added TRACE macro for debugging
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:18:11 +02:00
hyche
7e8e6c2ebb BTRFS: Added retrieve sector size for later use
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:17:33 +02:00
hyche
d87124efad BTRFS: Refix ticket #12788
* Change block size to node size. Block is not always the same as sector.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:17:04 +02:00
hyche
299aba38f0 BTRFS: code cleanups
* Removed struct keyword for declaring variable.
* Renamed BPlusTree to BTree because BtrFS use a variant of BTree not B+Tree.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:16:06 +02:00
hyche
b24d4c8a32 Fixed: Code style (again)
* Pointer/Reference should be next to type
* else if -> if
* Remove trailing spaces

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:15:16 +02:00
Jérôme Duval
dbad909b4e BMediaFile: fix MediaExtractor crash.
* stop the extractor processing before deleting the source.
* crash happened in MediaPlayer FilePlaylistItem::_CalculateDuration().
* was a regression introduced in hrev50671.
* fixes #13156.
2017-07-24 11:59:05 +02:00
Jérôme Duval
13dbf47109 Revert "BView: use off_t instead of long."
This reverts commit ab3a87ed6e.
2017-07-24 08:48:28 +02:00
Augustin Cavalier
11384b58ba bin/coreutils: Remove; now unused since previous commit. 2017-07-23 11:08:34 -04:00
Augustin Cavalier
95295296cd multiuser: New implementation of su.
We're still using the (now-deprecated) coreutils su, so this is
a replacement for that. It functions almost equivalently,
and supports the major arguments (-l, -c).

(Note that login/su to a non-root user is presently busted, though.
See #13583.)
2017-07-23 11:07:36 -04:00
Augustin Cavalier
eed40cb8c5 multiuser_utils: Add bool chngdir option to setup_environment. 2017-07-23 11:07:36 -04:00
Augustin Cavalier
5cc11bf479 login: Use read_password from multiuser_utils.
Also fix some extant bugs.
2017-07-23 11:07:36 -04:00
Augustin Cavalier
ec1421184a multiuser: Move setup_environment from login to multiuser_utils. 2017-07-23 11:07:36 -04:00
Jérôme Duval
0b6c89fb16 ffmpeg: implement deinterlace feature for ffmpeg 3.x.
* Use the yadif filter.
* Fixes #12731.
2017-07-23 13:03:53 +02:00
Adrien Destugues
037ea84ba5 BNumberFormat: add Parse() and GetSymbol(). 2017-07-23 11:40:25 +02:00
Adrien Destugues
6cbcfc1911 BNumberFormat: cache ICU formatters
For performance reasons, it is a good idea to keep the formatters
instanciated, instead of re-creating them each time we need to format a
number.
2017-07-23 10:24:02 +02:00
Adrien Destugues
0e4ad75e47 Remove more unneeded files from the Locale Kit
All of this is replaced by the single BNumberFormat class.
2017-07-23 09:15:42 +02:00
Adrien Destugues
b7cc4ccde6 Remove remaining include of FloatFormatParameters.h. 2017-07-22 19:47:07 +02:00
Adrien Destugues
0597752447 Remove full date format from Tracker date columns
It is too similar to the long format and does not add much value.
And it creates some problems with using a locale format with another's
string.

Fixes #11343.
2017-07-22 19:23:42 +02:00
Adrien Destugues
1416521f10 Notifications: default to application icon.
It is possible to SetIcon(NULL) to remove it.
But in msot cases we want the application icon to be the default.

as discussed in #13590.
2017-07-22 16:11:25 +02:00
Adrien Destugues
1d6af34b9a LocaleKit: remove obsolete files.
Formatting floats is handled by BNumberFormat already.
2017-07-22 12:59:12 +02:00
Adrien Destugues
e433b3cfc3 DiskUsage docs: update screenshots.
- Why were we using old BeOS screenshots here?
- Why is this not part of the user guide anyways?
2017-07-22 11:30:52 +02:00
Adrien Destugues
54de05d9d7 Fix error handling in PNG trnalsator
The default error handling code in libpng uses setjmp/longjmp. This is
annoying, because stack variables may be corrupt, unless they are
declared volatile.

Instead of declaring everytihng volatile, we can tell libpng to use
custom error functions, which will throw a C++ exception, making the
code more readable and less crashy.

Also handle the png_read_end function returning errors without failing
the whole decoding. This happens for example in the old diskusage
documentation screenshots, where this function fails after the image was
completely and correctly decoded. Ignoring the error lets ShowImage show
these pictures.

Fixes the crash reported in #6775.
2017-07-22 11:30:52 +02:00